/* SDCartX Furniture Theme */
.sdf-root {
  --sdf-primary: #A87044;
  --sdf-accent: #C99765;
  --sdf-bg: #FBF7F0;
  --sdf-bg-alt: #F2E8D9;
  --sdf-text: #2A1A0F;
  --sdf-muted: #6B5037;
  --sdf-border: #E8DCC8;
  --sdf-heading: "Playfair Display", Georgia, serif;
  --sdf-body: "Inter", system-ui, -apple-system, sans-serif;
  font-family: var(--sdf-body);
  color: var(--sdf-text);
}

.sdf-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.sdf-header { background: var(--sdf-bg); border-bottom: 1px solid var(--sdf-border); }
.sdf-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.sdf-logo { font-family: var(--sdf-heading); font-weight: 700; font-size: 22px; letter-spacing: 0.5px; color: var(--sdf-text); text-decoration: none; }
.sdf-logo img { max-height: 44px; width: auto; }
.sdf-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.sdf-nav a { color: var(--sdf-text); text-decoration: none; transition: color .2s; }
.sdf-nav a:hover { color: var(--sdf-primary); }
.sdf-actions { display: flex; gap: 14px; align-items: center; }
.sdf-icon-btn { background: none; border: none; cursor: pointer; color: var(--sdf-text); padding: 8px; position: relative; display: inline-flex; text-decoration: none; }
.sdf-icon-btn:hover { color: var(--sdf-primary); }
.sdf-badge { position: absolute; top: 0; right: 0; background: var(--sdf-primary); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }

/* Announcement strip */
.sdf-announce { background: var(--sdf-primary); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; letter-spacing: 0.3px; }

/* Hero */
.sdf-hero { position: relative; min-height: 520px; display: flex; align-items: center; background: var(--sdf-bg-alt); overflow: hidden; }
.sdf-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sdf-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,15,8,0.6) 0%, rgba(26,15,8,0.18) 60%, rgba(26,15,8,0) 100%); }
.sdf-hero-content { position: relative; max-width: 560px; padding: 80px 0; color: #fff; }
.sdf-hero-badge { display: inline-block; padding: 4px 12px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.sdf-hero h1 { font-family: var(--sdf-heading); font-size: 52px; line-height: 1.1; margin: 0 0 18px; font-weight: 700; }
.sdf-hero h1 .sdf-highlight { color: var(--sdf-accent); font-style: italic; }
.sdf-hero p { font-size: 16px; line-height: 1.7; opacity: 0.92; margin: 0 0 28px; }
.sdf-hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.sdf-btn { display: inline-block; padding: 13px 28px; border-radius: 2px; font-weight: 600; font-size: 14px; letter-spacing: 0.5px; text-decoration: none; cursor: pointer; border: none; transition: all .2s; text-transform: uppercase; }
.sdf-btn-primary { background: var(--sdf-primary); color: #fff; }
.sdf-btn-primary:hover { background: #7A4F2E; }
.sdf-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.7); }
.sdf-btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Sections */
.sdf-section { padding: 72px 0; }
.sdf-section-alt { background: var(--sdf-bg-alt); }
.sdf-section-title { text-align: center; margin: 0 0 10px; font-family: var(--sdf-heading); font-size: 36px; font-weight: 700; color: var(--sdf-text); }
.sdf-section-sub { text-align: center; color: var(--sdf-muted); margin: 0 0 40px; font-size: 15px; }

/* Cards grid */
.sdf-grid { display: grid; gap: 24px; }
.sdf-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sdf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sdf-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .sdf-grid-4, .sdf-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sdf-grid-4, .sdf-grid-3, .sdf-grid-2 { grid-template-columns: 1fr; } }

/* Category card */
.sdf-cat-card { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sdf-border); display: block; text-decoration: none; color: #fff; }
.sdf-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sdf-cat-card:hover img { transform: scale(1.05); }
.sdf-cat-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent 60%); display: flex; align-items: flex-end; padding: 18px; font-family: var(--sdf-heading); font-size: 20px; font-weight: 600; }

/* Product card */
.sdf-product { background: #fff; border: 1px solid var(--sdf-border); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.sdf-product:hover { box-shadow: 0 6px 24px rgba(43,32,24,0.12); transform: translateY(-2px); }
.sdf-product-img { aspect-ratio: 1 / 1; background: var(--sdf-bg-alt); display: block; overflow: hidden; }
.sdf-product-img img { width: 100%; height: 100%; object-fit: cover; }
.sdf-product-info { padding: 14px 14px 18px; }
.sdf-product-title { font-size: 14px; font-weight: 500; margin: 0 0 6px; line-height: 1.4; color: var(--sdf-text); }
.sdf-product-price { font-family: var(--sdf-heading); font-size: 18px; font-weight: 700; color: var(--sdf-primary); }
.sdf-product-old { text-decoration: line-through; color: var(--sdf-muted); font-size: 14px; font-weight: 400; margin-left: 8px; font-family: var(--sdf-body); }

/* Offer banners */
.sdf-offer { position: relative; overflow: hidden; border-radius: 4px; min-height: 260px; padding: 32px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--sdf-primary); }
.sdf-offer-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.45; }
.sdf-offer > * { position: relative; }
.sdf-offer-tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; opacity: 0.9; }
.sdf-offer h3 { font-family: var(--sdf-heading); font-size: 28px; margin: 0 0 6px; }
.sdf-offer p { margin: 0 0 18px; opacity: 0.9; font-size: 14px; }

/* Trust cards */
.sdf-trust { text-align: center; padding: 24px; background: #fff; border: 1px solid var(--sdf-border); border-radius: 4px; }
.sdf-trust-icon { font-size: 28px; margin-bottom: 12px; color: var(--sdf-primary); }
.sdf-trust h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.sdf-trust p { margin: 0; font-size: 13px; color: var(--sdf-muted); }

/* Testimonials */
.sdf-testimonial { background: #fff; border: 1px solid var(--sdf-border); padding: 26px; border-radius: 4px; }
.sdf-stars { color: var(--sdf-accent); margin-bottom: 10px; letter-spacing: 2px; }
.sdf-testimonial-text { font-size: 14px; line-height: 1.7; color: var(--sdf-text); margin: 0 0 14px; font-style: italic; }
.sdf-testimonial-author { font-size: 13px; font-weight: 600; color: var(--sdf-muted); }

/* Newsletter */
.sdf-newsletter { background: var(--sdf-primary); color: #fff; padding: 72px 20px; text-align: center; }
.sdf-newsletter h2 { font-family: var(--sdf-heading); font-size: 32px; margin: 0 0 8px; }
.sdf-newsletter p { margin: 0 0 22px; opacity: 0.9; }
.sdf-newsletter form { display: flex; max-width: 460px; margin: 0 auto; gap: 8px; }
.sdf-newsletter input { flex: 1; padding: 13px 16px; border: none; border-radius: 2px; font-size: 14px; color: var(--sdf-text); }
.sdf-newsletter button { background: var(--sdf-text); color: #fff; border: none; padding: 13px 22px; border-radius: 2px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-size: 13px; cursor: pointer; }

/* Footer */
.sdf-footer { background: #1A0F08; color: #D6CABA; padding: 64px 0 24px; }
.sdf-footer a { color: #D6CABA; text-decoration: none; }
.sdf-footer a:hover { color: #fff; }
.sdf-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 800px) { .sdf-footer-grid { grid-template-columns: 1fr 1fr; } }
.sdf-footer h5 { font-family: var(--sdf-heading); color: #fff; font-size: 15px; margin: 0 0 16px; }
.sdf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.sdf-footer-brand p { font-size: 13px; line-height: 1.7; margin: 10px 0 18px; color: #A89A8B; }
.sdf-footer-social { display: flex; gap: 10px; }
.sdf-footer-social a { width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; }
.sdf-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; text-align: center; font-size: 12px; color: #8A7D6F; }

/* Bottom nav (mobile) */
.sdf-bnav { display: none; }
@media (max-width: 768px) {
  .sdf-bnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--sdf-border); padding: 8px 0; z-index: 50; }
  .sdf-bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--sdf-muted); text-decoration: none; padding: 6px 0; }
  .sdf-bnav a.active { color: var(--sdf-primary); }
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
  .sdf-nav { display: none; }
  .sdf-hero h1 { font-size: 36px; }
  .sdf-section { padding: 48px 0; }
  .sdf-section-title { font-size: 28px; }
}
