/* Strict Brand Image Dimensions */
.brand, a.brand { display: flex !important; align-items: center !important; text-decoration: none !important; flex-shrink: 0 !important; }
.brand img, a.brand img { height: 44px !important; max-height: 44px !important; width: auto !important; max-width: 180px !important; display: block !important; object-fit: contain !important; }
.footer-brand img { height: 38px !important; max-height: 38px !important; width: auto !important; max-width: 160px !important; margin-bottom: 10px !important; }
@media (max-width: 600px) {
  .brand img, a.brand img { height: 34px !important; max-height: 34px !important; max-width: 135px !important; }
}
*{box-sizing:border-box}html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  background: #f8fafc;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}a{color:inherit;text-decoration:none}.announcement{background:#155eef;color:white;text-align:center;padding:9px 14px;font-size:13px}.announcement a{text-decoration:underline;font-weight:600}
.site-header{background:#fff;border-bottom:1px solid #e5e7eb;display:flex !important;flex-direction:column !important;width:100% !important;padding:0 !important;margin:0 !important;position:relative;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,0.04)}@media(min-width:961px){.site-header{position:sticky;top:0;}}
.brand{display:flex;align-items:center;text-decoration:none;flex-shrink:0;line-height:1}
.brand img{height:44px;width:auto;max-width:180px;display:block;object-fit:contain}
.footer-brand{margin-bottom:12px}
.footer-brand img{height:38px;width:auto;max-width:160px}
@media(max-width:600px){
  .brand img{height:34px;max-width:140px}
}.main-nav{display:flex;align-items:center;gap:18px;font-size:13px;font-weight:500;flex-shrink:0}
.main-nav a:hover,.header-actions a:hover{color:#155eef}
.search{display:flex;flex:1 1 340px;max-width:500px;min-width:200px;border:1px solid #d1d5db;border-radius:12px;overflow:hidden;background:#fff}
.search input{border:0;outline:0;padding:10px 14px;width:100%;font:inherit;font-size:13px;min-width:100px}
.search button{border:0;background:#155eef;color:#fff;padding:0 18px;font-size:20px;cursor:pointer;flex-shrink:0}
.header-actions{display:flex;align-items:center;gap:14px;font-size:13px;white-space:nowrap;flex-shrink:0}
.cart-link{background:#eff6ff;color:#155eef;padding:10px 13px;border-radius:10px;font-weight:600}
.container{width:100%;max-width:1220px;margin:0 auto;padding:20px 16px;box-sizing:border-box}
main.container{min-height:55vh}
.hero{background:linear-gradient(120deg,#155eef,#1743a6);color:white;border-radius:24px;padding:55px 6%;display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:25px;overflow:hidden}
.hero h1{font-size:clamp(26px,3.8vw,40px);line-height:1.2;margin:0 0 12px}
.hero p{font-size:16px;max-width:620px;color:#eaf0ff;line-height:1.8}
.hero-art{font-size:100px;text-align:center}
.btn{display:inline-block;border:0;border-radius:10px;padding:12px 19px;background:#155eef;color:white;font:600 14px Poppins;cursor:pointer}
.btn:hover{filter:brightness(.94)}
.btn.green{background:#16a34a}
.btn.orange{background:#ff7a00}
.btn.light{background:white;color:#155eef}
.btn.small{padding:8px 12px;font-size:12px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.section{margin:38px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.section h2{font-size:24px;margin:0}
.muted{color:#6b7280;font-size:13px}
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}
.category{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:20px;text-align:center;font-weight:600;font-size:13px}
.category .emoji{font-size:30px;display:block;margin-bottom:8px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;transition:.2s}
.product-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #11182712}
.product-card img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#f3f4f6}
.product-info{padding:14px}
.product-info h3{font-size:14px;margin:0 0 7px;min-height:42px}
.price{font-size:18px;font-weight:700;color:#111827}
.seller-name{font-size:11px;color:#6b7280;margin:6px 0 12px}
.badge{display:inline-block;background:#dcfce7;color:#166534;border-radius:30px;padding:4px 9px;font-size:10px;font-weight:600}
.panel,.form-card,.table-wrap{background:white;border:1px solid #e5e7eb;border-radius:16px;padding:22px;margin:16px 0}
.form-card{max-width:600px;margin:20px auto}
.form-card h1{margin-top:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{margin:12px 0}
.field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:9px;font:inherit;font-size:13px}
.field textarea{min-height:100px}
.alert{padding:12px 15px;border-radius:10px;margin:14px 0;background:#dcfce7;color:#166534;font-size:13px}
.alert.warning{background:#fef3c7;color:#92400e}
.alert.error{background:#fee2e2;color:#991b1b}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stat{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px}
.stat strong{font-size:25px;display:block}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid #e5e7eb}
.table th{color:#6b7280;font-weight:600}
.table-wrap{overflow-x:auto}
.footer{background:#111827;color:#fff;margin-top:35px;padding:36px max(5vw,22px) 18px}
.footer-inner{max-width:1200px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:25px}
.footer-inner>div{display:flex;flex-direction:column;gap:9px;font-size:13px}
.footer p,.footer small{color:#cbd5e1}
.footer-brand{color:#fff}
.copyright{text-align:center;border-top:1px solid #374151;margin:25px auto 0;padding-top:15px;color:#9ca3af;font-size:11px;max-width:1200px}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:35px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:24px}
.product-detail img{width:100%;border-radius:14px}
.quantity{width:75px;padding:10px;border:1px solid #d1d5db;border-radius:8px}
.empty{text-align:center;padding:45px;background:white;border:1px dashed #cbd5e1;border-radius:16px}
.tagline{color:#16a34a;font-weight:600;font-size:13px}
@media(min-width:961px){
  .header-main-row{flex-wrap:nowrap !important;}
  .search-wrapper{flex:1 1 auto !important;max-width:540px !important;}
  .header-actions{margin-left:auto !important;flex-shrink:0 !important;}
}
@media(max-width:960px){
  .header-main-row{flex-wrap:wrap !important;gap:10px !important;}
  .brand{order:1 !important;}
  .header-actions{order:2 !important;margin-left:auto !important;}
  .search-wrapper{order:3 !important;width:100% !important;max-width:100% !important;min-width:100% !important;flex:1 1 100% !important;margin:6px 0 0 !important;}
  .search{width:100% !important;max-width:100% !important;}
  .main-nav{order:4 !important;width:100% !important;overflow-x:auto !important;white-space:nowrap !important;padding:4px 0 2px !important;scrollbar-width:none !important;}
  .main-nav::-webkit-scrollbar{display:none !important;}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .category-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  .container{padding:18px 14px}
  .site-header{position:relative !important;top:auto !important;padding:10px 12px !important;gap:8px !important;}
  .brand img, a.brand img{height:32px !important;max-height:32px !important;max-width:130px !important;}
  .header-actions{font-size:11px !important;gap:6px !important;}
  .header-actions a.btn.small{padding:5px 9px !important;font-size:11px !important;}
  .header-actions .cart-link{padding:6px 9px !important;font-size:11px !important;}
  .main-nav{gap:12px !important;font-size:12px !important;}
  .hero{grid-template-columns:1fr;padding:26px 16px}
  .hero-art{display:none}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .product-detail{grid-template-columns:1fr;padding:14px}
  .form-grid,.stats{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr 1fr}
}
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.plan-card{margin:0}
.plan-price{font-size:25px;font-weight:800;color:#155eef;margin:12px 0}
@media(max-width:700px){.plan-grid{grid-template-columns:1fr}}
.seller-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:8px 0 20px}
.seller-welcome h1{margin:4px 0}
.seller-plan-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:15px;padding:18px 20px;margin:16px 0}
.seller-plan-strip strong{font-size:16px}
.seller-plan-strip a,.section-head a{color:#155eef;font-weight:600;font-size:13px}
.seller-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0}
.seller-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}
.seller-action{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;transition:.2s}
.seller-action:hover{border-color:#155eef;transform:translateY(-2px)}
.seller-action strong{color:#111827}
.seller-action span,.seller-commission-note span{font-size:12px;color:#6b7280}
.status-pill{display:inline-block;padding:4px 9px;border-radius:20px;background:#f3f4f6;color:#374151;font-size:11px;font-weight:600}
.status-active{background:#dcfce7;color:#166534}
.status-pending{background:#fef3c7;color:#92400e}
.status-rejected{background:#fee2e2;color:#991b1b}
.seller-commission-note{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border-left:4px solid #16a34a;background:#f0fdf4;border-radius:10px;margin:16px 0}
.seller-table-wrap{margin:0;padding:0;border:0}
@media(max-width:700px){
  .seller-welcome{align-items:flex-start;flex-direction:column}
  .seller-stats,.seller-quick-links{grid-template-columns:1fr}
  .seller-plan-strip{align-items:flex-start;flex-direction:column}
  .seller-table-wrap{padding:0}
}

.brand{display:flex;align-items:center;text-decoration:none;flex-shrink:0;line-height:1}
.brand img{height:46px;width:auto;max-width:200px;display:block;object-fit:contain}
.footer-brand{margin-bottom:10px}
.footer-brand img{height:40px;width:auto;max-width:180px}
@media(max-width:600px){
  .brand img{height:36px;max-width:160px}
}
@media (max-width: 700px) {
  .search select { display: none !important; }
}

/* Wishlist Floating Button & Cards */
.product-card {
  position: relative !important;
}
.wishlist-toggle-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  margin: 0;
}
.wishlist-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s ease;
}
.wishlist-btn:hover {
  transform: scale(1.12);
  background: #ffffff;
}
.wishlist-btn.active {
  color: #ef4444;
  border-color: #fca5a5;
}
.wishlist-btn.inactive {
  color: #94a3b8;
}
.wishlist-btn.inactive:hover {
  color: #ef4444;
}

/* Seller Earnings & Ledger Styles */
.earnings-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.earnings-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.earnings-card span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}
.earnings-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}
.earnings-card.highlight {
  background: #f0fdf4;
  border-color: #86efac;
}
.earnings-card.highlight strong {
  color: #166534;
}

@media (max-width: 850px) {
  .earnings-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .earnings-cards {
    grid-template-columns: 1fr;
  }
}

/* Print Tax Invoice Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  .announcement, .site-header, .site-footer, .footer, footer, header, nav, .no-print, .alert {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .invoice-box {
    border: 1px solid #94a3b8 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 20px !important;
    margin: 0 !important;
  }
}
/* Mobile Bottom App Navigation Bar */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }
  body {
    padding-bottom: 65px !important;
  }
}


/* ==========================================================================
   SIPIFAI COMPREHENSIVE MOBILE VIEWPORT & RESPONSIVE OVERHAUL (2026)
   Optimized for Android & iOS mobile devices (320px - 768px)
   ========================================================================== */

/* 1. Global Viewport & Horizontal Scroll Lock */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Touch Targets & Tap Feedback */
@media (max-width: 768px) {
  .btn, button, input[type="submit"], select {
    min-height: 42px;
    touch-action: manipulation;
  }
  .btn.small {
    min-height: 32px;
  }
  /* Desktop text button collapse on mobile top header */
  .desktop-only-action {
    display: none !important;
  }
}

/* 2. Responsive Checkout & Cart Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: flex-start;
}
@media (max-width: 850px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .shop-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .shop-sidebar {
    position: static !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }
}

/* 3. Automatic Single-Column Collapse for Desktop Split Grids */
@media (max-width: 768px) {
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns:1.6fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns:1.8fr 1.2fr"],
  [style*="grid-template-columns: 1.8fr 1.2fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns:1.4fr 1fr;"],
  [style*="grid-template-columns:1.6fr 1fr;"],
  [style*="grid-template-columns:1.8fr 1.2fr;"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  [style*="grid-template-columns:repeat(4,"],
  [style*="grid-template-columns: repeat(4,"],
  [style*="grid-template-columns:repeat(4 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  [style*="grid-template-columns:repeat(3,"],
  [style*="grid-template-columns: repeat(3,"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Table overflow guard */
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .seller-welcome {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* 4. Product Catalog 2-Column Mobile Grid */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card {
    border-radius: 12px !important;
    display: flex;
    flex-direction: column;
  }
  .product-card img {
    height: 160px !important;
    object-fit: cover !important;
  }
  .product-info {
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .product-info h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    height: 34px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
  }
  .product-info .price {
    font-size: 15px !important;
  }
  .product-info .seller-name {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }
}

/* 5. Mobile Bottom App Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
  justify-content: space-around;
  align-items: center;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  gap: 3px;
  position: relative;
  min-width: 48px;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: #155eef;
}
.mobile-nav-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }
  body {
    padding-bottom: 72px !important;
  }
}

/* 6. Order Tracking Stepper on Small Screens */
@media (max-width: 600px) {
  .order-track-stepper {
    gap: 4px !important;
    margin: 20px 0 !important;
  }
  .order-track-stepper > div > div:nth-child(2) {
    font-size: 11px !important;
  }
  .order-track-stepper > div > div:nth-child(3) {
    font-size: 9px !important;
  }
}


/* ==========================================================
   ULTIMATE RESPONSIVE HEADER ARCHITECTURE (Desktop & Mobile)
   ========================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.site-header {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

@media (min-width: 851px) {
  .header-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }
  .brand {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .brand img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 170px !important;
    display: block !important;
  }
  .search-wrapper {
    position: relative !important;
    flex: 1 1 auto !important;
    max-width: 580px !important;
    min-width: 240px !important;
    margin: 0 16px !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
  .sub-nav {
    display: block !important;
    width: 100% !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .sub-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 7px 16px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 850px) {
  .site-header {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .header-main-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "logo . actions"
      "search search search" !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }
  .brand {
    grid-area: logo !important;
    display: flex !important;
    align-items: center !important;
  }
  .brand img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 120px !important;
  }
  .header-actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
  .search-wrapper {
    grid-area: search !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 2px 0 0 !important;
    flex: none !important;
  }
  .search {
    width: 100% !important;
    max-width: 100% !important;
  }
  .search select {
    display: block !important;
    max-width: 130px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    font-size: 12px !important;
    padding: 0 6px !important;
    border-right: 1px solid #e2e8f0 !important;
  }
  .desktop-only-action,
  .sub-nav {
    display: none !important;
  }
}


/* Desktop defaults for mobile drawer & quick strip */
.mobile-only-action {
  display: none !important;
}


@media (max-width: 850px) {
  .mobile-only-action {
    display: inline-flex !important;
  }
  
}


/* ==========================================================================
   SIPIFAI UNIVERSAL ALL-ROUND RESPONSIVE SYSTEM (145 Crore Device Coverage)
   Supports: 320px (Budget Mobile), 375px/390px/412px (Standard Mobile),
             600px/768px/834px (iPads & Tablets), 1024px/1280px/1366px (Laptops),
             1920px+ (Full HD & 4K Desktops)
   ========================================================================== */

/* Universal Viewport & Overflow Lock */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
  box-sizing: border-box !important;
}

*, *:before, *:after {
  box-sizing: inherit !important;
}

/* Fluid Container Sizing Across All Devices */
.container {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 20px 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .container {
    padding: 16px 14px !important;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 12px 10px !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 10px 6px !important;
  }
}

/* Base Panel & Card Padding Across Viewports */
.panel, .form-card, .table-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 22px !important;
  margin: 16px 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .panel, .form-card, .table-wrap {
    padding: 16px 12px !important;
    margin: 12px 0 !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  .panel, .form-card, .table-wrap {
    padding: 14px 10px !important;
    margin: 10px 0 !important;
  }
}

/* Universal Table & Table-Wrap Responsiveness */
.table-wrap, div[style*="overflow-x:auto"], .seller-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  border-radius: 12px !important;
  margin: 12px 0 !important;
}

table, .table, .manifest-table {
  width: 100% !important;
  border-collapse: collapse !important;
  min-width: 520px !important;
  font-size: 13px !important;
}

table th, table td, .table th, .table td {
  padding: 10px 12px !important;
  text-align: left !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

@media (max-width: 600px) {
  table th, table td, .table th, .table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

/* Stats Cards Grid Matrix (Seller, Admin, User) */
.stats, .seller-stats, .earnings-cards, [style*="grid-template-columns:repeat(4,"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 16px 0 !important;
  width: 100% !important;
}

.stat, .earnings-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.stat strong, .earnings-card strong {
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  display: block !important;
  margin-top: 4px !important;
  word-break: break-word !important;
}

@media (max-width: 960px) {
  .stats, .seller-stats, .earnings-cards, [style*="grid-template-columns:repeat(4,"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  .stats, .seller-stats, .earnings-cards, [style*="grid-template-columns:repeat(4,"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .stat, .earnings-card {
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }
  .stat strong, .earnings-card strong {
    font-size: 18px !important;
  }
  .stat span.muted, .earnings-card span {
    font-size: 11px !important;
  }
}

@media (max-width: 360px) {
  .stats, .seller-stats, .earnings-cards, [style*="grid-template-columns:repeat(4,"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Quick Action Grids (Seller & Admin) */
.seller-quick-links, [style*="grid-template-columns:repeat(3,"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 16px 0 !important;
}

.admin-actions, [style*="grid-template-columns:repeat(2,"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 16px 0 !important;
}

@media (max-width: 900px) {
  .seller-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 640px) {
  .seller-quick-links, .admin-actions {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* Filter Tabs & Button Rows: Smooth Touch Scroll */
.filter-tabs,
[style*="display:flex;gap:8px;margin-bottom:20px"],
[style*="display:flex;gap:8px;margin:16px 0"],
[style*="display:flex;gap:8px;border-bottom:1px solid #e2e8f0"] {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}

.filter-tabs::-webkit-scrollbar,
[style*="display:flex;gap:8px"]::-webkit-scrollbar {
  display: none !important;
}

.filter-tabs a,
[style*="display:flex;gap:8px;margin-bottom:20px"] a {
  flex-shrink: 0 !important;
}

/* Section Head & Welcome Banners */
.seller-welcome, .section-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  .seller-welcome, .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .seller-welcome > div:last-child,
  .section-head > div:last-child {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .seller-welcome .btn,
  .section-head .btn {
    flex: 1 1 auto !important;
    text-align: center !important;
  }
}

/* Universal Forms & Inputs Across All Devices */
.form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
.form-card input:not([type="radio"]):not([type="checkbox"]),
.form-card select,
.form-card textarea,
.panel input:not([type="radio"]):not([type="checkbox"]):not(#sipSearchInput),
.panel select:not(#sipSearchCategory),
.panel textarea {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 14px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}

/* Strict fix for Radio & Checkbox inputs across panels, cards and forms */
input[type="radio"],
input[type="checkbox"],
.panel input[type="radio"],
.panel input[type="checkbox"],
.saved-addr-card input[type="radio"],
label input[type="radio"],
label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px !important;
  margin: 3px 0 0 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

textarea {
  min-height: 80px !important;
}

/* Automatic Single-Column Collapse for Split Column Grids */
@media (max-width: 850px) {
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns:1.6fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns: 1.8fr 1fr"],
  [style*="grid-template-columns:1.8fr 1fr"],
  [style*="grid-template-columns: 1.8fr 1.2fr"],
  [style*="grid-template-columns:1.8fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  .checkout-grid,
  .product-detail,
  .shop-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Product Catalog Grid: 4 col on desktop, 3 col on tablet, 2 col on mobile */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 680px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* Category Grid */
.category-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* Order Tracking Stepper on Phones */
.order-track-stepper {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 20px 0 !important;
  text-align: center !important;
}

@media (max-width: 600px) {
  .order-track-stepper {
    gap: 4px !important;
  }
  .order-track-stepper > div > div:first-child {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    margin: 0 auto !important;
  }
  .order-track-stepper > div > div:nth-child(2) {
    font-size: 11px !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
  }
  .order-track-stepper > div > div:nth-child(3) {
    font-size: 9px !important;
  }
}

/* Responsive Footer */
.footer-inner {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 25px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}


/* ==========================================================
   PRECISE SEARCH BAR COMPONENT FIX (Guarantees input & button)
   ========================================================== */
.search {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 42px !important;
  border: 2px solid #155eef !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.search select, #sipSearchCategory {
  width: auto !important;
  max-width: 140px !important;
  min-width: 100px !important;
  flex: 0 0 auto !important;
  background: #f8fafc !important;
  border: 0 !important;
  border-right: 1px solid #cbd5e1 !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  color: #334155 !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  cursor: pointer !important;
  display: block !important;
}

.search input, #sipSearchInput {
  flex: 1 1 auto !important;
  width: auto !important;
  border: 0 !important;
  outline: none !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  color: #0f172a !important;
  height: 100% !important;
  min-height: 0 !important;
  background: transparent !important;
  display: block !important;
  box-sizing: border-box !important;
}

.search button {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #155eef !important;
  border: 0 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 650px) {
  .search select, #sipSearchCategory {
    display: block !important;
    width: auto !important;
    max-width: 88px !important;
    min-width: 72px !important;
    font-size: 11px !important;
    padding: 0 4px !important;
    text-overflow: ellipsis !important;
    flex: 0 0 auto !important;
  }
}


/* ==========================================================
   CATEGORY RESPONSIVE ENGINE (Homepage, Shop & Categories)
   ========================================================== */
.featured-category-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

@media (max-width: 1100px) {
  .featured-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  .featured-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .featured-category-grid > a > div:first-child {
    height: 90px !important;
  }
}

/* Category Grid on page=categories */
.category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 550px) {
  .category-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* Shop Sidebar Collapsible Accordion on Mobile */
.shop-sidebar-summary {
  display: none !important;
}

@media (max-width: 850px) {
  .shop-sidebar-summary {
    display: flex !important;
  }
  .shop-sidebar-details:not([open]) .shop-sidebar {
    display: none !important;
  }
  .shop-sidebar-details[open] .shop-sidebar {
    display: block !important;
    margin-bottom: 16px !important;
  }
}


/* Hide Sub-Nav on mobile screens <= 768px to eliminate horizontal scrolling */
@media (max-width: 768px) {
  .sub-nav {
    display: none !important;
  }
}

/* Responsive Mobile Cart Cards (Converts 5-column table into clean mobile cards) */
@media (max-width: 650px) {
  .table-wrap table thead {
    display: none !important;
  }
  .table-wrap table,
  .table-wrap table tbody,
  .table-wrap table tr,
  .table-wrap table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .table-wrap table tr {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  }
  .table-wrap table td {
    padding: 6px 0 !important;
    border: none !important;
    text-align: left !important;
  }
  .table-wrap table td[style*="text-align:right"] {
    text-align: left !important;
    font-weight: 700 !important;
    color: #155eef !important;
  }
  .table-wrap table td[style*="text-align:center"] button {
    width: 100% !important;
    padding: 8px !important;
    margin-top: 6px !important;
  }
}


/* Guaranteed Sub-Nav Mobile Suppression */
@media (max-width: 768px) {
  .sub-nav,
  .desktop-only-action {
    display: none !important;
  }
}


/* ==========================================================================
   2026 WORLD-CLASS DTC MARKETPLACE DESIGN SYSTEM (Shopify/Apple Aesthetic)
   ========================================================================== */

/* Typography & Sub-Pixel Anti-Aliasing */
body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Poppins, sans-serif !important;
}

h1, h2, h3, h4, strong {
  color: #0f172a;
  letter-spacing: -0.025em;
}

.hero,
.hero * {
  box-sizing: border-box;
}

.hero h1,
.hero h2,
.hero h3,
.hero strong,
.hero p strong,
.hero span.hero-title-white {
  color: #ffffff !important;
}

.hero p {
  color: #cbd5e1 !important;
}

/* Modern Pill Buttons */
.btn {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
  border: none !important;
}

.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14) !important;
}

.btn.green {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

.btn.green:hover {
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35) !important;
}

.btn.light {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.btn.light:hover {
  border-color: #cbd5e1 !important;
}

.btn.small {
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 9999px !important;
}

/* World-Class Card & Panel Elevation */
.panel, .form-card {
  border-radius: 20px !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
  background: #ffffff !important;
}

/* Modern Metric Stats Cards */
.stat, .earnings-card {
  border-radius: 16px !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  background: #ffffff !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.stat:hover, .earnings-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.07) !important;
}

.stat strong, .earnings-card strong {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.03em !important;
}

/* Sleek Modern Form Inputs */
.field input, .field select, .field textarea,
input[type="text"]:not(#sipSearchInput), input[type="email"], input[type="password"], input[type="tel"], input[type="number"] {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 10px 14px !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.field input:focus, .field select:focus, .field textarea:focus,
input[type="text"]:not(#sipSearchInput):focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus, input[type="number"]:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

/* Modern Rounded Status Pills */
.badge, .status-pill {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  padding: 4px 10px !important;
}

/* Clean Modern Tables */
.table th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
}

/* ==========================================================
   SIPIFAI ENHANCED MODERN FOOTER COMPONENT
   ========================================================== */
.footer {
  background: #0b132b !important;
  color: #94a3b8 !important;
  margin-top: 48px !important;
  padding: 0 !important;
  border-top: 1px solid #1e293b !important;
  font-family: inherit !important;
}

/* Trust Strip */
.footer-trust-strip {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-sizing: border-box;
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-trust-item .trust-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.footer-trust-item strong {
  display: block;
  font-size: 13px !important;
  color: #f8fafc !important;
  font-weight: 700 !important;
  margin-bottom: 2px;
}

.footer-trust-item p {
  margin: 0;
  font-size: 11px;
  color: #94a3b8 !important;
  line-height: 1.4;
}

/* Main 5-Column Grid */
.footer-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 40px 20px 32px !important;
  display: grid !important;
  grid-template-columns: 2.2fr 1fr 1fr 1.1fr 1.1fr !important;
  gap: 32px !important;
  box-sizing: border-box !important;
}

.footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.footer-col-brand .footer-brand img,
.footer-brand img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 195px !important;
  display: block !important;
  object-fit: contain !important;
  margin-bottom: 10px !important;
}

.footer-tagline {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  margin: 0 0 6px !important;
  letter-spacing: 0.02em !important;
}

.footer-desc {
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
  margin: 0 0 14px !important;
}

.footer-direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-contact-row .contact-lbl {
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
}

.footer-highlight-link {
  color: #38bdf8 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.footer-highlight-link:hover {
  text-decoration: underline !important;
  color: #7dd3fc !important;
}

/* Headings in Columns - Guaranteed White & Visible */
.footer-heading,
.footer-col h4,
.footer-col strong,
.footer h4,
.footer .footer-heading {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 8px !important;
  display: block !important;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.footer-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links a,
.footer-inner a {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  display: inline-block !important;
  line-height: 1.5 !important;
}

.footer-links a:hover,
.footer-inner a:hover {
  color: #38bdf8 !important;
  transform: translateX(3px) !important;
}

/* Bottom Copyright & Compliance Strip */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  padding: 20px max(5vw, 20px) 24px !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
  box-sizing: border-box !important;
}

.footer-bottom-left {
  font-size: 12px !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
  max-width: 520px !important;
}

.footer-bottom-left strong {
  color: #ffffff !important;
}

.footer-bottom-right {
  font-size: 11px !important;
  color: #94a3b8 !important;
  text-align: right !important;
  line-height: 1.6 !important;
}

.footer-bottom-right a {
  color: #38bdf8 !important;
  text-decoration: none !important;
}

.footer-bottom-right a:hover {
  text-decoration: underline !important;
  color: #7dd3fc !important;
}

.footer-bottom-right strong {
  color: #e2e8f0 !important;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .footer-trust-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
  }
  .footer-col-brand {
    grid-column: span 2 !important;
  }
  .footer-bottom-right {
    text-align: left !important;
  }
}

@media (max-width: 540px) {
  .footer-trust-strip {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 28px 16px !important;
  }
  .footer-col-brand {
    grid-column: span 1 !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    padding: 18px 16px 80px !important; /* Extra bottom padding for mobile sticky app bar */
  }
}
