/* ----------------------------------------
   STICKY HEADER
----------------------------------------- */
:root { --header-height: 120px; }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body {
    padding-top: var(--header-height);
}

.main-header * {
    overflow: visible !important;
}

/* ----------------------------------------
   TOP HEADER STRUCTURE
----------------------------------------- */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 25px;
    background: white;
    position: relative;
}

/* LEFT: LOGO + SLOGAN */
.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-logo {
    height: 48px;
}

.slogan {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-preview-box {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  z-index: 1000;
  display: none;
}

.cart-icon-wrapper:hover .cart-preview-box {
  display: block;
}

.preview-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.preview-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.preview-info {
  flex: 1;
}

.preview-title {
  font-size: 14px;
  font-weight: 600;
}

.preview-meta {
  font-size: 13px;
  color: #555;
}

.preview-total {
  font-weight: 600;
  margin-top: 10px;
  text-align: right;
}

.preview-btn {
  display: block;
  margin-top: 12px;
  padding: 10px;
  background: #fb641b;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.preview-empty {
  font-size: 14px;
  color: #777;
}

/* ----------------------------------------
   CENTER REGION: STORE + PHONE + SEARCH
----------------------------------------- */
.center-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.vtslogo {
      height: 40px;
      width: auto;
    }
/* Store + Phone Items */
.header-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-item .material-icons-outlined {
    font-size: 20px;
    color: #b2043a;
}

/* SEARCH BAR */
.joy-search {
    display: flex;
    align-items: center;
    border: 1.5px solid #b2043a;
    border-radius: 4px;
    overflow: hidden;
    width: 350px;
    height: 38px;
    background: #fff;
}

.joy-search input {
    flex: 1;
    padding: 8px 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.joy-search button {
    background: #b2043a;
    border: none;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

/* ----------------------------------------
   RIGHT SIDE ICONS
----------------------------------------- */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Country Box */
.country-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-box img {
    width: 22px;
}

.header-icon {
    font-size: 20px;
    cursor: pointer;
    color: #222;
}

/* ----------------------------------------
   DIVIDER
----------------------------------------- */
.header-divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    opacity: 1;
}

/* ----------------------------------------
   BOTTOM NAV MENU
----------------------------------------- */
.bottom-nav {
    display: flex;
    justify-content: center;   /* ⭐ Centers the menu */
    align-items: center;
    gap: 45px;
    padding: 12px 25px;
    background-color: #D8CFDO;
    border-bottom: 1px solid #ddd;
    font-family: sans-serif;   /* ⭐ Apply sans-serif */
}

.bottom-nav a {
    color: #444;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    font-family: inherit;      /* ⭐ Inherit sans-serif */
}

.bottom-nav a:hover {
    color: #A60023;
}


/* ----------------------------------------
   MEGA MENU
----------------------------------------- */
.nav-item {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
	left: 50%; /* anchor to center of nav item */
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1400px;
    background: white;
    border-top: 2px solid #bbb;
    padding: 30px 60px;
    display: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    z-index: 9999;
}

.mega-parent:hover .mega-menu {
    display: flex;
}

.mega-column {
    flex: 1;
    min-width: 220px;
}

.mega-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mega-underline {
    width: 40px;
    height: 2px;
    background: #000000;
    margin-bottom: 15px;
}

.mega-column a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #333 !important;
}

.mega-column a:hover {
    color: #A60023 !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .center-wrapper {
        position: static;
        transform: none;
        flex-direction: column;
    }

    .joy-search {
        width: 100%;
    }

    .bottom-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
.cart-icon-wrapper { position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e60023;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}
.login-dropdown {
  position: relative;
  display: inline-block;
}

.login-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #222;
  font-weight: 500;
}

.login-label {
  font-weight: 600;
}

.login-arrow {
  font-size: 12px;
  margin-top: 2px;
}

.login-dropdown:hover .login-menu {
  display: block;
}

.login-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 999;
  padding: 10px 0;
}

.login-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.login-menu a:hover {
  background: #f5f5f5;
}

.login-menu i {
  font-size: 16px;
  color: #b2043a;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.signup-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.signup-banner strong {
  color: #007bff;
  font-weight: 600;
}

.signup-banner:hover {
  background: #f5f5f5;
}

.login-divider {
  height: 1px;
  background: #ddd;
  margin: 6px 0;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #d9534f;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ----------------------------------------
   ✅ MOBILE HEADER
----------------------------------------- */
.mobile-header {
    display: none;
    background: #fff;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999999;
    transition: box-shadow 0.3s ease;
}

.mobile-header i {
    font-size: 22px;
    color: #333;
}

.mobile-logo img {
    height: 40px;
}
.mobile-vtslogo {
  height: 40px;
  width: auto;
  max-width: 100px;   /* ✅ prevents overflow */
  object-fit: contain;
  vertical-align: middle;
  display: block;     /* ✅ ensures flex respects sizing */
}


/* ✅ Remove button styles from icons */
.mobile-menu-btn,
.mobile-search-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 22px;
  color: #333;
  outline: none;
}

/* ✅ Cart Icon + Count */
.mobile-cart {
    position: relative;
}

.mobile-cart i {
    font-size: 22px;
}

.mobile-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e60023;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* ✅ Shadow on scroll */
.mobile-header.scrolled {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ✅ Fullscreen Search Panel */
.mobile-search-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1000000;
  overflow-y: auto;
  animation: slideDown 0.3s ease forwards;
  box-sizing: border-box; /* ✅ Prevent overflow */
}

/* ✅ Search Bar Row */
.search-bar {
  width: 100%;               /* ✅ Prevent overflow */
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;    /* ✅ Prevent padding overflow */
}

/* ✅ Back Arrow */
.back-arrow {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  margin-right: 10px;
  padding: 0;
}

/* ✅ Input Wrapper */
.search-input-wrapper {
  flex: 1;
  position: relative;
  max-width: 90%;           /* ✅ Prevent overflow */
  box-sizing: border-box;
}

/* ✅ Search Input */
.search-input-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 36px; /* ✅ Space for icon */
  font-size: 14px;
  border: 1.5px solid #b2043a;
  border-radius: 4px;
  box-sizing: border-box;      /* ✅ Prevent overflow */
  display: block;
}

/* ✅ Search Icon Inside Input */
.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999;
}

/* ✅ Sections */
.search-section {
  padding: 16px;
  box-sizing: border-box;
}

.search-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ✅ Popular Search Tags */
.search-tags span {
  display: inline-block;
  background: #f5f5f5;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
}

/* ✅ Trending Products Grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trending-grid img {
  width: 100%;
  border-radius: 6px;
}

/* ✅ Slide Animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------
   ✅ MOBILE MENU OVERLAY
----------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
    transition: left 0.3s ease;
}

.mobile-menu.open {
    left: 0;
}

/* TOP BAR */
.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
}

/* MENU SECTIONS */
.mobile-menu-section {
    margin-bottom: 25px;
}

.mobile-menu-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mobile-menu-section a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu-section a i {
    margin-right: 10px;
}

/* DROPDOWN */
.mobile-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.submenu {
    display: none;
    padding-left: 10px;
}

.submenu h5 {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
}

.submenu a {
    padding: 8px 0;
    display: block;
    font-size: 15px;
}

/* ----------------------------------------
   ✅ SHOW ONLY ON MOBILE
----------------------------------------- */
@media (max-width: 768px) {

    /* HIDE DESKTOP HEADER */
    .desktop-only {
        display: none !important;
    }
    body {
        padding-top: 0 !important;
	}
	
    .top-header.desktop-only,
    .bottom-nav.desktop-only {
        display: none !important;
    }

    /* SHOW MOBILE HEADER */
    .mobile-header {
        display: flex;
    }

    .mobile-left,
    .mobile-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }
}



