/* Wood n Wonder - E-commerce Design System */

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

:root {
  /* Color Palette - Inspired by natural wood tones */
  --primary-dark: #3E2723;
  --primary-brown: #5D4037;
  --accent-gold: #C9A876;
  --accent-light: #D4A574;
  --cream: #FFF8E7;
  --off-white: #FAF7F2;
  --warm-gray: #8D7B68;
  --dark-gray: #4A4A4A;
  --success: #7CB342;
  --error: #D32F2F;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(62, 39, 35, 0.08);
  --shadow-md: 0 4px 16px rgba(62, 39, 35, 0.12);
  --shadow-lg: 0 8px 32px rgba(62, 39, 35, 0.16);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/** {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}*/
body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
  color: var(--dark-gray);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  margin: 0;
}

/* Wood grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(201, 168, 118, 0.02) 2px,
      rgba(201, 168, 118, 0.02) 4px
    );
  pointer-events: none;
  z-index: 1;
}

body > * {
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--dark-gray);
}

/* Header & Navigation */
header {
  background: linear-gradient(180deg, rgba(62, 39, 35, 0.98) 0%, rgba(93, 64, 55, 0.95) 100%);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-gold);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: transform var(--transition-base);
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo {
  height: 60px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  color: var(--accent-gold);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 80%;
}

nav a:hover {
  color: var(--accent-gold);
}

.nav-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-light) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(201, 168, 118, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 118, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--cream);
}

.btn-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-brown) 100%);
  color: var(--cream);
  box-shadow: 0 4px 15px rgba(62, 39, 35, 0.3);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 39, 35, 0.4);
}

/* Container */
.container{
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);

}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: 
    linear-gradient(135deg, rgba(62, 39, 35, 0.7) 0%, rgba(93, 64, 55, 0.8) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="wood" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M0 50 Q 25 25, 50 50 T 100 50" stroke="%23D4A574" fill="none" opacity="0.1"/><path d="M0 30 Q 25 55, 50 30 T 100 30" stroke="%23C9A876" fill="none" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="url(%23wood)"/></svg>');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201, 168, 118, 0.2) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--cream);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(201, 168, 118, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

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

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-info {
  padding: var(--space-md);
}

.product-category {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-brown);
  font-family: var(--font-display);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.terms-subhead{
     margin-top:2rem;
     font-weight:bold;
}

.terms-desc{
    font-size:1.2rem;
    word-spacing:2px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid #E0D5C7;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 118, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.card-header {
  border-bottom: 2px solid var(--cream);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #2C1810 100%);
  color: var(--cream);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-light) 100%);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--cream);
  opacity: 0.9;
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-xs);
  transition: all var(--transition-fast);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent-gold);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(201, 168, 118, 0.3);
  color: var(--cream);
  opacity: 0.8;
}

/* Badges */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--success);
  color: white;
}

.badge-sale {
  background: var(--error);
  color: white;
}

.badge-custom {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
  }
  
  .hero {
    min-height: 50vh;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-gap { gap: var(--space-md); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }


/* ═══════════════════════════════════════════════════
   Flipkart-inspired Product Listing & Detail Styles
   ═══════════════════════════════════════════════════ */

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: #e8dfd4;
  border: 1px solid #e8dfd4;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0;
}

.product-card {
  background: white;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 6px 28px rgba(62,39,35,0.16);
  transform: none;
  z-index: 3;
}

/* Image container – square, white bg, object-contain (like Flipkart) */
.pc-img-wrap {
  background: #f9f6f1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

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

/* Card info area */
.product-info {
  padding: 0.6rem 0.9rem 0.9rem;
  border-top: 1px solid #f0e8dd;
}

.product-category {
  font-size: 0.7rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.3rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
}

/* Rating badge (green pill) */
.pc-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.pc-rating-badge {
  background: #388e3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.38rem;
  border-radius: 3px;
  letter-spacing: 0.2px;
}

.pc-rating-count {
  color: #a0917e;
  font-size: 0.75rem;
}

/* Price row */
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-body);
}

.pc-mrp {
  font-size: 0.78rem;
  color: #a0917e;
  text-decoration: line-through;
}

.pc-off {
  font-size: 0.78rem;
  color: #388e3c;
  font-weight: 700;
}

.pc-material-chip {
  display: inline-block;
  background: #f5efe4;
  color: #8d7b68;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
}

/* Customizable badge */
.badge-custom {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: var(--primary-dark);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.42rem;
  border-radius: 2px;
  z-index: 5;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Filter Sidebar ── */
.filter-sidebar {
  background: white;
  border: 1px solid #e8dfd4;
  border-radius: 4px;
  overflow: hidden;
}

.filter-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0e8dd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-section {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f0e8dd;
}

.filter-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #444;
  font-weight: 400;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-gold);
  margin: 0;
}

/* ── Product Detail Page ── */
.pd-wrap {
  background: #f5f0e8;
  min-height: 100vh;
}

.pd-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: white;
  border: 1px solid #e8dfd4;
  border-radius: 4px;
  overflow: hidden;
  align-items: start;
}

.pd-gallery {
  border-right: 1px solid #f0e8dd;
  position: sticky;
  top: 72px;
}

.pd-main-img {
  background: #f9f6f1;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.32s ease;
}

.pd-main-img:hover img { transform: scale(1.07); }

.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #f0e8dd;
  overflow-x: auto;
  scrollbar-width: none;
  background: white;
}

.pd-thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 2px solid #e8dfd4;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: #f9f6f1;
  padding: 0.2rem;
  transition: border-color 0.18s;
}

.pd-thumb.active, .pd-thumb:hover { border-color: var(--accent-gold); }

.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Right info panel */
.pd-info {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
}

.pd-crumb {
  font-size: 0.78rem;
  color: var(--warm-gray);
  margin-bottom: 0.75rem;
}

.pd-crumb a { color: #5c8ab5; text-decoration: none; }
.pd-crumb a:hover { text-decoration: underline; }

.pd-name {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f0e8dd;
  margin-bottom: 0;
}

.pd-rating-pill {
  background: #388e3c;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.pd-review-count { font-size: 0.85rem; color: #a0917e; }

.pd-price-block {
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0e8dd;
}

.pd-price-main {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-body);
  line-height: 1;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pd-price-mrp {
  font-size: 0.95rem;
  color: #a0917e;
  text-decoration: line-through;
}

.pd-price-off { font-size: 0.95rem; color: #388e3c; font-weight: 700; }

.pd-price-note {
  font-size: 0.8rem;
  color: #388e3c;
  margin-top: 0.2rem;
}

.pd-offers-box {
  background: #fffde7;
  border: 1px solid #ffe57f;
  border-radius: 3px;
  padding: 0.7rem 1rem;
  margin: 0.85rem 0;
}

.pd-offers-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.pd-offer-item {
  font-size: 0.82rem;
  color: #555;
  padding: 0.18rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.pd-deliver-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0e8dd;
  align-items: flex-start;
  font-size: 0.85rem;
}

.pd-deliver-label {
  color: #a0917e;
  min-width: 75px;
  font-weight: 500;
  padding-top: 0.05rem;
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0e8dd;
}

.pd-qty-label { color: #a0917e; font-size: 0.82rem; min-width: 75px; }

.pd-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid #d8cfbf;
  border-radius: 3px;
  overflow: hidden;
}

.pd-qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #f5f0e8;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pd-qty-btn:hover { background: #ece5d8; }

.pd-qty-val {
  width: 44px;
  height: 34px;
  text-align: center;
  border: none;
  border-left: 1px solid #d8cfbf;
  border-right: 1px solid #d8cfbf;
  font-weight: 700;
  font-size: 0.95rem;
  background: white;
}

.pd-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.btn-buynow {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-light));
  color: var(--primary-dark);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: filter 0.2s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-buynow:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(201,168,118,0.45);
}

.pd-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0e8dd;
  margin-top: 0.25rem;
}

.pd-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.pd-trust-icon { font-size: 1.4rem; }
.pd-trust-label { font-size: 0.7rem; color: #a0917e; line-height: 1.3; }

/* ── Detail Page Tabs ── */
.pd-tabs-card {
  background: white;
  border: 1px solid #e8dfd4;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.pd-tab-bar {
  display: flex;
  border-bottom: 2px solid #f0e8dd;
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-tab-btn {
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: #a0917e;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.18s;
  margin-bottom: -2px;
}

.pd-tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--accent-gold);
  background: #fdfaf5;
}

.pd-tab-content { padding: 1.5rem 1.75rem; display: none; }
.pd-tab-content.active { display: block; }

.pd-spec-table { width: 100%; border-collapse: collapse; }
.pd-spec-table tr:nth-child(odd) { background: #faf7f2; }
.pd-spec-table td {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0e8dd;
  color: #444;
}
.pd-spec-table td:first-child {
  color: #a0917e;
  width: 38%;
  font-weight: 500;
}

/* Review summary */
.pd-review-summary {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0e8dd;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pd-big-score { text-align: center; }
.pd-big-num { font-size: 3.5rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.pd-big-stars { font-size: 1.1rem; color: var(--accent-gold); margin: 0.2rem 0; letter-spacing: 2px; }
.pd-big-label { font-size: 0.78rem; color: #a0917e; }

.pd-bar-rows { flex: 1; min-width: 160px; }
.pd-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: #a0917e;
}
.pd-bar-track {
  flex: 1;
  height: 5px;
  background: #e8dfd4;
  border-radius: 3px;
  overflow: hidden;
}
.pd-bar-fill { height: 100%; background: #388e3c; border-radius: 3px; }
.pd-bar-count { min-width: 20px; }

.pd-review-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f5f0e8;
}

.pd-review-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.4rem;
}

.pd-review-author { font-weight: 600; font-size: 0.88rem; color: #333; }
.pd-review-date { font-size: 0.78rem; color: #a0917e; }
.pd-review-body { font-size: 0.88rem; color: #555; line-height: 1.6; margin-top: 0.35rem; }
.pd-verified { font-size: 0.75rem; color: #388e3c; margin-top: 0.3rem; }

/* Responsive */
@media (max-width: 900px) {
  .pd-card { grid-template-columns: 1fr; }
  .pd-gallery { position: static; border-right: none; border-bottom: 1px solid #f0e8dd; }
  .pd-main-img { aspect-ratio: 4/3; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-trust-row { grid-template-columns: repeat(3,1fr); }
}
