/*
Theme Name: Swiss Royale Exact Clone
Theme URI: https://example.com/
Author: OpenAI
Description: WooCommerce-ready WordPress theme styled to closely mirror the provided Diet Sugar landing page layout.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: swiss-clone
*/

:root{
  --red:#f20d14;
  --dark:#111111;
  --bg:#ffffff;
  --text:#222;
  --white:#fff;
  --shadow:0 14px 30px rgba(0,0,0,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.4}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{width:min(1160px,calc(100% - 32px));margin:0 auto}
.topbar{background:var(--red);color:#fff;text-align:center;font-weight:800;padding:12px 10px;letter-spacing:.3px;text-transform:uppercase;font-size:15px;position:relative;overflow:hidden}
.topbar__track{display:flex;align-items:center;justify-content:center;gap:42px}
.topbar__text{white-space:nowrap;flex:0 0 auto}
.topbar__text:last-child{display:none}
.topbar__sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@keyframes topbar-marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

@media (prefers-reduced-motion: reduce){
  .topbar{overflow-x:auto}
  .topbar__track{animation:none!important;padding-left:0!important;width:100%;justify-content:center}
  .topbar__text:last-child{display:none}
}
.site-header{position:sticky;top:0;z-index:40;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;justify-content:flex-end;padding:8px 0;gap:18px;min-height:56px}
.brand{font-size:36px;font-weight:900;color:var(--red);line-height:1}
.brand small{display:none}
.nav{display:flex;align-items:center;gap:26px;font-weight:700}
.nav a{font-size:16px}
.cart-link{border:2px solid var(--red);padding:10px 16px;border-radius:999px;color:var(--red);font-weight:800}

.hero{background:#fff;padding:34px 0 28px}
.hero-grid{display:grid;grid-template-columns:minmax(330px,46%) minmax(0,54%);align-items:center;gap:24px}
.hero-media{display:flex;justify-content:center;align-items:center;min-width:0}
.hero-media img{width:min(100%,520px);object-fit:contain}
.hero-copy{text-align:left}
.hero-copy h1{font-size:76px;line-height:.92;margin:0 0 12px;font-weight:900;text-transform:uppercase}
.hero-copy p.lead{font-size:22px;font-weight:700;margin:0 0 16px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:16px 24px;border-radius:999px;font-weight:900;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;line-height:1}
.btn-primary{background:var(--red);color:#fff;box-shadow:var(--shadow)}
.btn-secondary{background:#fff;color:var(--dark);border:2px solid #ddd}
.metrics{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:8px}
.metric{background:#fff;padding:16px 18px;border-radius:18px;box-shadow:var(--shadow);min-width:160px}
.metric strong{display:block;font-size:34px;line-height:1;color:var(--red)}
.metric span{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#666}

.section{padding:54px 0;background:#fff}
.section-title{font-size:46px;line-height:1.04;margin:0 0 16px;text-align:center;font-weight:900}
.badge-wrap{display:flex;justify-content:center}
.badge-wrap img{width:min(100%,1020px);border-radius:20px}
.testimonials{background:#fff}
.testimonial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:26px}
.card{background:#fff;border-radius:24px;padding:22px;box-shadow:var(--shadow);height:100%}
.rating{font-size:34px;font-weight:900;margin-bottom:12px}
.quote{font-size:18px;font-weight:700;line-height:1.45;margin:0 0 14px}
.author{color:#666;font-weight:800}
.shop-strip{background:#fff;color:var(--text);text-align:center;padding:44px 0}
.shop-strip h2{margin:0 0 10px;font-size:44px;line-height:1;font-weight:900;text-transform:uppercase}
.shop-strip p{margin:0 0 20px;font-size:18px}
.footer{background:#fff;color:var(--text);padding:34px 0;border-top:1px solid #eee}
.footer-grid{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}
.footer .contact{font-size:17px;line-height:1.8}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{background:#fff;border-radius:24px;padding:20px;box-shadow:var(--shadow)}
.woocommerce div.product{padding:38px 0}
.woocommerce div.product .product_title{font-size:42px;font-weight:900}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{background:var(--red)!important;color:#fff!important;border-radius:999px!important;padding:14px 22px!important;font-weight:900!important}
.woocommerce span.onsale{background:var(--red)!important}

@media (max-width: 1000px){
  .testimonial-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  .hero-grid{grid-template-columns:minmax(220px,40%) minmax(0,60%);gap:18px}
  .hero-copy h1{font-size:54px}
  .hero-copy p.lead{font-size:18px}
  .metric{min-width:140px}
  .nav{gap:16px}
}

@media (max-width: 700px){
  .header-inner{justify-content:center;min-height:52px;padding:6px 0}
  .nav{width:100%;justify-content:center;flex-wrap:wrap}
  .hero{padding-top:18px}
  .hero-grid{grid-template-columns:minmax(125px,38%) minmax(0,62%);gap:12px;align-items:center}
  .hero-media img{width:100%;min-width:120px}
  .hero-copy{text-align:left}
  .hero-copy h1{font-size:34px;margin:0 0 8px}
  .hero-copy p.lead{font-size:12px;margin:0 0 8px}
  .hero-actions{gap:8px;margin:12px 0}
  .btn{padding:10px 14px;font-size:13px}
  /* Top promo line: keep to a single line and scroll on small screens */
  .topbar{text-align:left;padding:12px 0;white-space:nowrap}
  .topbar__text:last-child{display:inline}
  .topbar__track{justify-content:flex-start;width:max-content;padding-left:100%;animation:topbar-marquee 12s linear infinite}
  .topbar__text{padding-right:48px}
  .metrics{gap:8px}
  .metric{min-width:unset;width:calc(50% - 4px);padding:10px 12px;border-radius:14px}
  .metric:last-child{width:100%}
  .metric strong{font-size:22px}
  .metric span{font-size:10px}
  .section-title,.shop-strip h2{font-size:30px}
  .testimonials .section-title{font-size:26px;white-space:nowrap;letter-spacing:-0.02em}
  .quote{font-size:16px}
  .testimonial-grid{grid-template-columns:1fr}
}

@media (max-width: 360px){
  /* Extra-tight phones: ensure "Why Switch" never wraps */
  .hero-side-actions .btn{font-size:10px}
}


/* v7 hero content below jar */
.hero-stack{display:flex;flex-direction:column;align-items:center;gap:18px}
.hero-copy-below{width:100%;max-width:760px;text-align:center}
.hero-copy-below .hero-actions,.hero-copy-below .metrics{justify-content:center}
.hero-copy-below h1{font-size:76px}
@media (max-width:1000px){.hero-copy-below{max-width:680px}.hero-copy-below h1{font-size:58px}}
@media (max-width:700px){.hero-copy-below{max-width:100%}.hero-copy-below h1{font-size:40px}.hero-copy-below p.lead{font-size:14px}.hero-copy-below .hero-actions{justify-content:center}.hero-copy-below .metrics{justify-content:center}.hero-copy-below .metric{width:auto;min-width:140px}.hero-copy-below .metric:last-child{width:auto}}


/* v8 heading below jar, actions beside jar */
.hero-split-custom{display:grid;grid-template-columns:minmax(340px,58%) minmax(260px,42%);align-items:center;gap:28px}
.hero-left-stack{display:flex;flex-direction:column;align-items:center}
.hero-copy-under-jar{width:100%;max-width:520px;text-align:center;margin-top:8px}
.hero-copy-under-jar h1{font-size:76px;line-height:.92;margin:0 0 12px;font-weight:900;text-transform:uppercase}
.hero-copy-under-jar .lead{font-size:22px;font-weight:700;margin:0 0 14px}
.hero-side-actions{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.hero-side-actions .hero-actions{margin:0 0 18px}
.hero-side-actions .metrics{margin-top:0}
/* v18: center Customers/Rating content inside cards */
.hero-side-actions .metric{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.hero-side-actions .metric:last-child{width:auto}
@media (min-width:701px){.hero-side-actions{gap:16px;max-width:360px;width:100%}.hero-side-actions .metrics{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:16px;width:100%}.hero-side-actions .hero-actions{margin:0;display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:16px;width:100%}.hero-side-actions .btn{width:100%;text-align:center;justify-content:center}.hero-side-actions .metric{min-height:134px;width:100%;min-width:0}.hero-side-actions .metric:last-child{width:100%}}
@media (max-width:1000px){.hero-split-custom{grid-template-columns:minmax(260px,56%) minmax(220px,44%);gap:20px}.hero-copy-under-jar h1{font-size:56px}.hero-copy-under-jar .lead{font-size:18px}.hero-side-actions .metric{min-width:135px}}
@media (min-width:701px) and (max-width:1000px){.hero-side-actions{max-width:320px}.hero-side-actions .metrics,.hero-side-actions .hero-actions{grid-template-columns:repeat(2,minmax(120px,1fr));gap:12px}.hero-side-actions .metric{min-width:0;min-height:122px}}
@media (max-width:700px){.hero-split-custom{grid-template-columns:minmax(165px,54%) minmax(0,46%);gap:8px;align-items:start}.hero-left-stack{align-items:center}.hero-media{justify-content:flex-start;align-items:flex-start;width:100%}.hero-media img{width:140%;max-width:none;min-width:0;transform:translateX(-12px)}.hero-copy-under-jar{margin-top:6px;max-width:100%}.hero-copy-under-jar h1{font-size:34px;margin:0 0 8px}.hero-copy-under-jar .lead{font-size:12px;margin:0 0 8px}.hero-side-actions{align-items:flex-start;padding-top:6px}.hero-side-actions .hero-actions{gap:6px;margin:0 0 8px;flex-direction:column;align-items:stretch;width:100%}.hero-side-actions .btn{padding:9px 10px;font-size:11px;width:100%}.hero-side-actions .metrics{gap:8px;flex-direction:column;align-items:stretch;width:100%}.hero-side-actions .metric,.hero-side-actions .metric:last-child{width:100%;min-width:unset;padding:8px 10px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.hero-side-actions .metric strong{font-size:19px;color:#111}.hero-side-actions .metric span{font-size:9px}.hero-side-actions .metric:nth-child(2){width:84%;padding:7px 10px;align-self:center}.hero-side-actions .metric:nth-child(2) strong{font-size:17px}}


/* v8.1 remove below-jar text and pull badges upward */
.hero-left-stack{gap:0}
.hero{padding-bottom:8px}
#benefits.section{padding-top:0;margin-top:-28px}
.badge-wrap{margin-top:0}
@media (max-width:700px){#benefits.section{padding-top:0;margin-top:-38px;position:relative;z-index:5}.badge-wrap{justify-content:flex-end;padding-right:0;position:relative;z-index:5}.badge-wrap img{display:block;width:100%;max-width:none;margin-left:auto;margin-right:0;position:relative;z-index:6;transform:translateY(11%) scale(1.05);transform-origin:center top}.hero-left-stack,.hero-media,.hero-media img{position:relative;z-index:1}.hero-side-actions{transform:translateY(2%)}.hero-side-actions .hero-actions{margin-top:10px}}

/* v12 transparent badges section so PNG transparency shows through */
#benefits.section, #benefits .container, .badge-wrap{background:transparent !important;}
.badge-wrap img{background:transparent !important;}
@media (max-width:700px){#benefits.section{background:transparent !important;}}


/* v20 seo heading between badges and testimonials */
.seo-intro{padding:22px 0 8px;background:#fff;text-align:center}
.seo-kicker{margin:0 0 6px;font-size:15px;font-weight:700;color:#333}
.seo-title{margin:0;font-size:22px;font-weight:800;line-height:1.2;color:#111}
@media (max-width:700px){.seo-intro{padding:16px 0 6px}.seo-kicker{font-size:11px;margin-bottom:4px}.seo-title{font-size:14px;line-height:1.25;padding:0 8px}.testimonials.section{padding-top:20px}}


/* v23 final polish pass */
@media (min-width:701px){
  .hero{padding:30px 0 20px}
  .hero-split-custom{gap:34px;align-items:center}
  .hero-left-stack{justify-content:center}
  .hero-media img{width:min(100%,540px)}
  .hero-side-actions{max-width:372px;gap:18px}
  .hero-side-actions .metrics,.hero-side-actions .hero-actions{align-items:stretch}
  .hero-side-actions .metric{border-radius:22px;min-height:128px}
  .hero-side-actions .metric span{margin-bottom:8px}
  .hero-side-actions .metric strong{font-size:32px;letter-spacing:-0.02em}
  .hero-side-actions .btn{min-height:54px;padding:15px 20px}
  .hero-side-actions .btn-secondary{border-color:#cfcfcf}
  .badge-wrap img{border-radius:0}
  .seo-intro{padding-top:26px}
  .testimonials.section{padding-top:26px}
  .testimonial-grid{gap:22px}
  .card{border-radius:26px}
}

@media (max-width:700px){
  .site-header{box-shadow:0 1px 8px rgba(0,0,0,.05)}
  .hero-side-actions .btn{min-height:42px}
  .metric{box-shadow:0 10px 22px rgba(0,0,0,.08)}
  .seo-intro{padding-top:6px;margin-top:-5%}
}
