/*
 Theme Name:   Emarket Child
 Template:     woodmart
*/

/* ==============================
   Desktop Header
============================== */
.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height:65px !important;
  padding: 0 20px !important;
  background: #1c2b36!important;
  border-bottom: 0px solid #e8e7e7 !important;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 9999 !important;
}

/* ===== Logo ===== */
.header-left img {
  width: 170px !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  padding: 6px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ===== Hover Effect (same as Login, Cart, More) ===== */
.header-left img:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* ===== Search Bar ===== */
.header-search { 
  flex: 1;
  max-width: 600px;
  margin: 0 25px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-search form {
  display: flex;
  align-items: center;
  width: 100% !important;
  height: 40px !important;
  border: 1px solid #ddd !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

.header-search input {
  flex: 1;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #fff !important;
  color: #000 !important;
}

.header-search button {
  width: 50px !important;
  border: none;
  background: #EFA746 !important;
  color: #000 !important;
  font-size: 16px !important;
  cursor: pointer;
}

.header-search button:hover {
  background: #EFA740 !important;
}

/* ===========================
   AJAX Search Dropdown Styling
=========================== */
#search-results {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 2000;
  padding: 0;
  margin: 0;
}

/* Each item */
#search-results li {
  border-bottom: 1px solid #f1f1f1;
}

#search-results li:last-child {
  border-bottom: none;
}

/* Link container */
#search-results li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.2s ease;
}

/* Hover effect */
#search-results li:hover {
  background: #f9f9f9;
}

/* Product image */
#search-results li img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}

/* Text wrapper */
#search-results li .result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Title */
#search-results li .name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Price */
#search-results li .price {
  font-size: 13px;
  font-weight: 600;
  color: #e53935;
}

/* Category */
#search-results li .category {
  font-size: 12px;
  color: #666;
}

/* "View All Results" link */
#search-results li a.view-all {
  justify-content: center;
  font-weight: 600;
  color: #2874f0;
}

#search-results li a.view-all:hover {
  background: #f0f0f0;
}
.search-suggestion a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111;
}

.search-suggestion img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}


/* =========================================================
   SEARCH SUGGESTION – FLIPKART STYLE TEXT HIERARCHY
========================================================= */

.search-suggestion a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
}

/* bra */
.search-term {
    font-weight: 400;
    color: #333;
}

/* the word "in" */
.search-in {
    font-weight: 400;
    color: #999;
}

/* Womens clothing */
.search-category {
    font-weight: 600;
    color: var(--wd-primary-color); /* your blue */
}

/* =========================================================
   SEARCH SUGGESTION – HIGHLIGHT CATEGORY CONTEXT (BLUE)
========================================================= */

/*
.search-suggestion a span {
    color: #2874f0;
    font-weight: 600;
}*/

/* ==============================
   Right Section (Cart, Login, More)
============================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-right a,
.login-menu > .login-link,
.header-more > a {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
}

.header-right a:hover,
.login-menu:hover > .login-link,
.header-more:hover > a {
  border: 1px solid #fff !important;
}

/* ==============================
   Login Dropdown
============================== */
.login-menu {
  position: relative;
}

.dropdown-arrow {
  font-size: 11px;
  transition: transform 0.3s;
}

.login-menu:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ==============================
   Login Dropdown (visibility + centering fix)
============================== */
.login-menu {
  position: relative;
}

.login-dropdown {
  position: absolute;
  top: 100% !important;
  left: 50% !important;
  transform: translate(-50%, 6px);
  width: 240px !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
  z-index: 10000 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, transform .15s;
  font-family: Arial, sans-serif;
}

.login-menu:hover .login-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}

/* Remove list bullets & padding inside dropdown */
.login-dropdown ul,
.login-dropdown li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Text & links inside dropdown */
.login-dropdown a,
.login-dropdown p,
.login-dropdown span {
  color: #000 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 8px 14px;
}

.login-dropdown a:hover {
  background: #f2f2f2;
}
/* --- Top: "New customer? | Sign Up" inline, centered, with separator & horizontal lines --- */
.login-dropdown .signup-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  position: relative;
}

/* Inline "New customer?" + "Sign Up" in login dropdown */
.inline-signup {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 4px 15px;
}

.inline-signup .new-customer {
  font-size: 14px;
  color: #555;
}

.inline-signup .signup-link {
  font-size: 14px;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.inline-signup .signup-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* horizontal line at top */
.login-dropdown .signup-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #eee;
}

/* horizontal line at bottom */
.login-dropdown .signup-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #eee;
}

/* text and link inside */
.login-dropdown .signup-row p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.login-dropdown .signup-row a {
  font-size: 13px;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  position: relative;
  padding-left: 10px;
}

/* vertical separator line before "Sign Up" */
.login-dropdown .signup-row a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #ccc;
}

/* hover effect */
.login-dropdown .signup-row a:hover {
  text-decoration: underline;
  color: #0056b3;
}
/* =========================================================
   LOGIN DROPDOWN – FINAL MARKETPLACE UX (MERGED)
========================================================= */

/* Wrapper */
.login-menu {
    position: relative;
}

/* Dropdown base */
.login-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    z-index: 99999;

    /* animation */
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

/* Show on hover */
.login-menu:hover .login-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown arrow */
.login-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 28px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

/* =========================================================
   GUEST (LOGIN / REGISTER)
========================================================= */

.login-dropdown .login-actions a {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

/*
.login-dropdown .login-btn {
    background: #0e2a3b;
    color: #ffffff;
}

.login-dropdown .register-btn {
    background: #ffb703;
    color: #000000;
}
*/
/* =========================================================
   LOGGED-IN LINKS
========================================================= */

.login-dropdown .account-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-dropdown .account-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #0e2a3b;
    font-weight: 500;
}

.login-dropdown .account-links a:hover {
    background: #f3f6f9;
}

.login-dropdown .logout a {
    color: #c62828;
    font-weight: 700;
}

/* Hide ONLY the dropdown box, not the trigger */
body.home .login-dropdown {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

/* Show dropdown on hover */
body.home .login-menu:hover .login-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================================
   HOMEPAGE – FORCE LOGIN TRIGGER VISIBILITY
========================================================= */

/* ALWAYS show Login / Register trigger */
body.home .login-menu > .login-link {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1003;
    position: relative;
}
/* =========================================================
   LOGIN MENU – NO DROPDOWN FOR GUESTS
========================================================= */

/* Disable hover dropdown if not logged in */
body:not(.logged-in) .login-menu:hover .login-dropdown {
    display: none !important;
}
/* =========================================================
   FORCE REMOVE LOGIN DROPDOWN FOR GUESTS (FINAL LOCK)
========================================================= */

/* Kill dropdown visibility completely for guests */
body:not(.logged-in) .login-dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Kill hover behavior for guests */
body:not(.logged-in) .login-menu:hover .login-dropdown {
    display: none !important;
}

/* Remove dropdown arrow for guests */
body:not(.logged-in) .login-link .dropdown-arrow {
    display: none !important;
}
/* =========================================================
   FINAL LOCK – REMOVE LOGIN DROPDOWN ON HOMEPAGE (GUEST)
========================================================= */

/* Homepage + Guest: remove dropdown arrow */
body.home:not(.logged-in) .login-link .dropdown-arrow,
body.home:not(.logged-in) .login-link i.fa-chevron-down {
    display: none !important;
}

/* Homepage + Guest: kill dropdown container completely */
body.home:not(.logged-in) .login-dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Homepage + Guest: disable hover behavior injected by Woodmart */
body.home:not(.logged-in) .login-menu:hover .login-dropdown {
    display: none !important;
}
/* =========================================================
   ACCOUNT DROPDOWN – FINAL POLISH
   (Move up + clean triangle arrow)
========================================================= */

/* 1️⃣ Move dropdown slightly UP */
.login-dropdown {
    top: calc(100% + 2px) !important; /* was ~10–12px */
}

/* 2️⃣ REMOVE the blue bar completely */
.login-dropdown::after,
.login-dropdown .dropdown-bar,
.login-dropdown .blue-bar {
    display: none !important;
}

/* 3️⃣ CLEAN BLUE TRIANGLE POINTER */
.login-dropdown::before {
    content: "";
    position: absolute;
    top: -16px!important;
    right: 32px; /* aligns under "Hi, Prince" */
    width: 0;
    height: 0;

    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1f3b4d; /* your header blue */
}

/* ==============================
   Flipkart-Style Pointer for Login Dropdown
============================== */
.login-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.15));
  z-index: 10001;
}

/*Optional: use brand blue instead of white*/
.login-dropdown::before {
  border-color: transparent transparent #000080 transparent;
}

/* === Clean Inline "New customer?  Sign Up" layout === */
.login-menu .login-dropdown .login-header.signup-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 15px !important;
  border-bottom: 1px solid #eee !important;
  gap: 12px !important;
}

.login-menu .login-dropdown .login-header.signup-inline .new-customer {
  font-size: 14px !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.login-menu .login-dropdown .login-header.signup-inline .signup-btn {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fb641b !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.2s ease-in-out !important;
}

.login-menu .login-dropdown .login-header.signup-inline .signup-btn:hover {
  text-decoration: underline !important;
  color: #e15b10 !important;
}

/* Subtle underline + glow on hover */
.login-menu .login-dropdown .login-header.signup-inline .signup-btn {
  position: relative;
  letter-spacing: 0.3px;
  transition: all 0.25s ease-in-out !important;
}

.login-menu .login-dropdown .login-header.signup-inline .signup-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fb641b;
  transition: width 0.3s ease-in-out;
}

.login-menu .login-dropdown .login-header.signup-inline .signup-btn:hover::after {
  width: 100%;
}

.login-menu .login-dropdown .login-header.signup-inline .signup-btn:hover {
  color: #e15b10 !important;
  text-shadow: 0 0 5px rgba(251, 100, 27, 0.3);
}

/* Keep layout tight and single line on smaller screens */
@media (max-width: 480px) {
  .login-menu .login-dropdown .login-header.signup-inline {
    padding: 6px 12px !important;
    gap: 8px !important;
  }

  .login-menu .login-dropdown .login-header.signup-inline .new-customer,
  .login-menu .login-dropdown .login-header.signup-inline .signup-btn {
    font-size: 13px !important;
  }
}

/* ==============================
   More Dropdown
============================== */
.header-more {
  position: relative;
}

.header-more .dropdown-menu {
  position: absolute;
  top: calc(100% + 5px) !important;
  right: 0 !important;
  min-width: 220px !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;
  z-index: 10000 !important;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s;
}

.header-more:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
}

/* visible text in "More" dropdown */
.header-more .dropdown-menu a {
  color: #000 !important;
  font-size: 14px;
  font-weight: 500;
  display: block;
  padding: 8px 14px;
  text-decoration: none;
}

.header-more .dropdown-menu a:hover {
  background: #f2f2f2;
}
/* ==============================
   Bottom Header (Categories Strip)
============================== */
.bottom-header {
  background: #e3e6e6 !important;
  border-top: 1px solid #e5e5e5 !important;
  padding: 20px 0 !important;
}

/* 🟡 NOTE: this just ensures the woodmart nav text is centered, safe */
.whb-header-bottom .wd-nav > li > a.woodmart-nav-link {
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   FIXED: BOTTOM HEADER IMAGE RESIZE (WOODMART)
========================================== */
.whb-header-bottom img.wd-nav-img {
  width: 70px !important;
  height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 3 auto !important;
  transition: all 0.3s ease;
  border-radius: 8px;
}
/* =========================================================
   BOTTOM HEADER CATEGORIES – FLIPKART STYLE HOVER
   Text turns blue + arrow rotates 180°
========================================================= */

/* Target ONLY bottom header category items */
.whb-header-bottom .wd-nav > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease;
}

/* Text hover color */
.whb-header-bottom .wd-nav > li.menu-item-has-children:hover > a {
    color: #2874f0 !important; /* Flipkart blue */
}

/* Arrow base style */
.whb-header-bottom
.wd-nav > li.menu-item-has-children > a .nav-arrow {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.3s ease, color 0.3s ease;
    color: inherit; /* inherit text color */
}

/* Rotate arrow on hover */
.whb-header-bottom
.wd-nav > li.menu-item-has-children:hover > a .nav-arrow {
    transform: rotate(180deg);
    color: #2874f0 !important;
}

/* Keep arrow rotated when dropdown is open */
.whb-header-bottom
.wd-nav > li.menu-item-has-children.current-menu-parent > a .nav-arrow,
.whb-header-bottom
.wd-nav > li.menu-item-has-children.opened > a .nav-arrow {
    transform: rotate(180deg);
    color: #2874f0 !important;
}
/* =========================================================
   BOTTOM HEADER – FORCE ROTATE DROPDOWN ARROW (WOODMART)
========================================================= */

/* Base arrow state */
.whb-header-bottom
.wd-nav > li.menu-item-has-children > a::after {
    display: inline-block !important;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: center;
}

/* Rotate arrow on hover */
.whb-header-bottom
.wd-nav > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #2874f0 !important; /* Flipkart blue */
}

/* Keep arrow rotated when menu is open */
.whb-header-bottom
.wd-nav > li.menu-item-has-children.opened > a::after,
.whb-header-bottom
.wd-nav > li.menu-item-has-children.current-menu-parent > a::after {
    transform: rotate(180deg);
    color: #2874f0 !important;
}
/* =========================================================
   BOTTOM HEADER – INCREASE DROPDOWN ARROW SIZE
========================================================= */

/* Increase arrow size */
.whb-header-bottom
.wd-nav > li.menu-item-has-children > a::after {
    font-size: 12px !important;   /* ← adjust: 13px–16px */
    margin-left: 6px;             /* spacing from text */
    margin-left: 2px; 
    line-height: 0;
   
}

/* Optional: slightly bolder arrow */
.whb-header-bottom
.wd-nav > li.menu-item-has-children > a::after {
    font-weight: 600;
}

/* =========================================================
   HOMEPAGE BOTTOM MEGA MENU – SAFE ELEMENTOR ALIGNMENT FIX
   (Does NOT break dropdown)
========================================================= */
body.home
.whb-header-bottom
.wd-dropdown-menu {
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 6px 12px rgba(0,0,0,0.12),
        0 12px 24px rgba(0,0,0,0.08);
}

/* Hover style */
body.home
.whb-header-bottom
.wd-dropdown-menu
.elementor-widget-container a:hover {
    background: #f5f8ff;
    color: #2874f0 !important;
}

/* Section headings (Audio, Cameras & Accessories) */
body.home
.whb-header-bottom
.wd-dropdown-menu
.elementor-widget-heading .elementor-heading-title {
    padding: 10px 22px 8px !important;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2874f0;
    border-bottom: 1px solid #eee;
}

/* Vertical dividers (Flipkart look) */
body.home
.whb-header-bottom
.wd-dropdown-menu
.elementor-column:not(:last-child) {
    border-right: 0px solid #f0f0f0;
}
/* =========================================================
   HOMEPAGE BOTTOM MEGA MENU – REMOVE DROPDOWN ARROWS ONLY
========================================================= */

/* Remove arrow icons inside dropdown columns */
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item-has-children > a::after,
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item-has-children > a::before {
    display: none !important;
    content: none !important;
}




/* =========================================================
   HOMEPAGE BOTTOM MEGA MENU – FULL-WIDTH HOVER + STICKY ACTIVE
========================================================= */

/* 1️⃣ Ensure list items stretch full column width */
body.home
.whb-header-bottom
.wd-dropdown-menu
.elementor-widget-container  {
    position: relative;
}

/* 2️⃣ Make links fill entire column width */
body.home
.whb-header-bottom
.wd-dropdown-menu
.elementor-widget-container  > a {
    display: block !important;
    width: 100% !important;
    padding: 10px 22px !important; /* left aligned like Flipkart */
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* 3️⃣ Full-width hover background */
body.home
.whb-header-bottom
.wd-dropdown-menu
.elementor-widget-container a:hover {
    background: #f5f8ff !important;
    color: #2874f0 !important;
    width: 100% !important;
    padding: 0px 0px !important; /* left aligned like Flipkart */
}

/* 4️⃣ Keep parent highlighted when its child submenu is open */
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item.menu-item-has-children:hover > a,
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item.menu-item-has-children:focus-within > a {
    background: #f5f8ff !important;
    color: #2874f0 !important;
    font-weight: 600;
}

/* 5️⃣ When hovering child column, keep parent highlighted */
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item.menu-item-has-children:hover,
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item.menu-item-has-children:hover > a {
    background: #f5f8ff !important;
}

/* 6️⃣ Prevent child submenu from covering parent highlight */
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-sub-menu {
    top: 0 !important;
}

/* 7️⃣ Smooth visual polish */
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item > a {
    transition: background 0.15s ease, color 0.15s ease;
}

/* =========================================================
   FIX: FULL-WIDTH HOVER BACKGROUND (EDGE-TO-EDGE)
   Homepage Bottom Mega Menu ONLY
========================================================= */

/* 1️⃣ Remove inner horizontal padding from parent column */
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-mega-menu-col,
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-mega-menu-col ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2️⃣ Force list items to span full column width */
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-mega-menu-col ul li {
    width: 100%;
    margin: 0 !important;
}

/* 3️⃣ Apply hover background to LI (not just <a>) */
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-mega-menu-col ul li:hover {
    background: #f5f8ff !important;
}

/* 4️⃣ Keep parent highlighted when child menu is open */
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item.menu-item-has-children:hover,
body.home
.whb-header-bottom
.wd-dropdown-menu
.menu-item.menu-item-has-children:focus-within {
    background: #f5f8ff !important;
}

/* 5️⃣ Link styling inside full-width hover */
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-mega-menu-col ul li > a {
    display: block;
    width: 100%;
    padding: 10px 22px !important;
    box-sizing: border-box;
    background: transparent !important;
}

/* 6️⃣ Active text color */
body.home
.whb-header-bottom
.wd-dropdown-menu
.wd-mega-menu-col ul li:hover > a {
    color: #2874f0 !important;
    font-weight: 600;
}
/* =========================================================
   FIX: PARENT COLUMN ITEMS CENTERED (REAL FIX)
   Target Woodmart flex UL – Homepage bottom menu only
========================================================= */

body.home
.whb-header-bottom
ul.wd-nav.wd-nav-vertical {
    align-items: flex-start !important; /* 🔑 THE KEY FIX */
}

/* Ensure text is left aligned */
body.home
.whb-header-bottom
ul.wd-nav.wd-nav-vertical > li {
    width: 100%;
    text-align: left;
}

/* ==============================
   Responsive
============================== */

/* 🟢 This hides your custom desktop header on mobile – KEEP */
@media (max-width: 991px) {
  .desktop-header {
    display: none !important;
  }
}

/* 🟡 This forces Woodmart header top & bottom to be visible everywhere.
   It is NOT what causes the double top header, so we leave it for now. */
.wd-header-top,
.wd-header-bottom {
  display: block !important;
}

/* Hide extra children */
.custom-sidebar ul.children li.hidden-child {
  display: none;
}

/* Highlight active category by li ID/class */
.custom-sidebar li.cat-item.current-cat > a {
  font-weight: bold;
  color: #ff6600 !important;
}

/* Show more button */
.custom-sidebar .show-more {
  cursor: pointer;
  color: #007cba !important;
  font-weight: bold;
}

/* Parent arrow style */
.custom-sidebar li.parent-category a .arrow {
  display: inline-block;
  margin-right: 5px;
  transition: color 0.3s ease;
}

/* Hover color matches show more */
.custom-sidebar li.parent-category a:hover .arrow,
.custom-sidebar .show-more:hover {
  color: #007cba !important;
}

/* ==============================
   Force-align "New customer? | Sign Up" section inside Login Dropdown
============================== */
.header-right .login-menu .login-dropdown .signup-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #333 !important;
  position: relative !important;
}

/* horizontal line above */
.header-right .login-menu .login-dropdown .signup-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ddd !important;
}

/* horizontal line below */
.header-right .login-menu .login-dropdown .signup-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ddd !important;
}

/* "New customer?" text */
.header-right .login-menu .login-dropdown .signup-row p {
  margin: 0 !important;
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* "Sign Up" link inline with vertical separator */
.header-right .login-menu .login-dropdown .signup-row a {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #007bff !important;
  text-decoration: none !important;
  position: relative !important;
  padding-left: 10px !important;
}

/* vertical separator before "Sign Up" */
.header-right .login-menu .login-dropdown .signup-row a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #ccc !important;
}

.header-right .login-menu .login-dropdown .signup-row a:hover {
  text-decoration: underline !important;
  color: #0056b3 !important;
}
/* ==============================
   Flipkart-Style View More Brands
============================== */
.widget_wc_product_brands {
  position: relative;
}

.widget_wc_product_brands ul li {
  list-style: none;
  margin: 4px 0;
}

.view-more-brands {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 6px 0;
  text-align: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.view-more-brands:hover {
  background: #e6e6e6;
}

/* ======================================
   Flipkart-Style Mobile Header (Visually Balanced)
====================================== */
.emarket-mobile-header {
  display: none;
  background: #1c2b36;
  color: #fff;
  border-bottom: 2px solid #e8e7e7;
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Layout */
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  position: relative;
  height: 56px;
}

/* ☰ Menu Icon (Flipkart-style) */
.mobile-menu-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 26px !important;
  line-height: 1 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* === Logo Balanced Size === */
.mobile-logo img {
  height: 36px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* ======================================
   Fix for Right Side Icons Visibility
====================================== */
.mobile-icons {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  z-index: 3 !important;
}

.mobile-icons .icon {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #ffffff !important;
  font-size: 20px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  position: relative;
}

.mobile-icons .icon i {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.mobile-icons .icon span {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* === Flipkart-style Download App Icon (Single SVG) === */
.app-download {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  cursor: pointer;
}

.app-download svg {
  stroke: #ffffff !important;
  transition: stroke 0.3s ease;
}

.app-download:hover svg {
  stroke: #00bfff !important;
}

/* Cart outline icon */
.mobile-icons .cart i {
  font-size: 23px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
}

/* Hover effect for all icons */
.mobile-icons .icon:hover,
.mobile-icons .icon:hover i,
.mobile-icons .icon:hover span {
  color: #00bfff !important;
}
/* =========================================================
   MOBILE HEADER – LOGIN BUTTON (MATCH DESKTOP UX)
========================================================= */
/* Make sure header shows only on mobile */
@media (max-width: 768px) {
  .emarket-mobile-header {
    display: block !important;
  }
}
@media (max-width: 767px) {

    .mobile-icons .icon.login {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
    }

    .mobile-icons .icon.login .login-text {
        white-space: nowrap;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
/* =========================================================
   MOBILE – TRUE STICKY HEADER (FIXED MODE)
========================================================= */
@media (max-width: 767px) {

    /* Normal state */
    .emarket-mobile-header {
        position: relative;
        width: 100%;
        transform: translateY(0);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
        z-index: 9999;
    }

    /* Sticky state */
    .emarket-mobile-header.is-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        background: #0e2a3b;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
        z-index: 999999;
    }

    /* Hide on scroll down */
    .emarket-mobile-header.hide-on-scroll {
        transform: translateY(-100%);
    }
}
/* ===============================
   Cart Count Badge (Flipkart-style)
=============================== */
.mobile-icons .cart {
  position: relative;
}

.mobile-icons .cart .cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff9800;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* ensure visibility on mobile */
@media (max-width: 768px) {
  .mobile-icons .cart .cart-count {
    display: inline-block !important;
  }
}

/* ======================================
   FIX: Alignment + White Box Issue on Shop/My Account Pages
====================================== */

/* Force entire topbar to keep uniform background and alignment */
.emarket-mobile-header .mobile-topbar {
  background: #0b0c45 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 14px !important;
  height: 56px !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove any white background or box from menu icon */
.emarket-mobile-header .mobile-menu-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ensure icons align perfectly center vertically */
.emarket-mobile-header .mobile-icons {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  height: 100% !important;
}

/* Prevent icons from wrapping or shifting */
.emarket-mobile-header .mobile-icons .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Force consistent icon size and color */
.emarket-mobile-header .mobile-icons svg,
.emarket-mobile-header .mobile-icons i {
  height: 22px !important;
  width: 22px !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Fix spacing between the logo and icons */
.emarket-mobile-header .mobile-logo {
  position: absolute !important;
  left: 35% !important;
  transform: translateX(-50%) !important;
}

.emarket-mobile-header .mobile-logo img {
  height: 34px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Remove any inherited Woodmart wrappers or styles */
.wd-header-mobile,
.whb-header-mobile,
.wd-tools-element,
.wd-header-mobile-nav {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* ------------------------------------------
   5. GENERAL CLEANUP – Remove unnecessary UI clutter
------------------------------------------ */
.wcfm_store_inquiry,
.wcfm_store_enquiry_button,
.wcfm_store_chat_button {
  display: none !important;
}

.wcfmmp-products-header,
.wcfmmp_products_header,
.wcfmmp-products-per-page,
.wcfmmp-view-mode,
.wcfmmp-view,
.wcfmmp-sort,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}


/* ===========================================
   MOBILE STORE SIDEBAR - FINAL RIGHT VERSION
=========================================== */

@media (min-width: 769px) {
  .mobile-store-sidebar-wrapper {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-store-sidebar-wrapper {
    position: relative;
    display: block;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 20;
  }

  /* Search Bar */
  .mobile-searchbar {
    margin-bottom: 8px;
  }

  .mobile-searchbar form {
    display: flex;
    background: #f1f1f1;
    border-radius: 25px;
    overflow: hidden;
  }

  .mobile-searchbar input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
  }

  .mobile-searchbar button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
  }

  /* Menu Button (above grid) */
  .mobile-sidebar-toggle {
    background: #007bff;
    color: #fff;
    border: none;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Sidebar Drawer */
  .mobile-store-sidebar {
    position: fixed;
    top: 0;
    right: -310px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
    transition: right 0.35s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
  }

  .mobile-store-sidebar.active {
    right: 0;
  }

  /* Background Overlay */
  body.sidebar-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
  }

  /* Header */
  .mobile-store-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #007bff;
    color: #fff;
    font-weight: 600;
  }

  /* Tabs (Vertical) */
  .vertical-tabs {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    border-bottom: 1px solid #eee;
  }

  .vertical-tabs li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    color: #333;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
  }

  .vertical-tabs li.active,
  .vertical-tabs li:hover {
    background: #007bff;
    color: #fff;
  }

  /* Tab Content */
  .tab-section {
    display: none;
  }

  .tab-section.active {
    display: block;
  }

  /* Scroll Effect */
  .scroll-fade::-webkit-scrollbar {
    width: 6px;
  }

  .scroll-fade::-webkit-scrollbar-thumb {
    background: rgba(160,160,160,0.6);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
  }

  .scroll-fade.scrolling::-webkit-scrollbar-thumb {
    opacity: 1;
  }

  .scroll-fade::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width:768px) {
  .mobile-store-sidebar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
  }
}

@media (max-width:768px) {
  .mobile-store-menu-area {
    display: block !important;
    margin-bottom: 15px;
    padding: 0 10px;
  }
}
/* ===============================
   Amazon-Style Sticky Store Bar
=============================== */
.store-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.store-menu-btn {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #222;
  padding: 6px;
  transition: background 0.2s;
}

.store-menu-btn:hover {
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
}

/* Search input inline */
.store-search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 4px 10px;
  background: #f7f7f7;
}

.store-search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.store-search-wrapper button {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
}

/* Only show this bar on mobile */
@media (min-width: 769px) {
  .store-sticky-bar {
    display: none;
  }
}

/* ===========================
   Mobile Sidebar Slide-in
=========================== */
.mobile-store-sidebar-wrapper {
  position: relative;
  z-index: 99999;
}

/* Sidebar itself (slides in) */
.mobile-store-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 8px rgba(0,0,0,0.15);
  overflow-y: auto;
  transition: right 0.4s ease;
  z-index: 100000;
}

/* Active state — slide in */
.mobile-store-sidebar.active {
  right: 0;
}

/* Overlay behind sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 99998;
}

.sidebar-overlay.active {
  display: block;
}

/* Sidebar header and close button */
.mobile-store-sidebar .sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.mobile-store-sidebar .close-sidebar {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
/* ================================================
   💡 Force Show "Follow" & "Following" Text on Mobile
=================================================== */
.wcfmmp_store_followers .add_followers,
.wcfmmp_store_followers .remove_followers {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  background-color: #00a3e0 !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* pseudo-text for Follow & Following */
.wcfmmp_store_followers .add_followers::after {
  content: " Follow" !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.wcfmmp_store_followers .remove_followers::after {
  content: " Following" !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.wcfmmp_store_followers .add_followers i,
.wcfmmp_store_followers .remove_followers i {
  margin-right: 4px !important;
}

.wcfmmp_store_followers {
  display: flex !important;
  margin-top: 8px !important;
}

/* ==========================================================
   1️⃣ BASE STRUCTURE – Woodmart Grid Stability
========================================================== */
body.woocommerce-account .wd-my-account-wrapper.wd-grid {
  --wd-col-lg: 12;
  --wd-gap-lg: 30px;
  --wd-gap-sm: 20px;
}

body.woocommerce-account .wd-my-account-sidebar {
  --wd-col-span-lg: 3;
  --wd-col-span-md: 12;
  min-width: 220px;
}

body.woocommerce-account .wd-my-account-content {
  --wd-col-span-lg: 9;
  --wd-col-span-md: 12;
}

body.woocommerce-account .wd-my-account-wrapper .wd-grid-col {
  width: auto !important;
}

/* ==========================================================
   2️⃣ DESKTOP – Sidebar Styling + Woodmart Divider Support
========================================================== */
@media (min-width: 769px) {

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 280px !important;
    max-width: 280px !important;
    position: static !important;
    z-index: auto !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07) !important;
    margin: 8px 0 !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 12px 14px !important;
    color: #444 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #fff7f2 !important;
    border: 1px solid #ff6600 !important;
    color: #ff6600 !important;
    font-weight: 600 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    padding: 35px 45px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: auto !important;
    width: calc(100% - 320px) !important;
  }

  body.woocommerce-account .wd-my-account-wrapper.wd-grid::before,
  body.woocommerce-account .wd-my-account-wrapper.wd-grid::after {
    content: none !important;
  }
}
@media (min-width: 769px) {
  body.woocommerce-account .wd-my-account-sidebar,
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    --wd-col-span-lg: 2.3;
    min-width: 280px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    --wd-col-span-lg: 9.7;
    max-width: 100% !important;
  }

  body.woocommerce-account table.my_account_orders td:last-child {
    white-space: nowrap !important;
  }
}

@media (min-width: 769px) {
  body.woocommerce-account .woocommerce-MyAccount-navigation h2,
  body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-title,
  body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-title h2 {
    display: inline-block !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================
   3️⃣ MOBILE – Full Width, Bottom Shadow Only
========================================================== */
@media (max-width: 768px) {

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.08) !important;
    clip-path: inset(0 0 -10px 0);
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 48% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 14px 10px !important;
    color: #333 !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #fff7f2 !important;
    border: 1px solid #ff6600 !important;
    color: #ff6600 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 7px !important;
    box-shadow: none !important;
    margin-top: 15px !important;
  }
}
/* ==========================================================
   4️⃣ CLEANUP – Simple and Safe
========================================================== */
body.woocommerce-account .woocommerce-MyAccount-content p:first-of-type {
  display: none !important;
}

body.woocommerce-account .wd-my-account-wrapper,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-navigation {
  box-shadow: none !important;
}

body.woocommerce-account .woocommerce {
  background: #fff !important;
  position: relative !important;
  z-index: 1 !important;
}

/* FOOTER SCROLL FIX */
body.woocommerce-account {
  overflow-x: hidden !important;
}

body.woocommerce-account .wd-my-account-wrapper,
body.woocommerce-account .woocommerce {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-navigation {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.woocommerce-account [style*="width: 100vw"],
body.woocommerce-account [style*="max-width: 100vw"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================
   FINAL CART ALIGNMENT FIX – CENTERED LAYOUT
========================================================== */
body.woocommerce-cart .main-page-wrapper,
body.woocommerce-cart .wd-page-content.main-page-wrapper,
body.woocommerce-cart main#main-content,
body.woocommerce-cart .content-layout-wrapper,
body.woocommerce-cart .wd-content-layout {
  display: block !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce {
  width: 100% !important;
  margin: 20px auto !important;
  padding: 0px 0px !important;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

body.woocommerce-cart .wd-grid-g,
body.woocommerce-cart .container,
body.woocommerce-cart .container-fluid,
body.woocommerce-cart .wd-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

html,
body {
  overflow-x: hidden !important;
}

body.woocommerce-cart .wd-page-title {
  margin: 0 auto !important;
  padding: 20px 0 !important;
  max-width: 1600px !important;
  text-align: center !important;
}

body.woocommerce-cart .widget-area,
body.woocommerce-cart .sidebar-container,
body.woocommerce-cart .wd-footer,
body.woocommerce-cart .wd-shop-sidebar,
body.woocommerce-cart .wd-page-sidebar {
  display: none !important;
}
/* Header Cart Count Badge */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: #ff5722;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  min-width: 15px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  position: relative;
  top: -5px;
}

/* Header Cart Count Badge – TopStore eMarket */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff6600;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 15px;
  text-align: center;
  pointer-events: none;
  transition: all 0.2s ease;
}

.cart-link:hover .cart-count {
  background: #e95500;
}

/* ===============================================
   FIX 2: Hide "Skip to navigation / main content"
=============================================== */
.screen-reader-text,
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  left: 0 !important;
  top: 0 !important;
  background: #fff !important;
  padding: 8px 15px !important;
  z-index: 9999 !important;
}

/* ==========================================================
   Fix Login Dropdown Alignment
========================================================== */
.login-menu .login-dropdown {
  top: 100% !important;
  margin-top: 8px !important;
  transform: none !important;
  z-index: 9999 !important;
}

.login-menu .login-dropdown::before {
  top: -8px !important;
}

.whb-header,
.header-wrapper {
  overflow: visible !important;
}

/* Hide sidebar debug info on Cart and Checkout pages */
body.woocommerce-cart .sidebar-info,
body.woocommerce-checkout .sidebar-info,
body.woocommerce-cart .sidebar_infos,
body.woocommerce-checkout .sidebar_infos {
  display: none !important;
}

/* Inline layout for 'New customer? Sign Up' */
.login-dropdown .signup-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #e6e6e6;
}

.login-dropdown .signup-inline .new-customer {
  font-size: 14px;
  color: #333;
}

.login-dropdown .signup-inline .signup-btn {
  background: #ff6a00;
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.login-dropdown .signup-inline .signup-btn:hover {
  background: #e55b00;
}
.login-dropdown .signup-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e6e6;
}

.login-dropdown .signup-inline .signup-link {
  background: #ffffff;
  color: #ff6a00 !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ff6a00;
  transition: 0.25s ease;
}

.login-dropdown .signup-inline .signup-link:hover {
  background: #ff6a00 !important;
  color: #ffffff !important;
}

/* Product Tabs Color */
.woocommerce-tabs .tabs li a {
  background-color: #f5a623;
}

/* Multivendor Buttons Normal Case */
.wcfmmp_product_multivendor_action_button,
.wcfmmp_vendor_store_action_button {
  text-transform: none !important;
}

.vendor_store_button:hover {
  background-color: #006c35 !important;
  color: #fff !important;
}

/* WooCommerce Orderby Dropdown Inline on Laptops */
@media (min-width: 1024px) {
  .woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .woocommerce-ordering select {
    width: auto;
  }
}

/* Dropdown Arrow Correction */
.wd-dropdown-menu.wd-design-default .menu-item-has-children > a:after {
  padding-left: 10px;
  color: #000;
}

/* Top Nav Hover Arrow Rotation */
.top-nav-only > li.menu-item-has-parent > a .nav-arrow {
  transition: transform .3s ease;
}

.top-nav-only > li.menu-item-has-parent:hover > a .nav-arrow {
  transform: rotate(180deg) !important;
}

/* Custom Badge */
.custom-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5722;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 9;
  text-transform: uppercase;
  font-weight: bold;
}

/* More Menu Dropdown Right-Aligned */
.more-menu .wd-dropdown {
  left: auto;
  right: 0;
}

/* Sidebar Category Behavior */
.custom-sidebar ul.children li.hidden-child {
  display: none;
}

.custom-sidebar li.active-category > a {
  font-weight: bold !important;
  color: #000 !important;
}

.custom-sidebar .show-more {
  cursor: pointer;
  color: #007cba;
  font-weight: bold;
}

.custom-sidebar li.parent-category a .arrow {
  display: inline-block;
  margin-right: 5px;
  transition: color .3s ease;
}

.custom-sidebar li.parent-category a:hover .arrow,
.custom-sidebar .show-more:hover {
  color: #007cba;
}

/* Hide Footer on Specific Page */
.page-id-19266 footer,
.page-id-19266 .site-footer {
  display: none !important;
}
/* Logo Responsiveness */
.site-logo img {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.site-logo {
  display: inline-block;
  max-width: 100%;
}

/* Center Logo on Mobile */
@media (max-width: 768px) {
  .site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ============================================================
   WOODMART FIX – Sticky Header + Dropdown Layers
============================================================ */

/* 🔴 CHANGED: Make sticky behaviour DESKTOP ONLY */
@media (min-width: 992px) {
  .whb-header[data-sticky="true"],
  .whb-general-header[data-sticky="true"],
  .whb-main-header[data-sticky="true"] {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #1c2b36 !important;
  }
}

/* Ensure parents don't block sticky (OK for all devices) */
header,
.wd-page-wrapper,
.website-wrapper {
  overflow: visible !important;
}

/* LOGIN DROPDOWN – universal header row */
.login-dropdown .login-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px 8px !important;
  border-bottom: 1px solid #eee !important;
  margin-bottom: 6px !important;
  gap: 10px !important;
}

.login-dropdown .new-customer {
  font-size: 14px !important;
  color: #444 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.login-dropdown .signup-btn {
  display: inline-block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #ff6a00 !important;
  padding: 6px 14px !important;
  border-radius: 5px !important;
  white-space: nowrap !important;
  transition: 0.25s ease !important;
}

.login-dropdown .signup-btn:hover {
  background: #e85d00 !important;
}

body.woocommerce-account .login-dropdown .login-header {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

body.woocommerce-account .login-dropdown .signup-btn {
  margin-left: auto !important;
}
/* ==========================================================
   1️⃣ BASE STRUCTURE – Woodmart Grid Stability
========================================================== */
body.woocommerce-account .wd-my-account-wrapper.wd-grid {
  --wd-col-lg: 12;
  --wd-gap-lg: 30px;
  --wd-gap-sm: 20px;
}

body.woocommerce-account .wd-my-account-sidebar {
  --wd-col-span-lg: 3;   /* desktop: sidebar = 3/12 */
  --wd-col-span-md: 12;  /* tablet/mobile: full width */
  min-width: 220px;
}

body.woocommerce-account .wd-my-account-content {
  --wd-col-span-lg: 9;   /* desktop: content = 9/12 */
  --wd-col-span-md: 12;  /* tablet/mobile: full width */
}

body.woocommerce-account .wd-my-account-wrapper .wd-grid-col {
  width: auto !important;
}

/* ==========================================================
   2️⃣ DESKTOP – Sidebar Styling + Woodmart Divider Support
========================================================== */
@media (min-width: 769px) {

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 280px !important;
    max-width: 280px !important;
    position: static !important;
    z-index: auto !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07) !important;
    margin: 8px 0 !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 12px 14px !important;
    color: #444 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #fff7f2 !important;
    border: 1px solid #ff6600 !important;
    color: #ff6600 !important;
    font-weight: 600 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    padding: 35px 45px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: auto !important;
    width: calc(100% - 320px) !important;
  }

  body.woocommerce-account .wd-my-account-wrapper.wd-grid::before,
  body.woocommerce-account .wd-my-account-wrapper.wd-grid::after {
    content: none !important;
  }
}
@media (min-width: 769px) {
  body.woocommerce-account .wd-my-account-sidebar,
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    --wd-col-span-lg: 2.3;
    min-width: 280px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    --wd-col-span-lg: 9.7;
    max-width: 100% !important;
  }

  body.woocommerce-account table.my_account_orders td:last-child {
    white-space: nowrap !important;
  }
}

@media (min-width: 769px) {
  body.woocommerce-account .woocommerce-MyAccount-navigation h2,
  body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-title,
  body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-title h2 {
    display: inline-block !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================
   3️⃣ MOBILE – Full Width, Bottom Shadow Only
========================================================== */
@media (max-width: 768px) {

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.08) !important;
    clip-path: inset(0 0 -10px 0);
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 48% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 14px 10px !important;
    color: #333 !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #fff7f2 !important;
    border: 1px solid #ff6600 !important;
    color: #ff6600 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 7px !important;
    box-shadow: none !important;
    margin-top: 15px !important;
  }
}
/* ==========================================================
   4️⃣ CLEANUP – Simple and Safe
========================================================== */
body.woocommerce-account .woocommerce-MyAccount-content p:first-of-type {
  display: none !important;
}

body.woocommerce-account .wd-my-account-wrapper,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-navigation {
  box-shadow: none !important;
}

body.woocommerce-account .woocommerce {
  background: #fff !important;
  position: relative !important;
  z-index: 1 !important;
}

/* FOOTER SCROLL FIX */
body.woocommerce-account {
  overflow-x: hidden !important;
}

body.woocommerce-account .wd-my-account-wrapper,
body.woocommerce-account .woocommerce {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-navigation {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.woocommerce-account [style*="width: 100vw"],
body.woocommerce-account [style*="max-width: 100vw"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================
   FINAL CART ALIGNMENT FIX – CENTERED LAYOUT
========================================================== */
body.woocommerce-cart .main-page-wrapper,
body.woocommerce-cart .wd-page-content.main-page-wrapper,
body.woocommerce-cart main#main-content,
body.woocommerce-cart .content-layout-wrapper,
body.woocommerce-cart .wd-content-layout {
  display: block !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce {
  width: 100% !important;
  margin: 20px auto !important;
  padding: 0px 0px !important;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

body.woocommerce-cart .wd-grid-g,
body.woocommerce-cart .container,
body.woocommerce-cart .container-fluid,
body.woocommerce-cart .wd-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

html,
body {
  overflow-x: hidden !important;
}

body.woocommerce-cart .wd-page-title {
  margin: 0 auto !important;
  padding: 20px 0 !important;
  max-width: 1600px !important;
  text-align: center !important;
}

body.woocommerce-cart .widget-area,
body.woocommerce-cart .sidebar-container,
body.woocommerce-cart .wd-footer,
body.woocommerce-cart .wd-shop-sidebar,
body.woocommerce-cart .wd-page-sidebar {
  display: none !important;
}
/* Header Cart Count Badge */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: #ff5722;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  min-width: 15px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  position: relative;
  top: -5px;
}

/* Header Cart Count Badge – TopStore eMarket */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff6600;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 15px;
  text-align: center;
  pointer-events: none;
  transition: all 0.2s ease;
}

.cart-link:hover .cart-count {
  background: #e95500;
}

/* ===============================================
   FIX 2: Hide "Skip to navigation / main content"
=============================================== */
.screen-reader-text,
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  left: 0 !important;
  top: 0 !important;
  background: #fff !important;
  padding: 8px 15px !important;
  z-index: 9999 !important;
}

/* ==========================================================
   Fix Login Dropdown Alignment
========================================================== */
.login-menu .login-dropdown {
  top: 100% !important;
  margin-top: 8px !important;
  transform: none !important;
  z-index: 9999 !important;
}

.login-menu .login-dropdown::before {
  top: -8px !important;
}

.whb-header,
.header-wrapper {
  overflow: visible !important;
}

/* Hide sidebar debug info on Cart and Checkout pages */
body.woocommerce-cart .sidebar-info,
body.woocommerce-checkout .sidebar-info,
body.woocommerce-cart .sidebar_infos,
body.woocommerce-checkout .sidebar_infos {
  display: none !important;
}

/* Inline layout for 'New customer? Sign Up' */
.login-dropdown .signup-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #e6e6e6;
}

.login-dropdown .signup-inline .new-customer {
  font-size: 14px;
  color: #333;
}

.login-dropdown .signup-inline .signup-btn {
  background: #ff6a00;
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.login-dropdown .signup-inline .signup-btn:hover {
  background: #e55b00;
}

/* Product Tabs Color */
.woocommerce-tabs .tabs li a {
  background-color: #f5a623;
}

/* Multivendor Buttons Normal Case */
.wcfmmp_product_multivendor_action_button,
.wcfmmp_vendor_store_action_button {
  text-transform: none !important;
}

.vendor_store_button:hover {
  background-color: #006c35 !important;
  color: #fff !important;
}

/* WooCommerce Orderby Dropdown Inline on Laptops */
@media (min-width: 1024px) {
  .woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .woocommerce-ordering select {
    width: auto;
  }
}

/* Dropdown Arrow Correction */
.wd-dropdown-menu.wd-design-default .menu-item-has-children > a:after {
  padding-left: 10px;
  color: #000;
}

/* Top Nav Hover Arrow Rotation */
.top-nav-only > li.menu-item-has-parent > a .nav-arrow {
  transition: transform .3s ease;
}

.top-nav-only > li.menu-item-has-parent:hover > a .nav-arrow {
  transform: rotate(180deg) !important;
}

/* Custom Badge */
.custom-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5722;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 9;
  text-transform: uppercase;
  font-weight: bold;
}

/* More Menu Dropdown Right-Aligned */
.more-menu .wd-dropdown {
  left: auto;
  right: 0;
}

/* Sidebar Category Behavior */
.custom-sidebar ul.children li.hidden-child {
  display: none;
}

.custom-sidebar li.active-category > a {
  font-weight: bold !important;
  color: #000 !important;
}

.custom-sidebar .show-more {
  cursor: pointer;
  color: #007cba;
  font-weight: bold;
}

.custom-sidebar li.parent-category a .arrow {
  display: inline-block;
  margin-right: 5px;
  transition: color .3s ease;
}

.custom-sidebar li.parent-category a:hover .arrow,
.custom-sidebar .show-more:hover {
  color: #007cba;
}

/* Hide Footer on Specific Page */
.page-id-19266 footer,
.page-id-19266 .site-footer {
  display: none !important;
}

/* =====================================================
   PRODUCT SELLERS PAGE – CLEAN GRID LAYOUT
===================================================== */

.topstore-sellers-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* Each seller row */
.topstore-sellers-page .seller-box {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
}

/* Seller name */
.topstore-sellers-page .seller-box strong {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Price column */
.topstore-sellers-page .seller-box .price,
.topstore-sellers-page .seller-box strong + br + strong {
    font-size: 16px;
    font-weight: 700;
    color: #ff6600;
    white-space: nowrap;
}

/* Buttons */
.topstore-sellers-page .seller-box a.button {
    min-width: 120px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}

/* Buy Now */
.topstore-sellers-page .button-buy {
    background: #ff6600;
    color: #fff;
}

/* Visit Store */
.topstore-sellers-page .button-store {
    background: #1e73be;
    color: #fff;
}

/* Hover */
.topstore-sellers-page .button-buy:hover {
    background: #e85a00;
}
.topstore-sellers-page .button-store:hover {
    background: #155a94;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
    .topstore-sellers-page .seller-box {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .topstore-sellers-page .seller-box a.button {
        width: 100%;
    }
}
/* =========================================================
   TOPSTORE – SEE OTHER SELLERS BUTTON (SINGLE PRODUCT)
========================================================= */

.topstore-see-sellers-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 6px;
    padding: 8px 14px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: #0e0e0e;
    background: rgba(255, 102, 0, 0.08);

    border: 1px solid rgba(255, 102, 0, 0.35);
    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover effect */
.topstore-see-sellers-btn:hover {
    background: #13389d;
    color: #fff;
    border-color: #ff6600;
}

/* Optional arrow icon (pure CSS) */
.topstore-see-sellers-btn::after {
    content: "›";
    font-size: 16px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.topstore-see-sellers-btn:hover::after {
    transform: translateX(3px);
}

/* ======================================
   AJAX SEARCH RESULTS – STYLING
====================================== */

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    display: none;
    z-index: 999999;
}

#search-results li {
    border-bottom: 1px solid #eee;
}

#search-results li:last-child {
    border-bottom: none;
}

#search-results a {
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: #222;
}

#search-results img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.sr-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.sr-price {
    font-size: 13px;
    color: #f57224;
}
/* =========================================================
   TOPSTORE – CLEAN MY ACCOUNT + LOGIN PAGES
   Hide category bar & footer
========================================================= */

/* 1️⃣ LOGIN / REGISTER (NOT LOGGED IN) */
body.woocommerce-edit-account:not(.logged-in) .whb-header-bottom,
body.woocommerce-edit-account:not(.logged-in) .wd-header-nav,
body.woocommerce-edit-account:not(.logged-in) .wd-nav {
    display: none !important;
}

/* 2️⃣ LOGGED-IN ACCOUNT PAGES */
body.woocommerce-edit-account.logged-in .whb-header-bottom,
body.woocommerce-edit-account.logged-in .wd-header-nav,
body.woocommerce-edit-account.logged-in .wd-nav {
    display: none !important;
}

/* 3️⃣ FOOTER – hide on ALL account states */
body.woocommerce-edit-account footer,
body.woocommerce-edit-account .wd-footer,
body.woocommerce-edit-account .footer-container,
body.woocommerce-account .site-footer {
    display: none !important;
}

/* 4️⃣ Remove extra spacing */
body.woocommerce-edit-account #content,
body.woocommerce-account .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* ============================================================
   TABLET – HEADER BOTTOM CATEGORY STRIP (ONE LINE + SCROLL)
   Selector-proof version
============================================================ */
@media (min-width:768px) and (max-width:1024px){

  /* the NAV wrapper (scroll container) */
  .whb-header-bottom nav.wd-header-secondary-nav{
    display:block !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    white-space:nowrap !important;
  }

  /* the UL that holds items */
  .whb-header-bottom nav.wd-header-secondary-nav > ul{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:26px !important;                 /* adjust to show ~6.3 items */
    padding:14px 18px !important;        /* TOP padding control here */
    margin:0 !important;
    white-space:nowrap !important;
  }

  /* LI items never shrink/wrap */
  .whb-header-bottom nav.wd-header-secondary-nav > ul > li{
    flex:0 0 auto !important;
    white-space:nowrap !important;
  }

  /* links: icon above, text row under */
  .whb-header-bottom nav.wd-header-secondary-nav > ul > li > a{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    line-height:1.15 !important;
  }

  /* FORCE dropdown arrow inline (never below) */
  .whb-header-bottom nav.wd-header-secondary-nav > ul > li.menu-item-has-children > a:after{
    position:static !important;
    display:inline-block !important;
    margin-left:6px !important;
    transform:translateY(1px) !important;
    vertical-align:middle !important;
  }

  /* hide scrollbar but keep scroll */
  .whb-header-bottom nav.wd-header-secondary-nav::-webkit-scrollbar{ display:none; }
  .whb-header-bottom nav.wd-header-secondary-nav{ scrollbar-width:none; }
}
/* ============================================================
   MOBILE – HIDE CATEGORY STRIP
   ============================================================ */
@media (max-width: 767px) {

    /* Hide header bottom category strip */
    .whb-header-bottom {
        display: none !important;
    }

    /* If category strip is inside a specific nav */
    nav.wd-header-secondary-nav {
        display: none !important;
    }

}
/* =========================================================
   DESKTOP – TRUE STICKY HEADER (FIXED MODE – SAME AS TABLET)
========================================================= */
@media (min-width: 1025px) {

    /* Normal state */
    #emarket-desktop-header.desktop-header {
        position: relative;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        transform: translateY(0);
    }

    /* Sticky state */
    #emarket-desktop-header.desktop-header.is-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999999;
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Hide on scroll down */
    /*
    #emarket-desktop-header.desktop-header.hide-on-scroll {
        transform: translateY(-110%);
    }
*/
    /* ✅ Push page content down only when sticky is active */
    body.desktop-header-offset {
        padding-top: 80px; /* adjust once */
    }
}
/* =========================================================
   FINAL STICKY PRODUCT IMAGE – CLEAN & CORRECT
   (JS SYNCED • NO JUMP • NO GROW • AMAZON-LIKE)
========================================================= */

@media (min-width: 1025px) {

  /* ---------------------------------------------
     1) SAFETY: ALLOW STICKY TO WORK
  --------------------------------------------- */
  body.single-product,
  body.single-product .wd-page-content,
  body.single-product .elementor-section,
  body.single-product .elementor-container,
  body.single-product .elementor-column {
    overflow: visible !important;
  }

  /* ---------------------------------------------
     2) STICKY CONTAINER (LOCKED & STABLE)
  --------------------------------------------- */
  body.single-product .wd-sticky-container-lg {
    position: sticky !important;
    top: var(--product-sticky-top, 0px) !important; /* ✅ FIXED */
    align-self: flex-start;
    z-index: 30;

    margin:0px !important;
    padding: 0 !important;
    max-height: none !important;

    /* 🔒 CRITICAL: prevents grow/shrink on scroll */
    width: 100%;
    will-change: transform;
  }

  /* ---------------------------------------------
     3) DO NOT FORCE WIDTH ON CHILDREN
  --------------------------------------------- */
  body.single-product .wd-sticky-container-lg {
    transform: none !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box;
  }

  /* ---------------------------------------------
     4) RESTORE GALLERY & LOCK SIZE (NO GROW)
  --------------------------------------------- */
  body.single-product .woocommerce-product-gallery,
  body.single-product .wd-single-gallery {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  body.single-product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transform: none !important;
  }

  /* ---------------------------------------------
     5) FIX SALE BADGE POSITION
  --------------------------------------------- */
  body.single-product .onsale {
    left: 10px !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
  }

  /* ---------------------------------------------
     6) PREVENT WOODMART INLINE JS FROM OVERRIDING
  --------------------------------------------- */
  body.single-product .wd-sticky-container-lg[style] {
    top: var(--product-sticky-top, 0px) !important;
    left: auto !important;
    width: 100% !important;
  }

}
/* =========================================================
   TABLET STICKY PRODUCT IMAGE
   (768–1024 ONLY)
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  body.single-product,
  body.single-product .wd-page-content,
  body.single-product .elementor-section,
  body.single-product .elementor-container,
  body.single-product .elementor-column {
    overflow: visible !important;
  }

  body.single-product .wd-sticky-container-lg {
    position: sticky !important;
    top: var(--tablet-product-sticky-top,0px) !important;
    align-self: flex-start;
    z-index: 25;

    margin:0 auto !important;
    padding: 0 !important;

    width: 100%;
    max-width: 100%;
    transform: none !important;
  }

  /* Gallery sizing – slightly larger than desktop */
  body.single-product .woocommerce-product-gallery,
  body.single-product .wd-single-gallery {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  body.single-product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Sale badge */
  body.single-product .onsale {
    top: 8px !important;
    left: 8px !important;
  }

}
@media (min-width: 768px) and (max-width: 1024px) {

  body.single-product .wd-sticky-container-lg {
    top: calc(
      var(--tablet-product-sticky-top, 0px)
      + env(safe-area-inset-top, 0px)
      + 12px
    ) !important;

    padding-top: 8px; /* visual alignment under header */
  }

}

/* =========================================================
   TABLET – KILL ALL WOODMART HEADERS (FINAL)
   Keep ONLY custom tablet header
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  /* ❌ Kill WoodMart MAIN header */
  body .whb-header,
  body .whb-header-bottom,
  body .whb-header-top,
  body .whb-header-middle,
  body .wd-header,
  body .wd-header-nav,
  body .wd-header-bottom,
  body .wd-header-clone,
  body .wd-sticky-header,
  body .wd-sticky-nav {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* ❌ Kill WoodMart tablet-specific header */
  body .whb-header.whb-hidden-sm,
  body .whb-header.whb-hidden-lg {
    display: none !important;
  }

  /* ❌ Kill cloned sticky headers */
  body .whb-sticky-header,
  body .whb-sticky-shadow {
    display: none !important;
  }

  /* ✅ KEEP YOUR CUSTOM TABLET HEADER */
  body .emarket-tablet-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 999999;
  }

}
/* =========================================================
   TABLET – CATEGORY STRIP
   Show ONLY on Homepage
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  /* ❌ HIDE CATEGORY STRIP EVERYWHERE ON TABLET */
  body .wd-header-cats,
  body .wd-nav-product-cat,
  body .wd-header-categories,
  body .whb-header-bottom,
  body .emarket-tablet-category-strip {
    display: none !important;
  }

  /* ✅ SHOW CATEGORY STRIP ONLY ON HOMEPAGE */
  body.home .wd-header-cats,
  body.home .wd-nav-product-cat,
  body.home .wd-header-categories,
  body.home .whb-header-bottom,
  body.home .emarket-tablet-category-strip {
    display: block !important;
  }

}
/* =========================================================
   MOBILE STICKY ADD TO CART – COLOR FORCE OVERRIDE
========================================================= */
@media (max-width: 767px) {

  body.single-product {
    padding-bottom: 95px !important;
  }

  body.single-product .mobile-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    gap: 12px;

    padding: 12px;
    background: #ffffff;

    border-top: 1px solid #eee;
    box-shadow: 0 -6px 15px rgba(0,0,0,0.1);

    z-index: 999999;
  }

  body.single-product .mobile-sticky-cart button {
    flex: 1;
    height: 56px !important;

    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px;

    border-radius: 10px !important;
    border: none !important;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-transform: uppercase;
    box-shadow: none !important;
  }

  /* ADD TO CART — DEEP ORANGE */
  body.single-product .mobile-sticky-cart .mobile-add-to-cart {
    background-color: #ff9800 !important;
    color: #ffffff !important;
  }

  body.single-product .mobile-sticky-cart .mobile-add-to-cart::before {
    content: "🛒";
    font-size: 16px;
  }

  /* BUY NOW — BRIGHT ORANGE */
  body.single-product .mobile-sticky-cart .mobile-buy-now {
    background-color: #ff5722 !important;
    color: #ffffff !important;
  }

  body.single-product .mobile-sticky-cart .mobile-buy-now::before {
    content: "⚡";
    font-size: 16px;
  }

  body.single-product .mobile-sticky-cart button:active {
    transform: scale(0.97);
  }
}
body.single-product .mobile-sticky-cart {
    border-bottom: 2px solid #e5e5e5 !important; /* grey separator */
    margin-bottom: env(safe-area-inset-bottom, 1px)!important;
  }

/* =========================================================
   HIDE ADD TO CART BUTTON (MOBILE) – KEEP VARIATIONS
========================================================= */
@media (max-width: 767px) {

  /* KEEP the cart form visible */
  body.single-product form.cart {
    display: block !important;
  }

  /* Hide ONLY the add-to-cart action area */
  body.single-product .woocommerce-variation-add-to-cart,
  body.single-product .single_add_to_cart_button {
    display: none !important;
  }

}

/* =========================================================
   WOODMART SORT BY – FLIPKART EXACT (FINAL FIX)
========================================================= */

/* Layout */
form.woocommerce-ordering-list {
    display: flex;
    align-items: center;
}

form.woocommerce-ordering-list > ul {
    display: flex !important;
    gap: 20px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------------------------------------------------------
   DEFAULT LINKS (BLACK)
--------------------------------------------------------- */
form.woocommerce-ordering-list.wd-style-underline
> ul > li > a {
    color: #000 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.25s ease;
}

/* Underline hidden by default */
form.woocommerce-ordering-list.wd-style-underline
> ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #2874f0; /* Flipkart blue */
    transition: width 0.25s ease;
}

/* ---------------------------------------------------------
   HOVER EFFECT (BLUE)
--------------------------------------------------------- */
form.woocommerce-ordering-list.wd-style-underline
> ul > li > a:hover {
    color: #2874f0 !important;
}

form.woocommerce-ordering-list.wd-style-underline
> ul > li > a:hover::after {
    width: 100%;
}

/* ---------------------------------------------------------
   ACTIVE / SELECTED (THE REAL CLASS)
--------------------------------------------------------- */
form.woocommerce-ordering-list.wd-style-underline
> ul > li > a.selected-order {
    color: #2874f0 !important;
    font-weight: 600 !important;
}

form.woocommerce-ordering-list.wd-style-underline
> ul > li > a.selected-order::after {
    width: 100% !important;
}
/* =========================================================
   SHOP PRODUCT COUNT STYLE (FLIPKART LOOK)
========================================================= */

.topstore-product-count {
    margin: 6px 0 10px;
    font-size: 14px;
    color: #555;
}

.topstore-product-count .count-text {
    font-weight: 500;
}

/* =========================================================
   SHOP SIDEBAR – BASE STYLING (FLIPKART STYLE)
========================================================= */


/* ================= BRAND FILTER UI ================= */

.brand-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.brand-search-wrap input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    font-size: 13px;
}

.brand-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

.brand-divider {
    border-bottom: 1px solid #eee;
    margin: 10px 0;
}

.shop-brand-filter label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    cursor: pointer;
}

.shop-brand-filter li {
    margin-bottom: 6px;
}

.shop-brand-filter .count {
    font-size: 12px;
    color: #777;
}

.brand-show-more {
    background: none;
    border: none;
    color: #2874f0;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
}
/* =========================================================
   HIDE DEFAULT WOODMART / WC BRANDS DROPDOWN
========================================================= */

.shop-sidebar
.wd-widget-product-brands,
.shop-sidebar
.woocommerce-widget-layered-nav-dropdown {
    display: none !important;
}
/* =========================================================
   ELEMENTOR SHOP ARCHIVE – HIDE DEFAULT BRAND WIDGET
========================================================= */

/* Hide default WooCommerce Brands widget */
.elementor-widget-container
.woocommerce_widget_brand_nav,
.elementor-widget-container
.wd-widget.widget_layered_nav {
    display: none !important;
}

/* =========================================================
   TOPSTORE – CART ADDRESS CLEANUP (SINGLE ADDRESS UX)
========================================================= */

/* Hide repeated shipping address blocks in cart */
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .shipping .woocommerce-shipping-destination,
.woocommerce-cart .shipping td p,
.woocommerce-cart .shipping th p {
    display: none !important;
}

/* Hide package-based shipping rows completely */
.woocommerce-cart .shipping,
.woocommerce-cart tr.shipping {
    display: none !important;
}
.ts-delivery-address {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}
/* Single delivery address block in cart totals */
.ts-cart-shipping-address {
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.4;
}
/* =========================================================
   TOPSTORE – CHECKOUT SHIPPING REVIEW CLEANUP (SAFE)
========================================================= */

/* Hide per-package shipping rows ONLY in order review */
.woocommerce-checkout-review-order-table tr.shipping {
    display: none !important;
}

/* Hide shipping method labels (Free shipping, etc.) */
.woocommerce-checkout-review-order-table .woocommerce-shipping-methods,
.woocommerce-checkout-review-order-table .shipping-methods {
    display: none !important;
}

/* =========================================================
   TOPSTORE – CHECKOUT "YOUR ORDER" PREMIUM UI
========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 24px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Section title */
body.woocommerce-checkout #order_review_heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Product rows */
body.woocommerce-checkout .shop_table .cart_item {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
}

/* Product name */
body.woocommerce-checkout .shop_table .product-name {
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

/* Store name (vendor) */
body.woocommerce-checkout .shop_table .product-name a,
body.woocommerce-checkout .shop_table .product-name span {
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
}

/* Subtotal rows */
body.woocommerce-checkout .shop_table tfoot th {
    font-weight: 500;
    color: #6b7280;
}

/* Delivery row emphasis */
body.woocommerce-checkout .shop_table tfoot tr.shipping td,
body.woocommerce-checkout .shop_table tfoot tr.shipping th {
    color: #0f172a;
    font-weight: 600;
}

/* TOTAL row – strong emphasis */
body.woocommerce-checkout .shop_table tfoot tr.order-total {
    background: #f8fafc;
    border-radius: 10px;
}

body.woocommerce-checkout .shop_table tfoot tr.order-total th,
body.woocommerce-checkout .shop_table tfoot tr.order-total td {
    font-size: 20px;
    font-weight: 800;
    color: #ea580c;
    padding-top: 16px;
}

/* Estimated delivery note */
body.woocommerce-checkout .estimated-delivery,
body.woocommerce-checkout .delivery-estimate {
    margin-top: 14px;
    padding: 10px 14px;
    background: #ecfeff;
    border-left: 4px solid #06b6d4;
    border-radius: 8px;
    font-size: 13px;
    color: #075985;
}

/* Payment section spacing */
body.woocommerce-checkout #payment {
    margin-top: 20px;
}

/* Place order button – bold & confident */
body.woocommerce-checkout #place_order {
    background: #f97316;
    font-size: 17px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
}

body.woocommerce-checkout #place_order:hover {
    background: #ea580c;
}
/* =========================================================
   TOPSTORE – CHECKOUT ORDER CARD CLEAN TOP
========================================================= */

/* REMOVE decorative scallop / wave */
body.woocommerce-checkout .woocommerce-checkout-review-order::before,
body.woocommerce-checkout .woocommerce-checkout-review-order::after {
    display: none !important;
    content: none !important;
}

/* Clean top edge */
body.woocommerce-checkout .woocommerce-checkout-review-order {
    border-radius: 14px;
    margin-top: 24px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Slight lift from page */
body.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #ffffff;
    position: relative;
}

/* Optional: tighten heading spacing */
body.woocommerce-checkout #order_review_heading {
    margin-top: 0;
    padding-top: 0;
}


/* =========================================================
   TOPSTORE – PREMIUM MARKETPLACE GRID (FIXED)
========================================================= */

/* 1️⃣ PRODUCT CARD – NATURAL HEIGHT (NO SHRINK) */
.products .product {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ✅ KEY FIX */
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    height: auto;
}

/* Hover */
.products .product:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transform: translateY(-3px);
}

/* 2️⃣ IMAGE – LOCKED AREA */
.products .product .product-element-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    flex: 0 0 auto; /* ✅ DO NOT SHRINK */
}

/* Image */
.products .product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3️⃣ CONTENT MUST FLOW */
.products .product-element-bottom {
    flex: 0 0 auto;
}

/* 4️⃣ TITLE */
.products .product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 10px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5️⃣ PRICE */
.products .price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6a00;
}

.products .price del {
    font-size: 13px;
    color: #999;
}

/* 6️⃣ STORE NAME – PUSH TO BOTTOM SAFELY */
.product-store,
.wcfmmp_sold_by_container {
    font-size: 12px;
    color: #666;
    margin-top: 8px; /* ❌ NOT auto anymore */
}

/* =========================================================
   TOPSTORE – INLINE DISCOUNT (PREMIUM • GREEN • CLEAN)
========================================================= */

/* 1️⃣ Hide discount badge on image */
.product-labels,
.onsale {
    display: none !important;
}

/* 2️⃣ Price block – stacked layout (price then discount) */
.products .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: nowrap;
}

/* 3️⃣ Green discount badge (trusted savings look) */
.topstore-inline-discount {
    font-size: 12px;
    font-weight: 700;
    color: #1b8f3c; /* trusted green */
    background: rgba(27, 143, 60, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    width: fit-content;
}

/* 4️⃣ Old price spacing */
.products .price del {
    margin-bottom: 2px;
}

/* =========================================================
   TOPSTORE – INLINE DISCOUNT (FIXED • GREEN • FLIPKART STYLE)
========================================================= */

/* 1️⃣ Hide discount badge on image ONLY */
.product-labels,
.onsale {
    display: none !important;
}

/* 2️⃣ PRICE BLOCK – STACKED (price then discount) */
.products .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* 3️⃣ GREEN DISCOUNT BADGE */
.topstore-inline-discount {
    font-size: 12px;
    font-weight: 700;
    color: #1b8f3c;
    background: rgba(27, 143, 60, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    width: fit-content;
}

/* 4️⃣ Old price spacing */
.products .price del {
    margin-bottom: 2px;
}
/* =========================================================
   TOPSTORE – INLINE DISCOUNT (FIXED • GREEN • FLIPKART STYLE)
========================================================= */

/* 1️⃣ Hide discount badge on image ONLY */
.product-labels,
.onsale {
    display: none !important;
}

/* 2️⃣ PRICE BLOCK – STACKED (price then discount) */
.products .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* 3️⃣ GREEN DISCOUNT BADGE */
.topstore-inline-discount {
    font-size: 12px;
    font-weight: 700;
    color: #1b8f3c;
    background: rgba(27, 143, 60, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    width: fit-content;
}

/* 4️⃣ Old price spacing */
.products .price del {
    margin-bottom: 2px;
}

/* =========================================================
   FLIPKART-STYLE HOVER (SAFE VERSION)
========================================================= */

/* DO NOT hide product-element-bottom (very important!) */

/* Soft card lift */
.products .product {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.products .product:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transform: translateY(-3px);
}

/* Fade-in action icons (wishlist / quick view only) */
.products .wd-wishlist-btn,
.products .quick-view {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.2s ease;
}

.products .product:hover .wd-wishlist-btn,
.products .product:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

/* Disable heavy bottom overlay without killing content */
.products .hover-content {
    background: transparent !important;
    box-shadow: none !important;
}
/* =========================================================
   TOPSTORE – MOBILE CART & CHECKOUT (UNSQUEEZE FIX)
========================================================= */

@media (max-width: 767px) {

    /* 1️⃣ Page stays full width */
    body.woocommerce-cart main#main-content,
    body.woocommerce-checkout main#main-content {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2️⃣ ONE consistent mobile gutter (same as Billing) */
    body.woocommerce-cart .woocommerce,
    body.woocommerce-checkout .woocommerce {
        width: 100%;
        padding: 0 8px !important;
        box-sizing: border-box;
    }

    /* 3️⃣ REMOVE card squeezing on cart */
    body.woocommerce-cart .cart-content-wrapper,
    body.woocommerce-cart .woocommerce-cart-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    /* 4️⃣ REMOVE card squeezing on checkout order review */
    body.woocommerce-checkout .checkout-order-review,
    body.woocommerce-checkout #order_review {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

}
/* =========================================================
   TOPSTORE – MOBILE CART PAGE HEADER (PREMIUM SLIM)
========================================================= */

@media (max-width: 767px) {

    /* 1️⃣ Full-width page title wrapper */
    body.woocommerce-cart .wd-page-title,
    body.woocommerce-cart .page-title {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background-size: cover;
    }

    /* 2️⃣ Reduce header height */
    body.woocommerce-cart .wd-page-title-inner {
        min-height: 60px !important;   /* try 50–70px */
        padding: 12px 14px !important;
        display: flex;
        align-items: center;
    }

    /* 3️⃣ Title text – premium look */
    body.woocommerce-cart .wd-page-title-inner h1,
    body.woocommerce-cart .page-title h1 {
        font-size: 18px !important;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin: 0 !important;
        line-height: 1.2;
    }

    /* 4️⃣ Remove extra spacing below header */
    body.woocommerce-cart .main-page-wrapper {
        padding-top: 8px !important;
    }
}
/* =========================================================
   TOPSTORE – REMOVE TALL PRODUCT CONTENT BLOCK
   (STOP EQUAL-HEIGHT STRETCHING)
========================================================= */

/* 1️⃣ Kill equal-height forcing */
.products .product,
.products .product-wrapper {
    height: auto !important;
    min-height: unset !important;
    align-self: flex-start !important;
}

/* 2️⃣ Let content hug the image */
.products .product-element-bottom {
    flex-grow: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* 3️⃣ Remove fake spacing between elements */
.products .product-element-bottom > * {
    margin-bottom: 4px !important;
}

/* 4️⃣ Tighten title & meta */
.products .product-title {
    margin-bottom: 2px !important;
    line-height: 1.2;
}

.products .price {
    margin-top: 2px !important;
}

/* 5️⃣ Ratings & store compact */
.products .star-rating,
.products .product-store {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}
/* ============================================================
   FIX CHILD THEME OVERRIDES — PRODUCT IMAGES
   Restores Woodmart default behavior on shop pages
=============================================================== */

/* Reset any forced heights from child theme */
.products img,
.wd-product img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Remove forced aspect ratios */
.product-element-top {
    aspect-ratio: auto !important;
}
/* =====================================================
   FLIPKART / AMAZON GRID — SAFE FOR WOODMART HOVER
   (COMPACT DESKTOP + MOBILE)
   ===================================================== */

/* 1️⃣ IMAGE AREA — FIXED HEIGHT */
.archive .product-element-top,
.woocommerce-shop .product-element-top {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Center image without cropping */
.archive .product-element-top img,
.woocommerce-shop .product-element-top img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 2️⃣ CONTENT AREA — TIGHT & UNIFORM */
.archive .product-element-bottom,
.woocommerce-shop .product-element-bottom {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;      /* ⬇ reduced */
    row-gap: 3px;            /* ⬇ reduced */
    transition: transform .12s ease;
}

/* 🎯 VERY SUBTLE CONTENT MOTION */
.archive .product-wrapper:hover .product-element-bottom,
.woocommerce-shop .product-wrapper:hover .product-element-bottom {
    transform: translateY(-2px);
}

/* 4️⃣ REDUCE CONTENT SPACING (GLOBAL FIX) */
.wd-product-header { 
    margin-bottom: 2px !important; 
    line-height: 1.3;
}

.wd-product-cats { 
    margin-bottom: 2px !important; 
    line-height: 1.25;
}

.wrap-price { 
    margin-bottom: 3px !important; 
    line-height: 1.3;
}

/* 5️⃣ FOOTER STAYS AT BOTTOM */
.wd-product-footer {
    margin-top: auto;
    padding-top: 4px;        /* ⬇ reduced */
}

/* 6️⃣ WISHLIST ALWAYS VISIBLE */
.product-wrapper .wd-wishlist-btn {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* 🚫 PREVENT IMAGE FROM MOVING ON HOVER */
.archive .product-wrapper:hover .product-element-top,
.woocommerce-shop .product-wrapper:hover .product-element-top {
    transform: none !important;
}

/* =====================================================
   MOBILE — VERTICAL DIVIDER BETWEEN 2 PRODUCTS
   (SHOP + CATEGORY PAGES)
===================================================== */
@media (max-width: 767px) {

    /* Ensure grid items behave correctly */
    .woocommerce-shop .wd-product,
    .archive .wd-product {
        position: relative;
    }

    /* Add divider ONLY to left product in each row */
    .woocommerce-shop .wd-product:nth-child(odd)::after,
    .archive .wd-product:nth-child(odd)::after {
        content: "";
        position: absolute;
        top: 12px;
        bottom: 12px;
        right: 0;
        width: 1px;
        background: #eee; /* subtle, premium */
        pointer-events: none;
    }

    /* Safety: remove divider on full-width layouts */
    .wd-grid-col-1 .wd-product::after {
        display: none;
    }
}
/* =====================================================
   WOODMART — MOBILE SORT (woocommerce-ordering-list) SCROLL
===================================================== */
@media (max-width: 767px){

  /* allow scrolling area */
  form.woocommerce-ordering-list.wd-ordering-mb-icon{
    overflow: visible !important;
  }

  /* the real horizontal row */
  form.woocommerce-ordering-list.wd-ordering-mb-icon > ul{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 12px;
    scrollbar-width: none; /* Firefox */
  }

  /* hide scrollbar (Chrome) */
  form.woocommerce-ordering-list.wd-ordering-mb-icon > ul::-webkit-scrollbar{
    display: none;
  }

  /* prevent items from shrinking / wrapping */
  form.woocommerce-ordering-list.wd-ordering-mb-icon > ul > li{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  form.woocommerce-ordering-list.wd-ordering-mb-icon > ul > li > a{
    display: inline-flex !important;
    white-space: nowrap !important;
  }
}
/* =====================================================
   MOBILE — ARCHIVE / CATEGORY
   FORCE CONTENT TO STICK TO IMAGE
===================================================== */
@media (max-width: 767px) {

    /* 🔴 Target REAL product container used on archives */
    body.archive .wd-product,
    body.product-category .wd-product {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-height: unset !important;
    }

    /* 🔽 Reduce image height */
    body.archive .wd-product .product-element-top,
    body.product-category .wd-product .product-element-top {
        height: 200px !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 🧲 HARD-LOCK content right under image */
    body.archive .wd-product .product-element-bottom,
    body.product-category .wd-product .product-element-bottom {
        margin-top: 0 !important;
        padding-top: 4px !important;
        flex-grow: 0 !important;
    }

    /* Kill any auto spacing Woodmart adds */
    body.archive .wd-product > * {
        margin-bottom: 0 !important;
    }
}
/* =====================================================
   TOPSTORE — INLINE % OFF STYLE
===================================================== */
.ts-discount-inline {
    font-size: 12px;
    font-weight: 600;
    color: #388e3c; /* Flipkart green */
    margin-left: 6px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .ts-discount-inline {
        font-size: 11px;
    }
}
/* =====================================================
   TOPSTORE — HOT DEAL BELOW PRODUCT TITLE (SAFE)
===================================================== */

/* Ensure product content stacks cleanly */
.wd-product .product-element-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Product title spacing */
.wd-product .product-title {
    margin-bottom: 4px !important;
    width: 100%;
}

/* HOT DEAL badge — below title */
.wd-product .ts-hot-deal-inline {
    order: 2;                     /* 🔥 forces below title */
    display: inline-block;
    background: #ff5722;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 4px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Ensure meta text follows after badge */
.wd-product .product-categories,
.wd-product .woocommerce-product-details__short-description {
    order: 3;
}

/* Mobile fine-tuning */
@media (max-width: 767px) {
    .wd-product .ts-hot-deal-inline {
        font-size: 10px;
        margin: 3px 0 5px;
    }
}
/* ===================================================== 
   TOPSTORE — HOT DEAL (SINGLE PRODUCT | FINAL)
   Stable • Woodmart-safe • Elementor-safe
===================================================== */

.single-product .ts-hot-deal-single {
    display: block;                /* force new line */
    width: fit-content;
    background: #ff5722;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 6px 0 10px;             /* space above price */
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

/* Ensure price always starts below badge */
.single-product .price {
    margin-top: 6px;
}

/* Mobile fine-tuning */
@media (max-width: 767px) {
    .single-product .ts-hot-deal-single {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
}

/* =====================================================
   REMOVE DEFAULT WOODMART MOBILE SEARCH (DARK BAR)
===================================================== */

.wd-mobile-search,
.mobile-search,
.whb-search,
.whb-header-search,
.searchform,
.search-style-default {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
/* =====================================================
   TOPSTORE — SINGLE PRODUCT IMAGE SIZE CONTROL
===================================================== */

/* Limit image container width */
.single-product .woocommerce-product-gallery {
    max-width: 420px;   /* 🔥 adjust this (380–480 is ideal) */
    margin: 0 auto;
}

/* Control the image itself */
.single-product .woocommerce-product-gallery__image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile override */
@media (max-width: 768px) {
    .single-product .woocommerce-product-gallery {
        max-width: 100%;
    }
}


/* ======================================
   MOBILE HEADER — LOGIN & CART (CLEANED)
====================================== */

/* Header background */
.emarket-mobile-header,
.mobile-topbar {
    background: linear-gradient(180deg, #0b0f4a 0%, #090c3d 100%);
}

/* Icons wrapper */
.mobile-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Login & Cart links */
.mobile-icons a {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 500;
    color: #ffffff !important;
    opacity: 0.95;
}

/* Cart link positioning */
.mobile-cart-link,
.mobile-icons a:last-child {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;

    min-width: 18px;
    height: 18px;

    background: linear-gradient(135deg, #ff3b3b, #ff7a00);
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 2px solid #0b0f4a;
    box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
/* ============================================================
   TOPSTORE – PREMIUM SIZE BOXES (FINAL • OVERRIDE SAFE)
   Works with WoodMart TEXT size swatches
============================================================ */

/* HARD OVERRIDE target */
.wd-swatches-product[data-id="pa_size"] 
.wd-swatch.wd-text {
    min-width: 72px !important;
    height: 44px !important;

    padding: 0 18px !important;
    border-radius: 10px !important;

    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
    transition: all 0.22s ease !important;

    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
}

/* Hover – premium lift */
.wd-swatches-product[data-id="pa_size"] 
.wd-swatch.wd-text:hover {
    border-color: #111827 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18) !important;
}

/* Selected size */
.wd-swatches-product[data-id="pa_size"] 
.wd-swatch.wd-text[aria-checked="true"] {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;

    box-shadow: 0 14px 30px rgba(0,0,0,0.30) !important;
}

/* Disabled size */
.wd-swatches-product[data-id="pa_size"] 
.wd-swatch.wd-text.wd-disabled,
.wd-swatches-product[data-id="pa_size"] 
.wd-swatch.wd-text[aria-disabled="true"] {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;

    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Spacing between size options */
.wd-swatches-product[data-id="pa_size"] {
    gap: 12px !important;
}

/* Kill WoodMart pseudo bg */
.wd-swatches-product[data-id="pa_size"] 
.wd-swatch::before {
    display: none !important;
}
/* =========================================================
   TOPSTORE – HIDE VARIABLE PRICE RANGE
========================================================= */
.single-product .price.price-range,
.single-product .price del + ins,
.single-product .price > span:not(ins):not(del) {
    display: none !important;
}


/* =====================================================
   TOPSTORE — CHECKOUT BILLING (2 COLUMNS ONLY)
   All fields side-by-side
===================================================== */

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Force EVERY field to stay in column layout */
.woocommerce-checkout .form-row,
.woocommerce-checkout .form-row-wide,
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    grid-column: span 1 !important;
    width: 100% !important;
}

/* Inputs fit perfectly */
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100% !important;
    box-sizing: border-box;
}

/* =====================================================
   TOPSTORE — REMOVE ADDRESS LINE 2 (CLEAN CHECKOUT)
===================================================== */

/* Hide Address line 2 completely */
.woocommerce-checkout #billing_address_2_field {
    display: none !important;
}
/* =====================================================
   TOPSTORE — COUNTRY FIELD VISUAL FIX (FINAL & SAFE)
   Always shows ONE Zambia box
===================================================== */

/* Wrapper */
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* Country box (works for span OR strong OR text) */
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Hide internal inline elements to avoid double text */
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper > * {
    display: none !important;
}

/* Inject visible text safely */
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper::before {
    content: "Zambia";
    display: block;
}

/* Grid alignment */
.woocommerce-checkout #billing_country_field {
    grid-column: span 1;
}
/* =====================================================
   TOPSTORE — REMOVE COMPANY NAME FIELD
   Clean two-column alignment
===================================================== */

/* Hide Company name field completely */
.woocommerce-checkout #billing_company_field {
    display: none !important;
}
/* =====================================================
   TOPSTORE — PAYMENT METHODS POLISH (CORRECTED)
   Green text only, no background blocks
===================================================== */

/* Tighten spacing between payment methods */
.woocommerce-checkout .wc_payment_method {
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* Bring radio button closer to label */
.woocommerce-checkout .wc_payment_method > label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Reduce gap before payment content */
.woocommerce-checkout .payment_box {
    margin-top: 4px !important;
    padding-top: 4px !important;
}

/* 🔒 Pay securely text – GREEN, NO BACKGROUND */
.woocommerce-checkout
.wc_payment_method.payment_method_airtel_money
.payment_box p:first-child {
    background: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    color: #1ea84a !important; /* secure green */
    font-weight: 600;
    font-size: 14px;
}

/* Remove any leftover box styling */
.woocommerce-checkout .payment_box {
    box-shadow: none !important;
    border: none !important;
}

/* =====================================================
   TOPSTORE — FIX AIRTEL INPUT COLOR
   Keep inputs normal (black)
===================================================== */

/* Force Airtel Money input text & placeholder to normal */
.woocommerce-checkout
.wc_payment_method.payment_method_airtel_money
input,
.woocommerce-checkout
.wc_payment_method.payment_method_airtel_money
input::placeholder {
    color: #222 !important;
}

/* =====================================================
   TOPSTORE — FIX PAYMENT RADIO POSITION AFTER GRID
===================================================== */

/* ⛔ Stop grid from affecting payment section */
.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul,
.woocommerce-checkout #payment li {
    display: block !important;
}

/* Restore normal WooCommerce radio flow */
.woocommerce-checkout #payment .wc_payment_method {
    position: relative;
    padding-left: 28px !important;
}

/* Put radio back behind label */
.woocommerce-checkout #payment .wc_payment_method input[type="radio"] {
    position: absolute !important;
    left: 0;
    top: 6px;
    margin: 0 !important;
}

/* Normal label positioning */
.woocommerce-checkout #payment .wc_payment_method > label {
    display: inline-block !important;
    padding-left: 0 !important;
}

/* Payment box stays below label */
.woocommerce-checkout #payment .payment_box {
    margin-left: 0 !important;
}
/* =========================================================
   TOPSTORE – FIX VARIATION ATTRIBUTES (MOBILE)
========================================================= */

@media (max-width: 768px) {

    /* Ensure variation wrappers are visible */
    .products .product .variations,
    .products .product .wd-swatches,
    .products .product .wd-attribute-wrap,
    .products .product .swatch-control {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Break out of hover-only containers */
    .products .product .hover-content,
    .products .product .product-footer {
        display: block !important;
    }

    /* Prevent clipping */
    .products .product,
    .products .product-wrapper {
        overflow: visible !important;
    }

    /* Layout: swatches under title */
    .products .product .wd-swatches {
        margin-top: 6px;
        gap: 6px;
        flex-wrap: wrap;
    }

    /* Size swatches */
    .products .product .wd-swatch {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Color swatches */
    .products .product .wd-swatch-color {
        width: 22px;
        height: 22px;
        border-radius: 50%;
    }
}

/* =========================================================
   TOPSTORE – MOBILE SWATCH TOOLTIP (DESKTOP-STYLE)
========================================================= */

@media (max-width: 767px) {

  .wd-swatch {
    position: relative;
    overflow: visible !important;
  }

  .wd-swatch.is-mobile-selected::before {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 7px;
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
  }

  .wd-swatch.is-mobile-selected::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
    z-index: 999;
    pointer-events: none;
  }

}
/* =========================================================
   TOPSTORE – MOBILE: REMOVE INLINE COLOR VALUE
========================================================= */

@media (max-width: 767px) {

  /* Hide ONLY the inline selected color value */
  table.variations th.label .wd-attr-selected {
    display: none !important;
  }

}
/* =========================================================
   TOPSTORE — THANK YOU PAGE
   FIX: 2-COLUMN ORDER DETAILS (WOODMART COMPATIBLE)
========================================================= */

@media (max-width: 768px) {

  /* Parent container (Woodmart order overview) */
  .woocommerce-order-received .woocommerce-order-overview,
  .woocommerce-checkout .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin-top: 20px !important;
  }

  /* Each order detail card */
  .woocommerce-order-received .woocommerce-order-overview > *,
  .woocommerce-checkout .woocommerce-order-overview > * {
    margin: 0 !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    background: #fff !important;
    text-align: center !important;
  }

  /* Label text (Order number, Date, etc.) */
  .woocommerce-order-overview__label {
    font-size: 13px !important;
    opacity: .75 !important;
    margin-bottom: 6px !important;
    display: block !important;
  }

  /* Value text */
  .woocommerce-order-overview__value,
  .woocommerce-order-overview strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    display: block !important;
  }

}

/* Extra small devices → single column */
@media (max-width: 420px) {
  .woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   TOPSTORE — THANK YOU PAGE
   REMOVE "ACTIONS / SUPPORT" ROW (SAFE)
========================================================= */

.woocommerce-order-received .shop_table tfoot tr:last-child {
    display: none !important;
}
