/* ─── JENNA'S DRESS — STORE STYLES ─── */

:root {
  --blush: #f5e6e0;
  --rose: #d4a0a0;
  --deep-rose: #b76e79;
  --cream: #faf7f5;
  --charcoal: #2c2c2c;
  --soft-black: #1a1a1a;
  --gold: #c9a96e;
  --light-gray: #f0ece8;
  --border: rgba(212, 160, 160, 0.2);
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── NAVIGATION ─── */
.store-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 247, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.store-nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--soft-black);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.store-nav .logo span {
  color: var(--deep-rose);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep-rose);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--deep-rose);
  border-radius: 1px;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--deep-rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

/* ─── MAIN CONTENT ─── */
.store-main {
  padding-top: 70px;
  min-height: 100vh;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--soft-black);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  color: #888;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── CATEGORY FILTER ─── */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.2px;
}

.filter-btn:hover {
  border-color: var(--rose);
  color: var(--deep-rose);
}

.filter-btn.active {
  background: var(--soft-black);
  color: #fff;
  border-color: var(--soft-black);
}

/* ─── PRODUCT GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image svg {
  width: 45%;
  height: auto;
  opacity: 0.25;
  transition: all 0.5s;
}

.product-card:hover .product-image svg {
  opacity: 0.35;
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--soft-black);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-info {
  padding: 1.1rem 1.2rem 1.3rem;
}

.product-category-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--soft-black);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-rose);
}

.product-price .euro {
  font-size: 0.85rem;
}

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-image {
  aspect-ratio: 3/4;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.detail-image svg {
  width: 35%;
  height: auto;
  opacity: 0.2;
}

.detail-info {
  padding: 1rem 0;
}

.detail-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose);
  margin-bottom: 0.8rem;
}

.detail-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--soft-black);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 1.5rem;
}

.detail-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* Size selector */
.size-selector {
  margin-bottom: 2rem;
}

.size-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
  display: block;
}

.size-options {
  display: flex;
  gap: 0.6rem;
}

.size-btn {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: var(--charcoal);
}

.size-btn.selected {
  background: var(--soft-black);
  color: #fff;
  border-color: var(--soft-black);
}

/* Add to cart button */
.add-to-cart-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--soft-black);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

.add-to-cart-btn:hover {
  background: var(--deep-rose);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn.added {
  background: var(--deep-rose);
}

.detail-extras {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #666;
}

.extra-item .icon {
  font-size: 1.1rem;
}

/* ─── CART PAGE ─── */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.cart-empty {
  text-align: center;
  padding: 5rem 2rem;
}

.cart-empty .icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.cart-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--soft-black);
  margin-bottom: 0.75rem;
}

.cart-empty p {
  color: #888;
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-image {
  width: 90px;
  height: 120px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-image svg {
  width: 40%;
  opacity: 0.2;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--soft-black);
  margin-bottom: 0.3rem;
}

.cart-item-size {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--deep-rose);
  font-size: 0.95rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--charcoal);
}

.qty-btn:hover {
  border-color: var(--charcoal);
}

.qty-value {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: var(--deep-rose);
}

/* Cart summary */
.cart-summary {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #666;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--soft-black);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.summary-row .free {
  color: var(--deep-rose);
  font-weight: 600;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  background: var(--soft-black);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}

.checkout-btn:hover {
  background: var(--deep-rose);
  transform: translateY(-1px);
}

/* ─── CHECKOUT PAGE ─── */
.checkout-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--deep-rose);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ccc;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkout-order-summary {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-order-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--soft-black);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: #666;
}

.checkout-item .name {
  flex: 1;
}

.checkout-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.order-btn {
  width: 100%;
  padding: 1.1rem;
  background: var(--deep-rose);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.order-btn:hover {
  background: var(--soft-black);
  transform: translateY(-1px);
}

.order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── CONFIRMATION PAGE ─── */
.confirmation {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.confirmation .check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-rose), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: #fff;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.confirmation h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--soft-black);
  margin-bottom: 0.75rem;
}

.confirmation .order-number {
  font-size: 0.9rem;
  color: var(--deep-rose);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.confirmation p {
  color: #888;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ─── CONTINUE SHOPPING LINK ─── */
.continue-link {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--soft-black);
  border: 1.5px solid var(--soft-black);
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.continue-link:hover {
  background: var(--soft-black);
  color: #fff;
}

/* ─── FOOTER ─── */
.store-footer {
  padding: 3rem 2rem;
  background: var(--soft-black);
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.store-footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.store-footer .footer-logo span {
  color: var(--deep-rose);
}

.store-footer p {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.store-footer .footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.store-footer .footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.store-footer .footer-links a:hover {
  color: var(--deep-rose);
}

/* ─── LOADING ─── */
.loading {
  display: flex;
  justify-content: center;
  padding: 4rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--deep-rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── TOAST NOTIFICATION ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--soft-black);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

/* ─── BACK BUTTON ─── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--deep-rose);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .store-nav {
    padding: 0.8rem 1.2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 247, 245, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-toggle {
    display: block;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0.8rem 1rem 3rem;
  }

  .product-info {
    padding: 0.8rem 0.9rem 1rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 1.2rem 3rem;
  }

  .detail-image {
    position: static;
    aspect-ratio: 1/1;
    border-radius: 16px;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .page-header {
    padding: 2rem 1.2rem 1.5rem;
  }

  .category-filter {
    padding: 1rem;
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
  }

  .cart-container,
  .checkout-container {
    padding: 1rem 1.2rem 3rem;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
