/* ========================================
   DOOR BUDDIES THEME - STYLE.CSS
   Based on GrumpyTush layout
   ======================================== */

/* --- VARIABLES --- */
:root {
  --green: #1a7a3a;
  --green-dark: #145e2d;
  --red: #c41e3a;
  --gold: #f5c518;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --light-bg: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 10px 40px 10px 16px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 100;
}
.holiday-sale-bar { padding: 10px 16px; }
.holiday-sale-bar .announcement-content { gap: 14px; }
.sale-copy { font-weight: 700; letter-spacing: .2px; }
.sale-copy strong { color: var(--gold); }
.sale-cta { background:var(--red); color:#fff; padding:5px 12px; border-radius:999px; font-size:12px; font-weight:800; }
.announcement-content { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.countdown { display: flex; align-items: center; gap: 4px; }
.cd-block { display: flex; flex-direction: column; align-items: center; background: #c41e3a; border-radius: 6px; padding: 3px 9px 2px; min-width: 44px; line-height: 1.05; }
.cd-block strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.cd-block small { font-size: 9px; text-transform: uppercase; opacity: 0.8; }
.cd-sep { font-weight: 700; }
.announcement-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; color: #fff; font-size: 20px; line-height: 1; opacity: 0.7; }
.announcement-close:hover { opacity: 1; }

/* --- HEADER --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 90;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -0.5px; }
.track-link { font-size: 13px; color: var(--muted); }
.track-link:hover { color: var(--text); }
.cart-link { font-size: 14px; font-weight: 600; }

/* --- TICKER BAR --- */
.ticker-bar {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 4.5s linear infinite;
}
.ticker-track span { display: inline-block; }
.ticker-track span::after { content: ' \2022'; margin-left: 40px; opacity: 0.5; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Door Buddies storefront adjustments */
.brand-logo { width:170px; height:auto; max-height:56px; object-fit:contain; }
.header-inner { min-height:58px; }
.main-image img { aspect-ratio:1/1; object-fit:contain; background:#fff; }
.thumb-row { overflow-x:auto; }
.thumb-button { background:transparent; border:2px solid transparent; padding:0; border-radius:var(--radius-sm); overflow:hidden; flex:0 0 72px; }
.thumb-button img { width:68px; height:68px; object-fit:cover; }
.thumb-button.active { border-color:var(--green); }
.price-row { display:flex; align-items:center; gap:12px; margin:10px 0 2px; }
.current-price { font-size:30px; font-weight:850; color:var(--green-dark); }
.compare-price { color:var(--muted); font-size:18px; }
.discount-pill { background:#fff1f2; color:var(--red); font-weight:800; padding:4px 10px; border-radius:20px; font-size:13px; }
.price-note,.hero-copy,.fit-note,.checkout-note { font-size:14px; color:var(--muted); margin:6px 0 14px; }
.hero-benefits { display:grid; gap:6px; list-style:none; margin:12px 0; font-size:14px; font-weight:650; }
.hero-benefits li::before { content:'✓'; color:var(--green); font-weight:900; margin-right:8px; }
.design-selectors { display:grid; gap:8px; }
.design-choice { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; font-size:13px; font-weight:650; }
.design-choice select { max-width:58%; padding:8px; border:1px solid var(--border); border-radius:6px; background:white; font:inherit; }
.bundle-options { gap:10px; }
.bundle-card { flex-wrap:wrap; min-height:64px; }
.bundle-card small { flex-basis:100%; color:var(--muted); }
.bundle-total { margin-left:auto; font-weight:800; }
.bundle-save { margin-left:auto; }
.add-ons { padding:14px; background:var(--light-bg); border-radius:var(--radius); }
.add-ons label { display:flex; align-items:flex-start; gap:10px; padding:9px 0; border-top:1px solid var(--border); cursor:pointer; }
.add-ons label input { margin-top:5px; accent-color:var(--green); }
.add-ons label span { display:grid; gap:2px; }
.add-ons label span a { font-size:12px; font-weight:750; color:var(--green); text-decoration:underline; }
.add-ons .addon-option { align-items:center; }
.add-ons .addon-option img { width:56px; height:56px; flex:0 0 56px; object-fit:contain; border-radius:8px; background:#fff; }
.add-ons small { color:var(--muted); font-size:12px; }
.total-line { display:flex; justify-content:space-between; border-top:1px solid var(--border); padding:14px 0 4px; font-size:16px; }
.total-line strong { font-size:20px; }
.checkout-reassurance { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 14px; margin:10px 0 4px; color:#31523b; font-size:12px; font-weight:700; }
.btn-atc:disabled,.btn-sticky:disabled { opacity:.58; cursor:not-allowed; }
.ship-note { line-height:1.5; }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; text-align:center; font-weight:650; color:#23422d; }
.design-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; max-width:850px; margin:auto; }
.design-grid article { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:white; text-align:center; padding-bottom:16px; }
.design-grid img { width:100%; aspect-ratio:3/4; object-fit:contain; background:#f9fafb; }
.design-grid h3 { margin:14px 8px 4px; }
.design-grid p { color:var(--muted); padding:0 14px; font-size:14px; }
.video-coming { aspect-ratio:9/16; max-height:520px; margin:0 auto 22px; max-width:300px; background:linear-gradient(145deg,#173d2a,#8c1f2b); color:#fff; letter-spacing:2px; font-weight:800; }
.photo-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.gallery-photo { overflow:hidden; border-radius:var(--radius); background:#eee; }
.gallery-photo img { width:100%; aspect-ratio:3/4; object-fit:cover; }
.reviews-coming { text-align:center; font-weight:700; padding:20px; color:var(--muted); }
.faq-item { padding:0 14px; }
.faq-q { list-style:none; cursor:pointer; }
.faq-q::-webkit-details-marker { display:none; }
.faq-q span { margin-left:12px; color:var(--green); }
.faq-a { max-height:none; }
.faq-a p { padding-top:0; }
.final-cta .btn-atc { display:inline-block; }
.cutoff-reminder { margin-top:18px!important; font-weight:700; }
.footer-logo { width:160px; max-height:72px; object-fit:contain; margin-bottom:12px; }
.footer-bottom a { text-decoration:underline; }
@media(max-width:768px){
  .product-hero { padding:16px 0 28px; }
  .product-grid { gap:22px; }
  .product-title { font-size:28px; }
  .trust-grid { grid-template-columns:repeat(2,1fr); font-size:13px; }
  .design-grid { gap:10px; }
  .photo-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ticker-track { animation-duration:4.5s; }
  .holiday-sale-bar .announcement-content { gap:7px; }
  .sale-copy { font-size:12px; }
  .sale-cta { padding:4px 9px; }
  .sticky-bar { padding-bottom:calc(10px + env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce){ .ticker-track { animation:none; } }

/* --- PRODUCT HERO --- */
.product-hero { padding: 32px 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.main-image { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--light-bg); }
.main-image img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #f9fafb; }
.badge-sale { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.thumb-row { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: all 0.2s; }
.thumb.active, .thumb:hover { border-color: var(--green); opacity: 1; }

.viral-badge { display: inline-block; background: #e8f5e9; color: var(--green); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.product-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.stars.small { font-size: 14px; }
.rating-text { font-size: 14px; color: var(--muted); }
.trust-line { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.occasion-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { background: var(--light-bg); border: 1px solid var(--border); font-size: 12px; padding: 4px 12px; border-radius: 20px; color: var(--muted); }

.selector-group { margin-bottom: 20px; }
.selector-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: block; }

.character-select { display: flex; gap: 8px; }
.char-btn { padding: 10px 24px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.char-btn.active { border-color: var(--green); background: #e8f5e9; color: var(--green); }

.bundle-options { display: flex; flex-direction: column; gap: 8px; }
.bundle-option { cursor: pointer; }
.bundle-option input { display: none; }
.bundle-card { padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px; transition: all 0.2s; position: relative; }
.bundle-option input:checked + .bundle-card { border-color: var(--green); background: #e8f5e9; }
.bundle-price { font-size: 18px; font-weight: 800; margin-left: auto; }
.bundle-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.bundle-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.bundle-save { font-size: 11px; font-weight: 700; color: var(--red); background: #fef2f2; padding: 2px 8px; border-radius: 10px; }
.pop-badge { position: absolute; top: -10px; right: 12px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 10px; text-transform: uppercase; }
.pop-badge.best { background: var(--gold); color: var(--text); }

.btn-atc {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s;
  margin-top: 8px;
}
.btn-atc:hover { background: var(--green-dark); }
.no-code { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

.payment-icons { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.payment-icons img { height: 24px; opacity: 0.5; }

.ship-note { text-align: center; font-size: 13px; color: var(--green); font-weight: 600; margin-top: 12px; }

/* --- SOCIAL PROOF --- */
.social-proof { padding: 48px 0; background: var(--light-bg); }
.section-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 32px; }
.section-sub { text-align: center; color: var(--muted); margin-top: -24px; margin-bottom: 32px; font-size: 15px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.proof-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.proof-card .stars { padding: 8px 0 0; }
.proof-card p { font-size: 13px; color: var(--muted); padding: 4px 12px 16px; }

/* --- VIDEO SECTION --- */
.video-section { padding: 48px 0; text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.video-card { border-radius: var(--radius); overflow: hidden; }
.video-placeholder { background: #1a1a1a; aspect-ratio: 9/16; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.play-btn { font-size: 48px; color: #fff; opacity: 0.8; }
.video-card p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.btn-secondary { display: inline-block; padding: 12px 32px; border: 2px solid var(--green); color: var(--green); font-weight: 700; border-radius: var(--radius); transition: all 0.2s; }
.btn-secondary:hover { background: var(--green); color: #fff; }

/* --- HOW IT WORKS --- */
.how-it-works { padding: 48px 0; background: var(--light-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; }
.step-num { width: 40px; height: 40px; background: var(--green); color: #fff; font-weight: 800; font-size: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step img { border-radius: var(--radius); margin-bottom: 12px; aspect-ratio: 1; object-fit: cover; }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }

/* --- FEATURES --- */
.features { padding: 48px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { text-align: center; padding: 24px 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.feature-icon { font-size: 32px; margin-bottom: 8px; }
.feature-card h3 { font-size: 16px; margin-bottom: 4px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* --- REVIEWS --- */
.reviews-section { padding: 48px 0; background: var(--light-bg); }
.review-summary { display: flex; gap: 40px; align-items: center; margin-bottom: 32px; }
.review-avg { text-align: center; min-width: 140px; }
.big-rating { font-size: 48px; font-weight: 800; }
.review-bars { flex: 1; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 4px; }

.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.verified { font-size: 11px; color: var(--green); background: #e8f5e9; padding: 2px 8px; border-radius: 10px; }
.review-card p { font-size: 14px; margin-top: 8px; color: #374151; }
.review-photo { width: 120px; border-radius: var(--radius-sm); margin-top: 12px; }

/* --- COMPARISON TABLE --- */
.comparison { padding: 48px 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th { font-weight: 700; font-size: 15px; }
.compare-table th.highlight { color: var(--green); }
.compare-table td.highlight { color: var(--green); font-weight: 700; font-size: 18px; }
.compare-table td:first-child { text-align: left; font-weight: 600; }

/* --- PROMISE --- */
.promise { padding: 48px 0; background: var(--light-bg); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise-card { text-align: center; padding: 24px; }
.promise-icon { font-size: 36px; margin-bottom: 8px; }
.promise-card h3 { font-size: 16px; margin-bottom: 4px; }
.promise-card p { font-size: 14px; color: var(--muted); }

/* --- FAQ --- */
.faq-section { padding: 48px 0; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; font-size: 15px; font-weight: 600; background: none; text-align: left; }
.faq-arrow { transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 0 16px; font-size: 14px; color: var(--muted); }

/* --- FINAL CTA --- */
.final-cta { padding: 64px 0; background: var(--green); color: #fff; text-align: center; }
.final-cta h2 { font-size: 32px; margin-bottom: 8px; }
.final-cta p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.final-cta .btn-atc { max-width: 400px; margin: 0 auto; background: #fff; color: var(--green); }
.final-cta .btn-atc:hover { background: #f0f0f0; }

/* --- FOOTER --- */
.site-footer { padding: 48px 0 24px; background: #111; color: #aaa; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-links a { display: block; margin-bottom: 8px; color: #888; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; }
.footer-joke { font-style: italic; opacity: 0.5; margin-top: 4px; }
.footer-bottom .payment-icons { margin-top: 12px; justify-content: center; }

/* --- STICKY BAR --- */
.sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 10px 16px; z-index: 80; display: none; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.sticky-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.sticky-info { display: flex; align-items: center; gap: 12px; }
.sticky-price { font-size: 15px; }
.sticky-price s { color: var(--muted); font-size: 13px; }
.btn-sticky { padding: 10px 24px; background: var(--green); color: #fff; font-weight: 700; border-radius: var(--radius-sm); font-size: 14px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto 24px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .review-summary { flex-direction: column; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .product-title { font-size: 22px; }
  .sticky-bar { display: block; }
  .announcement-bar { font-size: 12px; }
}

@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .bundle-card { flex-wrap: wrap; }
}
