/* S Mart landing page styles */
:root {
  --green: #08783f;
  --white: #ff0000;
  --green-dark: #064d2b;
  --yellow: #ffe500;
  --red: #d71920;
  --ink: #17251d;
  --muted: #657168;
  --surface: #f5faf5;
  --border: #e3ebe4;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1200px, calc(100% - 36px)); margin-inline: auto; }
.info-bar { padding: 9px 16px; text-align: center; background: var(--green-dark); color: #fff; font-size: 13px; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 3px 16px #00000012; }
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { color: var(--green); font-size: 37px; line-height: 1; font-weight: 900; letter-spacing: -2px; white-space: nowrap; }
.logo .cart { display: inline-block; font-size: 30px; letter-spacing: 0; }
.logo small { display: block; margin-top: 5px; color: #4f5d53; font-size: 9px; letter-spacing: .5px; text-align: center; }
.menu { display: flex; align-items: center; gap: 23px; font-size: 14px; font-weight: 700; }
.menu a:hover { color: var(--green); }
.menu a.btn-green:hover { color: var(--white); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 13px 19px; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .18s, filter .18s; }
.btn:hover { transform: translateY(-2px); filter: brightness(.97); }
.btn-primary { background: var(--yellow); color: #151515; box-shadow: 0 4px 0 #d2bd00; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.hero-slider { position: relative; width: 100%; max-width: 100%; overflow: hidden; background: #fff; }
.slide { display: none; position: relative; }
.slide.active { display: block; animation: fadeSlide .35s ease; }
.slide img { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; background: #fff; }
.slide-overlay { margin:auto; text-align:center;position: absolute; inset: auto 0 0; padding: 70px max(24px, calc((100% - 1160px)/2)) 30px;  background: linear-gradient(transparent, #061b0ddd); color: #fff; }
.slide-overlay h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 38px); }
.slide-overlay p { margin: 0; color: #f3f6f3; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--green-dark); background: #ffffffdf; font-size: 30px; cursor: pointer; z-index: 3; box-shadow: 0 2px 9px #0002; }
.slider-arrow:hover { background: var(--yellow); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.slider-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 20px; background: #ffffffa8; cursor: pointer; }
.slider-dot.active { width: 25px; background: var(--yellow); }
.section { padding: 54px 0; }
.section.soft { background: var(--surface); }
.section-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section-heading h2 { margin: 0 0 10px; color: var(--green-dark); font-size: clamp(26px, 3vw, 38px); }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.info-card { display: flex; align-items: center; gap: 13px; padding: 20px 16px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.info-icon { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: #e7f5e9; font-size: 24px; }
.info-card h3 { margin: 0 0 5px; font-size: 15px; }
.info-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #0b512018; }
.product-image { height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, #f8fbf5, #e9f5e8); font-size: 58px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-info { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 15px; flex: 1; }
.product-info h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.product-info p { margin: 0; color: var(--muted); font-size: 12px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price { font-size: 20px; font-weight: 900; color: var(--green-dark); }
.old-price { color: #89928b; font-size: 12px; text-decoration: line-through; }
.product-info .btn { width: 100%; margin-top: auto; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.category-card { padding: 22px 10px; border: 1px solid var(--border); border-radius: 13px; background: #fff; text-align: center; transition: border-color .2s, transform .2s; }
.category-card:hover { transform: translateY(-3px); border-color: var(--green); }
.category-icon { font-size: 34px; }
.category-card h3 { margin: 10px 0 0; font-size: 13px; }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.store-card { display: flex; gap: 15px; align-items: flex-start; padding: 25px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.store-card .info-icon { flex-shrink: 0; }
.store-card h3 { margin: 0 0 9px; font-size: 20px; }
.store-card p { color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.store-card .btn { margin-top: 7px; }
.site-footer { background: #10291b; color: #fff; padding: 32px 0 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; padding-bottom: 24px; }
.footer-description { color: #d0ddd3; font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 17px; color: #e7f0e8; font-size: 13px; }
.footer-bottom { padding-top: 18px; border-top: 1px solid #ffffff24; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #c5d3c8; font-size: 12px; }
.mobile-cta { display: none; }
.m_banner{ display:none; }
@keyframes fadeSlide { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 900px) {
  .menu { gap: 13px; }
  .menu a:not(.btn) { display: none; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .m_banner{ display:block; }
  .d_banner{ display:none; }
  .container { width: calc(100% - 26px); }
  .info-bar { font-size: 11px; }
  .navbar { min-height: 68px; gap: 10px; }
  .logo { font-size: 30px; }
  .logo .cart { font-size: 24px; }
  .logo small { font-size: 7px; }
  .navbar > .btn { padding: 11px 12px; font-size: 12px; }
  .slide img { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .slide-overlay { padding: 60px 18px 34px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .slide-overlay p { font-size: 12px; }
  .slider-arrow { width: 35px; height: 35px; font-size: 23px; }
  .slider-arrow.prev { left: 9px; }
  .slider-arrow.next { right: 9px; }
  .section { padding: 38px 0; }
  .info-grid { gap: 9px; }
  .info-card { padding: 13px 10px; gap: 9px; }
  .info-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 19px; }
  .info-card h3 { font-size: 13px; }
  .info-card p { font-size: 11px; }
  .product-grid { gap: 10px; }
  .product-image { height: 135px; font-size: 45px; }
  .product-info { padding: 11px; }
  .product-info h3 { font-size: 14px; }
  .price { font-size: 18px; }
  .product-info .btn { padding: 11px 7px; font-size: 12px; }
  .category-grid { gap: 8px; }
  .category-card { padding: 16px 5px; }
  .category-icon { font-size: 27px; }
  .category-card h3 { font-size: 11px; }
  .store-grid { grid-template-columns: 1fr; }
  .store-card { padding: 18px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .mobile-cta { display: flex; position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; gap: 9px; padding: 9px 12px; background: #fff; box-shadow: 0 -4px 18px #00000018; }
  .mobile-cta .btn { flex: 1; padding: 12px 8px; font-size: 12px; }
  .site-footer { padding-bottom: 78px; }
  .slide-overlay{ top:20px; }
}
