/* ==========================================================================
   ENTEYA JEWELLERY - MAIN WEBSITE STYLESHEET
   Curated design system, typography, product grids, modals & footer
   ========================================================================== */

/* Global Font Styling */
* {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
}

.material-symbols-outlined, [class*="material-symbols"] {
  font-family: 'Material Symbols Outlined' !important;
}

/* Base & General Styling */
body {
  background-color: #F8F5EE;
  color: var(--charcoal, #292323);
  font-family: var(--font-nav, 'Manrope', sans-serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif, 'Manrope', sans-serif);
  color: var(--deep-burgundy, #3D0D17);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Spacing */
.section {
  padding: 70px 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold, #C9A45C);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: #6A5B5E;
  max-width: 580px;
  margin: 0 auto;
}

:root {
  /* Enteya Brand Tokens */
  --color-brand: #5D1E2B;
  --color-brand-dark: #3D0D17;
  --color-accent: #D4AF37;
  --color-accent-light: #F5E9CE;
  --color-bg-ivory: #FAF7F1;
  --color-bg-stone: #F3EDE4;
  --color-bg-beige: #EEE6DB;
  --color-bg-cream: #F7F2EA;
  --color-bg-white: #FFFFFF;
  --color-bg-warm: #F8F4ED;
  --color-charcoal: #2B2523;
  --color-text: #2B2523;
  --color-text-muted: #6A5B5E;
  --color-border: #E5DDD2;
  --color-border-subtle: rgba(93, 30, 43, 0.08);
  --space-section: 96px;
  --space-section-mobile: 56px;
  --space-content: 32px;
  --radius-small: 2px;
  --radius-medium: 4px;
  --radius-card: 4px;
  --shadow-subtle: 0 8px 24px rgba(43, 37, 35, 0.05);
  --max-content-width: 1360px;

  /* Legacy aliases for backwards compatibility */
  --burgundy: #5D1E2B;
  --deep-burgundy: #3D0D17;
  --gold: #D4AF37;
  --gold-light: #F5E9CE;
  --enteya-maroon: #5D1E2B;
  --enteya-gold: #D4AF37;
  --enteya-cream: #FAF7F1;
  --enteya-ivory: #FAF7F1;
  --enteya-charcoal: #2B2523;
  --enteya-border: #E5DDD2;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--enteya-maroon, #5D1E2B);
  color: #FFFDF8;
  padding: 14px 32px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--enteya-maroon, #5D1E2B);
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #3D0D17;
  border-color: var(--enteya-gold, #D4AF37);
  color: var(--enteya-gold, #D4AF37);
}

.btn-enteya-maroon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5D1E2B;
  color: #FFFDF8;
  border: 1px solid #5D1E2B;
  padding: 14px 32px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}

.btn-enteya-maroon:hover {
  background-color: #3D0D17;
  border-color: #D4AF37;
  color: #D4AF37;
}

.btn-enteya-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #5D1E2B;
  border: 1px solid #5D1E2B;
  padding: 14px 32px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}

.btn-enteya-outline:hover {
  background-color: #5D1E2B;
  color: #FFFDF8;
}

.btn-enteya-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #D4AF37;
  color: #3D0D17;
  border: 1px solid #D4AF37;
  padding: 14px 32px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}

.btn-enteya-gold:hover {
  background-color: #B89428;
  color: #FFFFFF;
}

.btn-gold {
  background-color: var(--enteya-gold, #D4AF37);
  color: var(--deep-burgundy, #3D0D17);
  border: 1px solid var(--enteya-gold, #D4AF37);
  padding: 14px 32px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}

.btn-gold:hover {
  background-color: #5D1E2B;
  border-color: #5D1E2B;
  color: #FFFDF8;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--burgundy, #641C2A);
  border: 1px solid var(--border-gold, rgba(201, 164, 92, 0.5));
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 250ms ease;
}

.btn-outline:hover {
  background-color: var(--ivory-surface, #FAF7F0);
  border-color: var(--gold, #C9A45C);
  color: var(--gold, #C9A45C);
}

/* Product Card Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

/* Product Card */
.product-card {
  background-color: #FFFDF8;
  border: 1px solid rgba(100, 28, 42, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(61, 13, 23, 0.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--burgundy, #641C2A);
  color: #FFFDF8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}

.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--burgundy, #641C2A);
  z-index: 2;
  transition: all 200ms ease;
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: var(--burgundy, #641C2A);
  color: #FFFDF8;
}

.product-img-wrap {
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  position: relative;
  background-color: #FAF7F0;
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

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

.product-info {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #C9A45C);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-serif, 'Manrope', sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-burgundy, #3D0D17);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--burgundy, #641C2A);
}

.product-old-price {
  font-size: 13px;
  color: #8C7B7D;
  text-decoration: line-through;
}

.product-add-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background-color: var(--ivory-surface, #FAF7F0);
  border: 1px solid var(--border-gold, rgba(201, 164, 92, 0.4));
  color: var(--burgundy, #641C2A);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 200ms ease;
}

.product-add-cart-btn:hover {
  background-color: var(--burgundy, #641C2A);
  color: #FFFDF8;
  border-color: var(--burgundy, #641C2A);
}

/* Footer Styling */
.enteya-footer {
  background-color: #24090F;
  color: #E8DFD8;
  padding-top: 70px;
  padding-bottom: 30px;
  border-top: 3px solid var(--gold, #C9A45C);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-about-text {
  font-size: 14px;
  color: #B5A8A9;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col-title {
  font-family: var(--font-serif, 'Manrope', sans-serif);
  color: var(--gold-light, #E0C78D);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--gold, #C9A45C);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #D1C5C7;
  font-size: 14px;
  transition: color 200ms ease, padding-left 200ms ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold, #C9A45C);
  padding-left: 5px;
}

.footer-newsletter-text {
  font-size: 13.5px;
  color: #B5A8A9;
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 164, 92, 0.4);
  border-radius: 4px;
  color: #FFFDF8;
  font-size: 13.5px;
  outline: none;
}

.footer-newsletter-input:focus {
  border-color: var(--gold, #C9A45C);
}

.footer-newsletter-btn {
  background-color: var(--gold, #C9A45C);
  color: var(--deep-burgundy, #3D0D17);
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 200ms ease;
}

.footer-newsletter-btn:hover {
  background-color: #D6B46E;
}

.footer-bottom {
  border-top: 1px solid rgba(201, 164, 92, 0.15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #8C7B7D;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Notification Toast */
.enteya-toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background-color: var(--deep-burgundy, #3D0D17);
  color: #FFFDF8;
  border: 1px solid var(--gold, #C9A45C);
  padding: 14px 24px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

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

/* Dynamic Announcement Bar (No Gradient) */
.enteya-announcement-bar {
  background-color: var(--burgundy, #5D1E2B);
  color: #FFFDF8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  text-align: center;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.enteya-announcement-bar strong {
  color: var(--gold-light, #E0C78D);
}

.enteya-announcement-link {
  color: var(--gold-light, #E0C78D);
  text-decoration: underline;
  margin-left: 8px;
}

/* Mobile Fixed Bottom Navigation Bar (Below 768px) */
.enteya-mobile-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .enteya-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background-color: #FFFDF8;
    border-top: 1px solid var(--border-gold, rgba(201, 164, 92, 0.35));
    box-shadow: 0 -4px 16px rgba(61, 13, 23, 0.08);
    z-index: 1900;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6A5B5E;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    position: relative;
    transition: color 200ms ease;
  }

  .mobile-bottom-nav-item.active,
  .mobile-bottom-nav-item:hover {
    color: var(--burgundy, #641C2A);
    font-weight: 600;
  }

  .mobile-bottom-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
  }

  .mobile-bottom-nav-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    margin-right: -18px;
    background-color: var(--burgundy, #641C2A);
    color: #FFFDF8;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Add bottom padding to body so bottom nav doesn't overlap footer content */
  body {
    padding-bottom: 64px;
  }
}

/* Floating WhatsApp Support Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  z-index: 1850;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .whatsapp-float-btn {
    bottom: 74px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* Side Cart Drawer Overlay & Panel */
.enteya-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(61, 13, 23, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  z-index: 2050;
}

.enteya-cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.enteya-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background-color: #FFFDF8;
  box-shadow: -8px 0 32px rgba(61, 13, 23, 0.15);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.enteya-cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-gold, rgba(201, 164, 92, 0.35));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--ivory-surface, #FAF7F0);
}

.cart-drawer-title {
  font-family: var(--font-serif, 'Manrope', sans-serif);
  font-size: 20px;
  color: var(--deep-burgundy, #3D0D17);
  margin: 0;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8C7B7D;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Free Shipping Progress Bar */
.shipping-progress-wrap {
  padding: 14px 24px;
  background-color: #FAF7F0;
  border-bottom: 1px solid var(--border-subtle, rgba(100, 28, 42, 0.1));
}

.shipping-progress-text {
  font-size: 13px;
  color: var(--deep-burgundy, #3D0D17);
  margin-bottom: 8px;
  font-weight: 500;
}

.shipping-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: #E6D7BC;
  border-radius: 3px;
  overflow: hidden;
}

.shipping-progress-bar-fill {
  height: 100%;
  background-color: var(--gold, #D4AF37);
  border-radius: 3px;
  transition: width 300ms ease;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-gold, rgba(201, 164, 92, 0.35));
  background-color: #FFFDF8;
}

/* Mobile Filter Sheet */
.enteya-filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(61, 13, 23, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.enteya-filter-modal.open {
  opacity: 1;
  visibility: visible;
}

.enteya-filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background-color: #FFFDF8;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(61, 13, 23, 0.2);
  z-index: 2010;
  transform: translateY(100%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.enteya-filter-modal.open .enteya-filter-sheet {
  transform: translateY(0);
}

.filter-sheet-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-gold, rgba(201, 164, 92, 0.35));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-sheet-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.filter-sheet-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle, rgba(100, 28, 42, 0.1));
  display: flex;
  gap: 12px;
}

/* Sticky PDP Mobile Purchase Bar */
.enteya-sticky-pdp-bar {
  display: none;
}

@media (max-width: 767px) {
  .enteya-sticky-pdp-bar {
    display: flex;
    position: fixed;
    bottom: 62px; /* above bottom navigation */
    left: 0;
    width: 100%;
    background-color: #FFFDF8;
    border-top: 1px solid var(--border-gold, rgba(201, 164, 92, 0.35));
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(61, 13, 23, 0.08);
    z-index: 1800;
  }

  .sticky-pdp-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
  }

  .sticky-pdp-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
  }

  .sticky-pdp-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--deep-burgundy, #3D0D17);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-pdp-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--burgundy, #641C2A);
  }

  .sticky-pdp-btn {
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Skeleton Loaders */
.skeleton-box {
  background: linear-gradient(90deg, #F2ECE1 25%, #E8DFD0 50%, #F2ECE1 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
