﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #c06a7f;
  --primary-light: #e8b8c4;
  --secondary-color: #2f1e28;
  --accent-color: #b67a4b;
  --accent-soft: #f3d6c7;
  --rose-deep: #7d3b55;
  --bg-color: #fff9f8;
  --card-bg: #fffefc;
  --white: #ffffff;
  --text-main: #3a2a34;
  --text-light: #7f6b76;
  --border-color: #f1dce3;
  --border-radius: 16px;
  --transition: all 0.35s ease;
  --shadow-soft: 0 16px 38px rgba(99, 54, 73, 0.12);
}

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

html,
body {
  width: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(234, 191, 204, 0.33), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(252, 230, 213, 0.45), transparent 34%),
    linear-gradient(180deg, #fffdfc 0%, var(--bg-color) 45%, #fff4f6 100%);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.02em;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 252, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 180, 192, 0.35);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 2.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--secondary-color);
  line-height: 1;
}

.logo span {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 999px;
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -0.45rem;
  right: -0.65rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #db93a7);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(192, 106, 127, 0.35);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  min-height: calc(100vh - 320px);
}

.hero {
  text-align: center;
  color: #fff;
  border-radius: 26px;
  margin-bottom: 4rem;
  padding: 8.5rem 2rem 7rem;
  background:
    linear-gradient(125deg, rgba(47, 30, 40, 0.7), rgba(99, 41, 64, 0.48)),
    url('https://images.unsplash.com/photo-1509631179647-0177331693ae?q=80&w=1800&auto=format&fit=crop') center/cover;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 224, 230, 0.42), rgba(255, 224, 230, 0));
  right: -90px;
  top: -130px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 245, 235, 0.28), rgba(255, 245, 235, 0));
  left: -80px;
  bottom: -100px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  margin-bottom: 0.9rem;
  letter-spacing: 0.03em;
}

.hero p {
  max-width: 730px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: rgba(255, 245, 247, 0.93);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffe8ee;
  border: 1px solid rgba(255, 229, 236, 0.38);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-soft-btn {
  color: #fff;
  border: 1.5px solid rgba(255, 243, 247, 0.75);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero-soft-btn:hover {
  background: rgba(255, 255, 255, 0.17);
}

.hero-badges {
  margin-top: 1.7rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badge {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(36, 17, 27, 0.35);
  border: 1px solid rgba(255, 234, 240, 0.23);
  color: rgba(255, 247, 250, 0.92);
  font-weight: 600;
}

.section-heading {
  text-align: center;
  margin-top: 4.6rem;
  margin-bottom: 1.9rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
}

.section-heading p {
  color: var(--text-light);
  max-width: 590px;
  margin: 0.45rem auto 0;
}

.hero .btn {
  margin-top: 1.8rem;
}

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.58rem 1.18rem;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: rgba(192, 106, 127, 0.45);
  color: var(--primary-color);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #d98ea1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 24px rgba(192, 106, 127, 0.26);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid rgba(237, 213, 223, 0.85);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(120, 78, 98, 0.08);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 36px rgba(120, 78, 98, 0.15);
}

.product-image-wrap {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 1.15rem 1.15rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-title {
  color: var(--secondary-color);
  font-size: 1.3rem;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.product-price {
  color: var(--accent-color);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 0.86rem 1.55rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #dc8ea3);
  color: #fff;
  box-shadow: 0 10px 20px rgba(192, 106, 127, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(192, 106, 127, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1.6px solid rgba(192, 106, 127, 0.5);
}

.btn-outline:hover {
  background: rgba(192, 106, 127, 0.1);
}

.btn-block {
  width: 100%;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 410px;
  max-width: 100%;
  height: 100vh;
  background: #fffdfc;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  box-shadow: -18px 0 36px rgba(72, 38, 56, 0.13);
  transition: right 0.35s ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.55rem;
}

.close-cart {
  background: transparent;
  border: 0;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.sidebar-cart-item {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-cart-img {
  width: 74px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.sidebar-cart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.sidebar-cart-meta {
  color: var(--text-light);
  font-size: 0.82rem;
  margin: 0.2rem 0 0.4rem;
}

.sidebar-cart-price {
  color: var(--accent-color);
  font-weight: 700;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
}

.remove-item-btn {
  border: 0;
  background: transparent;
  color: #bf5269;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.1rem 1.25rem 1.2rem;
  background: #fffbfb;
}

.cart-footer-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.9rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 20, 31, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: #2f1e28;
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: 0 16px 24px rgba(35, 17, 27, 0.3);
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.page-header {
  text-align: center;
  padding: 3.8rem 1.5rem;
  background: linear-gradient(180deg, #fffdfc, #fff5f7);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.page-subtitle {
  color: var(--text-light);
  max-width: 640px;
  margin: 0.55rem auto 0;
}

.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.3rem 4rem;
  font-size: 1.03rem;
  color: var(--text-main);
}

.content-wrap p,
.content-wrap li,
.content-wrap ol {
  color: var(--text-main);
}

.content-wrap h3,
.faq-question {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  font-family: 'Cormorant Garamond', serif;
}

.img-banner {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.faq-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-main);
}

.content-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 12px 24px rgba(122, 71, 94, 0.08);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.size-table th,
.size-table td {
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  text-align: center;
}

.size-table th {
  background: #fff2f6;
}

.empty-cart,
#success-message,
.order-summary,
.checkout-form {
  border-radius: var(--border-radius);
}

footer {
  margin-top: 4rem;
  padding: 3.5rem 2rem 1.5rem;
  color: #f6eef1;
  background:
    radial-gradient(circle at 85% -20%, rgba(238, 163, 184, 0.2), transparent 35%),
    linear-gradient(145deg, #2f1e28 0%, #412734 100%);
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  color: #ffd6df;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-logo {
  color: #fff;
}

.footer-intro {
  margin-top: 0.8rem;
}

.footer-col a,
.footer-col p {
  color: rgba(246, 238, 241, 0.83);
  text-decoration: none;
  display: block;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  max-width: 1240px;
  margin: 1.8rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 245, 247, 0.68);
  font-size: 0.84rem;
}

.seasonal-links {
  margin-top: 0.45rem;
  opacity: 0.18;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.seasonal-links a {
  color: rgba(255, 235, 243, 0.86);
  text-decoration: none;
  margin: 0 0.3rem;
}

.seasonal-links a:hover {
  opacity: 1;
}

.load-error {
  color: #c15468;
  display: none;
  padding: 2rem;
}

.empty-sidebar-copy {
  padding: 3rem 0;
  color: #887280;
}

.checkout-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 1.4rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

.loader {
  width: 46px;
  height: 46px;
  margin: 2.2rem auto;
  border-radius: 50%;
  border: 3px solid #f3dde4;
  border-top-color: var(--primary-color);
  animation: spin 0.9s linear infinite;
}

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

@media (max-width: 940px) {
  .navbar {
    padding: 0.9rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 253, 252, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: var(--shadow-soft);
  }

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

  main {
    padding: 1.15rem 1rem;
  }

  .hero {
    padding: 6rem 1.1rem 5.2rem;
    margin-bottom: 2.3rem;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
  }

  .hero-badge {
    font-size: 0.66rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    height: 330px;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .img-banner {
    height: 290px;
  }

  .section-heading {
    margin-top: 3rem;
  }
}
