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

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

:root {
  --cream: #F5EDE0;
  --cream-light: #FBF7F0;
  --cream-dark: #EDE3D3;
  --maroon: #4A1C1C;
  --maroon-deep: #3C1514;
  --maroon-light: #6B2D2D;
  --brown: #5C3A2E;
  --gold: #C4956A;
  --gold-dark: #A07850;
  --gold-light: #D4B08C;
  --teal: #2D5F5F;
  --olive: #5A6B3C;
  --rust: #A0442A;
  --text: #3C2A1E;
  --text-light: #7A6555;
  --white: #FFFFFF;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream-light);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, .logo, .section-title, .hero p {
  font-family: 'Cormorant Garamond', serif;
}

/* ===== HEADER ===== */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(74,28,28,0.08);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-img-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--maroon);
}

.logo span {
  color: var(--gold-dark);
  font-weight: 400;
}

.tagline {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions a, .header-actions button {
  background: none;
  border: none;
  color: var(--maroon);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
  font-family: 'Poppins', sans-serif;
}

.header-actions a:hover, .header-actions button:hover { color: var(--gold-dark); }

.cart-icon { position: relative; }

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--rust);
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge.hidden { display: none; }

.user-name {
  color: var(--maroon);
  font-weight: 600;
  font-size: 13px;
}

/* Nav */
nav {
  background: var(--maroon);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  display: block;
  color: var(--cream-dark);
  text-decoration: none;
  padding: 13px 36px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  font-weight: 400;
}

nav a:hover, nav a.active {
  color: var(--gold);
  background: rgba(196,149,106,0.08);
  border-bottom-color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  background: var(--cream);
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,149,106,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(74,28,28,0.06) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4956a' fill-opacity='0.06'%3E%3Cpath d='M40 10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2s2-.9 2-2v-6c0-1.1-.9-2-2-2zm0 48c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2s2-.9 2-2v-6c0-1.1-.9-2-2-2zm20-28c0-1.1-.9-2-2-2h-6c-1.1 0-2 .9-2 2s.9 2 2 2h6c1.1 0 2-.9 2-2zm-48 0c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2h6c1.1 0 2-.9 2-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-logo-wrap {
  width: 600px;
  height: 600px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(74,28,28,0.18);
  transform: scale(1.12);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  font-weight: 400;
  font-style: italic;
}

/* ===== PRODUCTS ===== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 300;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(74,28,28,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--cream-dark);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(74,28,28,0.12);
}

.product-gallery {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-img.active {
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
}

.product-card:hover .gallery-arrow { opacity: 1; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-arrow:hover { background: var(--white); }

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(0,0,0,0.1);
}

.gallery-dot.active {
  background: var(--white);
}

.product-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.product-info { padding: 20px; }

.product-category {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
  font-weight: 500;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

.product-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.size-btn {
  padding: 5px 10px;
  border: 1px solid var(--cream-dark);
  background: var(--cream-light);
  border-radius: 3px;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  letter-spacing: 0.5px;
}

.size-btn:hover { border-color: var(--gold); color: var(--maroon); }
.size-btn.selected {
  background: var(--maroon);
  color: var(--cream);
  border-color: var(--maroon);
}

.size-hint {
  font-size: 11px;
  color: var(--rust);
  margin-bottom: 8px;
  display: none;
}

.size-hint.show { display: block; }

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--maroon);
}

.product-price::before { content: '\20B9'; margin-right: 2px; }

.btn-cart {
  padding: 9px 20px;
  background: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.btn-cart:hover { background: var(--gold-dark); color: var(--white); }
.btn-cart:disabled { background: #ccc; cursor: default; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.empty-state svg { width: 70px; height: 70px; margin-bottom: 20px; opacity: 0.25; }

/* ===== SIZE GUIDE ===== */
.size-guide-bar {
  text-align: center;
  margin-bottom: 30px;
}

.btn-size-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--cream);
  color: var(--maroon);
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
}

.btn-size-guide:hover {
  background: var(--maroon);
  color: var(--cream);
  border-color: var(--maroon);
}

.btn-size-guide svg { flex-shrink: 0; }

.size-guide-modal {
  width: 600px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.size-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.size-tab {
  padding: 8px 24px;
  background: var(--cream-light);
  border: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  transition: all 0.3s;
}

.size-tab.active {
  background: var(--maroon);
  color: var(--cream);
}

.size-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.size-table th {
  background: var(--maroon);
  color: var(--gold);
  padding: 12px 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.size-table td {
  padding: 11px 14px;
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text);
}

.size-table tbody tr:hover {
  background: var(--cream);
}

.size-table td strong {
  color: var(--maroon);
  font-weight: 600;
}

.size-guide-tips {
  background: var(--cream);
  border-radius: 8px;
  padding: 20px;
}

.size-guide-tips h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--maroon);
  margin-bottom: 12px;
  font-weight: 600;
}

.size-guide-tips ul {
  list-style: none;
  padding: 0;
}

.size-guide-tips li {
  font-size: 13px;
  color: var(--text-light);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.size-guide-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.size-guide-tips li strong {
  color: var(--text);
}

/* ===== LOGIN MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(60,21,20,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--cream-light);
  border-radius: 10px;
  padding: 40px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(74,28,28,0.25);
  position: relative;
  border: 1px solid var(--cream-dark);
}

.modal h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--maroon);
  margin-bottom: 4px;
  font-weight: 600;
}

.modal .subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
}

.modal-close:hover { color: var(--maroon); }

.modal .form-group { margin-bottom: 16px; }

.modal label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.modal input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s;
  background: var(--white);
}

.modal input:focus { outline: none; border-color: var(--gold); }

.modal .btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Poppins', sans-serif;
}

.modal .btn-submit:hover { background: var(--gold-dark); }

.modal .switch-text {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.modal .switch-text a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.modal .error-msg {
  color: var(--rust);
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

/* ===== SIGNUP PHONE ===== */
.signup-phone-wrap {
  display: flex;
  gap: 8px;
}

.signup-country-code {
  width: 160px;
  flex-shrink: 0;
  padding: 10px 8px;
  border: 1px solid var(--cream-dark);
  border-radius: 5px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  background: var(--cream-light);
  color: var(--text);
}

.signup-country-code:focus {
  outline: none;
  border-color: var(--gold);
}

.signup-phone-wrap input {
  flex: 1;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 24px;
  background: var(--maroon);
  color: var(--gold);
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(74,28,28,0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  font-family: 'Poppins', sans-serif;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ===== CONTACT & FOOTER ===== */
.contact-bar {
  background: var(--cream);
  color: var(--text);
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  letter-spacing: 1px;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.contact-bar a { color: var(--maroon); text-decoration: none; font-weight: 600; }

footer {
  background: var(--maroon);
  color: var(--gold-light);
  text-align: center;
  padding: 25px 20px;
  font-size: 12px;
  letter-spacing: 2px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gold-light);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--gold);
  color: var(--maroon);
  transform: scale(1.1);
}

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.35);
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 99;
  text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.wa-menu {
  display: none;
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 240px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}

.wa-menu.show { display: block; }

.wa-menu-title {
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon);
  border-bottom: 1px solid var(--cream-dark);
  font-family: 'Poppins', sans-serif;
}

.wa-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}

.wa-menu-item:hover { background: var(--cream-light); }

.wa-menu-item::before {
  content: '';
  width: 20px;
  height: 20px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ===== DECORATIVE DIVIDERS ===== */
.section-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 20px 35px; }
  .hero-logo-wrap { width: 300px; height: 300px; }
  .hero p { font-size: 16px; letter-spacing: 2px; }
  .logo { font-size: 20px; letter-spacing: 2px; }
  .logo-img { width: 42px; height: 42px; }
  nav a { padding: 11px 18px; font-size: 11px; letter-spacing: 2px; }
  .section-title { font-size: 28px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .product-card img { height: 260px; }
  .header-actions { gap: 12px; }
  .header-actions span.user-name { display: none; }
}

@media (max-width: 480px) {
  .logo-wrap div { display: none; }
  .logo-img { width: 44px; height: 44px; }
  nav a { padding: 10px 14px; letter-spacing: 1px; }
}
