:root {
  --bg: #121212;
  --card: #1c1c1e;
  --muted: #a1a1aa;
  --text: #f4f4f5;
  --accent: #c5a059;
  --accent-2: #a68446;
  --shadow: 0 20px 40px rgba(0,0,0,.5);
  --radius: 24px;
}
:root.light {
  --bg: #fafafa;
  --card: #ffffff;
  --muted: #71717a;
  --text: #18181b;
  --accent: #b48a3d;
  --accent-2: #8d6b2f;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Tenor Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}
h1, h2, h3, .logo, .product-title {
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo, .title {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 40px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 10px;
  z-index: 1000;
  transition: all 0.3s ease;
}
.logo {
  font-family: "Bodoni Moda", serif;
  font-size: 28px;
  letter-spacing: 6px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 16px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.tool {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #262629;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #262629;
  padding: 8px 10px;
  border-radius: 10px;
}
.search input {
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  width: 100px;
  font-size: 13px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: #262629;
  color: var(--text);
  cursor: pointer;
}

.main {
  margin-top: 28px;
  display: grid;
  gap: 26px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-left {
  padding: clamp(20px, 5vw, 40px);
  display: grid;
  gap: 16px;
}
.overline {
  color: var(--muted);
  font-weight: 500;
  font-size: 18px;
}
.title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1;
  letter-spacing: 0.5px;
}
.subtitle {
  color: var(--muted);
  max-width: 520px;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
}
.cta-row {
  margin-top: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--accent);
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 36px;
  border-radius: 50px; /* Rounded corners as requested */
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}
.btn:active {
  transform: scale(0.96);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 160, 89, 0.2),
    transparent
  );
  transition: 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--accent);
  color: #1b1b1c;
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.4);
  transform: translateY(-2px);
}

/* Glow Animation */
@keyframes buttonGlow {
  0% { box-shadow: 0 0 15px rgba(197, 160, 89, 0.3); }
  50% { box-shadow: 0 0 30px rgba(197, 160, 89, 0.5); }
  100% { box-shadow: 0 0 15px rgba(197, 160, 89, 0.3); }
}

.btn.add-to-cart, .checkout-btn {
  animation: buttonGlow 3s infinite ease-in-out;
}
.location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 10px 14px;
  background: #262629;
  border-radius: 14px;
  width: fit-content;
}

.hero-right {
  padding: clamp(10px, 2vw, 18px);
}
.image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.02);
  transition: transform .6s ease;
  max-height: 500px;
}
.image-wrap:hover img { transform: scale(1.03); }

.v-slider {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  align-content: center;
}
.vs-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(26,26,28,.65);
  color: var(--text);
}
.dots {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.dot.active {
  background: var(--accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: clamp(12px, 2vw, 18px);
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  background: #262629;
  border-radius: 14px;
  padding: 14px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  background: #2d2d31;
}
.feature .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
  transition: transform .2s ease;
}
.feature:hover .icon { transform: translateY(-2px) scale(1.06); }
.feature .text { color: var(--muted); transition: color .2s ease; }
.feature:hover .text { color: var(--text); }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-left {
  padding: 28px;
}
.about-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 44px;
  letter-spacing: 1px;
}
.about-sub { color: var(--muted); margin-bottom: 8px; }
.about-body { color: var(--muted); }
.about-right {
  padding: 18px;
}
.about-img img {
  height: 320px;
}
.accent-pill {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 90px;
  border-radius: 12px;
  background: var(--accent);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1b1c;
  box-shadow: 0 12px 20px rgba(255,107,43,.35);
  cursor: pointer;
}

/* Footer */
.footer {
  margin-top: 26px;
  padding: 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 24px;
}
.footer-text { color: var(--muted); margin-top: 8px; }
.socials { display: flex; gap: 12px; margin-top: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; background:#262629; border-radius: 10px; }
.footer-links { display: grid; gap: 10px; }
.footer-links h4 { margin: 0 0 6px; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter input { background:#262629; border:none; outline:none; color:var(--text); border-radius: 12px; padding: 10px 12px; }
.btn.small { padding: 8px 16px; font-size: 12px; }
.copyright { margin-top: 20px; color: var(--muted); text-align: center; }

/* Refined Luxury Elements */
.header {
  position: sticky;
  top: 20px;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255,255,255,0.05);
}
:root.light .header {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0,0,0,0.05);
}

.swatch.brown { background-color: #795548; }
.swatch.black { background-color: #121212; }
.swatch.mustard { background-color: #c5a059; }

/* Button Consolidation - Removed duplicate .btn blocks */

.product-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.luxury-tag {
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  padding: 30px;
  border-left: 2px solid var(--accent);
}
.quote { font-style: italic; font-size: 17px; margin-bottom: 15px; }
.author { font-weight: 600; color: var(--accent); }

.faq-section {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}
.faq-q { font-weight: 600; font-size: 18px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-a { color: var(--muted); display: none; }
.faq-item.active .faq-a { display: block; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.section-title {
  text-align: center;
  font-family: "Bodoni Moda", serif;
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 30px;
  text-transform: uppercase;
}
.testimonials-section, .faq-container { padding: 40px; }

.product-gallery { position: sticky; top: 100px; }
.main-img {
  position: relative;
  overflow: hidden;
  background: var(--card); /* Prevents flicker */
  border-radius: 14px;
}

.main-img img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  height: auto;
  aspect-ratio: 1/1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-img.switching img {
  opacity: 0.4;
  transform: scale(0.98);
}
.thumbs { display: flex; gap: 12px; }
.thumbs img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.thumbs img.active { border-color: var(--accent); }

.product-info { display: grid; gap: 20px; }
.badge {
  background: #262629;
  color: var(--accent);
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.product-title { font-family: "Playfair Display", serif; font-size: clamp(32px, 6vw, 56px); letter-spacing: 1px; }
.product-price { display: flex; align-items: baseline; gap: 12px; }
.product-price .current { font-size: 32px; font-weight: 700; color: var(--accent); }
.product-price .old { color: var(--muted); text-decoration: line-through; }
.product-desc { color: var(--muted); line-height: 1.6; }

.options { display: grid; gap: 20px; }
.option label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--muted); font-size: 14px; text-transform: uppercase; }
.color-swatches { display: flex; gap: 12px; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 2px;
  background-clip: content-box;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}
.swatch:hover {
  transform: scale(1.2);
}
.swatch.active { border-color: var(--accent); transform: scale(1.1); }
.swatch.black { background-color: #000; }
.swatch.brown { background-color: #5d4037; }

.size-select {
  background: #262629;
  color: var(--text);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  width: 200px;
}

.action-btns { display: flex; gap: 16px; margin-top: 10px; }
.add-to-cart { flex: 1; justify-content: center; }

.product-meta {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.meta-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.meta-item i { color: #4caf50; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .main-img img { height: auto; aspect-ratio: 1/1; }
  .product-gallery { position: relative; top: 0; }
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: -400px; width: min(400px, 100%); height: 100%;
  background: var(--card);
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.active { right: 0; }

.cart-drawer-head {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-close { background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.cart-drawer-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
}
.cart-drawer-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cdi-info { display: grid; gap: 4px; }
.cdi-name { font-weight: 600; font-size: 14px; }
.cdi-price { color: var(--accent); font-weight: 700; }
.cdi-qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cdi-remove { background: none; border: none; color: var(--muted); cursor: pointer; transition: color .2s; }
.cdi-remove:hover { color: #ff5252; }

.cart-drawer-footer {
  padding: 24px;
  background: #262629;
  display: grid;
  gap: 12px;
}

@media (max-width: 480px) {
  .cart-drawer { width: 100%; right: -100%; }
}

/* Cart Page Styles */
.cart-page { padding: 40px; }
.cart-item-full {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
}
.ci-img-wrap img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.ci-details { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ci-name { font-size: 20px; margin-bottom: 4px; }
.ci-variant { color: var(--muted); font-size: 14px; }
.ci-actions { display: flex; align-items: center; gap: clamp(10px, 4vw, 40px); }
.ci-qty-wrapper { display: flex; align-items: center; gap: 12px; background: #262629; padding: 6px 12px; border-radius: 999px; }
.ci-price-wrap { font-weight: 700; font-size: 18px; color: var(--accent); }
.ci-remove-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; transition: .2s; }
.ci-remove-btn:hover { color: #ff5252; }

.cart-summary-page .summary-card {
  background: #1c1c1e;
  padding: 30px;
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}
:root.light .summary-card { background: #f4f4f5; }
.payment-icons { display: flex; gap: 15px; font-size: 24px; color: var(--muted); margin-top: 10px; justify-content: center; }

@media (max-width: 800px) {
  .ci-details { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ci-actions { width: 100%; justify-content: space-between; gap: 15px; }
}

/* Media Queries Refinement */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 30px; text-align: center; justify-items: center; }
  .about { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { 
    padding: 10px 12px; 
    top: 0; 
    border-radius: 0; 
    margin: 0; 
    width: 100%;
    left: 0;
    box-sizing: border-box;
  }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: none;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 2000;
  }
  .nav.active { display: flex; }
  .mobile-hide { display: none; }
  
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-detail { padding: 10px; width: 100%; box-sizing: border-box; }
  .main-img { width: 100%; }
  .main-img img { height: auto; border-radius: 10px; width: 100%; }
  .thumbs img { width: 60px; height: 60px; }
  
  .cart-grid { grid-template-columns: 1fr; }
  .cart-item-full { grid-template-columns: 70px 1fr; gap: 12px; padding: 16px 0; }
  .ci-img-wrap img { width: 70px; height: 70px; }
  .ci-name { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .logo { font-size: 20px; letter-spacing: 3px; }
  .title { font-size: 32px !important; }
  .product-title { font-size: 28px !important; }
  .hero-left { padding: 15px; }
  .feature { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 12px; }
  .feature .icon { width: 30px; height: 30px; font-size: 16px; }
  .btn { padding: 12px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .tools .search { display: none; } /* Hide search on extremely small screens to save space */
}

/* Refined Reveal animations */
[data-reveal] {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}
[data-reveal].in {
  transform: translateY(0);
  opacity: 1;
}


