/* ==========================================================================
   redesign.css
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
/*--primary: #0066cc; Bright corporate blue  */
  --accent-hover: #cccccc;
  --accent: #e5e5e5;
  --background-light: #f9fafb; /* Gray-50 */
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg: #eaeded;
  --blue-light: #ADD8E6;
  --blue: #0061a4;
  --border-color: #e5e7eb; /* Gray-200 */
  --border: #dddddd;
  --card:#ffffff;
  --danger: #c0392b;
  --max-width: 1500px;
  --muted:#6b7280;
  --primary-color: #3b82f6; /* Blue-500 */
  --primary-dark: #004b99;
  --primary-orange: #ff4700;
  --primary: #0066cc; /* #0f766e; */
  --radheader-containerius-lg: 8px;
  --radius-lg: 8px;
  --radius: 14px; /*   --radius: 4px; */
  --secondary-color: #10b981; /* Emerald-500 */
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.06);
  --text-dark: #1f2937; /* Gray-800 */
  --text-light: #565959;
  --text-main: #222;
  --text: #0f1111;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --white: #ffffff;
  --whiteGrey: #f5f5f5;
  --dark-red:  #8B0000;
}

/* ---------- Base / Reset (mobile defaults) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden; /* This stops the side-scrolling */
  position: relative;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;                 /* was 11px — too small for mobile */
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;                /* was 1.1 — below accessibility minimum */
  -webkit-font-smoothing: antialiased;
  /* padding-top: 60px; */
  /* padding-bottom: 80px; */
}

/* Ensure images don't break out of containers */
img, video, canvas { max-width: 100%;  height: auto; }
a { color: inherit; text-decoration: none; }

.font-red { color: red; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;                 /* tighter gutters on mobile */
}
.flex { display: flex; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; }
.grid { display: grid; }
.hidden { display: none !important; }
.spacer { height: 40px; visibility: hidden; }

.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 44px;                /* touch-friendly target */
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); translateY(-1px); }
.btn-secondary { background: var(--secondary-color);   color: var(--text-light); }
.btn-secondary:hover {  transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-blue { background-color: #007bff; }
.btn-green { background-color: #28a745; }
.btn-success { background-color: #10b981; color: #fff; }
.btn-success:hover { background-color: #059669; }
.btn-whatsapp { background: #25d366; color: var(--white); transition: all 0.3s ease; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn-email { background: #0066cc; color: var(--white); }
.btn-email:hover { background: #004b99; }.
.btn-signin {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  padding: 10px 0;
  width: 100%;
  border-radius: 3px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.btn-signin:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  border-color: #846a29;
}
.share-button {
  display: inline-block;
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
}
.share-button.email { background-color: #007BFF; }
.share-button.facebook { background-color: #3b5998; }
.share-button.whatsapp { background-color: #25D366; }

.add-2cart-button {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
.add-2cart-button:hover { background-color: #c42b21; }

/* Add to cart button */
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  width: 100%;                     /* full width on mobile */
  max-width: 320px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #ff9a00 0%, #ff2e63 100%);
  box-shadow: 0 8px 20px rgba(255, 46, 99, 0.4),
              0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #ff7b00 0%, #e62f5c 100%);
  box-shadow: 0 12px 30px rgba(255, 46, 99, 0.5),
              0 6px 15px rgba(0, 0, 0, 0.15);
}
.add-to-cart-btn:active { transform: scale(0.98); }
.add-to-cart-btn.loading { pointer-events: none; opacity: 0.8; }
.add-to-cart-btn.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.add-to-cart-btn .btn-text { color: #ffffff; z-index: 2; transition: opacity 0.3s ease; }
.add-to-cart-btn:hover .btn-text { opacity: 0.9; }
.add-to-cart-btn .btn-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 6px;
}
.add-to-cart-btn svg { transition: transform 0.3s ease; }
.add-to-cart-btn:hover svg { transform: scale(1.1) rotate(-5deg); }
@keyframes pulse {
  0% { box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5), 0 8px 20px rgba(0, 0, 0, 0.1); }
  100% { box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1); }
}
.add-to-cart-btn.success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3),
              0 4px 10px rgba(0, 0, 0, 0.1);
}
@keyframes spin { to { transform: rotate(360deg); } }
.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
}
.add-to-cart-btn:active::before { transform: translate(-50%, -50%) scale(1); }


/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new { background: var(--primary); color: var(--white); }
.badge-sale { background: var(--danger); color: var(--white); }
.badge-wholesale { background: var(--accent); color: var(--text); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: #131921;
  color: #cccccc;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #232f3e;
}
.top-bar a { color: #00a8e1; font-weight: 600; }
.top-bar .flex { gap: 24px; }


/* ---------- Header ---------- */
.header {
  background: #131921;
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
}
.header-inner {
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;                 /* stack search below on mobile */
  align-items: center;
  gap: 8px 16px;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.logo:hover { border-color: #ffffff; }
.logo-icon {
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 14px;
}
.logo span { color: #ffffff; }

#mobileMenuBtn {
  display: none;
}

/* Header Container (glass variant) */
.header-container {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box;
  padding: 10px 16px;

  /* FIX STARTS HERE */
 display: flex;
  flex-flow: row wrap;            /* Changed from column to row + wrap */
  justify-content: space-between; /* Ensures they spread out */
  align-items: center;           /* Keeps items centered vertically */
  gap: 12px;
 overflow: visible;
  /* FIX ENDS HERE */

  position: sticky;
  top: 0;
  z-index: 1008;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.header-container .logo { color: var(--blue); font-size: 22px; }

/* Default desktop order */
.left-section { order: 1; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.right-section { order: 3; flex: 0 0 auto; display: flex; align-items: center; gap: 16px; justify-content: flex-end; }


/* Middle Section: Search */
.search-section {
  order: 2;
  flex-grow: 1;       /* This allows it to fill the available middle space */
  flex-shrink: 1;     /* Ensures it can shrink on smaller screens */
  max-width: 600px;   /* ADD THIS: Limits how wide the search bar can get */
  margin: 0 15px;     /* ADD THIS: Gives some breathing room from sides */

  display: flex;
  align-items: center;
  background: #f2f2f2;
  border-radius: 25px;
  padding: 5px 15px;
  border: 1px solid #ddd;
  transition: var(--transition);
}
.search-section:focus-within {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 71, 0, 0.2);
  border-color: var(--primary-orange);
}
.search-input {
  border: none;
  background: transparent;
  padding: 10px;
  flex-grow: 1;
  min-width: 0;
  outline: none;
  font-size: 16px;                 /* prevents iOS zoom */
}
.search-icon-group { display: flex; align-items: center; gap: 10px; }
.search-btn {
  background: var(--primary-orange);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { background: #e63e00; }




/* Logo & Category */
.category-wrapper { position: relative; display: inline-block; }
.category-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;                    /* larger tap target */
  color: #333;
  transition: var(--transition);
}
.category-btn:hover { color: var(--primary-orange); }

/* Category dropdown — click/hover opens; on mobile it is full-width */
.category-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  width: min(220px, 80vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  overflow-y: auto;
  max-height: 70vh;
  z-index: 50;
}
.category-wrapper:hover .category-dropdown,
.category-wrapper:focus-within .category-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.category-dropdown li {
  list-style: none;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.category-dropdown li:hover { background: #fff0e6; color: var(--primary-orange); }

.nav-icons { display: flex; align-items: center; gap: 15px; font-size: 20px; color: #444 !important; }
.nav-icons i { cursor: pointer; transition: color 0.2s; }
.nav-icons i:hover { color: var(--primary-orange); }
/* Ensure the link itself doesn't have its own "blue" or "white" color */
.nav-icons .header-action,
.nav-icons .cart-btn {
  text-decoration: none;
  color: inherit; /* Tells the link to use the #444 from nav-icons */
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

/* User dropdown */
.user-wrapper { margin-left: auto; position: relative; cursor: pointer; }
.user-btn { font-size: 24px; color: #333; transition: var(--transition); }
.user-btn:hover { color: var(--primary-orange); }
.user-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  width: min(200px, 80vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
 text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 50;
}
.user-wrapper:hover .user-dropdown,
.user-wrapper:focus-within .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown a {
  color: #333;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
 display: block;
}
.user-dropdown a:hover { background: #f0f0f0; padding-left: 12px; }
.user-dropdown a.login { color: var(--primary-orange); font-weight: bold; }




/* ---------- Navigation ---------- */
.main-nav {
  background: #fff; /* Or var(--bg-glass) if you want transparency */
  border-bottom: 1px solid #eee;
  padding: 8px 0;

  /* FIX STARTS HERE */
  position: sticky;            /* sticky or fixed */
  top: 0;
  left: 0;                    /* Ensure it starts at the very left */
  right: 0;                   /* Ensure it goes to the very right */
  width: 100%;                /* Force full width */
  z-index: 1002;              /* Increased z-index to stay above everything */
  /* END FIX */

  max-width: var(--max-width);
  margin: 0 auto;             /* Center it on desktop */
}
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 15px;
  gap: 4px;
  overflow-x: auto;                /* swipeable on mobile */
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.nav-list:active { cursor: grabbing; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: 0 0 auto; margin: 0 2px; }
.nav-list li a { color: #333; font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 4px; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; }
.nav-list li a:hover { background-color: #f0f0f0; color: #007bff; }
.nav-list .icon { font-size: 1.1rem; }
.nav-list a.active { font-weight: 700; color: #007bff; }

/* Fixed the right-edge fade gradient logic */
.nav-list::after {
  content: "";
  position: absolute;         /* Changed from sticky to absolute */
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;                /* Specific width for the fade */
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
  pointer-events: none;       /* Important so you can still click through it */
}

/* ---------- Delivery box ---------- */
.delivery-box { display: none; }   /* ven868-style location row: desktop only */

/* ---------- Search Row (ven868 variant) ---------- */
.search-row { background: #1b2530; padding: 8px 0; }
.search-row .container { display: flex; justify-content: center; }

.search-bar {
  width: 100%;
  max-width: 800px;
  position: relative;
  display: flex;
  border-radius: 4px;
}
.search-bar form {
  display: flex;
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}
.search-bar form:focus-within {
  box-shadow: 0 0 0 2px #ff9900, 0 0 0 3px rgba(255, 153, 0, 0.5);
}
.search-select {
  background: #f3f3f3;
  border: none;
  border-right: 1px solid #cccccc;
  padding: 0 8px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  outline: none;
  max-width: 90px;                 /* avoid squeezing the input on phones */
  text-overflow: ellipsis;
}
.search-select:hover { background: #dadada; color: #111; }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none !important;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  color: #111;
}
.search-bar button {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--primary-dark); }

/* Search Autocomplete Dropdown */
#dropdown {
  /* Replace #dropdown with whatever ID/Class your 'dropdown' variable has */
    position: absolute;
    z-index: 9999;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;

    /* LIMIT THE WIDTH HERE */
    width: 350px;          /* Set a fixed max-width */
    max-width: 90vw;        /* Ensure it doesn't overflow on small mobile screens */
    max-height: 400px;
    overflow: hidden;       /* Keeps content inside rounded corners */
    overflow-y: auto;
}

/* Search autocomplete */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.search-autocomplete.active { display: block; animation: searchDropIn 0.15s ease-out; }
@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: #0f1111;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.search-autocomplete-item:last-child { border-bottom: none; }
.search-autocomplete-item:hover { background: #f7f7f7; }
.search-autocomplete-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #f9f9f9;
  border: 1px solid #eeeeee;
  flex-shrink: 0;
}
.search-autocomplete-info { flex: 1; min-width: 0; }
.search-autocomplete-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-autocomplete-price { font-size: 13px; font-weight: 700; color: #b12704; margin-top: 2px; }
.search-autocomplete-empty { padding: 20px; text-align: center; color: #888; font-size: 13px; }

/* ---------- Header Actions ---------- */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: #ffffff;
  font-size: 11px;
  position: relative;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  line-height: 1.2;
}
.header-action span:first-of-type { font-size: 10px; color: #cccccc; }
.header-action span:last-of-type { font-weight: 700; color: #fff; }
.header-action svg { width: 20px; height: 20px; }
.header-action.cart-btn { flex-direction: row; align-items: center; gap: 6px; }
.header-action .label { display: none; }   /* hide text labels on small screens */

.nav-icons .header-action:hover { color: var(--primary-orange) !important; }
.cart-icon-wrapper { flex-shrink: 0; position: relative; display: flex; align-items: center; }
.cart-count {
  position: absolute;
  top: -10px;
  right: -6px;
  background: #ff9900;
  background-color: var(--primary-orange);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  margin-left: -8px;
  padding: 2px 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  min-width: fit-content;
}
/* Hover effect to make sure both text and icon change color together */
.cart-btn:hover {
  color: var(--primary-orange) !important;
}
/* Target the SVG stroke specifically */
.nav-icons svg {
  stroke: currentColor; /* Ensures the SVG uses the text color (#444) */
}
/* Ensure icons and spans within the links are also colored correctly */
.nav-icons span {
  color: inherit;
}
/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 12px;
  color: #565959;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs a { color: #565959; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; }

/* ---------- Hero ---------- */
.hero {
  background: #5b8df7;
  color: var(--white);
  padding: 24px 0 120px;
  position: relative;
  min-height: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 3;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero p {
  font-size: 15px;
  opacity: 0.95;
  margin: 0 0 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat strong {
  display: block;
  font-size: 20px;
  color: #ffd814;
}
.hero-stat span { font-size: 13px; opacity: 0.8; }
.hero-image {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ---------- Featured product slider ---------- */

.featured-products-section, .featured2-products-section  {
  background: #72c1f8;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 10px 0 25px;
  position: relative;
  overflow: hidden;
}

.featured2-products-section {
  background: #5b8df7;
}

.featured-slides-container, featured2-slides-container  { position: relative; width: 100%; }
.featured-product-slide, .featured2-product-slide {
  display: none;
  flex-direction: column;          /* stacked on mobile */
  gap: 20px;
  padding: 20px 16px 44px;
  width: 100%;
  animation: featuredFadeIn 0.6s ease-in-out forwards;
}
.featured-product-slide.active, .featured2-product-slide.active  { display: flex; }
@keyframes featuredFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.featured-image-col, .featured2-image-col {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  min-height: 220px;
  max-height: 260px;
  position: relative;
}
.featured-image-col img, .featured2-image-col img  {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
  transition: transform 0.5s ease;
}
.featured-product-slide:hover .featured-image-col img .featured2-product-slide:hover .featured2-image-col img  { transform: scale(1.04); }
.featured-info-col, .featured2-info-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;             /* centered on mobile */
  text-align: center;
  min-width: 0;
}
.featured-brand, .featured2-brand  {
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.featured-title, .featured2-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #17406b;
  line-height: 1.25;
  margin: 0 0 15px;
  word-wrap: break-word;
}
.featured-dots-decorator, .featured2-dots-decorator  { display: flex; gap: 8px; margin-bottom: 20px; }
.featured-decorator-dot, .featured2-decorator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.featured-decorator-dot.d1, .featured2-decorator-dot.d1 { background-color: #60a5fa; }
.featured-decorator-dot.d2, .featured2-decorator-dot.d2 { background-color: #fca5a5; }
.featured-decorator-dot.d3, .featured2-decorator-dot.d3  { background-color: #fcd34d; }
.featured-decorator-dot.d4, .featured2-decorator-dot.d4  { background-color: #c084fc; }
.featured-desc, .featured2-desc  {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 25px;
}
.featured-price-action, .featured2-price-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.featured-price, .featured2-price  { font-size: 1.4rem; font-weight: 700; color: #17406b; }
.featured-btn, .featured2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #17406b;
  color: #fff;
  background: #000;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.featured-btn:hover, .featured2-btn:hover  {
  background: #17406b;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 64, 107, 0.2);
}
.featured-nav-indicators, .featured2-nav-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.featured-nav-indicator, .featured2-nav-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.featured-nav-indicator.active, .featured2-nav-indicator.active { width: 24px; border-radius: 4px; background: #17406b; }


/* 1. Default State (Desktop/Tablet): Side-by-Side */
.sidebar-container {
  flex: 0 0 250px; /* Slightly wider sidebar for better readability */
  min-width: 250px;
}

.main-content-container {
   flex: 1;        /* Takes up remaining space */
   min-width: 300px;
}

/* ---------- Main content wrapper / ven868 grid ---------- */
.main-content-wrapper {
  margin-top: -60px;               /* overlap the hero fade */
  position: relative;
  z-index: 5;
}
.ven868-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}


/* ---------- Hero product (carousel area) ---------- */
.heroproduct {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 300px;
  overflow: hidden;
  padding: 20px 0 90px;
}

/* ---------- ven868 cards ---------- */
.ven868-card {
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.ven868-card-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.ven868-card-link {
  font-size: 13px;
  color: #007185;
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
}
.ven868-card-link:hover { color: #c45500; text-decoration: underline; }

.ven868-quadrant {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ven868-quadrant2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
}

.quadrant-item { display: flex; flex-direction: column; color: #0f1111; }
.quadrant-item:hover span { color: #007185; }
.quadrant-img {
  background: #ffffff;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  padding: 8px;
}

.quadrant-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.quadrant-item span {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Horizontal product scroller ---------- */
.product-scroller-container {
  background: transparent;
  padding: 14px;
  margin-bottom: 4px;
  position: relative;
}
.product-scroller-wrapper { position: relative; display: flex; align-items: center; }
.product-scroller {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  padding-bottom: 8px;
}
.product-scroller::-webkit-scrollbar { display: none; }
.product-scroller .product-card {
  flex: 0 0 180px;                 /* narrower cards on phones */
  box-shadow: none;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
}

.scroller-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cccccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: none;                   /* hidden on touch; shown on wider screens */
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 20px;
  color: #111;
  transition: background 0.2s, color 0.2s;
}

.scroller-btn:hover { background: #ffffff; color: var(--primary); }

/* ---------- ven868 sign-in banner ---------- */
.ven868-signin-banner {
  background: #ffffff;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  padding: 32px 16px;
  text-align: center;
  margin-top: 40px;
}
.signin-inner {
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.signin-inner p { font-size: 13px; font-weight: 600; margin: 0; }

.signin-inner span { font-size: 11px; color: #555; }
.signin-inner span a { color: #007185; }
.signin-inner span a:hover { color: #c45500; text-decoration: underline; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  padding: 16px 0;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.trust-item { display: flex; align-items: center; gap: 12px; padding: 12px; }
.trust-item svg { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { font-size: 12px; color: var(--text-light); }


/* ---------- Section headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.section-title { font-size: 20px; font-weight: 700; }

.section-title span { color: var(--primary); }
.section-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.section-link:hover { text-decoration: underline; }

/* ---------- Categories ---------- */
.categories { margin-bottom: 40px; }

.category-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 8px 4px 12px;
  scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-card {
  flex: 0 0 140px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 2px solid transparent;
}

.category-card:hover { border-color: var(--primary); }

.category-card svg,
.category-card img { width: 64px; height: 64px; margin-bottom: 12px; }

.category-card img { object-fit: contain; }
.category-card svg { color: var(--primary); }
.category-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.category-card span { font-size: 12px; color: var(--text-light); }

/* ---------- Product info ---------- */
.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price { font-size: 15px; margin-bottom: 10px; }
.price-section { margin-bottom: 16px; }
.current-price { font-size: 12px; font-weight: bold; }
.old-price {
  font-size: 11px;
  color: #ff4d4d;
  text-decoration: line-through;
  margin-left: 8px;
}

/* Price tag (ribbon) */
.price-tag {
  display: inline-block;
  position: relative;
  height: 32px;
  line-height: 32px;
  padding: 0 15px 0 12px;
  margin-left: 20px;
  background: #ff4757;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.price-tag::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 16px solid #ff4757;
}
.price-tag::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -1px 1px 2px rgba(0,0,0,0.2);
  z-index: 1;
}

.product-meta { margin-top: auto; font-size: 11px; }
.product-meta a { text-decoration: none; }
.product-header { font-weight: bold; font-size: 0.9rem; display: block; margin-bottom: 5px; }

/* ---------- Product cards & grids ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* mobile default: 4-up */
  gap: 10px;
  padding: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important; /* Forces 4 columns */
  gap: 10px !important;                             /* Reduces gap to fit better on small screens */
}


.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 5px !important;
  margin-bottom: 10px !important;
}
.product-info h3 {
        font-size: 14px !important; /* Makes title smaller to prevent text wrapping issues */
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: all 0.2s;
}
.product-wishlist:hover { background: var(--danger); color: var(--white); }
.product-wishlist.active { background: var(--danger) !important; color: var(--white) !important; }
.product-wishlist svg { width: 18px; height: 18px; }

.product-image {
  height: 150px;
  background: var(--whiteGrey);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

/* Product3 card */
.product3-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.product3-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.product3-name {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333;
  min-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


.product-info2 { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.product-category {
  font-size: 11px !important;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.product-pricing { margin-bottom: 12px; }

.products-column { display: flex; flex-direction: column; gap: 16px; }



/* ===== PRODUCT GRID ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:18px;}
.card{
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  display:flex;
  flex-direction:column;
  transition:.25s;
  text-decoration:none;color:inherit;
  --radius:14px;
}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 26px rgba(15,118,110,.18);}
.card-media{position:relative;padding-top:72%;background:#f3f6f5;overflow:hidden;}
.card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.deal-tag{
 position:absolute;top:10px;left:10px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;
 padding:4px 9px;border-radius:6px;box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.stock-tag{
 position:absolute;top:10px;right:10px;background:#dcfce7;color:#166534;font-size:10.5px;font-weight:600;
 padding:4px 9px;border-radius:6px;display:flex;align-items:center;gap:4px;
}
.stock-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:#16a35a;}
.card-body{padding:14px;display:flex;flex-direction:column;flex:1;}
.product-name{font-size:13.5px;font-weight:600;color:#111827;margin-bottom:6px;line-height:1.35;height:39px;overflow:hidden;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.product-ref{font-size:11px;color:var(--muted);margin-bottom:8px;font-family:'Courier New',monospace;}
.price-row{margin-bottom:auto;display:flex;align-items:center;gap:8px;}
.current-price{font-size:20px;font-weight:800;color:var(--primary);}
.ref-price{font-size:12px;color:#9ca3af;text-decoration:line-through;}
.discount{font-size:11px;font-weight:700;color:#dc2626;background:#fef2f2;padding:2px 7px;border-radius:5px;}
.unit-note{font-size:11px;color:var(--muted);}
.card-actions{display:flex;gap:8px;margin-top:12px;}
.btn-add{
 flex:1;background:var(--primary);color:#fff;border:none;padding:10px;border-radius:9px;font-weight:600;
 font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;transition:.2s;
}


.btn-add:hover{background:var(--primary-dark);}
.qty-ctl{display:none;align-items:center;gap:6px;background:#f0fdfa;border:1px solid #99e6dd;border-radius:9px;padding:4px;}
.qty-btn{width:24px;height:24px;border-radius:6px;border:1px solid var(--primary);background:#fff;color:var(--primary);cursor:pointer;font-weight:700;line-height:1;}
.qty-val{font-size:13px;font-weight:700;color:var(--primary);}
.card:hover .qty-ctl{display:flex;}



/* ---------- Chanpin (split product card) ---------- */
.chanpin-container {
  margin: 0;
  display: flex;
  justify-content: center;
  background: transparent;
}
.chanpin-card {
  display: flex;
  flex-direction: column;          /* stacked on mobile */
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.chanpin-image-side {
  flex: 1;
  background-color: #fff;
  position: relative;
  height: 240px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chanpin-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chanpin-info-side {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.promo-text { font-size: 22px; font-weight: 900; margin-bottom: 15px; }

.chanpin-title {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
  overflow: hidden;
}
.stats-row { font-size: 13px; color: #666; margin-bottom: 20px; }
.stats-row span { color: #0066cc; cursor: pointer; }
.shipping-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 25px;
  color: #333;
}
.badge-green { color: #28a745; display: flex; align-items: center; }
.badge-green::before { content: '✓'; margin-right: 5px; font-weight: bold; }

/* ---------- Prices ---------- */
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-current { font-size: 18px; font-weight: 800; color: var(--primary); }
.price-original { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.price-wholesale { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.price-wholesale strong { color: var(--primary); font-weight: 700; }
.price-tooltip {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--border);
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 11px;
  cursor: help;
  position: relative;
}
.price-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 10;
}

.product-actions { display: flex; flex-direction: column; gap: 8px; }
.product-actions .btn { flex: 1; justify-content: center; }

.product-info-text { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* CTA button */
.cta-section { text-align: center; margin-top: 32px; }
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

/* ---------- Sections ---------- */
.section { margin-bottom: 36px; }

/* ---------- Offers banner ---------- */
.offers-banner {
  background: linear-gradient(90deg, #fff9e6 0%, #fff 50%, #fff9e6 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  margin-bottom: 40px;
  text-align: center;
}

.offers-banner h2 { font-size: 22px; margin: 0 0 8px; }

.offers-banner h2 span { color: var(--danger); }
.offers-banner p { color: var(--text-light); margin: 0 0 20px; }
.countdown { display: inline-flex; gap: 8px; margin-bottom: 20px; }

.countdown-item {
  background: var(--white);
  padding: 10px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 56px;
}

.countdown-item strong { display: block; font-size: 20px; color: var(--danger); }

.countdown-item span { font-size: 11px; text-transform: uppercase; color: var(--text-light); }

/* ---------- Wholesale CTA ---------- */
.wholesale-cta {
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.wholesale-cta h3 { font-size: 20px; margin: 0 0 8px; }

.wholesale-cta p { opacity: 0.8; margin: 0 0 16px; }
.wholesale-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.wholesale-benefit { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wholesale-benefit svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- Info grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.info-card svg { width: 32px; height: 32px; color: var(--primary); margin-bottom: 12px; }
.info-card h4 { font-size: 16px; margin: 0 0 8px; }
.info-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.info-card a { color: var(--primary); font-weight: 600; font-size: 13px; }

/* ---------- WhatsApp ---------- */
.whatsapp-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2);
  text-align: center;
}
.whatsapp-header {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  padding: 20px 16px;
}
.whatsapp-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.whatsapp-icon { width: 28px; height: 28px; }
.whatsapp-image { padding: 20px; background: #f0f9f4; display: flex; justify-content: center; }
.whatsapp-image img { max-width: 160px; border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.whatsapp-content { padding: 20px 16px; }
.whatsapp-content h3 { font-size: 18px; color: #128c7e; margin: 0 0 16px; }
.contact-info { color: #555; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.contact-info i { color: #25d366; margin-right: 6px; }

.whatsapp-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #25d366;
  color: var(--white);
  padding: 14px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0;                    /* icon-only on mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: all 0.2s;
}
.whatsapp-float svg { width: 24px; height: 24px; }


.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
.whatsapp-button:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-button img { width: 24px; height: 24px; }

/* View item button */
.view-item {
  position: relative;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #6366f1;
  background-color: transparent;
  border: 2px solid #6366f1;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.view-item:hover { background-color: #6366f1; color: #ffffff; }

.view-item:active { transform: translateY(0); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998; /* One level lower than our Header/Nav if needed */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;                     /* full screen on mobile */
  max-width: 420px;
  height: 100vh;      /* Full height of screen */
  background: var(--white);
  z-index: 9999;      /* HIGHER than footer and nav bar */
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0,0,0,0.2);
  overflow: hidden;    /* Prevents the whole drawer from scrolling */
  overflow-y: auto;
}

.cart-overlay.active + .cart-drawer,
.cart-drawer.active { transform: translateX(0); }
.cart-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 { font-size: 18px; margin: 0; }
.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.cart-close:hover { background: var(--bg); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; min-height: 0;
  scrollbar-width: thin;
  margin-bottom: 10px; /* Space before the buttons appear */
}

.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-light); }
.cart-empty svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.3; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-image {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-image svg { width: 30px; height: 30px; opacity: 0.4; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--primary); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cart-item-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 8px 0;
}
.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.cart-note { font-size: 12px; color: var(--text-light); margin-bottom: 12px; text-align: center; }
.cart-footer .btn { width: 100%; justify-content: center; }



/* ---------- Email modal ---------- */
.email-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
}
.email-modal-overlay.active { display: block; }
.email-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 410;
}
.email-modal.active { display: block; }
.email-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.email-modal-header h3 { font-size: 16px; margin: 0; }
.email-modal-body { padding: 20px; }
.email-form-field { margin-bottom: 14px; }
.email-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.email-form-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;                 /* prevents iOS zoom */
  outline: none;
  transition: border-color 0.2s;
}
.email-form-field input:focus { border-color: var(--primary); }
.email-modal-footer { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.email-modal-footer .btn { width: 100%; justify-content: center; margin: 0; }

/* ---------- Cart drawer actions: all buttons on the same size ----------
   Scoped class (it replaces .ven868-quadrant here on purpose: that class is
   redefined to 4 columns at min-width:1100px for the home grid and it was
   squeezing these buttons inside a 420px drawer). */
.cart-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;            /* every row is as tall as the tallest button */
  gap: 12px;
}
.cart-actions > div { display: flex; }
.cart-actions .btn {
  width: 100%;                    /* fill the cell -> identical width  */
  flex: 1 1 auto;
  min-height: 44px;               /* identical height, touch friendly  */
  margin: 0;                      /* no inline offset hacks            */
  padding: 10px 12px;
  font-size: 13px;
}
.cart-actions .btn svg { flex-shrink: 0; }
.btn-print { background: #4b5563; color: var(--white); }
.btn-print:hover { background: #374151; }
@media (max-width: 340px) {
  .cart-actions { grid-template-columns: 1fr; }
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;                      /* constrained on mobile */
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast.success { background: var(--primary); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px; /* Reduced gap for mobile fitting */
  margin-bottom: 40px;
  padding: 0 10px;
}


/* Brand Section Styling */
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo-icon { background: var(--primary); }

/* MOBILE FIX: Hide the long description paragraph on small screens
   so the 4 columns can actually fit side-by-side. */
.footer-brand p {
    font-size: 14px; opacity: 0.7; line-height: 1.6; margin-bottom: 16px;
}



.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 8px;
}
.footer-badge svg { width: 16px; height: 16px; }
.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
  color: var(--accent);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0.8; }
.footer-contact-item svg { width: 18px; height: 18px; opacity: 0.6; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

.footer-payments { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.payment-icon {
  background: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Image container ---------- */
.image-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
  align-items: center;
  background: var(--white);
}
.image-container img { width: 100%; height: 100%; object-fit: cover; }




/* --- Visibility Logic --- */
/* --- Styling for the new Mobile Bar --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px; /* Adjust height as needed */
  background: rgba(255, 255, 255, 0.8); /* White with slight transparency */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom); /* Important for iPhone notches */
  z-index: 9999;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.mobile-bottom-nav a {
  text-decoration: none;
  color: #406063;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.mobile-bottom-nav span {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Style for the "Active" or highlighted button (the Orders one in your example) */
.nav-item-active {
  background: linear-gradient(to bottom right, #006666, #005959);
  color: white !important;
  border-radius: 50%; /* Makes it rounded like your example */
  padding: 12px;
  height: fit-content;
  box-shadow: 0 4px 15px rgba(0,102,102,0.3);
  margin-bottom: 5px;
}


.footer-links a, .search-section input {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ------------------------------------------- */
/* Mobile Styles (Screens 600px wide and down) */
/* ------------------------------------------- */

@media (min-width: 600px)  {
 .ven868-grid { grid-template-columns: repeat(2, 1fr); }
 .main-content-wrapper { margin-top: -80px; }
 .quadrant-img { height: 100px; }
 .trust-grid { grid-template-columns: repeat(2, 1fr); }
 .category-card { flex-basis: 170px; padding: 24px 16px; }
 .category-card svg,
 .category-card img { width: 80px; height: 80px; }
 .chanpin-card { flex-direction: row; max-width: 90%; }
 .chanpin-image-side { height: auto; min-height: 300px; }
 .product-actions { flex-direction: row; }
 .whatsapp-float { padding: 14px 20px; border-radius: 50px; font-size: 14px; }
 .cart-drawer { width: 90%; }
 .toast-container { left: auto; right: 24px; top: 24px; }
}

/* ----------------------------- */
/* 1. Hide the standard footer on mobile (screens smaller than 768px) */

/* Mobile Styles (Screens < 768px) */
@media (max-width: 767px) {
    /* Requirement #1: Search Below Left & Right on Mobile */
    .header-container {
        flex-direction: column; /* Stack items vertically to ensure Search is below others */
        justify-content: flex-start;
        padding: 8px 12px;
    }
    .category-wrapper {
        position: relative;
        z-index: 1002;
    }
    /* Order ensures visual stacking from Top to Bottom */
    .left-section { order: 1; width: 100%; text-align: center; margin-bottom: 5px; }
    .right-section { order: 2; width: 100%; display: flex; justify-content: space-between; align-items: center; } /* Right section items stay side-by-side */
    .search-section {
        order: 3;
        width: 100%;
        margin-top: 5px;
        padding: 8px;
        background: #f2f2f2;
    }

    /* Requirement #4: Sticky Nav on Mobile */
    .main-nav {
        position: sticky;
        top: 100%; /* Push slightly below header to avoid overlap if needed, or keep 0 */
        z-index: 1003; /* Ensure it's above the header (Header is 1001) */
    }

    .nav-list {
        overflow-x: auto; /* Allow horizontal scroll for mobile nav items */
        white-space: nowrap;
    }
    .footer {
      display: none !important; /* Completely removes it from view */
    }
}



/* ----------------------------- */
/* Tablet & Desktop Start (>= 768px) */
/* Mobile Styles (Screens 768px wide and down) */
@media (min-width: 768px) {
 .top-bar { display: block; }
 body {  padding-top: 0;  padding-bottom: 0; }
 .logo { font-size: 20px; }
 .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    /* max-width: 100vw;
    overflow-x: hidden; */
 }
 .header-container .logo { font-size: 28px; letter-spacing: -1px; }
 .header-actions { gap: 8px; }
 .header-action { padding: 6px 8px; font-size: 12px; }
 .header-action span:first-of-type { font-size: 11px; }
 .header-action .label { display: inline; }
 /* .left-section { gap: 20px; order: 1; width: 50%; } */
 .left-section { order: 1; width: 25%; text-align: left; }
 .search-section {
    order: 2; /* Moves search section strictly below Left and Right */
    flex-grow: 1; /* Takes up remaining space between Left and Right */
    margin: 0 auto; /* Center it visually if needed, or rely on flex-grow */

    /* width: 100%; /* Takes up full width underneath */
    /* max-width: 600px;
    /* margin: 10px auto; */

 }
 /* .right-section { gap: 25px; order: 3; width: 50%; } */
 .right-section { order: 3; width: 25%; text-align: right; }

 .section-title { font-size: 24px; }
 .section-link { font-size: 14px; }
 .categories { margin-bottom: 48px; }

 .search-btn:hover { transform: scale(1.05); }
 .scroller-btn { display: flex; }
 .scroller-btn-left { left: -20px; }
 .scroller-btn-right { right: -20px; }

 .container { padding: 0 20px; }
 .page-container { padding-left: 24px; padding-right: 24px; }

 .cart-header { padding: 20px; }
 .cart-body { padding: 20px; }
 .cart-footer { padding: 20px; }

 .hero { padding: 30px 0 140px; }
 .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
 .hero h1 { font-size: 38px; }
 .hero p { font-size: 16px; }
 .hero-stats { flex-direction: row; gap: 32px; }
 .hero-stat strong { font-size: 24px; }

 .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; }
 .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

 .product-scroller-container { padding: 20px; }
 .product-scroller { gap: 16px; }
 .product-scroller .product-card { flex-basis: 240px; }

 .product-image { height: 200px; }
 .product3-card { padding: 15px; }
 .product3-image img { height: 200px; }

 .product3-name { font-size: 1.1rem; }
 .product-info2 { padding: 16px; }
 .product-name { font-size: 15px; }
 .product-info-text { font-size: 16px; line-height: 24px; }

 .promo-text { font-size: 28px; }
 .price-current { font-size: 20px; } .price-original { font-size: 14px; }

 .section { margin-bottom: 48px; }
 .offers-banner { padding: 32px; margin-bottom: 48px; }
 .offers-banner h2 { font-size: 28px; }
 .countdown { gap: 16px; }
 .countdown-item { padding: 12px 16px; min-width: 60px; }
 .countdown-item strong { font-size: 24px; }
 .wholesale-cta { grid-template-columns: 1fr auto; gap: 40px; padding: 40px; text-align: left; margin-bottom: 48px; }
 .wholesale-cta h3 { font-size: 24px; }
 .wholesale-benefits { gap: 24px; justify-content: flex-start; }
 .info-grid { gap: 24px; margin-bottom: 48px; }
 .info-card { padding: 24px; }
 .footer { padding: 60px 0 24px; margin-top: 60px; }
 .footer-bottom { flex-direction: row; text-align: left; }
 .footer-payments { gap: 12px; }
 .image-container { height: 200px; }
 /* Hide the Mobile Bottom Nav on Desktop (screens larger than 768px) */
 .mobile-bottom-nav { display: none !important;  }
 /* Adjusting Desktop Layouts */
 .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
 #mobileMenuBtn {
    display: block; /* Or inline-block depending on your layout */
    padding: 10px;   /* Adjust padding as needed */
    background: none; /* Ensure no weird background appears */
    border: none;     /* Remove border if necessary */
    cursor: pointer;
 }

  /* Optional: If you want to hide the category dropdown text
     and only show icons or similar behavior on mobile, do it here */
  .category-wrapper .category-dropdown li a i {
    margin-right: 5px;
  }

  .footer-brand p {
    display: none; /* Hides text to allow for the "Bar" look */
  }
  .footer h4 {
    font-size: 12px; /* Smaller headers for mobile bar */
    margin-bottom: 10px;
  }
  .footer-links li {
    margin-bottom: 5px;
  }
  .footer-links a {
    font-size: 11px; /* Smaller links for mobile bar */
  }
  .sidebar-container {
        display: none !important;
  }
  /* Make Product area take full width */
  .main-content-container {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        margin: 0 auto;
  }
  .main-nav {
        position: sticky;
        top: 0;
        z-index: 1003; /* Must be higher than Header's 1001 */
  }
  .nav-list {
        overflow-x: auto; /* Scrollable on large screens if needed, or keep fixed width */
  }
}

@media (hover: hover) and (min-width: 768px) {
  .btn-primary:hover { transform: translateY(-1px); }
  .view-item { padding: 16px 32px; font-size: 16px; }
  .view-item:hover { transform: translateY(-2px); }
}


@media (max-width: 768px) {
  .header-container { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 5px; padding: 8px 5px; }
  .left-section { width: auto; gap: 5px; box-sizing: border-box; }
  .right-section { width: auto; gap: 8px; box-sizing: border-box; }
  .logo { font-size: 20px; padding: 0; }
  .search-section { flex-grow: 1; flex-basis: 0; width: auto; box-sizing: border-box; margin: 0; order: 0; padding: 2px 10px; }
  .search-input { font-size: 14px; padding: 6px; }
  .search-btn { padding: 6px 10px; }
  .nav-icons .header-action span:last-of-type { display: none; }
  .nav-icons svg { width: 22px; height: 22px; }
  .user-btn { font-size: 18px; }
  .category-btn { font-size: 18px; padding: 2px; }
  .search-section form { width: 100%; box-sizing: border-box; }
  .main-nav { display: none; } /* Hide main nav by default on mobile */
  .main-nav.show-nav { display: block; }
  .category-dropdown { position: static; display: none; width: 100%; }
  .category-dropdown.show { display: block; }
  .ven868-grid { grid-template-columns: 1fr !important; }
  .product-grid2 { grid-template-columns: repeat(2, 1fr) !important; }
  .trust-bar { flex-direction: column; text-align: center; }
  .info-cards { flex-direction: column; }
  .featured-products { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ----------------------------- */
/* Mobile Styles (Screens 850px wide and down) */
/* ----------------------------- */

@media (min-width: 850px) {

  /* Shared Slider Layouts */
  .featured-product-slide,
  .featured2-product-slide {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    padding: 35px 45px 40px;
  }

  /* Shared Image Columns */
  .featured-image-col,
  .featured2-image-col {
    flex: 1;
    width: auto;
    min-height: 300px;
    max-height: 350px;
    padding: 20px;
  }

  .featured-image-col img,
  .featured2-image-col img {
    max-height: 280px;
  }

  /* Shared Info Columns */
  .featured-info-col,
  .featured2-info-col {
    flex: 1.2;
    width: auto;
    align-items: flex-start;
    text-align: left;
  }

  /* Shared Decorators & Actions */
  .featured-dots-decorator,
  .featured2-dots-decorator {
    justify-content: flex-start;
  }

  .featured-price-action,
  .featured2-price-action {
    flex-direction: row;
    gap: 25px;
    width: auto;
  }

  /* Shared Typography */
  .featured-title,
  .featured2-title {
    font-size: 2.1rem;
  }

  .featured-price,
  .featured2-price {
    font-size: 1.6rem;
  }
}

@media (hover: hover) and (min-width: 850px) {
  .featured-btn:hover,
  .featured2-btn:hover {
    transform: translateY(-2px);
  }
}


/* ----------------------------- */
/* Mobile Styles (Screens 900px wide and down) */
@media (min-width: 900px) {
  .delivery-box {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cccccc;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    margin-right: 8px;
  }
  .delivery-box:hover { border-color: #ffffff; color: #ffffff; }
  .delivery-box svg { width: 18px; height: 18px; color: #ffffff; }
  .delivery-box div { display: flex; flex-direction: column; line-height: 1.2; }
  .delivery-box div span:first-child { font-size: 11px; color: #aaaaaa; }
  .delivery-box div span:last-child { font-weight: bold; color: #ffffff; }
}

/* ----------------------------- */
/* Mobile Styles (Screens 1100px wide and down) */
@media (min-width: 1100px){
  .ven868-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .main-content-wrapper { margin-top: -140px; }
  .ven868-card { padding: 20px; min-height: 400px; }
  .ven868-card-title { font-size: 21px; }
  .ven868-quadrant { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------- */
/* Mobile Styles (Screens 1024px wide and down) */
@media (min-width: 1024px){
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .products-grid,
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .chanpin-info-side { padding: 25px; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Original desktop layout */
    gap: 40px;
  }
}

/* ----------------------------- */

@media (hover: hover) {
  .category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .price-tag:hover { transform: scale(1.05); }
  .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .product3-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
  .whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
  .btn-whatsapp:hover,
  .btn-email:hover { transform: translateY(-1px); }

}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

