:root {
    --theme-color: #2e7d32;
    --theme-color-light: #e8f5e9;
}
body { font-family: 'Poppins', 'Segoe UI', sans-serif; color:#333; background:#fff; }
a { text-decoration:none; }
.text-theme { color: var(--theme-color) !important; }
.bg-theme { background: var(--theme-color) !important; }
.btn-theme { background: var(--theme-color); border-color: var(--theme-color); color:#fff; }
.btn-theme:hover { background: #245c27; border-color:#245c27; color:#fff; }
.btn-outline-theme { border:1px solid var(--theme-color); color:var(--theme-color); background:#fff; }
.btn-outline-theme:hover { background:var(--theme-color); color:#fff; }

.top-bar { font-size:.85rem; border-bottom:1px solid #eee; }
.navbar-brand span.logo-name { font-weight:700; font-size:1.5rem; color:#222; }
.navbar-brand span.logo-name .brand-highlight { color: var(--theme-color); }

.search-bar { border:1px solid var(--theme-color); border-radius:6px; overflow:hidden; }
.search-bar select, .search-bar input { border:none; }
.search-bar input:focus, .search-bar select:focus { box-shadow:none; }
.search-bar button { background:var(--theme-color); color:#fff; border:none; padding:0 18px; }

.main-nav { border-bottom:1px solid #eee; }
.main-nav .nav-link { color:#333; font-weight:500; }
.main-nav .nav-link:hover { color: var(--theme-color); }
.cat-btn { background:var(--theme-color); color:#fff; border:none; border-radius:6px; padding:10px 18px; font-weight:600; }

.feature-box { background:#f5f6f8; border-radius:10px; padding:18px; display:flex; gap:12px; align-items:center; }
.feature-box .icon { color:var(--theme-color); font-size:1.8rem; }
.feature-box h6 { margin:0; font-weight:600; font-size:.95rem; }
.feature-box small { color:#777; }

.category-card { background:#f5f6f8; border-radius:10px; padding:20px 10px; text-align:center; transition:.2s; cursor:pointer; }
.category-card:hover { background: var(--theme-color-light); transform: translateY(-3px); }
.category-card .icon { font-size:2rem; color:var(--theme-color); margin-bottom:8px; }

.product-card { border:1px solid #eee; border-radius:10px; overflow:hidden; position:relative; transition:.2s; height:100%; }
.product-card:hover { box-shadow:0 8px 20px rgba(0,0,0,.08); }
.product-card .badge-corner { position:absolute; top:10px; left:10px; z-index:2; font-size:.7rem; padding:4px 8px; }
.product-card img { width:100%; height:170px; object-fit:cover; background:#fafafa; }
.product-card .p-body { padding:12px; }
.product-card .p-cat { color:#999; font-size:.75rem; text-transform:uppercase; }
.product-card .p-name { font-weight:600; font-size:.92rem; color:#222; display:block; margin:4px 0; }
.product-card .old-price { text-decoration:line-through; color:#aaa; font-size:.85rem; }
.product-card .new-price { color:var(--theme-color); font-weight:700; }

.section-title { font-weight:700; border-left:4px solid var(--theme-color); padding-left:10px; margin-bottom:20px; }

footer { background:#fafbfc; border-top:1px solid #eee; }
footer h6 { font-weight:700; margin-bottom:14px; }
footer a { color:#666; display:block; margin-bottom:6px; font-size:.92rem; }
footer a:hover { color:var(--theme-color); }
.social-icon { background:var(--theme-color); color:#fff; width:32px; height:32px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; margin-right:6px; }

.star-rating { color:#f5a623; font-size:.85rem; }

/* ---------------- Page & element animations ---------------- */
body { animation: pageFadeIn .5s ease; }
@keyframes pageFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.product-card, .category-card, .feature-box { transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); }
.category-card:hover { transform: translateY(-5px) scale(1.03); }
.feature-box:hover { transform: translateY(-4px); box-shadow:0 8px 18px rgba(0,0,0,.06); }
.btn { transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.96); }
.btn-theme:hover, .btn-outline-theme:hover { transform: translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.12); }
a { transition: color .2s ease; }

/* ---------------- Horizontal auto-scrolling category strip ---------------- */
.cat-scroll-wrap { position:relative; }
.cat-scroll { display:flex; gap:16px; overflow-x:auto; scroll-behavior:smooth; padding-bottom:8px; scrollbar-width:thin; }
.cat-scroll::-webkit-scrollbar { height:6px; }
.cat-scroll::-webkit-scrollbar-thumb { background:var(--theme-color); border-radius:6px; }
.cat-scroll .category-card { width:130px; height:130px; flex:0 0 130px; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px 8px; }
.cat-scroll .category-card .icon { font-size:2rem; margin-bottom:8px; }
.cat-scroll .category-card img { width:40px; height:40px; object-fit:contain; margin-bottom:8px; }
.cat-scroll .category-card .cat-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.2; width:100%; }
.cat-scroll-btn { position:absolute; top:40%; transform:translateY(-50%); z-index:5; background:#fff; border:1px solid #eee; border-radius:50%; width:38px; height:38px; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.1); cursor:pointer; }
.cat-scroll-btn.left { left:-6px; }
.cat-scroll-btn.right { right:-6px; }

/* ---------------- Hero slider ---------------- */
.hero-slide { min-height:280px; display:flex; align-items:center; }
.carousel-fade .carousel-item { transition: opacity 1s ease; }
