/* =========================================================
   The Hyper Kart — Grocery E-commerce Frontend
   style.css — design tokens + core component styles
   ========================================================= */

:root{
  --fm-primary:#2E7D32;
  --fm-primary-dark:#1B5E20;
  --fm-primary-darker:#134E1B;
  --fm-primary-light:#E8F5E9;
  --fm-primary-soft:#F1F8F2;
  --fm-accent:#FFB300;
  --fm-text:#212B22;
  --fm-text-muted:#6C7A6C;
  --fm-border:#E3E9E2;
  --fm-bg:#FAFBF8;
  --fm-white:#FFFFFF;
  --fm-danger:#E53935;
  --fm-warning:#FB8C00;
  --fm-info:#1E88E5;
  --fm-success:#2E7D32;
  --fm-radius-sm:8px;
  --fm-radius:14px;
  --fm-radius-lg:20px;
  --fm-shadow-sm:0 2px 8px rgba(30,60,30,.06);
  --fm-shadow:0 6px 24px rgba(30,60,30,.10);
  --fm-shadow-lg:0 14px 40px rgba(30,60,30,.14);
  --fm-font: 'Poppins', 'Segoe UI', sans-serif;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-family:var(--fm-font);
  color:var(--fm-text);
  background:var(--fm-bg);
  font-size:15px;
  line-height:1.6;
  overflow-x:hidden;
  padding-top:var(--fm-fixed-header-height, 76px);
}

a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}

.fm-container{max-width:1320px;margin:0 auto;padding:0 20px;}

h1,h2,h3,h4,h5{font-weight:700;color:var(--fm-text);}

.text-primary-fm{color:var(--fm-primary)!important;}
.bg-primary-fm{background:var(--fm-primary)!important;}

/* ---------- Buttons ---------- */
.btn-fm{
  background:var(--fm-primary);
  color:#fff;
  border:none;
  padding:12px 28px;
  border-radius:50px;
  font-weight:600;
  font-size:.95rem;
  transition:.25s ease;
  box-shadow:var(--fm-shadow-sm);
}
.btn-fm:hover{background:var(--fm-primary-dark);color:#fff;transform:translateY(-2px);box-shadow:var(--fm-shadow);}
.btn-fm:active{transform:translateY(0);}

.btn-fm-outline{
  background:transparent;
  color:var(--fm-primary);
  border:1.5px solid var(--fm-primary);
  padding:11px 26px;
  border-radius:50px;
  font-weight:600;
  transition:.25s ease;
}
.btn-fm-outline:hover{background:var(--fm-primary);color:#fff;}

.btn-fm-sm{padding:7px 18px;font-size:.85rem;border-radius:40px;}
.btn-fm-block{width:100%;display:block;text-align:center;}

.btn-icon-circle{
  width:42px;height:42px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--fm-primary-soft);color:var(--fm-primary);
  border:none;position:relative;transition:.2s;
}
.btn-icon-circle:hover{background:var(--fm-primary-light);color:var(--fm-primary-dark);}

.badge-count{
  position:absolute;top:-4px;right:-4px;
  background:var(--fm-accent);color:#212121;
  font-size:.62rem;font-weight:700;
  width:18px;height:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}

/* ---------- Top bar ---------- */
.fm-topbar{
  background:var(--fm-primary-darker);
  color:#e8f5e9;
  font-size:.8rem;
  padding:6px 0;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1040;
}
.fm-topbar a{color:#e8f5e9;opacity:.85;}
.fm-topbar a:hover{opacity:1;color:#fff;}

/* ---------- Navbar ---------- */
.fm-navbar{
  background:#fff;
  padding:14px 0;
  box-shadow:var(--fm-shadow-sm);
  position:fixed;
  top:var(--fm-topbar-height, 0px);
  left:0;
  width:100%;
  z-index:1030;
}
.fm-logo{
  font-size:1.55rem;
  font-weight:800;
  color:var(--fm-primary-dark);
  display:flex;align-items:center;gap:6px;
}
.fm-logo i{font-size:1.7rem;}
.fm-navbar .nav-link{
  font-weight:500;
  color:var(--fm-text);
  padding:8px 14px!important;
  border-radius:8px;
  transition:.2s;
}
.fm-navbar .nav-link:hover,
.fm-navbar .nav-link.active{color:var(--fm-primary);background:var(--fm-primary-soft);}

.fm-searchbox{
  background:var(--fm-primary-soft);
  border-radius:50px;
  padding:6px 8px 6px 20px;
  display:flex;align-items:center;
  border:1px solid var(--fm-border);
}
.fm-searchbox input{
  border:none;background:transparent;outline:none;width:100%;font-size:.9rem;
}
.fm-searchbox button{
  background:var(--fm-primary);color:#fff;border:none;
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}

.fm-icon-group{display:flex;align-items:center;gap:10px;}

/* ---------- Breadcrumb ---------- */
.fm-breadcrumb-bar{background:var(--fm-primary-soft);padding:14px 0;border-bottom:1px solid var(--fm-border);}
.fm-breadcrumb-bar .breadcrumb{margin:0;font-size:.87rem;}
.fm-breadcrumb-bar .breadcrumb-item.active{color:var(--fm-primary);font-weight:600;}

/* ---------- Hero ---------- */
.fm-hero{
  background:linear-gradient(120deg,var(--fm-primary-light) 0%, var(--fm-primary-soft) 60%, #fff 100%);
  border-radius:var(--fm-radius-lg);
  padding:60px 50px;
  overflow:hidden;
  position:relative;
}
.fm-hero h1{font-size:2.7rem;line-height:1.2;color:var(--fm-primary-darker);}
.fm-hero p{color:var(--fm-text-muted);font-size:1.05rem;margin:16px 0 26px;}
.fm-hero img{border-radius:var(--fm-radius);}

/* ---------- Category cards ---------- */
.fm-cat-card{
  background:#fff;
  border-radius:var(--fm-radius);
  padding:22px;
  text-align:center;
  box-shadow:var(--fm-shadow-sm);
  transition:.25s;
  border:1px solid var(--fm-border);
  height:100%;
}
.fm-cat-card:hover{transform:translateY(-6px);box-shadow:var(--fm-shadow);border-color:var(--fm-primary-light);}
.fm-cat-card .fm-cat-img{
  width:100%;aspect-ratio:1/1;object-fit:cover;
  border-radius:12px;margin-bottom:14px;background:var(--fm-primary-soft);
}
.fm-cat-card h5{margin-bottom:2px;}
.fm-cat-card span{color:var(--fm-text-muted);font-size:.85rem;}

/* ---------- Section heading ---------- */
.fm-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;}
.fm-section-head h2{font-size:1.6rem;margin:0;}
.fm-section-head a{font-weight:600;color:var(--fm-primary);font-size:.9rem;}
.fm-eyebrow{color:var(--fm-primary);font-weight:700;font-size:.8rem;letter-spacing:1px;text-transform:uppercase;}

/* ---------- Product Card ---------- */
.fm-product-card{
  background:#fff;
  border-radius:var(--fm-radius);
  border:1px solid var(--fm-border);
  overflow:hidden;
  transition:.25s;
  height:100%;
  display:flex;flex-direction:column;
  position:relative;
}
.fm-product-card:hover{box-shadow:var(--fm-shadow);transform:translateY(-4px);border-color:var(--fm-primary-light);}
.fm-product-img-wrap{
  background:var(--fm-primary-soft);
  aspect-ratio:1/1;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;position:relative;
}
.fm-product-img-wrap img{width:80%;height:80%;object-fit:contain;transition:.3s;}
.fm-product-card:hover .fm-product-img-wrap img{transform:scale(1.08);}
.fm-wish-btn{
  position:absolute;top:10px;right:10px;
  width:34px;height:34px;border-radius:50%;
  background:#fff;border:none;color:var(--fm-text-muted);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--fm-shadow-sm);transition:.2s;
}
.fm-wish-btn:hover,.fm-wish-btn.active{color:var(--fm-danger);}
.fm-badge-tag{
  position:absolute;top:-5px;left:10px;
  background:var(--fm-primary);color:#fff;font-size:.7rem;font-weight:700;
  padding:4px 10px;border-radius:10px;
}
.fm-product-body{padding:16px;flex:1;display:flex;flex-direction:column;}
.fm-product-body h6{font-size:.95rem;margin-bottom:2px;font-weight:600;}
.fm-product-body .fm-unit{color:var(--fm-text-muted);font-size:.78rem;margin-bottom:8px;}
.fm-price-row{display:flex;align-items:center;justify-content:space-between;margin-top:auto;}
.fm-price{font-weight:700;color:var(--fm-primary-dark);font-size:1.05rem;}
.fm-price-old{color:var(--fm-text-muted);text-decoration:line-through;font-size:.82rem;font-weight:400;margin-left:6px;}
.fm-add-btn{
  background:var(--fm-primary);color:#fff;border:none;
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:.2s;flex-shrink:0;
}
.fm-add-btn:hover{background:var(--fm-primary-dark);transform:scale(1.08);}
.fm-add-btn-wide{
  background:var(--fm-primary);color:#fff;border:none;
  width:100%;padding:9px;border-radius:8px;font-weight:600;font-size:.85rem;
  margin-top:10px;transition:.2s;
}
.fm-add-btn-wide:hover{background:var(--fm-primary-dark);}
.fm-rating{color:var(--fm-accent);font-size:.8rem;}

/* ---------- Offer Banner ---------- */
.fm-offer-banner{
  background:linear-gradient(120deg,var(--fm-primary-dark),var(--fm-primary));
  border-radius:var(--fm-radius-lg);
  padding:50px;color:#fff;position:relative;overflow:hidden;
}
.fm-offer-banner h2{color:#fff;font-size:2rem;}
.fm-offer-banner p{color:rgba(255,255,255,.85);}

/* ---------- Newsletter ---------- */
.fm-newsletter{
  background:var(--fm-primary-soft);
  border-radius:var(--fm-radius-lg);
  padding:44px;text-align:center;
}
.fm-newsletter .form-control{
  border-radius:50px 0 0 50px;border:1px solid var(--fm-border);padding:12px 20px;
}
.fm-newsletter button{border-radius:0 50px 50px 0;}

/* ---------- Footer ---------- */
.fm-footer{background:#173D1B;color:#c9dccb;padding:60px 0 0;margin-top:70px;}
.fm-footer h6{color:#fff;font-weight:700;margin-bottom:18px;font-size:1rem;}
.fm-footer a{color:#c9dccb;font-size:.9rem;line-height:2.1;display:block;transition:.2s;}
.fm-footer a:hover{color:#fff;padding-left:4px;}
.fm-footer .fm-logo{color:#fff;}
.fm-footer p{color:#a9c2ab;font-size:.88rem;}
.fm-social a{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:inline-flex;align-items:center;justify-content:center;margin-right:8px;
}
.fm-social a:hover{background:var(--fm-primary);}
.fm-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:40px;padding:18px 0;font-size:.85rem;color:#a9c2ab;}

/* ---------- Sidebar filters ---------- */
.fm-filter-card{
  background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-radius);
  padding:22px;margin-bottom:20px;
}
.fm-filter-card h6{font-weight:700;margin-bottom:14px;}
.fm-filter-card .form-check{margin-bottom:9px;}
.fm-filter-card .form-check-label{font-size:.88rem;color:var(--fm-text-muted);}
.fm-filter-card .form-check-input:checked{background-color:var(--fm-primary);border-color:var(--fm-primary);}

/* ---------- Sort select ---------- */
.form-select-fm, .fm-page select, select.form-select{
  border-radius:8px;border:1px solid var(--fm-border);padding:9px 14px;font-size:.88rem;
}
.form-control{border-radius:8px;border:1px solid var(--fm-border);padding:10px 14px;}
.form-control:focus,.form-select:focus{border-color:var(--fm-primary);box-shadow:0 0 0 .2rem rgba(46,125,50,.12);}
.form-label{font-weight:600;font-size:.87rem;margin-bottom:6px;}

/* ---------- Product Details ---------- */
.fm-gallery-main{
  background:var(--fm-primary-soft);border-radius:var(--fm-radius);
  aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.fm-gallery-main img{width:75%;height:75%;object-fit:contain;}
.fm-gallery-thumbs{display:flex;gap:10px;margin-top:12px;}
.fm-gallery-thumbs img{
  width:70px;height:70px;object-fit:contain;background:var(--fm-primary-soft);
  border-radius:10px;padding:8px;border:2px solid transparent;cursor:pointer;transition:.2s;
}
.fm-gallery-thumbs img.active,.fm-gallery-thumbs img:hover{border-color:var(--fm-primary);}
.fm-qty-selector{
  display:inline-flex;align-items:center;border:1px solid var(--fm-border);border-radius:50px;overflow:hidden;
}
.fm-qty-selector button{
  width:38px;height:38px;border:none;background:var(--fm-primary-soft);color:var(--fm-primary);font-weight:700;
}
.fm-qty-selector input{
  width:44px;text-align:center;border:none;outline:none;font-weight:600;
}
.fm-stock-badge{
  background:var(--fm-primary-light);color:var(--fm-primary-dark);
  font-weight:600;font-size:.8rem;padding:4px 12px;border-radius:20px;
}
.fm-trust-row{display:flex;gap:22px;margin-top:22px;padding-top:22px;border-top:1px solid var(--fm-border);flex-wrap:wrap;}
.fm-trust-item{display:flex;align-items:center;gap:10px;font-size:.85rem;color:var(--fm-text-muted);}
.fm-trust-item i{font-size:1.4rem;color:var(--fm-primary);}
.fm-tabs .nav-link{color:var(--fm-text-muted);font-weight:600;border:none;border-bottom:2px solid transparent;padding:10px 20px 10px 0;margin-right:14px;}
.fm-tabs .nav-link.active{color:var(--fm-primary);border-bottom-color:var(--fm-primary);background:none;}
.fm-review-card{border-bottom:1px solid var(--fm-border);padding:18px 0;}
.fm-review-avatar{width:44px;height:44px;border-radius:50%;background:var(--fm-primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--fm-primary-dark);}

/* ---------- Cart Page ---------- */
.fm-cart-table{width:100%;border-collapse:separate;border-spacing:0 12px;}
.fm-cart-row{background:#fff;box-shadow:var(--fm-shadow-sm);border-radius:var(--fm-radius);}
.fm-cart-row td{padding:16px;vertical-align:middle;border-top:1px solid var(--fm-border);border-bottom:1px solid var(--fm-border);}
.fm-cart-row td:first-child{border-left:1px solid var(--fm-border);border-radius:var(--fm-radius) 0 0 var(--fm-radius);}
.fm-cart-row td:last-child{border-right:1px solid var(--fm-border);border-radius:0 var(--fm-radius) var(--fm-radius) 0;}
.fm-cart-thumb{width:60px;height:60px;object-fit:contain;background:var(--fm-primary-soft);border-radius:10px;padding:6px;}
.fm-remove-btn{color:var(--fm-danger);background:none;border:none;font-size:1.1rem;}
.fm-summary-card{background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-radius);padding:24px;position:sticky;top:100px;}
.fm-summary-row{display:flex;justify-content:space-between;padding:9px 0;font-size:.92rem;color:var(--fm-text-muted);}
.fm-summary-row.total{border-top:1px solid var(--fm-border);margin-top:8px;padding-top:14px;font-weight:700;font-size:1.1rem;color:var(--fm-text);}

/* ---------- Auth Pages ---------- */
.fm-auth-wrap{min-height:calc(100vh - 320px);display:flex;align-items:center;padding:50px 0;}
.fm-auth-card{background:#fff;border-radius:var(--fm-radius-lg);box-shadow:var(--fm-shadow);padding:40px;height:auto;}
.fm-auth-card h3{margin-bottom:4px;}
.fm-auth-card .fm-sub{color:var(--fm-text-muted);margin-bottom:26px;font-size:.9rem;}
.fm-social-btn{
  border:1px solid var(--fm-border);border-radius:50px;padding:10px;width:100%;
  display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;font-weight:600;font-size:.88rem;transition:.2s;
}
.fm-social-btn:hover{background:var(--fm-primary-soft);}
.fm-divider{display:flex;align-items:center;gap:12px;color:var(--fm-text-muted);font-size:.82rem;margin:20px 0;}
.fm-divider::before,.fm-divider::after{content:"";flex:1;height:1px;background:var(--fm-border);}
.fm-pass-toggle{position:relative;}
.fm-pass-toggle i{position:absolute;right:14px;top:50%;transform:translateY(-50%);cursor:pointer;color:var(--fm-text-muted);}

/* ---------- Address / Profile ---------- */
.fm-address-card{background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-radius);padding:20px;margin-bottom:16px;position:relative;}
.fm-address-card.selected{border-color:var(--fm-primary);background:var(--fm-primary-soft);}
.fm-address-card .fm-tag{background:var(--fm-primary-light);color:var(--fm-primary-dark);font-size:.72rem;font-weight:700;padding:2px 10px;border-radius:20px;}
.fm-side-nav{background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-radius);padding:14px;}
.fm-side-nav a{
  display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;color:var(--fm-text);font-weight:500;font-size:.9rem;margin-bottom:4px;transition:.2s;
}
.fm-side-nav a:hover{background:var(--fm-primary-soft);}
.fm-side-nav a.active{background:var(--fm-primary);color:#fff;}
.fm-side-nav a.text-danger:hover{background:#fdecea;}
.fm-profile-avatar-wrap{position:relative;width:100px;height:100px;margin:0 auto 16px;}
.fm-profile-avatar-wrap img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid var(--fm-primary-light);}
.fm-avatar-edit{
  position:absolute;bottom:0;right:0;width:32px;height:32px;border-radius:50%;background:var(--fm-primary);color:#fff;
  display:flex;align-items:center;justify-content:center;border:2px solid #fff;
}

/* ---------- Payment options ---------- */
.fm-pay-option{
  border:1.5px solid var(--fm-border);border-radius:var(--fm-radius);padding:16px 18px;margin-bottom:14px;
  display:flex;align-items:center;gap:14px;cursor:pointer;transition:.2s;background:#fff;
}
.fm-pay-option:hover{border-color:var(--fm-primary-light);}
.fm-pay-option.active,.fm-pay-option input:checked ~ *{}
.fm-pay-option.active{border-color:var(--fm-primary);background:var(--fm-primary-soft);}
.fm-pay-icon{width:44px;height:44px;border-radius:10px;background:var(--fm-primary-light);color:var(--fm-primary-dark);display:flex;align-items:center;justify-content:center;font-size:1.3rem;}

/* ---------- Order success ---------- */
.fm-success-wrap{text-align:center;padding:70px 0;max-width:520px;margin:0 auto;}
.fm-success-icon{
  width:110px;height:110px;border-radius:50%;background:var(--fm-primary-light);
  display:flex;align-items:center;justify-content:center;margin:0 auto 26px;
  animation:fmPop .5s ease;
}
.fm-success-icon i{font-size:3.2rem;color:var(--fm-primary);}
@keyframes fmPop{0%{transform:scale(0);}70%{transform:scale(1.1);}100%{transform:scale(1);}}
.fm-order-id-box{
  background:var(--fm-primary-soft);border-radius:12px;padding:14px 24px;display:inline-block;
  font-weight:700;color:var(--fm-primary-dark);margin:16px 0 30px;letter-spacing:.5px;
}

/* ---------- Orders table / status badges ---------- */
.fm-order-card{background:#fff;border:1px solid var(--fm-border);border-radius:var(--fm-radius);padding:18px 20px;margin-bottom:14px;}
.status-badge{padding:5px 14px;border-radius:20px;font-size:.78rem;font-weight:700;}
.status-ordered{background:#e3f2fd;color:#1565c0;}
.status-packed{background:#ede7f6;color:#5e35b1;}
.status-shipped{background:#fff3e0;color:#ef6c00;}
.status-delivered{background:var(--fm-primary-light);color:var(--fm-primary-dark);}
.status-cancelled{background:#fdecea;color:#c62828;}

/* ---------- Misc ---------- */
.fm-back-to-top{
  position:fixed;bottom:26px;right:26px;width:46px;height:46px;border-radius:50%;
  background:var(--fm-primary);color:#fff;border:none;display:none;align-items:center;justify-content:center;
  box-shadow:var(--fm-shadow);z-index:1050;transition:.2s;
}
.fm-back-to-top.show{display:flex;}
.fm-back-to-top:hover{background:var(--fm-primary-dark);}

.fm-toast-container{position:fixed;top:90px;right:20px;z-index:2000;}

.fm-empty-state{text-align:center;padding:70px 20px;color:var(--fm-text-muted);}
.fm-empty-state i{font-size:4rem;color:var(--fm-primary-light);margin-bottom:16px;}

.pagination .page-link{color:var(--fm-primary);border-radius:8px;margin:0 3px;border:1px solid var(--fm-border);}
.pagination .page-item.active .page-link{background:var(--fm-primary);border-color:var(--fm-primary);}

.accordion-button:not(.collapsed){background:var(--fm-primary-soft);color:var(--fm-primary-dark);}
.accordion-button:focus{box-shadow:none;border-color:var(--fm-border);}

.fm-placeholder-img{
  background:var(--fm-primary-light);
  display:flex;align-items:center;justify-content:center;
  color:var(--fm-primary);font-weight:700;font-size:.75rem;text-align:center;
}
/* Why Shop With Us */

.trust-box{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:16px;
    padding:24px;
    box-shadow:0 4px 15px rgba(0,0,0,.06);
    margin-bottom:25px;
    transition:.3s;
}

.trust-box:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.trust-title{
    font-size:22px;
    font-weight:700;
    color:#2E7D32;
    margin-bottom:20px;
}

.trust-title i{
    margin-right:8px;
}

.trust-list{
    list-style:none;
    padding:0;
    margin:0;
}

.trust-list li{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid #f1f1f1;
    font-size:16px;
    color:#555;
    font-weight:500;
}

.trust-list li:last-child{
    border-bottom:none;
}

.trust-list li i{
    color:#2E7D32;
    font-size:18px;
}
.category-sidebar{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:16px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    
}

.category-sidebar h4{
    font-size:22px;
    font-weight:700;
    color:#2E7D32;
    margin-bottom:23px;
}

.category-btn{
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-decoration:none;
    color:#333;
    background:#f8f9fa;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:14px 16px;
    margin-bottom:17px;
    transition:.3s;
}

.category-btn span{
    flex:1;
    margin-left:12px;
    font-weight:600;
}

.category-btn:hover{
    background:#2E7D32;
    color:#fff;
    transform:translateX(5px);
    border-color:#2E7D32;
}

.category-btn:last-child{
    margin-bottom:0;
}
/* Trending Products Sidebar */

.trending-products{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:16px;
    padding:20px;
    margin-top:23px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.trending-products h5{
    font-size:20px;
    font-weight:700;
    color:#2E7D32;
    margin-bottom:20px;
}

.trending-products h5 i{
    color:#ff9800;
    margin-right:8px;
}

.best-seller-list{
    list-style:none;
    margin:0;
    padding:0;
}

.best-seller-list li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid #f1f1f1;
    font-size:15px;
    font-weight:500;
}

.best-seller-list li:last-child{
    border-bottom:none;
}

.rating{
    color:#ff9800;
    font-weight:600;
}
/* Sidebar Card */
.sidebar-card{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:16px;
    padding:20px;
    margin-top:23px;
    margin-bottom:23px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:all .3s ease;
}

.sidebar-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

/* Heading */
.sidebar-card h5{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:700;
    color:#2E7D32;
    margin-bottom:20px;
}

.sidebar-card h5 i{
    color:#2E7D32;
    font-size:22px;
}

/* List */
.best-seller-list{
    list-style:none;
    margin:0;
    padding:0;
}

.best-seller-list li{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 0;
    font-size:15px;
    color:#555;
    border-bottom:1px solid #f1f1f1;
}

.best-seller-list li:last-child{
    border-bottom:none;
}

.best-seller-list li:hover{
    color:#2E7D32;
    padding-left:8px;
    transition:.3s;
}


/* ==========================================================
   Hero Section — Enhanced Unique Animations
   ========================================================== */

.fm-hero-modern {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fm-hero-modern .row {
  position: relative;
  z-index: 2;
}

/* ==========================================================
   1. Entrance animations — text stagger with slight rotation
   ========================================================== */
.fm-hero-anim {
  opacity: 0;
  transform: translateY(30px) rotate(1deg);
  animation: fmFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fm-hero-eyebrow { animation-delay: 0.1s; }
.fm-hero-title   { animation-delay: 0.3s; }
.fm-hero-text    { animation-delay: 0.5s; }
.fm-hero-btn     { animation-delay: 0.7s; }

@keyframes fmFadeUp {
  from { opacity: 0; transform: translateY(30px) rotate(1deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.fm-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  animation: fmFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             fmPulseGlow 2.5s ease-in-out 1.2s infinite;
}

.fm-hero-eyebrow i {
  display: inline-block;
  animation: fmBob 1.8s ease-in-out infinite;
}

@keyframes fmPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

@keyframes fmBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(15deg); }
}

/* ==========================================================
   2. Shimmering gradient text on title
   ========================================================== */
.fm-title-shimmer {
  background: linear-gradient(90deg, #2f9e44 0%, #74c69d 25%, #2f9e44 50%, #74c69d 75%, #2f9e44 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fmShimmer 4s linear infinite;
}

@keyframes fmShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ==========================================================
   3. Button — animated arrow, ripple hover, subtle idle pulse
   ========================================================== */
.fm-hero-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fm-hero-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(47, 158, 68, 0.3);
}

.fm-hero-btn .fm-btn-arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.fm-hero-btn:hover .fm-btn-arrow {
  transform: translateX(6px);
}

.fm-hero-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.fm-hero-btn:hover::after {
  left: 125%;
}

/* ==========================================================
   4. Hero image wrap — entrance + glow aura
   ========================================================== */
.fm-hero-img-wrap {
  position: relative;
}

.fm-hero-image-anim {
  opacity: 0;
  transform: translateX(40px) scale(0.92);
  animation: fmFadeInScale 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes fmFadeInScale {
  from { opacity: 0; transform: translateX(40px) scale(0.92); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.fm-img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(116, 198, 157, 0.45) 0%, rgba(116, 198, 157, 0) 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  animation: fmGlowPulse 3.5s ease-in-out infinite;
}

@keyframes fmGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ==========================================================
   5. THREE-IMAGE AUTO-SWIPING CAROUSEL (pure CSS, loops forever)
   ==========================================================
   - .fm-hero-swiper is the fixed-size viewport (crops the slides)
   - Each .fm-swipe-slide is absolutely stacked on top of the others
   - All 3 slides share the SAME 9s keyframe animation; each one
     is just offset by animation-delay (0s / -3s / -6s) so they
     take turns sliding in from the right, holding, then swiping
     out to the left — repeating infinitely and seamlessly.
   ========================================================== */
.fm-hero-swiper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;      /* adjust to match your image proportions */
  overflow: hidden;
  border-radius: 20px;
}

.fm-swipe-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(100%) scale(1.02);
  animation: fmSwipeCycle 9s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Same animation, staggered starting points via negative delays
   so the three images interleave perfectly around the 9s loop */
.fm-swipe-slide-1 { animation-delay: 0s;  }
.fm-swipe-slide-2 { animation-delay: -3s; }
.fm-swipe-slide-3 { animation-delay: -6s; }

@keyframes fmSwipeCycle {
  0%   { opacity: 0; transform: translateX(100%) scale(1.02); }  /* waiting off-screen right */
  6%   { opacity: 1; transform: translateX(0) scale(1);     }    /* swipes in */
  28%  { opacity: 1; transform: translateX(0) scale(1);     }    /* holds on screen */
  34%  { opacity: 0; transform: translateX(-100%) scale(1.02); } /* swipes out left */
  99%  { opacity: 0; transform: translateX(100%) scale(1.02); }  /* parked off-screen right */
  100% { opacity: 0; transform: translateX(100%) scale(1.02); }
}

/* Subtle floating motion applied to the whole carousel so it
   doesn't feel static even while a slide is holding */
.fm-hero-swiper {
  animation: fmFloatWobble 5s ease-in-out infinite;
}

@keyframes fmFloatWobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-10px) rotate(0.6deg); }
  50%      { transform: translateY(-3px) rotate(0deg); }
  75%      { transform: translateY(-12px) rotate(-0.6deg); }
}

/* Slide progress dots (purely decorative, auto-synced via CSS only
   using the same 9s timing so they don't need JS either) */
.fm-hero-img-wrap::after {
  content: "";
  display: none; /* placeholder hook if you later want JS-driven dots */
}

/* ==========================================================
   6. Background shapes — morphing blob shapes that drift + rotate
   ========================================================== */
.fm-hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.fm-hero-shape-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -70px;
  background: rgba(76, 175, 80, 0.15);
  animation: fmMorph1 9s ease-in-out infinite, fmDrift1 12s ease-in-out infinite;
}

.fm-hero-shape-2 {
  width: 280px;
  height: 280px;
  bottom: -90px;
  right: -90px;
  background: rgba(255, 193, 7, 0.12);
  animation: fmMorph2 11s ease-in-out infinite, fmDrift2 14s ease-in-out infinite;
}

.fm-hero-shape-3 {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 8%;
  background: rgba(255, 87, 34, 0.1);
  animation: fmMorph1 7s ease-in-out infinite reverse, fmDrift1 10s ease-in-out infinite reverse;
}

@keyframes fmMorph1 {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  50%      { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
}

@keyframes fmMorph2 {
  0%, 100% { border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
  50%      { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
}

@keyframes fmDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(25px, 30px) scale(1.1) rotate(15deg); }
}

@keyframes fmDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(-30px, -25px) scale(1.05) rotate(-12deg); }
}

/* ==========================================================
   7. Floating particle dots for extra depth/texture
   ========================================================== */
.fm-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.5);
  z-index: 0;
  pointer-events: none;
}

.fm-particle-1 { top: 15%; left: 8%;  animation: fmParticleFloat 6s ease-in-out infinite; }
.fm-particle-2 { top: 65%; left: 4%;  width: 5px; height: 5px; background: rgba(255, 193, 7, 0.6); animation: fmParticleFloat 7.5s ease-in-out infinite 1s; }
.fm-particle-3 { top: 25%; left: 92%; width: 6px; height: 6px; animation: fmParticleFloat 5.5s ease-in-out infinite 0.5s; }
.fm-particle-4 { top: 78%; left: 88%; width: 10px; height: 10px; background: rgba(255, 87, 34, 0.4); animation: fmParticleFloat 8s ease-in-out infinite 1.5s; }
.fm-particle-5 { top: 5%;  left: 50%; width: 4px; height: 4px; animation: fmParticleFloat 6.5s ease-in-out infinite 2s; }

@keyframes fmParticleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50%      { transform: translateY(-25px) translateX(10px); opacity: 1; }
}

/* ==========================================================
   Respect reduced-motion preference
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .fm-hero-anim,
  .fm-hero-image-anim,
  .fm-hero-swiper,
  .fm-swipe-slide,
  .fm-hero-eyebrow,
  .fm-hero-eyebrow i,
  .fm-title-shimmer,
  .fm-hero-btn::after,
  .fm-img-glow,
  .fm-hero-shape,
  .fm-particle {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  /* Without animation, only show the first slide */
  .fm-swipe-slide-2,
  .fm-swipe-slide-3 {
    display: none;
  }
}