/* =================================
  GLOBAL STYLES & RESET
  =================================
*/
:root {
    --font-family: 'Inter', sans-serif;
    --primary-color: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FFF7ED;
    --header-font: 'Inter', sans-serif;
  --header-primary: #F97316;
  --header-primary-dark: #EA580C;
  --header-primary-light: #FFF7ED;
  --header-bg: #ffffff;
  --header-border: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --text-on-primary: #ffffff;
  --header-max-width: 95%;
  --header-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                   0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --dropdown-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                     0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --header-radius: 8px;
  --header-radius-sm: 6px;
    --text-color: #333;
    --text-light: #555;
    --text-lighter: #777;
    --border-color: #ddd;
    --bg-color: #ffffff;
    --bg-light: #f4f4f4;
    --bg-grey: #f9f9f9;
    --star-color: #f39c12;
    --green-color: #28a745;
    --red-color: #dc3545;
    --header-height: 70px;
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.1);
    --footer-bg: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #9ca3af; /* Gray 400 */
    --footer-text-hover: #3b82f6; /* Blue 500 */
    --footer-border: #374151; /* Gray 700 */
    --footer-accent: #3b82f6; /* Blue 500 */
    --blue-color: #007bff;
    --bg-white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    /* overflow: hidden is managed by JS */
}

/* Hide content visually */
.hidden {
    display: none !important;
}

/* Base styles for icons */
.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}
.icon--chevron {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}
.icon--chevron-sm {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    stroke-width: 2.5;
}

/* Utility class for links */
a {
    text-decoration: none;
    color: var(--primary-color);
}


/* Utility class for buttons */
button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}





/* ==============================
  HEADER - MAIN STRUCTURE
=============================== */
.adv-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
}

.activity-section .adv-header-container {
	flex-direction: column;
	align-items: unset;
	flex-direction: column;
	align-items: flex-start;
	max-width: var(--header-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.adv-header-container {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 20px;
    /*padding: 0 1rem;*/
    display: flex;
    align-items: center;
}

@media only screen and (max-width:1024px){
    .adv-header-container {
    margin: none !important;
    padding: none !important;
}
.adv-header-main .adv-header-container {
    width: unset !important;
    padding-left: unset !important;
  }
.adv-header-top-bar .adv-header-container {
	width: unset !important;
}
.adv-header-secondary {
	display: none;
}
.adv-search-bar {
	overflow: visible !important;
}
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}
.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

/* =================================
   HEADER SEARCH ROTATOR SPECIFICS
   =================================
*/

/* Ensure the wrapper fills the flex space in the header bar */
.header-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%; /* Fill the 44px height of parent */
}

/* Adjust list item height to match Header Search Bar height (approx 42px-44px) */
.header-rotator-list li {
    height: 42px !important; /* Overrides the 50px from Hero */
}

/* Specific Animation for Header (Adjusted for 42px height) */
.header-rotator-list {
    animation: scrollTextHeader 10s infinite cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* Keyframes for 42px height items (5 items) */
@keyframes scrollTextHeader {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-42px); }
    40%, 55% { transform: translateY(-84px); }
    60%, 75% { transform: translateY(-126px); }
    80%, 95% { transform: translateY(-168px); }
    100% { transform: translateY(-210px); }
}


.adv-header-top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.adv-header-top-bar .adv-header-container {
	justify-content: space-between;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar-link, .social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.top-bar-link:hover, .social-link:hover {
  opacity: 0.8;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .adv-header-top-bar .adv-header-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ==============================
  2. MAIN HEADER
=============================== */
.adv-header-main {
    padding: 1rem 0;
}
.adv-header-main .adv-header-container {
    gap: 1.5rem;
    height: 60px; /* Fixed height for alignment */
}

/* 2a. Logo */
.adv-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-svg {
    width: 40px;
    height: 40px;
}
.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    display: none; /* Hidden by default */
}

/* 2b. Search Bar */
.adv-search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
    height: 44px;
    border: 2px solid var(--header-primary);
    /* border-radius: var(--header-radius); */
    overflow: hidden;
}
.adv-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.adv-search-btn-icon {
    display: none; /* Hidden by default */
    border: none;
    background: none;
    padding: 0 0.75rem;
    color: var(--text-light);
    cursor: pointer;
}
.adv-search-btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.adv-search-btn-text {
    border: none;
    background-color: var(--header-primary);
    color: var(--text-on-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.adv-search-btn-text svg {
    width: 1.25rem;
    height: 1.25rem;
}
.adv-search-btn-text:hover {
    background-color: var(--header-primary-dark);
}

/* 2c. Main Navigation */
.adv-header-nav {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* Push to the right */
}
.adv-nav-item {
    position: relative;
    flex-shrink: 0;
}
.adv-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--header-radius-sm);
    transition: color 0.2s, background-color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.adv-nav-link:hover {
    color: var(--text-primary);
    background-color: #f3f4f6; /* Gray 100 */
}
.adv-nav-link .link-label {
    font-size: 0.8rem;
    color: var(--text-light);
}
.adv-nav-link .link-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-primary);
}
.adv-nav-link svg {
    width: 1.5rem; /* Larger icons */
    height: 1.5rem;
}
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    border: 1px solid var(--header-border);
}
.adv-nav-btn-primary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-on-primary);
    background-color: var(--blue-color);
    padding: 0.6rem 1rem;
    border-radius: var(--header-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s;
}
.adv-nav-btn-secondary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: #f3f4f6; /* Gray 100 */
    padding: 0.6rem 1rem;
    border-radius: var(--header-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s;
}
.adv-nav-btn-secondary:hover {
    background-color: #e5e7eb; /* Gray 200 */
}

/* 2d. Mobile Toggle */
.adv-header-mobile-toggle {
    display: none; /* Hidden on desktop */
    
    border: none;
    background: none;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
  z-index: 1100; /* Keep above flyout panel */
}
.adv-header-mobile-toggle svg {
    width: 1.75rem;
    height: 1.75rem;
}
.adv-header-mobile-toggle .icon-open {
  display: inline-block;
}

.adv-header-mobile-toggle .icon-close {
    display: none;
}
/* When menu is open, swap icons */
body.mobile-flyout-open .adv-header-mobile-toggle .icon-open {
  display: none;
}
body.mobile-flyout-open .adv-header-mobile-toggle .icon-close {
  display: inline-block;
}

/* ==============================
  3. SECONDARY NAVIGATION
=============================== */
.adv-header-secondary {
  background-color: var(--header-bg);
  border-top: 1px solid var(--header-border);
  position: relative;
}
.adv-header-secondary .adv-header-container {
  height: 48px;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}
/* Hide scrollbar */
.adv-header-secondary .adv-header-container::-webkit-scrollbar {
    display: none;
}
/* .adv-header-secondary .adv-header-container {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
} */
.adv-nav-link-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-med);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  padding-bottom: 4px;
}
.adv-nav-link-secondary:hover {
  color: var(--header-primary);
  border-bottom-color: var(--header-primary);
}
.adv-nav-link-secondary svg {
    width: 1.25rem;
    height: 1.25rem;
}
.adv-header-secondary-menus {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 999;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
}

/* When active */
.adv-header-secondary:hover + .adv-header-secondary-menus,
.adv-header-secondary-menus:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.adv-header.secondary-menu-open {
    border-bottom-color: transparent;
}



/* ==============================
  4. DROPDOWN & MEGA-MENUS
=============================== */

/* Wrapper for hover logic */
.dropdown-hover-wrapper {
    /* This empty wrapper solves the hover bug. */
    padding-bottom: 10px; /* Spacing to catch mouse */
    margin-bottom: -10px; /* Pull layout back up */
}

/* Base Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Positioned right below the wrapper */
    right: 0;
    width: 320px;
    background-color: var(--header-bg);
    border-radius: var(--header-radius);
    box-shadow: var(--dropdown-shadow);
    border: 1px solid var(--header-border);
    padding: 1.25rem;
    z-index: 1010;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Show on hover */
.dropdown-hover-wrapper:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
/* Dropdown Content */
.dropdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}
.dropdown-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.dropdown-btn-primary {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--header-radius-sm);
    background-color: var(--blue-color);
    color: var(--text-on-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}
.dropdown-btn-primary:hover {
    background-color: var(--blue-color);
}
.dropdown-btn-secondary {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--header-border);
    border-radius: var(--header-radius-sm);
    background-color: var(--header-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}
.dropdown-btn-secondary:hover {
    background-color: #f9fafb; /* Gray 50 */
}
.dropdown-divider {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}
.dropdown-divider::before,
.dropdown-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--header-border);
}
.dropdown-divider::before { margin-right: 0.5em; }
.dropdown-divider::after { margin-left: 0.5em; }
.dropdown-form-group {
    margin-bottom: 1rem;
}
.dropdown-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.dropdown-form-group select,
.dropdown-form-group input {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--header-border);
    border-radius: var(--header-radius-sm);
    background-color: var(--header-bg);
}

.dropdown-empty-state {
    text-align: center;
    padding: 1rem 0;
}
.dropdown-empty-state p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.dropdown-social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dropdown-social-login button {
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    width: 40px;
    height: 40px;
}
.dropdown-social-login svg {
    width: 40px;
    height: 40px;
}
.dropdown-links-list {
    border-top: 1px solid var(--header-border);
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dropdown-links-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--header-radius-sm);
}
.dropdown-links-list a:hover {
    background-color: #f3f4f6; /* Gray 100 */
}


/* Secondary Nav Mega-Menu */
.mega-menu-secondary {
  display: none;
  background: #fff;
  padding: 2rem;
  gap: 2rem;
  align-items: flex-start;
}

.mega-menu-secondary.active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-secondary .adv-header-container {
	gap: 20px;
}

.adv-nav-link-secondary[data-menu]:hover ~ .adv-header-secondary-menus .mega-menu-secondary {
  display: none !important;
}

.adv-header-secondary .dropdown-hover-wrapper:hover .mega-menu-secondary[data-menu-id="desktop-categories-toggle"] {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.adv-nav-link-secondary[data-menu="desktop-categories-toggle"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-categories-toggle"],
.adv-nav-link-secondary[data-menu="desktop-featured-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-featured-menu"],
.adv-nav-link-secondary[data-menu="desktop-order-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-order-menu"],
.adv-nav-link-secondary[data-menu="desktop-buyer-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-buyer-menu"],
.adv-nav-link-secondary[data-menu="desktop-help-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-help-menu"] {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}


.mega-menu-categories {
  width: 350px;
  border-right: 1px solid #eee;
  padding: 1rem;
  background: #fafafa;
  overflow-y: auto;
  max-height: 450px;
  border-radius: 8px 0 0 8px;
}

.mega-menu-category-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}
.mega-menu-category-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-light);
    flex-shrink: 0;
}
.mega-menu-category-item:hover {
  background: var(--header-primary-light);
  color: var(--header-primary);
}
.mega-menu-category-item.active {
    background-color: var(--header-primary-light);
    color: var(--header-primary);
}
.mega-menu-content {
	padding: 1.5rem 2rem;
	width: 100%;
}
.mega-menu-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-menu-grid.custom_all_categories_grid {
	display: grid !important;
	grid-template-columns: repeat(4,1fr) !important;
	gap: 1rem !important;
}

.mega-menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    gap: 0.5rem;
}
.mega-menu-grid-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #f3f4f6; /* Gray 100 */
    border-radius: 50%;
    padding: 0.5rem;
    transition: box-shadow 0.2s;
}
.mega-menu-grid-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}
.mega-menu-grid-item:hover span {
    color: var(--header-primary);
}
.mega-menu-grid-item:hover img {
    box-shadow: 0 0 0 4px var(--header-primary-light);
}

/* Secondary Mega-Menus (Featured, Order, etc.) */
.secondary-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    flex-grow: 1;
}

.secondary-menu-grid.order-protection-custom-grid {
	display: grid !important;
	grid-template-columns: repeat(4,1fr) !important;
	gap: 1rem !important;
}

.secondary-menu-grid.full-width {
    grid-template-columns: repeat(5, 1fr);
}
.secondary-menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: var(--header-radius);
	background-color: #f9fafb;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
	border: 1px solid #ddd;
}
.secondary-menu-item:hover {
    background-color: var(--header-primary-light);
    transform: translateY(-4px);
}
.secondary-menu-item svg {
    width: 2rem;
    height: 2rem;
    color: var(--header-primary);
}
.secondary-menu-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}
.secondary-menu-links {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid var(--header-border);
    padding-left: 2rem;
}
.secondary-menu-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--header-radius-sm);
}
.secondary-menu-links a:hover {
    background-color: #f3f4f6; /* Gray 100 */
    color: var(--header-primary);
}
/* Large Card (Trade Assurance) */
.secondary-menu-card {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--header-primary-light);
    border-radius: var(--header-radius);
    padding: 1.5rem;
    text-align: center;
}
.secondary-menu-card svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--header-primary);
    margin-bottom: 0.75rem;
}
.secondary-menu-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}
.secondary-menu-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.secondary-menu-card-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-on-primary);
    background-color: var(--blue-color);
    padding: 0.6rem 1rem;
    border-radius: var(--header-radius-sm);
    text-decoration: none;
    display: inline-block;
}
.secondary-menu-card-btn:hover {
    background-color: var(--blue-color);
}
/* Large Grid Items (Payments, etc.) */
.secondary-menu-item-lg {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
	border-radius: var(--header-radius);
	background-color: #f9fafb;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
	border: 1px solid #ddd;
}
.secondary-menu-item-lg:hover {
    background-color: #f3f4f6; /* Gray 100 */
    transform: translateY(-4px);
}
.secondary-menu-item-lg div {
    flex-grow: 1;
}
.secondary-menu-item-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 10px 0px 20px 0px !important;
}
.secondary-menu-item-lg p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}
.secondary-menu-item-lg svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--header-primary);
    flex-shrink: 0;
    padding: 0.5rem;
    background-color: var(--header-primary-light);
    border-radius: 50%;
}

/* Col layout for Buyer Central */
.secondary-menu-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.secondary-menu-col-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}
.secondary-menu-col a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}
.secondary-menu-col a:hover {
    color: var(--header-primary);
    text-decoration: underline;
}

/* ==============================
  5. MOBILE FLYOUT PANEL
=============================== */
.mobile-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-flyout-panel {
    position: fixed;
    top: 0;
    left: -320px; /* Start off-screen */
    width: 320px;
    height: 100%;
    background-color: var(--header-bg);
    z-index: 1030;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Open State */
body.mobile-flyout-open {
    overflow: hidden;
}
body.mobile-flyout-open .mobile-flyout-overlay {
    opacity: 1;
    visibility: visible;
}
body.mobile-flyout-open .mobile-flyout-panel {
    transform: translateX(320px);
}

/* Panel Header (Login/Sign up) */
.mobile-flyout-header {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--header-border);
    /* height: 60px; */ /* Match main header height */
    align-items: center;
    flex-shrink: 0;
    padding-top: 1rem; /* Adjust for top bar */
    padding-bottom: 1rem;
    margin-top: 50px; /* Space for top bar */
    justify-content: space-between;
}

/* Sign In button aligned left */
  .mobile-flyout-header .signin-btn {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
  }


/* Re-adjusting mobile header for both bars */
.mobile-flyout-header {
    margin-top: 0;
    height: auto;
    padding: 1rem;
}

/* Close (cross) button on right side */
  .mobile-flyout-header .close-flyout-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.4rem;
  }

  .mobile-flyout-header .close-flyout-btn svg {
    width: 25px;
    height: 25px;
    stroke-width: 2;
    color: #fff;
}

/* Panel Navigation */
.mobile-flyout-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}
.mobile-nav-group {
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}
.mobile-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--header-radius-sm);
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav-item:hover {
    background-color: #f3f4f6; /* Gray 100 */
}
.mobile-nav-item .link-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-align: left;
}
.mobile-nav-item .icon-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
}
.mobile-nav-item.open .icon-chevron {
    transform: rotate(180deg);
}

/* Mobile Submenus */
.mobile-nav-submenu {
    padding: 0.5rem 0.75rem 1rem 0.75rem;
    display: none; /* Hidden by default */
}
.mobile-nav-submenu .dropdown-title {
    font-size: 1rem;
    padding-left: 0.75rem;
}
.mobile-nav-submenu .dropdown-form-group {
    padding: 0 0.75rem;
}
.mobile-nav-submenu .dropdown-btn-secondary {
    margin-top: 1rem;
    margin-left: 0.75rem;
    width: calc(100% - 1.5rem);
}
.mobile-nav-sublink {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--header-radius-sm);
}
.mobile-nav-sublink:hover {
    background-color: #f3f4f6; /* Gray 100 */
    color: var(--text-primary);
}


/* ==============================
  6. RESPONSIVE MEDIA QUERIES
=============================== */

/* Tablet */
@media (min-width: 768px) {
    .logo-text {
        display: block;
    }
    .adv-search-btn-icon {
        display: block;
    }
    .adv-header-secondary .adv-header-container {
        padding: 0 1rem; /* Restore padding */
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .adv-header-nav {
        display: flex;
    }
    .adv-header-mobile-toggle {
        display: none;
    }
}

/* Mobile & Tablet */
@media (max-width: 1023px) {
    /* Hide desktop nav elements */
    .adv-header-nav {
        display: none;
    }
    /* Show mobile toggle */
    .adv-header-mobile-toggle {
        display: block;
    }
    /* Hide secondary menus container */
    .adv-header-secondary-menus {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .adv-header-main .adv-header-container {
        gap: 1rem;
    }
    .logo-text {
        display: none;
    }
    .adv-search-bar {
        max-width: none;
        flex-grow: unset;
    }
    .adv-search-btn-text {
        display: none;
    }
    .adv-search-btn-icon {
        display: block;
        padding: 0 0.75rem;
        background-color: var(--header-primary);
        color: var(--text-on-primary);
        height: 100%;
        border-radius: 0;
    }
    .adv-header-secondary .adv-header-container {
        padding: 0 1rem; /* Add padding for scrolled items */
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .mobile-flyout-panel {
        width: 100%;
        left: -100%;
    }
    body.mobile-flyout-open .mobile-flyout-panel {
        transform: translateX(100%);
    }
    .adv-search-bar {
        display: none; /* Hide search on smallest screens */
    }
    .adv-header-logo {
        margin-right: auto;
    }
}



/* --- Fix stacking for dropdowns --- */
.adv-nav-item.dropdown-hover-wrapper {
  position: relative;
  z-index: 1050;
}
.adv-header-secondary {
	position: relative;
	z-index: 1040;
	padding: 5px 0px;
}
.adv-header-secondary-menus {
  top: 100%;
  z-index: 1060;
}

    /* --- Fix for Mobile Flyout UI --- */
    .mobile-flyout-panel {
      height: 100vh;
      box-shadow: var(--dropdown-shadow);
    }
    .mobile-nav-group {
      margin-bottom: 0.5rem;
      padding-bottom: 0.5rem;
    }
    .mobile-flyout-header {
      background-color: var(--header-primary);
      color: var(--text-on-primary);
    }
    .mobile-flyout-overlay {
      backdrop-filter: blur(4px);
    }

    /* --- Make dropdowns properly overlap other elements --- */
    .dropdown-menu {
      z-index: 2000;
    }










/* =================================
  FOOTER WRAPPER
  =================================
*/
.site-footer {
    background: #fff;
    color: #000;
    padding: 4rem 1rem 0 1rem; /* More top padding, no bottom padding */
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =================================
  FOOTER LINK GRID
  =================================
*/
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Underline accent for titles */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links li a {
    color: #000;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

/* Optional: hover underline effect */
.footer-links li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links li a:hover::before {
    width: 100%;
}


/* =================================
  SECONDARY ROW (SOCIAL & APPS)
  =================================
*/
.footer-secondary-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--footer-border);
}

.footer-title-sm {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    color: var(--footer-text-secondary);
    background-color: #374151; /* Gray 700 */
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--footer-text-hover);
    background-color: var(--primary-color); /* Gray 600 */
    transform: translateY(-2px);
}

.social-icon svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-badge img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-badge:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* =================================
  PAYMENT ICONS
  =================================
*/
.footer-payments {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--footer-border);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--footer-text-secondary); /* SVGs will inherit this */
}

.payment-icons svg {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.payment-icons svg:hover {
    opacity: 1;
    color: var(--footer-text-primary);
}


/* =================================
  BOTTOM BAR (COPYRIGHT & LEGAL)
  =================================
*/
.footer-bottom {
    display: flex;
    flex-direction: column-reverse; /* Puts copyright first on mobile */
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    padding: 2.5rem 0; /* Final padding */
    font-size: 0.8rem; /* Slightly larger text */
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}

.footer-legal a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright {
    color: #000;
}


/* =================================
  RESPONSIVE STYLES
  =================================
*/

/* Small tablets */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-secondary-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

/* Desktops */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}









/* =================================
   HERO SECTION STYLES
   =================================
*/
.hero-section {
  position: relative;
  height: 500px; /* Adjust height as needed */
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #ffffff;
}

/* --- 1. Background & Ken Burns Effect --- */
.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform-origin: center center;
  animation: kenBurns 24s infinite linear; /* 8s per image * 3 images = 24s */
}

/* Crossfade animation sequence */
.hero-bg-image:nth-child(1) {
  animation-delay: 0s;
  opacity: 1; /* Start visible */
}
.hero-bg-image:nth-child(2) {
  animation-delay: 8s;
}
.hero-bg-image:nth-child(3) {
  animation-delay: 16s;
}

@keyframes kenBurns {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1; /* Fade in quickly */
  }
  33.33% {
    opacity: 1;
    transform: scale(1.15); /* Zoom in */
  }
  38.33% {
    opacity: 0; /* Fade out */
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Overlay for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

/* --- 2. Hero Content --- */
.hero-content {
  position: relative;
  z-index: 3;
  flex-direction: column;
  align-items: flex-start; /* Left align on desktop like Alibaba */
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-content.adv-header-container {
	max-width: var(--header-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.hero-video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.hero-video-link:hover {
  opacity: 1;
}
.hero-video-link svg {
  width: 24px;
  height: 24px;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 700px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- 3. Two-Part Search Bar --- */
.hero-search-bar-container {
  width: 100%;
  max-width: 800px; /* Limit width on large screens */
  margin-bottom: 1.5rem;
}

.hero-search-form {
  display: flex;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden; /* Ensure rounded corners crop children */
}

.search-group {
  display: flex;
  align-items: center;
  height: 50px; /* Fixed height for consistency */
  padding: 0 0.5rem;
  position: relative;
}

/* Location Part (Left) */
.search-group-location {
  background-color: #f3f4f6; /* Light grey bg */
  flex: 0 0 30%; /* Takes up 30% width */
  min-width: 150px;
  border-right: 1px solid #e5e7eb;
}

.search-icon-location {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.search-select {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none; /* Remove default arrow to style custom if needed */
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2rem; /* Make room for the arrow */
}

/* Keyword Part (Right) */
.search-group-keyword {
  background-color: #fff; /* White bg */
  flex-grow: 1; /* Takes up remaining space */
  padding-right: 0; /* Button will sit flush */
}

.search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.search-button {
  background-color: var(--primary-color);
  border: none;
  height: 100%;
  width: 50px; /* Square button */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: var(--primary-dark);
}

.search-button svg {
  width: 22px;
  height: 22px;
}


/* --- 4. Quick Links --- */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.hero-quick-links span {
  color: rgba(255, 255, 255, 0.8);
}
.quick-link-pill {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  transition: all 0.2s;
  background-color: rgba(0,0,0,0.2);
}
.quick-link-pill:hover {
  border-color: #fff;
  background-color: rgba(255,255,255,0.1);
}


/* =================================
   SEARCH BAR ROTATOR ANIMATION
   =================================
*/

/* 1. Wrapper to hold input and text together */
.input-wrapper {
    position: relative;
    flex-grow: 1;
    height: 100%;
    overflow: hidden; /* Hides text sliding out of view */
    display: flex;
    align-items: center;
}

/* 2. The Input Field */
.hero-search-form .search-input {
    width: 100%;
    height: 100%;
    background: transparent; /* Make transparent to see text if needed, though here text is on top */
    position: relative;
    z-index: 2; /* Ensures input stays clickable above the text */
    padding: 0 1rem;
}

/* 3. The Container for Scrolling Text */
.search-rotator {
    position: absolute;
    top: 0;
    left: 1rem; /* Match input padding */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1; /* Sits behind the click area of input */
    pointer-events: none; /* Allows clicks to pass through to the input */
    color: #9ca3af; /* Placeholder Grey */
    font-size: 0.95rem;
}

/* 4. The List Animation */
.rotator-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* 10s duration, infinite loop */
    animation: scrollText 10s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
}

.rotator-list li {
    height: 42px; /* Must match the height of your search bar (.adv-search-bar height) */
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Animation Keyframes
   Based on 5 items. Holds the text for a moment, then slides up. */
@keyframes scrollText {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-42px); }
    40%, 55% { transform: translateY(-84px); }
    60%, 75% { transform: translateY(-126px); }
    80%, 95% { transform: translateY(-168px); }
    100% { transform: translateY(-210px); } 
}

/* 5. Hide the rotator when input is active/typed in */
.input-wrapper.active .search-rotator {
    display: none;
}


/* =================================
   RESPONSIVE MEDIA QUERIES
   =================================
*/
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 450px;
  }
  .hero-content {
    align-items: center; /* Center on mobile */
    text-align: center;
    padding-top: 3rem;
  }
  .hero-headline {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .hero-search-form {
    flex-direction: column; /* Stack search inputs */
  }
  .search-group {
    width: 100%;
    flex: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .search-group:last-child {
    border-bottom: none;
  }
  .search-group-location {
    border-radius: 8px 8px 0 0;
  }
  .search-group-keyword {
    border-radius: 0 0 8px 8px;
    padding-left: 0.5rem; /* Add padding back */
  }
  .hero-quick-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.75rem;
  }
}






/* =================================
   FEATURES / BENEFITS SECTION
   =================================
*/
.benefits-section {
    background-color: #111827; /* Deep brownish-black matching your orange theme */
    padding: 4rem 0;
    width: 100%;
}

/* Ensure container is centered (reusing your existing class structure) */
.benefits-section .adv-header-container {
    max-width: var(--header-max-width);
    margin: 0 auto;
    width: 100%;
    /* Mobile padding fix */
    padding: 0 20px; 
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* --- The Card Design --- */
.benefit-card {
    background: rgba(255, 255, 255, 0.05); /* Very subtle transparency */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift up + Orange Border Glow */
.benefit-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 4px solid var(--primary-color); /* The orange highlight */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Icon Styling --- */
.benefit-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(249, 115, 22, 0.15); /* Orange with low opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Hover Effect: Icon Glow */
.benefit-card:hover .benefit-icon-wrapper {
    background-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); /* Glowing effect */
}

.benefit-card:hover .benefit-icon-wrapper svg {
    color: #fff; /* Icon turns white */
    transform: scale(1.1);
}

/* --- Typography --- */
.benefit-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.benefit-desc {
    color: rgba(255, 255, 255, 0.7); /* Light grey text */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =================================
   RESPONSIVE (Benefits)
   =================================
*/
/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-section .adv-header-container {
        width: 100%;
        padding: 0 20px;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-card {
        align-items: center;
        text-align: center;
    }
    .benefit-card:hover {
        transform: translateY(-4px); /* Smaller lift on mobile */
    }
}





/* =================================
   CATEGORIES SECTION
   =================================
*/
.categories-section {
    background-color: #ffffff; /* Clean white background */
    padding: 4rem 0;
    width: 100%;
}

.categories-section .adv-header-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}
.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.view-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s;
}
.view-all-link:hover {
    transform: translateX(4px);
}
.mt-large {
    margin-top: 3rem;
}

/* --- PART 1: ICON GRID --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    group: hover; /* For transitions */
}

.cat-icon-box {
    width: 80px;
    height: 80px;
    background-color: #f9fafb; /* Very light grey */
    border: 1px solid #e5e7eb;
    border-radius: 20px; /* Modern squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.cat-icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Hover Effect: Icon Pop & Border Color */
.category-card:hover .cat-icon-box {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
    transform: translateY(-5px);
    background-color: #fff;
}
.category-card:hover .cat-icon-box img {
    transform: scale(1.1);
}

.cat-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.2s;
}
.category-card:hover .cat-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- PART 2: COLLECTIONS (Wedding/Spa Cards) --- */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.collection-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.collection-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #fed7aa; /* Light orange border */
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.collection-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.collection-header a {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
}
.collection-header a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.collection-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.c-img-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.img-wrap {
    width: 100%;
    aspect-ratio: 4/3; /* Standard rectangle */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom Image */
.c-img-item:hover .img-wrap img {
    transform: scale(1.1);
}

.c-img-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}
.c-img-item:hover span {
    color: var(--primary-color);
}

/* =================================
   RESPONSIVE (Categories)
   =================================
*/
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 per row */
    }
}

@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    /* Make icon grid scrollable horizontally on mobile for better UX */
    .categories-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem; /* Space for scrollbar */
        gap: 1rem;
        -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
        scroll-snap-type: x mandatory;
    }
    
    .category-card {
        min-width: 90px; /* Ensure fixed width for scrolling */
        scroll-snap-align: start;
    }
    
    /* Hide scrollbar visually but keep functionality */
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
    
    .cat-icon-box {
        width: 70px;
        height: 70px;
    }
    .cat-icon-box img {
        width: 32px;
        height: 32px;
    }
    .section-heading {
        font-size: 1.25rem;
    }
}








/* =================================
   PREMIUM BENTO GRID STYLES
   =================================
*/
.bento-opp-section {
    background-color: #0f1115; /* Very dark background */
    padding: 4rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Background ambient glow */
.bento-opp-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.bento-opp-section .adv-header-container {
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

.section-heading-lg {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.explore-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}
.explore-link:hover {
    gap: 0.8rem;
}

/* --- THE GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* Custom asymmetric grid */
    grid-template-rows: auto auto;
    gap: 1.5rem;
    width: 100%;
}

/* Common Card Styles */
.bento-card {
    background: rgba(30, 35, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- CARD 1: FEATURED (Tall, Left) --- */
.featured-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(30, 35, 45, 0.8), rgba(20, 20, 25, 0.9));
}

.card-header h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.orange-badge { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.green-badge { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.featured-image-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 2rem 0;
}

/* Glow behind main image */
.glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.main-img {
    height: 240px;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
    width: 100%;
    border-radius: 10px;
}

.mini-gallery {
	display: flex;
	gap: 10px;
	justify-content: inherit;
}

.mini-gallery img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}
.mini-gallery img.active, .mini-gallery img:hover {
    border-color: var(--primary-color);
}

/* --- CARD 2: ARRIVALS (Square grid) --- */
.arrivals-card {
    grid-column: 2 / 3;
    grid-row: span 2;
}
.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.sub-text { font-size: 0.9rem; color: #94a3b8; margin-bottom: 1.5rem; }

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mini-item {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    padding: 10px;
}
.mini-item img {
	width: 100%;
	height: 80%;
	object-fit: cover;
	transition: transform 0.3s;
	border-radius: 10px;
}

.mini-price {
    position: absolute;
    background: rgba(0,0,0,0.8);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    bottom: 10px;
    left: 10px;
}

/* --- CARD 3: DEAL (Wide) --- */
.deal-card {
    grid-column: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.8), rgba(50, 20, 10, 0.3)); /* Subtle red tint */
    height: 200px;
}
.deal-content h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.timer { color: #fb923c; font-weight: 600; font-family: monospace; }

.deal-image img {
	width: 100%;
	height: 130px;
	object-fit: contain;
	filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
	border-radius: 10px;
}

/* --- CARD 4: WEEKLY (Compact) --- */
.weekly-card {
	grid-column: 3 / 4;
	display: flex;
	gap: 1rem;
	height: 300px;
	flex-direction: column;
}
.weekly-card img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.weekly-card-list {
	display: flex;
	gap: 10px;
	padding: 15px;
	background: rgba(0,0,0,0.3);
	border-radius: 15px;
	align-items: center;
}


.weekly-info h3 { font-size: 1rem; margin: 0; }
.weekly-info p { font-size: 0.8rem; color: #94a3b8; margin: 0.2rem 0 0.5rem 0; }
.sm-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* =================================
   RESPONSIVE BENTO
   =================================
*/
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .deal-card, .weekly-card {
        grid-column: auto; /* Reset to auto flow */
    }
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .featured-card { height: 450px; }
    .section-heading-lg { font-size: 1.5rem; }

    .main-img {
	height: 190px;
}
.mini-gallery img {
	width: 65px;
	height: 65px;
}
.featured-image-container {
	margin-bottom: 15px;
}
.bento-card.deal-card {
	flex-direction: column-reverse;
    gap: 20px;
}
.deal-card {
	height: 370px;
}
.deal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 15px;
}
}






/* =================================
   TOP CITIES SLIDER
   =================================
*/
.cities-section {
    background-color: #f9fafb;
    padding: 4rem 0;
    width: 100%;
    position: relative;
}

.cities-section .adv-header-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden; /* Hide overflow outside container */
}

/* Header Row with Arrows */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 2rem;
}

.section-subheading {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
}

/* Controls */
.slider-controls {
    display: flex;
    gap: 0.75rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.slider-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* --- THE SLIDER TRACK --- */
.cities-slider-wrapper {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto; /* Allow scroll */
    scroll-behavior: smooth; /* Native smooth scroll */
    width: 100%;
    padding-bottom: 2rem; /* Space for shadow clipping */
    /* Hide Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}
.cities-slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* --- CITY CARD (Slider Item) --- */
.city-card {
    flex: 0 0 220px; /* Fixed width for desktop cards */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.city-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.city-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.city-card:hover .city-img img {
    transform: scale(1.15);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}

.city-card:hover .overlay {
    background: linear-gradient(to top, rgba(249, 115, 22, 0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
}

.city-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.city-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.supp-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    transform: translateY(5px);
    transition: all 0.3s;
}

.city-card:hover .supp-count {
    color: #fff;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Sizes */
@media (max-width: 768px) {
    .city-card {
        flex: 0 0 160px; /* Smaller cards on tablet */
    }
    .slider-controls {
        display: none; /* Optional: hide arrows on mobile if touch is easier */
    }
}









/* =================================
   RECENT ACTIVITY (Fixed Layout)
   =================================
*/
.activity-section { background: #fff; padding: 4rem 0; width: 100%; }
.activity-layout { display: flex; gap: 30px; width: 100%; margin-top: 1.5rem; }

/* LEFT COLUMN (Slider) */
.slider-col { width: 66%; position: relative; }

/* Custom Arrows */
.custom-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
    width: 40px; height: 40px; border-radius: 50%; background: #fff;
    border: 1px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.custom-arrow:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.prev-arrow { left: -20px; }
.next-arrow { right: -20px; }

/* Slick Adjustment */
.products-slick-track .slick-list { padding: 10px 0; } 
.product-slide { padding: 0 10px; /* Gap between slides */ }

/* Product Card */
.prod-card {
    border: 1px solid #e5e7eb; border-radius: 10px; overflow: visible; /* For dropdown */
    background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Internal Image Slider */
.prod-image-wrapper {
    position: relative; height: 220px; background: #f3f4f6;
    border-radius: 10px 10px 0 0; overflow: hidden;
}
.img-stack { width: 100%; height: 100%; position: relative; }
.img-stack img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.3s;
}
.img-stack img.active { opacity: 1; }

.arrow-overlay {
    position: absolute; top: 0; bottom: 0; width: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; background: rgba(0,0,0,0.0);
    cursor: pointer; z-index: 5; transition: 0.2s; user-select: none;
}
.arrow-overlay:hover { background: rgba(0,0,0,0.2); }
.arrow-overlay.left { left: 0; }
.arrow-overlay.right { right: 0; }

/* Info */
.prod-info { padding: 15px; }
.prod-info h3 {
    font-size: 1rem; font-weight: 600; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.8em;
}

/* Price & Bulk */
.price-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
.main-price { font-size: 1.1rem; font-weight: 700; color: #111; }
.bulk-container { position: relative; }
.bulk-trigger {
    background: var(--primary-color); color: #fff; border: none; padding: 5px 10px;
    font-size: 0.8rem; border-radius: 4px; cursor: pointer; font-weight: 600;
}
.bulk-popup {
    position: absolute; top: 100%; right: 0; width: 200px;
    background: #fff; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    padding: 10px; border-radius: 6px; z-index: 50; display: none; margin-top: 5px;
}
.bulk-popup.active { display: block; }
.bulk-popup .row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; color: #333; }

.supp-name { font-weight: 700; font-size: 0.9rem; color: #333; margin-bottom: 2px; }
.supp-loc { font-size: 0.8rem; color: #777; margin-bottom: 12px; }

.prod-actions { display: flex; gap: 10px; }
.prod-actions button { flex: 1; padding: 8px 0; border-radius: 4px; font-weight: 600; font-size: 0.8rem; cursor: pointer; border: none; }
.btn-blue { background: #007bff; color: #fff; }
.btn-orange { background: var(--primary-color); color: #fff; }

/* RIGHT COLUMN */
.supplier-col {
	width: 33%;
	border-left: 1px solid #eee;
	padding: 20px;
	background: #f9fafb;
	border-radius: 15px;
}
.col-heading { font-size: 1.2rem; margin-bottom: 1.5rem; border-bottom: 2px solid #f3f4f6; padding-bottom: 10px; }
.supp-card-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	border: 1px solid #f3f4f6;
	padding: 10px;
	border-radius: 8px;
	align-items: center;
    background: #fff;
}
.supp-card-row img {
	width: 150px;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}
.supp-txt h4 { font-size: 0.95rem; margin-bottom: 4px; }
.rating-badge { display: inline-block; background: #eab308; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; }
.rating-badge.green { background: #22c55e; }
.supp-txt p { font-size: 0.8rem; color: #666; margin-bottom: 6px; }
.supp-txt a { font-size: 0.8rem; color: var(--primary-color); font-weight: 600; text-decoration: none; border: 1px solid var(--primary-color); padding: 2px 8px; border-radius: 4px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .activity-layout { flex-direction: column; }
    .slider-col, .supplier-col { width: 100%; }
    .supplier-col { border-left: none; border-top: 1px solid #eee; }
}

.product-price-dropdown {
	position: relative;
}

.product-price-dropdown {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.product-price-dropdown::after {
	content: "";
	position: absolute;
	right: 15px;
	top: calc(50% + 4px);
	width: 6px;
	height: 6px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-50%) rotate(45deg);
	pointer-events: none;
	transition: 0.25s ease;
	top: 12px;
	color: #fff;
}

.ppd-select {
	width: 100%;
	padding: 0.25rem 0.5rem;
	padding-right: 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	background-color: #f97316;
	border: 1px solid #f97316;
	border-radius: 8px;
	color: var(--text-color);
	appearance: none;
	outline: none;
	transition: all 0.25s ease;
	color: #fff;
}








/* =================================
   FACTORY DIRECT SECTION
   =================================
*/
.factory-section {
    background-color: #fff;
    padding: 3rem 0 5rem 0; /* Extra bottom padding */
    width: 100%;
}

.factory-section .adv-header-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

/* --- CARD STRUCTURE --- */
.factory-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3; /* Standard rectangle shape */
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #000; /* Fallback */
}

/* Image Zoom Effect */
.factory-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
}

.factory-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
}

.factory-card:hover .factory-img img {
    transform: scale(1.1);
    opacity: 0.7; /* Darken slightly on hover */
}

/* Gradient Overlay */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.8) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes text apart */
}

/* --- TYPOGRAPHY --- */
.card-top h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 90%;
}

.cta-link {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.factory-card:hover .cta-link {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.factory-card:hover .arrow {
    transform: translateX(5px);
}
.arrow { transition: transform 0.3s; }

/* --- LIVE BADGE --- */
.live-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .factory-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on tablet */
    }
    .factory-card:last-child {
        grid-column: span 2; /* Make the last one wide */
    }
}

@media (max-width: 768px) {
    .factory-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .factory-card:last-child {
        grid-column: auto;
    }
    .factory-card {
        aspect-ratio: 16/9; /* Slightly shorter on mobile */
    }
    .card-top h3 {
        font-size: 1.2rem;
    }
}








/* =================================
   RELATED ARTICLES (Dark Slick Slider)
   =================================
*/
.articles-section {
    background-color: #111827; /* Dark Background */
    padding: 4rem 0;
    width: 100%;
    color: #fff;
    border-top: 1px solid #1f2937;
}

.articles-section .adv-header-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading-dark { font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.section-sub-dark { font-size: 0.95rem; color: #9ca3af; }

/* SLIDER CONTROLS */
.articles-section .slider-controls { display: flex; gap: 10px; margin-left: auto; }
.articles-section .slider-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: #1f2937; border: 1px solid #374151; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s;
}
.articles-section .slider-btn:hover { background: var(--primary-color); border-color: var(--primary-color); }

/* SLIDER TRACK */
.articles-slider { width: 100%; margin-top: 2rem; }
/* Slick adds .slick-slide, we add padding to create gap */
.articles-slider .slick-slide { padding: 0 12px; height: auto; } 
.articles-slider .slick-list { margin: 0 -12px; }

/* CARD STYLES */
.article-card {
    display: block;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height in flex */
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(249, 115, 22, 0.3);
}

.article-img-box {
    width: 100%; height: 220px; position: relative; overflow: hidden;
}
.article-img-box img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.article-card:hover .article-img-box img { transform: scale(1.1); }

.category-badge {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    color: #fff; font-size: 0.75rem; font-weight: 600;
    padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);
}

.article-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.article-date { font-size: 0.8rem; color: #9ca3af; font-weight: 500; }
.article-content h3 {
    font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.article-card:hover h3 { color: var(--primary-color); }

.read-more {
    font-size: 0.9rem; font-weight: 600; color: var(--primary-color);
    display: flex; align-items: center; gap: 6px; margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .section-header-row { align-items: flex-start; }
    .articles-slider .slick-slide { padding: 0 5px; } /* Smaller gap on mobile */
}







/* =================================
   RECENT REVIEWS SECTION
   =================================
*/
.reviews-section {
    background-color: #f9fafb; /* Light Grey to separate sections */
    padding: 4rem 0;
    width: 100%;
}

.reviews-section .adv-header-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Slider Controls (Reused Logic) */
.reviews-section .slider-controls { display: flex; gap: 10px; margin-left: auto; }
.reviews-section .slider-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid #e5e7eb; color: #374151;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}
.reviews-section .slider-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* SLIDER TRACK */
.reviews-slider { width: 100%; margin-top: 2rem; }
.reviews-slider .slick-slide { padding: 0 10px; height: auto; }
.reviews-slider .slick-list { margin: 0 -10px; padding-bottom: 20px; /* For shadow */ }

/* --- CARD STYLE --- */
.review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

/* Header: Avatar + Name */
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.user-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

/* Star Ratings */
.rating-stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
}
/* Green Stars (Good) */
.rating-stars.green {
    color: #00b67a; /* Trustpilot Green */
}
/* Red Stars (Bad) */
.rating-stars.red {
    color: #ef4444; /* Alert Red */
}
.rating-stars .empty {
    color: #e5e7eb; /* Grey for empty stars */
}

/* Review Text */
.review-body {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.review-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    /* Limit text lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: Company Info */
.review-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.company-icon img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.company-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .reviews-section .slider-controls { display: none; /* Hide arrows on mobile */ }
    .review-body p { -webkit-line-clamp: 3; }
}





/* =================================
   CONSTRUCTION SECTION
   =================================
*/
.construction-section {
    background-color: #f9fafb;
    padding: 3rem 0;
    width: 100%;
}

.construction-section .adv-header-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.construction-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Fixed Sidebar + Fluid Grid */
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

/* --- LEFT SIDEBAR --- */
.const-sidebar {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* Ensure it stretches to match grid height or has min-height */
    min-height: 400px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sidebar-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.sidebar-content h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-links {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.btn-view-all {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
    transition: background 0.2s;
}

.btn-view-all:hover {
    background: var(--primary-dark);
}

/* --- RIGHT GRID --- */
.const-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 1rem;
    align-content: start;
}

.const-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.const-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #e5e7eb;
}

.card-img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.const-card:hover .card-img img {
    transform: scale(1.1);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.card-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-info ul li {
    margin-bottom: 4px;
}

.card-info ul li a {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.card-info ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .construction-layout {
        grid-template-columns: 1fr; /* Stack sidebar on top */
    }
    .const-sidebar {
        min-height: 350px;
        margin-bottom: 1rem;
    }
    .const-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
    }
}

@media (max-width: 600px) {
    .const-grid {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }
}