
/*
Theme Name: Sầu Riêng Ân Nhi Pro v21
Theme URI: https://sauriengannhi.com
Author: OpenAI
Description: Theme bán sầu riêng phong cách xanh-vàng, tương thích WooCommerce.
Version: 21.0.0
Text Domain: saurieng-an-nhi-pro
*/
:root{
 --green:#0d6b25;--green-dark:#064b19;--cream:#fffaf0;--yellow:#f3bd2d;
 --text:#162018;--muted:#667066;--line:#ecefe9;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Segoe UI",Arial,Helvetica,sans-serif;color:var(--text);background:#fff;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:min(1180px,92%);margin:auto}
.topbar{background:#fff8e6;border-bottom:1px solid #f1ead7;font-size:13px}
.topbar .container{display:flex;justify-content:space-between;gap:20px;padding:9px 0}
.site-header{background:#fff;box-shadow:0 3px 20px #0000000d;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;gap:30px;min-height:86px}
.logo{font-weight:700;color:var(--green);font-size:25px;line-height:.9;min-width:180px}
.logo span{display:block}.logo small{display:block;font-size:10px;color:#444;margin-top:8px;font-weight:700}
.main-nav{margin-left:auto}
.main-nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
.main-nav a{font-weight:700;font-size:14px}
.header-actions{display:flex;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 21px;border-radius:8px;background:var(--green);color:#fff;font-weight:700;border:1px solid var(--green);transition:.2s}
.btn:hover{transform:translateY(-1px);filter:brightness(.97)}
.btn.ghost{background:#fff;color:var(--green)}
.hero{background:linear-gradient(100deg,#fffaf0 0%,#fffdf6 52%,#eef7e7 100%);padding:60px 0 0}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;align-items:stretch;gap:28px}
.hero-copy{padding:28px 0 62px}
.eyebrow{display:inline-block;background:#eef7e7;color:var(--green);padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px}
.hero h1{font-size:59px;line-height:.95;margin:18px 0 10px;color:var(--green);letter-spacing:-2px}
.hero h2{font-size:29px;margin:0 0 20px;color:#5a2d0b}
.hero p{font-size:18px;line-height:1.7;color:#303830;max-width:620px}
.hero-badges{display:flex;gap:20px;flex-wrap:wrap;margin:27px 0}
.hero-badge{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:700}
.hero-badge i{width:38px;height:38px;border-radius:50%;background:#e7f5e5;display:grid;place-items:center;font-style:normal}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-image{min-height:520px;border-radius:28px 28px 0 0;overflow:hidden;align-self:end;position:relative}
.hero-image img{width:100%;height:100%;object-fit:cover}
.hero-stamp{position:absolute;right:24px;top:26px;background:#fffef4;border:3px solid var(--yellow);padding:15px 20px;border-radius:50%;font-weight:700;color:var(--green);text-align:center;box-shadow:0 6px 20px #0002}
.section{padding:66px 0}
.section-title{text-align:center;margin:0 0 10px;font-size:31px}
.section-sub{text-align:center;color:var(--muted);margin:0 auto 34px;max-width:700px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 24px #0000000b;position:relative}
.product-card .tag{position:absolute;top:12px;left:12px;background:var(--green);color:white;font-size:11px;font-weight:700;padding:7px 10px;border-radius:6px;z-index:2}
.product-card img{height:220px;width:100%;object-fit:cover}
.product-body{padding:18px;text-align:center}
.product-body h3{margin:0 0 9px;font-size:18px}
.product-body p{margin:0 0 12px;color:var(--muted);font-size:14px;min-height:38px}
.price{color:var(--green);font-weight:700;font-size:22px;margin-bottom:14px}
.product-body .btn{padding:10px 18px;font-size:13px}
.benefit-strip{background:#fff9e7;border-top:1px solid #f3ecd4;border-bottom:1px solid #f3ecd4}
.benefits{display:grid;grid-template-columns:repeat(4,1fr)}
.benefit{display:flex;gap:13px;align-items:center;padding:27px 20px;border-right:1px solid #eee4c6}
.benefit:last-child{border-right:0}
.icon-round{width:48px;height:48px;border-radius:50%;background:#e8f5e5;display:grid;place-items:center;font-size:24px;flex:0 0 auto}
.benefit b{display:block;font-size:14px;margin-bottom:4px}
.benefit span{font-size:12px;color:var(--muted)}
.about-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:42px;align-items:center}
.about-img{border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #0001}
.about-img img{width:100%;height:360px;object-fit:cover}
.checks{display:grid;gap:10px;margin:22px 0}
.check{display:flex;gap:10px;align-items:center}
.check i{color:var(--green);font-style:normal;font-weight:700}
.testimonials{background:#fbfcfa}
.testimonial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.quote{border:1px solid var(--line);border-radius:14px;background:#fff;padding:24px;box-shadow:0 6px 20px #00000008}
.stars{color:#f4ad00;letter-spacing:2px}
.quote p{line-height:1.7;color:#4c554d}
.quote b{color:var(--green)}
.contact-band{background:#fff9e7}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.contact-item{display:flex;gap:15px;align-items:center;padding:18px}
.contact-item .big{font-size:36px}
.contact-item b{display:block;margin-bottom:4px}
.footer{background:linear-gradient(90deg,#0a5b20,#0c6e27);color:#fff;padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1.5fr;gap:36px}
.footer h3{font-size:15px;margin:0 0 15px}
.footer p,.footer li{font-size:13px;line-height:1.8;opacity:.94}
.footer ul{list-style:none;padding:0;margin:0}
.footer .logo{color:white}
.copy{text-align:center;border-top:1px solid #ffffff2b;margin-top:28px;padding-top:20px;font-size:12px;opacity:.85}
.woocommerce ul.products li.product{border:1px solid var(--line);border-radius:14px;padding:10px 10px 18px;box-shadow:0 8px 24px #0000000b}
.woocommerce ul.products li.product .button{background:var(--green);color:#fff;border-radius:7px}
.woocommerce span.onsale{background:var(--green)}
@media(max-width:980px){
 .main-nav{display:none}.hero-grid,.about-grid{grid-template-columns:1fr}
 .hero-image{min-height:380px}.product-grid{grid-template-columns:repeat(2,1fr)}
 .benefits{grid-template-columns:repeat(2,1fr)}.testimonial-grid,.contact-grid{grid-template-columns:1fr}
 .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 .topbar .container{display:block}.header-actions{display:none}.header-inner{min-height:72px}
 .hero{padding-top:24px}.hero h1{font-size:40px}.hero h2{font-size:23px}
 .hero-copy{padding-bottom:36px}.hero-image{min-height:300px}
 .product-grid,.benefits,.footer-grid{grid-template-columns:1fr}
 .benefit{border-right:0;border-bottom:1px solid #eee4c6}
}


/* v3 visual fixes */
.logo{letter-spacing:.2px}
.hero h1{font-weight:800;letter-spacing:-1px}
.hero h2{font-weight:700}
.section-title{font-weight:800}
.main-nav a{font-weight:700}
.btn{font-weight:700}
.hero-image{background:#f3f6ed}
.hero-image img{width:100%;height:100%;object-fit:cover;object-position:center}
.product-card img{height:245px;width:100%;object-fit:cover;object-position:center;background:#f5f5f0}
.about-img img{width:100%;height:390px;object-fit:cover;object-position:center}
.product-body h3{font-weight:700}
.price{font-weight:800}
.hero-stamp{background:#fffef4;color:var(--green);border:3px solid var(--yellow)}
@media(max-width:620px){
 .hero h1{font-size:38px;line-height:1.02}
 .hero-image{min-height:280px}
 .product-card img{height:230px}
}


/* ===== v4 HERO FIX ===== */
.hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
}
.hero-image{
  width:100%;
  height:520px;
  min-height:0;
  border-radius:28px;
  overflow:hidden;
  position:relative;
  background:#eef7e7;
}
.hero-image img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center center;
  margin:0;
  padding:0;
}
.hero-stamp{
  display:none !important;
}
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-image{height:440px;}
}
@media(max-width:620px){
  .hero-image{height:300px;border-radius:20px;}
}


/* ===== v5: full badge hero, no cropping ===== */
.hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
}
.hero-image{
  width:100%;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:1300 / 994;
  border-radius:28px;
  overflow:hidden;
  background:#eef7e7;
  align-self:center;
}
.hero-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  max-width:none;
}
.hero-stamp{display:none !important;}
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-image{aspect-ratio:1300 / 994;}
}
@media(max-width:620px){
  .hero-image{aspect-ratio:1300 / 994;border-radius:20px;}
}


/* ===== v6: floating Zalo + back-to-top ===== */
.sran-floating-tools{
  position:fixed;
  right:22px;
  bottom:24px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}
.sran-float-btn{
  border:0;
  cursor:pointer;
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  font-family:"Segoe UI",Arial,sans-serif;
}
.sran-float-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.23);
}
.sran-top-btn{
  background:#3e3e3e;
  color:#fff;
  font-size:29px;
  line-height:1;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
}
.sran-top-btn.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.sran-zalo-wrap{
  position:relative;
}
.sran-zalo-btn{
  background:#0b7cff;
  color:#fff;
  border:3px solid #fff;
  font-weight:800;
  font-size:15px;
}
.sran-zalo-btn span{
  letter-spacing:-.4px;
}
.sran-zalo-menu{
  position:absolute;
  right:70px;
  bottom:0;
  width:230px;
  padding:12px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 35px rgba(0,0,0,.2);
  border:1px solid #e8ece8;
}
.sran-zalo-title{
  font-weight:800;
  color:#0d6b25;
  padding:4px 5px 10px;
  font-size:14px;
}
.sran-zalo-menu a{
  display:block;
  padding:10px 11px;
  margin-top:7px;
  border-radius:10px;
  background:#f4f8ff;
  border:1px solid #dbeaff;
  color:#0d315e;
}
.sran-zalo-menu a:hover{
  background:#eaf3ff;
}
.sran-zalo-menu strong{
  display:block;
  font-size:15px;
}
.sran-zalo-menu small{
  display:block;
  margin-top:2px;
  color:#6a7580;
}
@media(max-width:620px){
  .sran-floating-tools{
    right:14px;
    bottom:18px;
    gap:10px;
  }
  .sran-float-btn{
    width:52px;
    height:52px;
  }
  .sran-zalo-menu{
    right:62px;
    width:210px;
  }
}


/* ===== v7: Facebook + Messenger floating buttons ===== */
.sran-facebook-btn,
.sran-messenger-btn{
  text-decoration:none;
  color:#fff;
  font-weight:800;
}
.sran-facebook-btn{
  background:#1877f2;
  font-family:Arial,Helvetica,sans-serif;
  font-size:34px;
  line-height:1;
}
.sran-facebook-btn span{
  transform:translateY(2px);
}
.sran-messenger-btn{
  background:#fff;
  padding:0;
  overflow:hidden;
}



/* ===== v9: Messenger icon supplied by shop ===== */
.sran-messenger-btn{
  background:#fff;
  padding:0;
  overflow:hidden;
}
.sran-messenger-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}


/* ===== v10: WooCommerce Shop / Product pages fix ===== */
.sran-woocommerce-page{
  min-height:520px;
  padding-top:54px;
  padding-bottom:70px;
}
.sran-woocommerce-page .woocommerce-products-header{
  margin-bottom:28px;
}
.sran-woocommerce-page .woocommerce-products-header__title.page-title{
  font-size:34px;
  line-height:1.2;
  color:var(--green);
  margin:0 0 12px;
  font-weight:800;
}
.sran-woocommerce-page .woocommerce-result-count{
  color:var(--muted);
  margin-top:10px;
}
.sran-woocommerce-page .woocommerce-ordering select{
  border:1px solid #dfe6dd;
  border-radius:9px;
  padding:10px 12px;
  background:#fff;
}
.sran-woocommerce-page .woocommerce ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  margin:28px 0 0 !important;
}
.sran-woocommerce-page .woocommerce ul.products::before,
.sran-woocommerce-page .woocommerce ul.products::after{
  display:none !important;
}
.sran-woocommerce-page .woocommerce ul.products li.product{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  border:1px solid var(--line);
  border-radius:15px;
  overflow:hidden;
  padding:0 0 18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.055);
}
.sran-woocommerce-page .woocommerce ul.products li.product a img{
  width:100%;
  height:245px;
  object-fit:cover;
  margin:0 0 16px;
  background:#f5f7f2;
}
.sran-woocommerce-page .woocommerce ul.products li.product .woocommerce-loop-product__title{
  padding:0 16px;
  font-size:18px;
  color:var(--text);
  font-weight:750;
  line-height:1.35;
}
.sran-woocommerce-page .woocommerce ul.products li.product .price{
  padding:0 16px;
  color:var(--green);
  font-size:19px;
  font-weight:800;
}
.sran-woocommerce-page .woocommerce ul.products li.product .button{
  margin:8px 16px 0;
  background:var(--green);
  color:#fff;
  border-radius:8px;
  padding:11px 16px;
  font-weight:700;
}
.sran-woocommerce-page .woocommerce span.onsale{
  background:var(--green);
  min-height:auto;
  min-width:auto;
  line-height:1.2;
  padding:8px 10px;
  border-radius:8px;
  top:12px;
  left:12px;
}
.sran-woocommerce-page .woocommerce-info,
.sran-woocommerce-page .woocommerce-message{
  border-top-color:var(--green);
}
.sran-woocommerce-page .woocommerce-info::before,
.sran-woocommerce-page .woocommerce-message::before{
  color:var(--green);
}

/* Single product */
.sran-woocommerce-page .woocommerce div.product{
  margin-top:10px;
}
.sran-woocommerce-page .woocommerce div.product .product_title{
  color:var(--green);
  font-weight:800;
}
.sran-woocommerce-page .woocommerce div.product p.price,
.sran-woocommerce-page .woocommerce div.product span.price{
  color:var(--green);
}
.sran-woocommerce-page .woocommerce div.product form.cart .button{
  background:var(--green);
  border-radius:8px;
}

/* Cart/checkout buttons */
.sran-woocommerce-page .woocommerce a.button,
.sran-woocommerce-page .woocommerce button.button,
.sran-woocommerce-page .woocommerce input.button{
  border-radius:8px;
}
.sran-woocommerce-page .woocommerce a.button.alt,
.sran-woocommerce-page .woocommerce button.button.alt,
.sran-woocommerce-page .woocommerce input.button.alt{
  background:var(--green);
}

@media(max-width:980px){
  .sran-woocommerce-page .woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  .sran-woocommerce-page{
    padding-top:34px;
  }
  .sran-woocommerce-page .woocommerce ul.products{
    grid-template-columns:1fr;
  }
  .sran-woocommerce-page .woocommerce ul.products li.product a img{
    height:auto;
    aspect-ratio:1 / 1;
  }
}


/* ===== v13: số lượng sản phẩm trên nút Giỏ hàng ===== */
.sran-cart-link{
  position:relative;
  overflow:visible;
}
.sran-cart-count{
  display:none;
  position:absolute;
  top:-9px;
  right:-9px;
  min-width:23px;
  height:23px;
  padding:0 6px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#e3262e;
  color:#fff;
  border:2px solid #fff;
  box-shadow:0 3px 9px rgba(0,0,0,.2);
  font-size:12px;
  font-weight:800;
  line-height:19px;
  text-align:center;
  z-index:3;
}
.sran-cart-count.has-items{
  display:flex;
}
@media(max-width:620px){
  .sran-cart-count{
    top:-8px;
    right:-7px;
    min-width:22px;
    height:22px;
    font-size:12px;
  }
}


/* ===== v14: cân đối tiêu đề thương hiệu 2 dòng ===== */
.hero-brand-title span{
  display:block;
}
.hero-brand-title span + span{
  margin-top:2px;
}


/* ===== v15: tăng khoảng cách 2 dòng logo + tiêu đề ===== */
.logo{line-height:1.02;}
.logo span + span{margin-top:4px;}
.hero-brand-title{line-height:1 !important;}
.hero-brand-title span + span{margin-top:10px !important;}
@media(max-width:620px){
  .hero-brand-title span + span{margin-top:6px !important;}
}


/* ===== v17: trang chính sách ===== */
.section article h1{
  margin-top:0;
}
.section article h2,
.section article h3{
  color:var(--green);
  margin-top:28px;
}
.section article li{
  margin:8px 0;
  line-height:1.6;
}
.footer ul a{
  color:inherit;
}
.footer ul a:hover{
  text-decoration:underline;
}


/* v18 policy page title cleanup */
.policy-page h2:first-child{margin-top:0}


/* ===== v19: trang chính sách ===== */
.policy-page{
  max-width:900px;
  margin:0 auto;
}
.policy-page h2:first-child{
  margin-top:0;
  font-size:32px;
  color:var(--green);
}
.policy-page h3{
  color:var(--green);
  margin-top:30px;
  margin-bottom:10px;
}
.policy-page p,
.policy-page li{
  line-height:1.75;
}
.policy-page ul{
  padding-left:24px;
}
