* {
  /* font-family: "Roboto Condensed", sans-serif; */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fef6f9;
  font-family: "Roboto Condensed", sans-serif;
}

#background-pic {
  top: 0;
  left: 0;
  position: fixed;
  object-fit: cover;
  object-position: center 20%; /* CONTROLS x y display  */
  z-index: -1;
  height: 100%;
  width: 100%;
  opacity: 0.8;
}

h1,
h2,
p {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* for error pages */
h4 {
  margin-top: 3rem;
  padding: 0;
  text-align: center;
  font-size: 3rem;
}

.hidden {
  display: none !important;
}

/* ── NAVBAR ── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1rem;
  position: relative;
}

.logo {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  align-items: center;
  margin-left: 0.75rem;
  margin-right: 0.1rem;
}

.hamburger-line {
  display: block;
  width: 34px;
  height: 3px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 99;
  padding-bottom: 0.5rem;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
}

.nav-links li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  border-bottom: 1px solid #f3e8f0;
}

.nav-links li a:hover {
  color: #e91e8c;
}

.mobile-social-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  padding: 0.75rem 1.25rem;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  color: #1a1a1a;
}

.social-icon:hover svg {
  color: #e91e8c;
}

.nav-right-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.cart-icon {
  font-size: 1.6rem;
}

.social-icons {
  display: none;
}

/* MAIN FORM STYLES */

.main-form-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-banner-img {
  display: block;
  width: 85%;
  max-width: 340px;
  margin: 1.75rem auto 1rem;
  border-radius: 14px;
}

/* ── PRODUCT CARDS ── */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  width: 100%;
  max-width: 480px;
}

.product-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-label {
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.product-price {
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  padding: 0 0.75rem 0.25rem;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.75rem 0.25rem;
}

.product-price-original {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.product-price-discounted {
  font-size: 1rem;
  font-weight: 700;
  color: #c0392b;
}

.discount-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #c0392b;
  color: #fff;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}

.product-detail-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-detail-price-original {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.product-detail-price-discounted {
  font-size: 1.3rem;
  font-weight: 700;
  color: #c0392b;
}

.product-description {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  padding: 0 0.75rem 0.5rem;
  margin: 0;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.add-to-cart-btn {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0.25rem 0.75rem 0.75rem;
  padding: 0.6rem 1rem;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-to-cart-btn:hover {
  background-color: #e91e8c;
  border-color: #e91e8c;
  color: #ffffff;
}

.add-to-cart-btn:active {
  background-color: #c7176e;
  border-color: #c7176e;
  color: #ffffff;
  transform: translateY(1px);
}

.no-products-msg {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

/* ── BOTTOM TEXT ── */

.bottom-text-section {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
}

.bottom-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* ── PRODUCT DETAIL MODAL ── */

.product-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

.product-detail-overlay.visible {
  display: flex;
}

.product-detail-wrapper {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 480px;
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-detail-header {
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

.product-detail-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.product-detail-close:hover {
  color: #cccccc;
}

.product-detail-image-wrap {
  width: 100%;
  background: #f0f0f0;
}

.product-detail-image {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-detail-body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.product-detail-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin: 0;
}

.product-detail-price {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.product-detail-description {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.product-detail-cart-btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0 0;
}

/* ── POPUP NOTIFICATION ── */

.popup-notification {
  font-family: "Roboto Condensed", sans-serif;
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  align-items: center;
  gap: 1rem;
  min-width: 320px;
  max-width: 500px;
  z-index: 2000;
}

.popup-success {
  border-left: 4px solid #22c55e;
}

.popup-error {
  border-left: 4px solid #ef4444;
}

.popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.popup-success .popup-icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.popup-error .popup-icon {
  background-color: #fee2e2;
  color: #dc2626;
}

.popup-message {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4;
}

.popup-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.popup-close:hover {
  color: #333;
}
