/* =====================================================
   RESHAM SILK — PREMIUM THEME
   Paste this file at: static/css/premium-theme.css
   ===================================================== */

/* 1. GOOGLE FONTS & DESIGN TOKENS */
:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #f0f0f0;
  --color-accent: #4A0E17;    /* Resham Silk Burgundy Accent */
  --color-bg-light: #faf9f7;

  --space-section: 60px;
}

/* 2. BASE TYPOGRAPHY */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-title,
.category-label,
.sub-header {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* 3. SECTION SPACING */
.section,
.product-grid-wrapper,
.hero-banner,
footer {
  padding: var(--space-section) 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 4. PRODUCT CARDS */
.product-card {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.product-card .img-secondary {
  display: none;
}
.product-card:hover .img-primary {
  display: none;
}
.product-card:hover .img-secondary {
  display: block;
}

.product-card .product-title {
  margin: 14px 12px 4px;
  color: var(--color-text);
}

/* 5. PRICE STYLING */
.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 12px 16px;
}

.price-original {
  text-decoration: line-through;
  color: var(--color-muted);
  font-weight: 300;
  font-size: 0.85rem;
}

.price-sale {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
}

/* 6. BUTTONS */
.btn-add-cart {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  background: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-add-cart:hover {
  background: #fff;
  color: var(--color-text);
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-text);
}

/* 7. HERO BANNER */
.hero-banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 0;
}

.hero-banner .hero-content {
  position: relative;
  z-index: 2;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
}

/* 8. HORIZONTAL TRUST BADGES BAR */
.trust-badges-bar {
  background: #ffffff;
  border-top: 1px solid #f2e9e4;
  border-bottom: 1px solid #f2e9e4;
  padding: 24px 0;
  margin: 40px 0;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.trust-badge-item:hover {
  transform: translateY(-3px);
  background-color: #fdfbf7;
}

.trust-badge-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.trust-badge-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.trust-badge-content {
  display: flex;
  flex-direction: column;
}

.trust-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}

.trust-badge-sub {
  font-size: 12px;
  color: #777777;
  margin-top: 3px;
}

/* 9. FOOTER LAYOUT */
footer.site-footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-text);
}

.newsletter-box {
  display: flex;
  border: 1px solid var(--color-text);
}

.newsletter-box input {
  flex: 1;
  border: none;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.newsletter-box input:focus {
  outline: none;
}

.newsletter-box button {
  background: var(--color-text);
  color: #fff;
  border: none;
  padding: 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  cursor: pointer;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a img,
.footer-social a svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-social a:hover img,
.footer-social a:hover svg {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.5px;
}

/* 10. MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  :root {
    --space-section: 36px;
  }
  .hero-banner {
    min-height: 340px;
  }
  .trust-badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .trust-badges-grid {
    grid-template-columns: 1fr;
  }
}

/* 11. FLOATING WHATSAPP BUTTON STYLING */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-btn svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-float-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* 12. PRODUCT DETAILS & QUANTITY STEPPER (NEW FIXES) */
main.container.page:has(.p-page-container) {
  display: block !important;
  padding: 0 20px !important;
  background: transparent !important;
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin-top: 24px;
}

.add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  height: 48px;
  background: #fff;
  flex-shrink: 0;
}

.qty-btn {
  width: 38px;
  height: 100%;
  background: var(--color-bg-light);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  width: 42px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  outline: none;
}

.btn-buy-now {
  width: 100%;
  padding: 14px 0;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.btn-buy-now:hover {
  opacity: 0.9;
}

/* 13. STATIC PAGES STYLING */
.content-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 36px;
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-align: center;
}