/* ========================================================
   SHOPEEGANJ CLONE - PREMIUM MOBILE UI (100% COMPLETE)
======================================================== */
:root {
  --primary: #1e9922; 
  --primary-dark: #147517;
  --accent: #ff0000; 
  --text: #333333;
  --text-muted: #777777;
  --border: #e0e0e0;
  --bg: #f4f7f6;
  --white: #ffffff;
  --font: 'Hind Siliguri', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body { overflow-x: hidden; max-width: 100vw; background: var(--bg); }
body { font-family: var(--font); color: var(--text); font-size: 14px; line-height: 1.5; padding-bottom: 90px; } 
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; box-sizing: border-box; }
.section { padding: 20px 0; background: #fff; margin-bottom: 10px; }

/* Banner Slider */
.banner-slider { width: 100%; border-radius: 6px; overflow: hidden; position: relative; aspect-ratio: 21/9; background:#eee;}
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.banner-slide.active { opacity: 1; visibility: visible; }
.anim-right { animation: slideRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.anim-left { animation: slideLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.anim-top { animation: slideTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.anim-bottom { animation: slideBottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
@keyframes slideRight { 0% { transform: translateX(100%); opacity:0; } 100% { transform: translateX(0); opacity:1; } }
@keyframes slideLeft { 0% { transform: translateX(-100%); opacity:0; } 100% { transform: translateX(0); opacity:1; } }
@keyframes slideTop { 0% { transform: translateY(-100%); opacity:0; } 100% { transform: translateY(0); opacity:1; } }
@keyframes slideBottom { 0% { transform: translateY(100%); opacity:0; } 100% { transform: translateY(0); opacity:1; } }

/* Section Header */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; position: relative;}
.section-title { font-size: 18px; font-weight: 700; color: #000; position: relative; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -11px; width: 100%; height: 3px; background: var(--primary); }
.view-more-btn { color: #555; font-size: 14px; font-weight: 600; }

/* ===== PREMIUM CARDS ===== */
.card, .form-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; border: 1px solid #eaeaea; }

/* ===== BUTTONS & FORMS ===== */
.btn { padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; border: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

.form-control, input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="password"], textarea, select { 
  width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fafafa; box-sizing: border-box; transition: 0.2s;
}
.form-control:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(30,153,34,0.1); }
.form-group { margin-bottom: 15px; width: 100%; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: #444; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 15px; }

/* ===== HEADER & SEARCH ===== */
.topbar { display: none; }
.header { background: #fff; position: sticky; top: 0; z-index: 1000; padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-menu-btn { font-size: 24px; color: var(--primary); background: transparent; border: none; }
.logo-name { font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.logo-icon { color: #ff4747; }
.header-cart-icon { position: relative; font-size: 24px; color: var(--primary); }
.header-cart-icon .badge { position: absolute; top: -5px; right: -8px; background: #8bc34a; color: #fff; font-size: 10px; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.search-bar form { display: flex; border: 2px solid var(--primary); border-radius: 6px; overflow: hidden; height: 42px; }
.search-bar input { flex: 1; padding: 0 10px; font-size: 14px; border: none; background: transparent; }
.search-bar button { background: var(--primary); color: #fff; width: 50px; font-size: 16px; border: none; cursor: pointer; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.cat-card { border: 1px solid #eaeaea; border-radius: 8px; padding: 15px 5px; text-align: center; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;}
.cat-icon-wrap { background: #f0fdf4; color: var(--primary); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 8px; overflow:hidden;}
.cat-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ===== PRODUCT CARD ===== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-card { background: #fff; border: 1px solid var(--primary); padding: 8px; text-align: left; position: relative; display: flex; flex-direction: column; border-radius:6px; }
.product-img { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; background:#fff;}
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-badge { position: absolute; top: 5px; right: 5px; background: red; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; line-height: 1.1; z-index: 2; text-align:center;}

.product-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #000; }
.product-stars { color: red; font-size: 15px; margin-bottom: 5px; letter-spacing: 2px; }
.product-price { margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;}
.price-old { font-size: 12px; color: #999; text-decoration: line-through; }
.price-current { font-size: 16px; font-weight: 800; color: #000; }

.product-action-grid { display: flex; gap: 5px; margin-top: auto; }
.btn-order-now { flex: 1; background: var(--primary); color: #fff; text-align: center; padding: 6px 0; border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.3;}
.btn-cart-icon { background: var(--primary); color: #fff; width: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 16px; border: none; cursor: pointer;}

/* ===== CHECKOUT PAYMENT CARDS ===== */
.payment-method-list { display: flex; flex-direction: column; gap: 12px; }
.pm-card { display: flex; align-items: center; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; transition: 0.2s; position: relative; }
.pm-card.selected { border: 2px solid var(--primary); background: #f0fdf4; padding: 14px; }
.pm-icon { width: 50px; display: flex; justify-content: center; align-items: center; margin-right: 15px; }
.pm-details { flex: 1; display: flex; flex-direction: column; }
.pm-title { font-size: 15px; font-weight: 700; color: #000; margin-bottom: 3px; }
.pm-sub { font-size: 12px; color: #777; }
.pm-radio { width: 22px; height: 22px; border: 2px solid #ccc; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.pm-card.selected .pm-radio { border-color: var(--primary); }
.pm-radio-inner { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; opacity: 0; transform: scale(0); transition: 0.2s; }
.pm-card.selected .pm-radio-inner { opacity: 1; transform: scale(1); }

/* Summary */
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 18px; border-top: 1px solid #eee; padding-top: 12px; color: var(--primary); }

/* ===== APP BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #eaeaea;
  display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; z-index: 9999; height: 60px;
}
.bn-item { display: flex; flex-direction: column; align-items: center; color: var(--primary); font-size: 11px; font-weight: 600; flex: 1; }
.bn-item i { font-size: 20px; margin-bottom: 2px; }

.bn-center-wrap { position: relative; flex: 1.2; display: flex; justify-content: center; }
.bn-center-btn {
  position: absolute; bottom: -15px; background: var(--primary); color: #fff;
  width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10000; border: 3px solid #fff;
}
.bn-center-btn i { font-size: 22px; color: #fff; margin-bottom: 2px; }
.bn-center-btn span { font-size: 11px; font-weight: 600; color: #fff; }

/* ===== MULTI-ACTION FLOATING BUTTON ===== */
.floating-action-menu { position: fixed; bottom: 75px; right: 15px; z-index: 9998; display: flex; flex-direction: column; align-items: center; }
.fam-toggle { width: 55px; height: 55px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 24px; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.floating-action-menu.active .fam-toggle { background: #ef4444; }

.fam-items { 
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; 
  opacity: 0; visibility: hidden; transform: translateY(20px); 
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); pointer-events: none; 
}
.floating-action-menu.active .fam-items { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.fam-item { width: 48px; height: 48px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 6px rgba(0,0,0,0.15); transition: transform 0.2s; }
.fam-item:hover { transform: scale(1.1); color:#fff; }
.fam-msg { background: #0084FF; } 
.fam-wa { background: #25D366; }  
.fam-phone { background: #FF3B30; } 

/* ===== PREMIUM WHITE MOBILE SIDEBAR NAV ===== */
.mobile-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.6); z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-sidebar-overlay.show { opacity: 1; visibility: visible; }

.mobile-sidebar { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: #ffffff; z-index: 10001; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 5px 0 15px rgba(0,0,0,0.1); overflow-y: auto; }
.mobile-sidebar.show { transform: translateX(300px); }

.ms-header-white { background: #ffffff; padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.ms-close-btn { background: none; border: none; color: #333; font-size: 24px; cursor: pointer; }

.ms-link-list { list-style: none; padding: 15px; }
.ms-link-list li { margin-bottom: 5px; }
.ms-link-list a { display: flex; align-items: center; gap: 15px; padding: 12px 10px; background: #fff; font-weight: 600; color: #333; font-size: 15px; border-bottom: 1px solid #f9f9f9; transition: 0.2s; }
.ms-icon-circle { background: var(--primary); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ===== GREEN FOOTER DESIGN ===== */
.footer-col a:hover { color: #fff !important; text-decoration: underline; }

/* BRAND COLORED SOCIAL ICONS (FIXED SIZE) */
.social-icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.social-icons a { color: #fff !important; font-size: 18px; transition: 0.3s; display:flex; align-items:center; justify-content:center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); text-decoration: none !important;}
.social-icons a:hover { transform: translateY(-4px); color: #fff;}

/* Hover Specific Colors */
a.social-fb:hover { background: #1877F2 !important; box-shadow: 0 4px 10px rgba(24,119,242,0.4); }
a.social-fb-group:hover { background: #1877F2 !important; box-shadow: 0 4px 10px rgba(24,119,242,0.4); } 
a.social-msg:hover { background: #0084FF !important; box-shadow: 0 4px 10px rgba(0,132,255,0.4); }
a.social-wa:hover { background: #25D366 !important; box-shadow: 0 4px 10px rgba(37,211,102,0.4); }
a.social-yt:hover { background: #FF0000 !important; box-shadow: 0 4px 10px rgba(255,0,0,0.4); }
a.social-tw:hover { background: #1DA1F2 !important; box-shadow: 0 4px 10px rgba(29,161,242,0.4); }
a.social-in:hover { background: #0077b5 !important; box-shadow: 0 4px 10px rgba(0,119,181,0.4); }
a.social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%) !important; box-shadow: 0 4px 10px rgba(214,36,159,0.4); }

.play-store-btn { width: 140px; margin: 0 auto; display: block; cursor: pointer; }

/* Desktop Fixes */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav, .floating-action-menu { display: none; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .categories-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 350px; gap: 20px; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

.table-responsive { width: 100%; overflow-x: auto; background: #fff; border: 1px solid #eaeaea; border-radius: 4px; }
.table { width: 100%; min-width: 500px; border-collapse: collapse; }
.table th { background: #f9f9f9; padding: 10px; text-align: left; font-size: 13px; color: #555; }
.table td { padding: 10px; border-top: 1px solid #eaeaea; font-size: 13px; vertical-align: middle; }