/* DinAgro Automify — storefront styles */
:root {
  --brand: #8bc34a;
  --brand-dark: #2e7d32;
  --brand-deep: #1b5e20;
  --brand-soft: #f1f8e9;
  --accent: #ff7a00;
  --ink: #1f2d1b;
  --muted: #6b7a67;
  --line: #e4ecdf;
  --bg: #f6f8f4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 60, 20, .08);
}
* { -webkit-tap-highlight-color: transparent; }
body { font-family: "Poppins", "Hind Siliguri", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-dark-brand { background: var(--brand-dark); color: #fff; border: 0; }
.btn-dark-brand:hover { background: var(--brand-deep); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border: 0; }
.btn-accent:hover { background: #e06a00; color: #fff; }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand-dark); background: #fff; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand-dark) !important; }
.bg-brand-soft { background: var(--brand-soft); }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(139, 195, 74, .25); }

/* Notice bar */
.notice-bar { background: var(--brand-deep); color: #e8f5e9; font-size: 13px; overflow: hidden; white-space: nowrap; }
.notice-bar .track { display: inline-block; padding: 6px 0; animation: marquee 28s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 1030; }
.site-header .logo img { height: 46px; }
.search-box { display: flex; border: 2px solid var(--brand); border-radius: 12px; overflow: hidden; background: #fff; }
.search-box select { border: 0; background: var(--brand-soft); font-size: 14px; max-width: 170px; padding: 0 .75rem; outline: none; color: var(--ink); }
.search-box input { border: 0; flex: 1; padding: .65rem .9rem; outline: none; min-width: 0; }
.search-box button { border: 0; background: var(--brand); color: #fff; padding: 0 1.2rem; font-size: 17px; }
.header-icon { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.header-icon .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-dark); font-size: 18px; }
.header-icon .badge-count { position: absolute; top: -4px; left: 28px; background: var(--accent); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; padding: 0 5px; }
.main-nav { background: var(--brand); }
.main-nav .nav-link { color: #fff; font-weight: 500; padding: .75rem 1rem; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { background: rgba(0,0,0,.12); color: #fff; }
.cat-dropdown .dropdown-menu { border-radius: 12px; border: 0; box-shadow: var(--shadow); padding: .5rem; min-width: 250px; }
.cat-dropdown .dropdown-item { border-radius: 8px; padding: .5rem .75rem; display: flex; align-items: center; gap: 10px; }
.cat-dropdown .dropdown-item img { width: 28px; height: 28px; }
.cat-dropdown .dropdown-item:hover { background: var(--brand-soft); }
.all-cat-btn { background: var(--brand-dark); color: #fff !important; }

/* Hero */
.hero .carousel-item { height: 420px; border-radius: var(--radius); overflow: hidden; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero .caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 7%; color: #fff; max-width: min(680px, 58%); }
.hero .caption h2 { font-size: clamp(1.6rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.15); }
.hero .caption p { font-size: 1.05rem; opacity: .95; margin: .8rem 0 1.4rem; }
.hero-side { border-radius: var(--radius); overflow: hidden; height: 202px; position: relative; color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-side h5 { font-weight: 700; margin: 0; }
.hero-side.one { background: linear-gradient(135deg, #ff9800, #ff5722); }
.hero-side.two { background: linear-gradient(135deg, #0e9aa7, #2f6fd6); }
.hero-side i.big { position: absolute; right: 18px; top: 18px; font-size: 64px; opacity: .25; }

/* Features strip */
.features { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature { display: flex; align-items: center; gap: 14px; padding: 18px; }
.feature .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.feature h6 { margin: 0; font-weight: 600; font-size: 14.5px; }
.feature small { color: var(--muted); }

/* Section titles */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 10px; }
.section-head h3 { font-weight: 700; font-size: 1.35rem; margin: 0; position: relative; padding-left: 14px; }
.section-head h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: var(--brand); }
.section-head a { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Category tiles */
.cat-tile { background: #fff; border-radius: var(--radius); padding: 18px 10px; text-align: center; display: block; color: var(--ink); transition: .2s; border: 1px solid transparent; height: 100%; }
.cat-tile img { width: 76px; height: 76px; transition: .25s; }
.cat-tile h6 { margin: 10px 0 2px; font-weight: 600; font-size: 14px; }
.cat-tile small { color: var(--muted); }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile:hover img { transform: scale(1.08) rotate(-4deg); }

/* Product card */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); transition: .2s; position: relative; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d4e7c4; }
.product-card .thumb { display: block; aspect-ratio: 1 / 1; background: var(--brand-soft); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .off { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; z-index: 2; }
.product-card .oos { position: absolute; top: 10px; right: 10px; background: #455a64; color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 20px; z-index: 2; }
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: 12px; color: var(--muted); }
.product-card .name { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); margin: 3px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.product-card .unit { font-size: 12.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-weight: 700; color: var(--brand-dark); font-size: 17px; }
.price .old { color: #9aa597; text-decoration: line-through; font-size: 13.5px; }
.product-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-card .actions .btn { flex: 1; font-size: 13px; padding: .5rem .4rem; }
.product-card .actions .btn-cart { flex: 0 0 42px; }

/* Deal banner */
.promo { border-radius: var(--radius); padding: 30px; color: #fff; background: linear-gradient(120deg, var(--brand-deep), var(--brand)); position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); }
.promo h3 { font-weight: 800; }

/* Shop page */
.page-banner { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; padding: 28px 0; }
.page-banner h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.page-banner .breadcrumb { margin: 6px 0 0; --bs-breadcrumb-divider-color: #dcedc8; }
.page-banner .breadcrumb a { color: #dcedc8; }
.page-banner .breadcrumb-item.active { color: #fff; }
.filter-card { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.filter-card h6 { font-weight: 700; margin-bottom: 12px; }
.filter-cat { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.filter-cat:hover, .filter-cat.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand-dark); }

/* Product details */
.pd-gallery { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.pd-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-info { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; }
.pd-info h1 { font-size: 1.6rem; font-weight: 700; }
.pd-info .price .now { font-size: 28px; }
.pd-info .price .old { font-size: 18px; }
.qty { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { border: 0; background: var(--brand-soft); width: 42px; font-size: 18px; color: var(--brand-dark); }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 600; outline: none; }
.meta-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.meta-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; }
.meta-list li span:first-child { color: var(--muted); min-width: 110px; }
.call-box { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.call-box .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; }
.desc-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; white-space: pre-line; }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* Cart & checkout */
.box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; }
.cart-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 18px; }
.pay-option { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { accent-color: var(--brand-dark); }
.success-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 40px; margin: 0 auto; box-shadow: 0 0 0 12px var(--brand-soft); }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; display: inline-block; }
.st-pending { background: #fff3e0; color: #e65100; }
.st-processing { background: #e3f2fd; color: #1565c0; }
.st-shipped { background: #ede7f6; color: #5e35b1; }
.st-delivered { background: #e8f5e9; color: #2e7d32; }
.st-cancelled { background: #ffebee; color: #c62828; }
.track-steps { display: flex; justify-content: space-between; position: relative; margin: 26px 0; }
.track-steps::before { content: ""; position: absolute; top: 18px; left: 6%; right: 6%; height: 4px; background: var(--line); }
.track-steps .step { position: relative; text-align: center; flex: 1; font-size: 13px; color: var(--muted); }
.track-steps .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 4px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; color: var(--line); }
.track-steps .step.done { color: var(--brand-dark); font-weight: 600; }
.track-steps .step.done .dot { border-color: var(--brand); background: var(--brand); color: #fff; }

/* Auth */
.auth-card { max-width: 460px; margin: 40px auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.auth-card h2 { font-weight: 700; }

/* Content pages */
.content-page { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 32px; line-height: 1.8; }
.content-page h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.2rem; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }

/* Footer */
.site-footer { background: #13240f; color: #b9c8b3; margin-top: 50px; font-size: 14px; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 14px; }
.site-footer a { color: #b9c8b3; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--brand); }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: 6px; padding: 0; }
.site-footer .social a:hover { background: var(--brand); color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
.site-footer .bottom a { display: inline; }

/* Floating & mobile */
.float-wa { position: fixed; right: 18px; bottom: 86px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 1040; }
.float-wa:hover { color: #fff; transform: scale(1.06); }
.mobile-bar { display: none; }
@media (max-width: 991.98px) {
  .hero .carousel-item { height: 230px; }
  .hero .caption p { display: none; }
  .hero .caption { max-width: 70%; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.08); z-index: 1040; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .mobile-bar a { flex: 1; text-align: center; color: var(--muted); font-size: 11px; position: relative; }
  .mobile-bar a i { display: block; font-size: 19px; margin-bottom: 2px; }
  .mobile-bar a.active { color: var(--brand-dark); }
  .mobile-bar .badge-count { position: absolute; top: -2px; left: 54%; background: var(--accent); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
  body { padding-bottom: 66px; }
  .site-header .logo img { height: 38px; }
  .pd-info { padding: 18px; }
  .float-wa { bottom: 82px; }
}
@media (max-width: 575.98px) {
  .product-card .body { padding: 10px; }
  .product-card .name { font-size: 13.5px; }
  .price .now { font-size: 15.5px; }
  .product-card .actions .btn:not(.btn-cart) { font-size: 12px; }
  .search-box select { display: none; }
}

/* Toast */
.toast-wrap { position: fixed; top: 86px; right: 16px; z-index: 1090; }
.toast-msg { background: var(--brand-deep); color: #fff; border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; animation: slideIn .25s ease-out; }
.toast-msg.error { background: #c62828; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
