@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
/* ═══════════════════════════════════════════
   MADHURS — Frontend Stylesheet
   Laravel 12 Rebuild — Same Visual Design
   Replaces: front.min.css, styles.min.css,
   plugins.min.css, responsive.css, ruby-*.css
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */

:root {
    --mh-primary: #377dff;
    --mh-dark: #1a1a1a;
    --mh-footer-bg: #1a1f3c;
    --mh-text: #333333;
    --mh-text-light: #666666;
    --mh-border: #e8e8e8;
    --mh-bg: #ffffff;
    --mh-bg-light: #f8f9fa;
    --mh-accent: #e67e22;
    --mh-radius: 8px;
    --mh-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --mh-shadow-hover: 0 8px 20px rgba(0,0,0,0.15);
    --mh-transition: 0.3s ease;
    --mh-header-height: 130px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100% !important; background: #1a1f3c !important; overflow-y: scroll; }
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--mh-text);
    background: var(--mh-bg);
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
main { flex: 1 0 auto !important; }

/* Wider container — madhurs.co.uk uses ~1400px, Bootstrap default is 1140px */
.container {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
}

/* ═══════════════════════════════════════════
   HEADER — matches madhurs.co.uk layout
   ═══════════════════════════════════════════ */
.mh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mh-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow var(--mh-transition);
}
.mh-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.mh-topbar { padding: 18px 0; }
.mh-topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

/* Logo — flush left, larger like madhurs.co.uk */
.mh-logo { display: flex; align-items: center; }
.mh-logo img { height: 60px; width: auto; }

/* Search — pushed right within middle column */
.mh-search-wrap {
    display: flex;
    justify-content: flex-end;
}
.mh-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--mh-border);
    border-radius: 50px;
    padding: 0 16px;
    height: 44px;
    width: 100%;
    max-width: 550px;
    transition: border-color var(--mh-transition);
}
.mh-search-form:focus-within { border-color: var(--mh-primary); }
.mh-search-btn {
    background: none;
    border: none;
    color: var(--mh-text-light);
    padding: 0 0 0 8px;
    cursor: pointer;
    font-size: 16px;
    order: 2;
}
.mh-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    order: 1;
}

/* Search Results */
.mh-search-results {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 999;
    background: var(--mh-bg);
    box-shadow: var(--mh-shadow-hover);
}
.mh-search-results:empty { display: none; }

/* Header Icons — flush right */
.mh-header-icons {
    display: flex;
    align-items: center;
    gap: 22px;
}
.mh-icon-link {
    font-size: 22px;
    color: #505050;
    transition: color var(--mh-transition);
}
.mh-icon-link:hover { color: var(--mh-primary); }
.mh-menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: #505050;
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   DESKTOP MEGA MENU — hover only for active category
   Click a category to make it active, hover to open/close
   ═══════════════════════════════════════════ */
.mh-nav {
    background: var(--mh-bg);
    border-top: 1px solid var(--mh-border);
    border-bottom: 1px solid var(--mh-border);
    position: relative;
}
.mh-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    gap: 0;
}
.mh-nav-item { position: relative; }
.mh-nav-item.mh-has-mega { position: static; }
.mh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    transition: color var(--mh-transition);
    white-space: nowrap;
    text-decoration: none;
}
.mh-nav-item:first-child .mh-nav-link { padding-left: 0; }
.mh-nav-link:hover { color: var(--mh-dark); text-decoration: none; }

/* Chevron — always visible on ACTIVE category, rotates up on hover */
.mh-nav-chevron {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
    visibility: hidden;
}
.mh-has-mega.active > .mh-nav-link .mh-nav-chevron {
    visibility: visible;
}
.mh-has-mega.active:hover > .mh-nav-link .mh-nav-chevron {
    transform: rotate(180deg);
}

/* Mega Dropdown — ONLY opens on hover of the ACTIVE category */
.mh-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--mh-bg);
    border-top: 1px solid var(--mh-border);
    border-bottom: 1px solid var(--mh-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 0;
    display: none;
    z-index: 998;
    overflow: hidden;
}
/* Hover opens dropdown ONLY for the active category */
.mh-has-mega.active:hover > .mh-mega-menu {
    display: block;
}

/* Mega menu sidebar (left column with subcategory names) */
.mh-mega-sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--mh-bg);
    border-right: 1px solid var(--mh-border);
    padding: 10px 0;
    height: 100%;
    overflow-y: auto;
}
.mh-mega-sidebar-link {
    display: block;
    padding: 5px 15px 5px 22px;
    font-size: 15px;
    font-weight: 400;
    color: var(--mh-text);
    transition: all var(--mh-transition);
    position: relative;
    text-decoration: none;
}
.mh-mega-sidebar-link:hover,
.mh-mega-sidebar-link.active {
    background: var(--mh-bg);
    color: var(--mh-dark);
    font-weight: 600;
    text-decoration: underline;
}
/* Arrow indicator — ONLY on .active, no :first-child special treatment */
.mh-mega-sidebar-link.active {
    font-weight: 600;
    color: var(--mh-dark);
    padding-left: 22px;
    text-decoration: underline;
}
.mh-mega-sidebar-link.active::before {
    content: '◄';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: var(--mh-dark);
}

/* ── Mega Menu Panels — hover-switch content panels ── */
.mh-mega-panel { display: none; }
.mh-mega-panel.active {
    display: flex;
    gap: 25px;
    padding: 10px 20px;
}
.mh-mega-col {
    flex: 0 0 auto;
    min-width: 180px;
    padding-right: 25px;
    border-right: 1px solid var(--mh-border);
}
.mh-mega-col:last-child {
    border-right: none;
    padding-right: 0;
}
.mh-mega-divider {
    border: none;
    border-top: 1px solid var(--mh-border);
    margin: 2px 15px;
}

/* Mega menu content (right area — contains switchable panels) */
.mh-mega-content {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 100%;
    overflow-y: auto;
}
.mh-mega-grid {
    display: flex;
    height: 100%;
}
.mh-mega-heading {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--mh-text-light);
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
}
.mh-mega-heading:hover { color: var(--mh-dark); }
.mh-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mh-mega-links li { margin-bottom: 5px; }
.mh-mega-links a {
    font-size: 15px;
    font-weight: 400;
    color: var(--mh-text);
    line-height: 1.5;
    transition: color var(--mh-transition);
}
.mh-mega-links a:hover { color: var(--mh-dark); text-decoration: underline; }
.mh-view-all {
    color: var(--mh-dark) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    font-size: 15px !important;
}

/* Section title — centered with lines */
.section-title.section-title2.section-title3 {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}
.section-title.section-title2.section-title3::before,
.section-title.section-title2.section-title3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e0e0e0;
}
.section-title.section-title2.section-title3::before {
    margin-right: 20px;
}
.section-title.section-title2.section-title3::after {
    margin-left: 20px;
}
.section-title.section-title2.section-title3 .h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}
/* ═══════════════════════════════════════════
   MOBILE MENU (replaces ma5-menu)
   ═══════════════════════════════════════════ */
.mh-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--mh-bg);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}
.mh-mobile-menu.open { left: 0; }
.mh-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mh-border);
    font-size: 16px;
}
.mh-mobile-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.mh-mobile-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--mh-border);
}
.mh-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mh-mobile-nav-item a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 500;
    color: var(--mh-dark);
}
.mh-mobile-nav-item a:hover { background: var(--mh-bg-light); }

.mh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mh-overlay.open { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════
   GATEWAY HERO SECTION
   ═══════════════════════════════════════════ */
.mh-gateway-hero { width: 100%; overflow: hidden; }
.mh-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    height: 85vh;
    min-height: 550px;
    max-height: 850px;
}
.mh-gateway-panel {
    position: relative;
    overflow: hidden;
    display: block;
}
.mh-gateway-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8e4e0 0%, #d4cfc9 100%);
}
.mh-gateway-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}
.mh-gateway-panel:hover .mh-gateway-bg img { transform: scale(1.05); }
.mh-gateway-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
    transition: background 0.3s ease;
}
.mh-gateway-panel:hover .mh-gateway-overlay {
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.45) 100%);
}
.mh-gateway-btn-wrap {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.mh-gateway-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #ffffff;
    color: var(--mh-dark);
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.mh-gateway-panel:hover .mh-gateway-btn {
    background: var(--mh-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════
   TAGLINE SECTION
   ═══════════════════════════════════════════ */
.mh-tagline {
    text-align: center;
    padding: 50px 20px;
}
.mh-tagline-title {
    font-size: 38px;
    font-weight: 300;
    color: var(--mh-dark);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.mh-tagline-sub {
    font-size: 17px;
    color: var(--mh-text-light);
    margin: 0;
}
.mh-section-header { position: relative; margin-bottom: 25px; }
.mh-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--mh-dark);
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}
.mh-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--mh-primary);
}

/* ═══════════════════════════════════════════
   SUBCATEGORY CARDS & CAROUSEL
   ═══════════════════════════════════════════ */
.mh-subcat-section {
    padding: 40px 0;
    background: var(--mh-bg);
    border-bottom: 1px solid #f0f0f0;
}
.mh-subcat-swiper { padding: 0 0 10px; }
.mh-subcat-card {
    display: flex;
    flex-direction: column;
    background: var(--mh-bg);
    border-radius: var(--mh-radius);
    overflow: hidden;
    box-shadow: var(--mh-shadow);
    transition: transform var(--mh-transition), box-shadow var(--mh-transition);
}
.mh-subcat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mh-shadow-hover);
}
.mh-subcat-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}
.mh-subcat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--mh-transition);
}
.mh-subcat-card:hover .mh-subcat-image img { transform: scale(1.05); }
.mh-subcat-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--mh-text);
    text-align: center;
    padding: 18px 15px;
    text-transform: capitalize;
}
.mh-subcat-card:hover .mh-subcat-title { color: var(--mh-accent); }

/* ═══════════════════════════════════════════
   ARTICLES SECTION
   ═══════════════════════════════════════════ */
.mh-articles-section { padding: 50px 0 30px; }
.mh-article-card {
    display: block;
    background: var(--mh-bg);
    border-radius: var(--mh-radius);
    overflow: hidden;
    box-shadow: var(--mh-shadow);
    transition: box-shadow var(--mh-transition);
}
.mh-article-card:hover { box-shadow: var(--mh-shadow-hover); }
.mh-article-thumb {
    height: 260px;
    overflow: hidden;
}
.mh-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mh-article-body { padding: 18px; }
.mh-article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mh-dark);
    margin: 0 0 8px;
    line-height: 1.4;
}
.mh-article-meta {
    display: block;
    font-size: 13px;
    color: var(--mh-text-light);
    margin-bottom: 8px;
}
.mh-article-meta i { margin-right: 4px; }
.mh-article-excerpt {
    font-size: 14px;
    color: var(--mh-text-light);
    line-height: 1.5;
    margin: 0;
}
.mh-article-cat {
    padding: 0 18px 14px;
}
.mh-article-cat a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mh-primary);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   BRANDS SECTION
   ═══════════════════════════════════════════ */
.mh-brands-section {
    padding: 30px 0 50px;
}
.mh-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 15px;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    transition: box-shadow var(--mh-transition);
}
.mh-brand-card:hover { box-shadow: var(--mh-shadow); }
.mh-brand-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* ═══════════════════════════════════════════
   SWIPER NAVIGATION OVERRIDES
   ═══════════════════════════════════════════ */
.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    background: var(--mh-bg);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: var(--mh-dark);
    transition: box-shadow var(--mh-transition);
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 14px; font-weight: 700; }

/* ═══════════════════════════════════════════
   FOOTER — dark blue matching madhurs.in
   ═══════════════════════════════════════════ */
.mh-footer {
    background: #1a1f3c !important;
    color: #ffffff;
    padding: 50px 0 0;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0 !important;
}
.mh-footer-logo { margin-bottom: 25px; }
.mh-footer-logo img {
    height: 80px;
    width: auto;
    max-width: 280px;
    display: block;
    margin: 0 auto;
}
.mh-footer-social { margin-bottom: 30px; }
.mh-footer-social h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.mh-social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.mh-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: all var(--mh-transition);
}
.mh-social-icons a:hover {
    background: #ffffff;
    color: #1a1f3c;
}

/* Footer Links — uppercase with | separators like madhurs.in */
.mh-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 25px;
    padding: 0 20px;
}
.mh-footer-links a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    transition: color var(--mh-transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 16px;
}
.mh-footer-links a:hover { color: #ffffff; }
.mh-footer-links a + a {
    border-left: 1px solid rgba(255,255,255,0.25);
}

/* Country Switcher */
.mh-country-switcher { position: relative; display: inline-block; }
.mh-country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.mh-country-btn img {
    width: 24px;
    height: auto;
    border-radius: 2px;
}
.mh-country-btn i { font-size: 10px; transition: transform var(--mh-transition); }
.mh-country-switcher.open .mh-country-btn i { transform: rotate(180deg); }
.mh-country-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f3c;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    min-width: 130px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-bottom: 6px;
}
.mh-country-switcher.open .mh-country-dropdown { display: block; }
.mh-country-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #ddd;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mh-country-dropdown a img {
    width: 24px;
    height: auto;
    border-radius: 2px;
}
.mh-country-dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.mh-copyright {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.mh-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #1a1f3c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--mh-transition);
    z-index: 999;
}
.mh-back-to-top.visible { opacity: 1; visibility: visible; }
.mh-back-to-top:hover { background: var(--mh-primary); color: #fff; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .mh-topbar-inner { display: flex; gap: 15px; }
    .mh-header-icons { margin-left: auto; }
    .mh-topbar { padding: 12px 0; }
    .mh-gateway-grid { height: 70vh; min-height: 450px; }
    .mh-gateway-btn { padding: 12px 24px; font-size: 14px; }
    .mh-tagline-title { font-size: 32px; }
    .mh-subcat-image { height: 240px; }
    .mh-mega-panel.active { flex-wrap: wrap; }
    .mh-mega-menu { min-width: unset; }
    .mh-mega-sidebar { width: 180px; min-width: 180px; }
}

@media (max-width: 767px) {
    .mh-gateway-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: auto;
        max-height: none;
        gap: 3px;
    }
    .mh-gateway-panel { height: 220px; }
    .mh-gateway-btn-wrap { bottom: 25px; }
    .mh-gateway-btn { padding: 10px 22px; font-size: 13px; }
    .mh-tagline { padding: 40px 15px; }
    .mh-tagline-title { font-size: 26px; }
    .mh-tagline-sub { font-size: 15px; }
    .mh-subcat-image { height: 200px; }
    .mh-subcat-title { font-size: 14px; padding: 14px 10px; }
    .mh-article-thumb { height: 200px; }
    .mh-logo img { height: 36px; }
    .mh-footer-links { flex-direction: column; gap: 10px; }
    .mh-footer-links a + a { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
    .mh-mega-menu { display: none !important; }
}

@media (max-width: 480px) {
    .mh-gateway-panel { height: 180px; }
    .mh-tagline-title { font-size: 22px; }
    .mh-subcat-image { height: 180px; }
}
/* ── Hero Slider ── */
.mh-cathome-hero {
    width: 100%;
    overflow: hidden;
}
.mh-cathome-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}
.mh-cathome-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mh-cathome-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}
.mh-cathome-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.mh-cathome-hero-subtitle {
    font-size: 16px;
    color: #555;
    margin: 0 0 20px;
}
.mh-cathome-hero-btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--mh-primary, #377dff);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.mh-cathome-hero-btn:hover {
    background: #2a6ad4;
    color: #fff;
}

/* ── Section Container ── */
.mh-cathome-section {
    padding: 40px 0;
}
.mh-cathome-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    text-align: center;
}

/* ── Top Categories Carousel ── */
.mh-cathome-topcats {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.mh-cathome-topcats::-webkit-scrollbar { display: none; }
.mh-cathome-topcat-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.2s;
}
.mh-cathome-topcat-card:hover {
    transform: translateY(-4px);
}
.mh-cathome-topcat-img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mh-cathome-topcat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mh-cathome-topcat-name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

/* ── Brand Spotlight ── */
.mh-cathome-spotlight-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    min-height: 300px;
}
.mh-cathome-spotlight-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
}
.mh-cathome-spotlight-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mh-cathome-spotlight-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    color: #fff;
}
.mh-cathome-spotlight-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: 0.85;
}
.mh-cathome-spotlight-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.mh-cathome-spotlight-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.mh-cathome-spotlight-btn:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}
.mh-cathome-spotlight-products {
    overflow-x: auto;
    display: flex;
    align-items: stretch;
}
.mh-cathome-spotlight-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #999;
    font-size: 14px;
    gap: 12px;
}

/* ── Product Cards (used in spotlights + trending) ── */
.mh-cathome-product-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.mh-cathome-product-scroll::-webkit-scrollbar { display: none; }
.mh-cathome-product-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
}
.mh-cathome-product-card a {
    text-decoration: none;
    color: inherit;
}
.mh-cathome-product-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}
.mh-cathome-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mh-cathome-product-card:hover img {
    transform: scale(1.05);
}
.mh-cathome-product-info {
    padding: 8px 0;
}
.mh-cathome-product-brand {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mh-cathome-product-title {
    display: block;
    font-size: 13px;
    color: #333;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mh-cathome-product-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Articles Grid ── */
.mh-cathome-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mh-cathome-article-card {
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.mh-cathome-article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.mh-cathome-article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.mh-cathome-article-info {
    padding: 12px 16px;
}
.mh-cathome-article-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--mh-primary, #377dff);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.mh-cathome-article-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* ── Popular Brands Grid ── */
.mh-cathome-brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}
.mh-cathome-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    min-height: 70px;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.mh-cathome-brand-card:hover {
    border-color: var(--mh-primary, #377dff);
    box-shadow: 0 2px 8px rgba(55,125,255,0.1);
}
.mh-cathome-brand-card img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}
.mh-cathome-brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.mh-cathome-brand-name {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .mh-cathome-hero-slide { min-height: 300px; }
    .mh-cathome-hero-title { font-size: 28px; }
    .mh-cathome-spotlight-grid { grid-template-columns: 1fr; }
    .mh-cathome-spotlight-banner { min-height: 220px; }
    .mh-cathome-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .mh-cathome-brands-grid { grid-template-columns: repeat(4, 1fr); }
    .mh-cathome-topcat-img-wrap { width: 100px; height: 100px; }
}

@media (max-width: 767px) {
    .mh-cathome-section { padding: 24px 0; }
    .mh-cathome-heading { font-size: 18px; margin-bottom: 16px; }
    .mh-cathome-hero-slide { min-height: 220px; }
    .mh-cathome-hero-title { font-size: 22px; }
    .mh-cathome-articles-grid { grid-template-columns: 1fr; }
    .mh-cathome-brands-grid { grid-template-columns: repeat(3, 1fr); }
    .mh-cathome-topcat-img-wrap { width: 80px; height: 80px; }
    .mh-cathome-topcat-name { font-size: 11px; }
    .mh-cathome-product-card { flex: 0 0 150px; }
}
/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — Latest Fashion Articles Cards
   Matches madhurs.co.uk homepage layout exactly
   Append this to public/assets/front/css/madhurs.css
   ═══════════════════════════════════════════════════════════ */

.mh-articles-section {
    padding: 30px 0 40px;
}

/* Card — fixed height, all cards same size */
.mh-article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: box-shadow 0.3s ease;
}
.mh-article-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Force all slides same height */
.mh-articles-swiper .swiper-slide {
    height: auto;
}

/* Card image — fixed aspect ratio like madhurs.co.uk */
.mh-article-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0ebe5;
    flex-shrink: 0;
}
.mh-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Badge on image — BLACK background, slightly bigger font */
.mh-article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 3px;
    line-height: 1.3;
}

/* Card body — fixed padding */
.mh-article-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mh-article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin: 0 0 8px;
}
.mh-article-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Author meta */
.mh-article-meta {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.mh-article-meta i {
    margin-right: 4px;
}

/* Excerpt */
.mh-article-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}
.mh-article-meta {
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.mh-article-img img {
    transition: transform 0.4s ease;
}
.mh-article-card:hover .mh-article-img img {
    transform: scale(1.08);
}
/* Light gray background for article & brand sections — matches madhurs.co.uk */
.mh-articles-section {
    background: #f5f6fa;
}
/* Brand card — remove blue outline, add zoom on hover */
.mh-cathome-brand-card,
.mh-brand-card {
    outline: none !important;
    border: none !important;
}
.mh-cathome-brand-card:focus,
.mh-brand-card:focus {
    outline: none !important;
}
.mh-cathome-brand-card img,
.mh-brand-card img {
    transition: transform 0.4s ease;
}
.mh-cathome-brand-card img,
.mh-brand-card img {
    max-height: 80px !important;
    width: auto !important;
}

.mh-cathome-heading-row .mh-cathome-heading::before,
.mh-cathome-heading-row .mh-cathome-heading::after {
    margin: 0 20px !important;
}
.mh-cathome-heading {
    font-family: inherit !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    color: #333 !important;
}
.mh-cathome-brand-card:hover img,
.mh-brand-card:hover img {
    transform: scale(1.15);
}
.mh-cathome-brand-card img {
    filter: none !important;
}
.mh-brands-section {
    background: #fff;
}
/* ═══════════════════════════════════════════
   STATIC PAGES (About, Privacy, Terms, etc.)
   ═══════════════════════════════════════════ */
.mh-static-page {
    background: #f0f2f5;
    padding-bottom: 60px;
}

/* Breadcrumb bar */
.mh-breadcrumb-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.mh-breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.mh-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.mh-breadcrumb-home {
    color: #374151;
    text-decoration: none;
}
.mh-breadcrumb-home i {
    font-size: 13px;
}
.mh-breadcrumb-home:hover {
    color: #1e0090;
}
.mh-breadcrumb-sep {
    color: #9ca3af;
}
.mh-breadcrumb-current {
    color: #9ca3af;
}

/* Content section */
.mh-static-content {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
}

/* White card */
.mh-static-card {
    background: #fff;
    border-radius: 8px;
    padding: 50px 80px;
}
.mh-static-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px;
}
.mh-page-content {
    line-height: 1.9;
    color: #333;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .mh-static-card {
        padding: 30px 20px;
    }
    .mh-static-title {
        font-size: 1.4rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   BRANDS & SHOPS DIRECTORY — matches madhurs.co.uk
   Replaces lines 1413–1620 in madhurs.css
   ═══════════════════════════════════════════════════════════ */

/* ── Header section — grey background, centered ── */
.directory-header-bg {
    background: #f4f4f4 !important;
    padding: 35px 0 40px !important;
    text-align: center !important;
}
.directory-header {
    text-align: center !important;
    max-width: 900px;
    margin: 0 auto;
}
.directory-header h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #222;
    margin: 0 0 15px;
}
.directory-description {
    color: #333; !important;
    font-size: 16px; !important;
    line-height: 1.8;
    margin: 0;
}

/* ── Search bar — white background ── */
.directory-search-wrap {
    background: #fff !important;
    padding: 20px 0 !important;
}
.directory-search {
    position: relative;
    max-width: 100%;
}
.directory-search-input {
    width: 100% !important;
    padding: 12px 50px 12px 18px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff !important;
}
.directory-search-input:focus {
    border-color: #999;
}
.directory-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: none !important;
    border: none !important;
    color: #666;
    font-size: 16px;
    cursor: pointer;
}
.directory-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.search-result-item {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}
.search-result-item:hover {
    background: #f8f8f8;
}
.search-no-result {
    padding: 14px 18px;
    font-size: 14px;
    color: #999;
}

/* ── A-Z Navigation — centered, compact, grey background ── */
.az-nav-bg {
    background: #f4f4f4 !important;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}
.az-navigation {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}
.az-letter {
    display: inline-block !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 2px 5px !important;
}
a.az-letter:hover {
    color: #000 !important;
    text-decoration: underline !important;
}
a.az-letter.active {
    color: #000 !important;
    text-decoration: underline !important;
}
.az-letter.disabled {
    color: #bbb !important;
    cursor: default;
    font-weight: 400 !important;
}
.az-separator {
    color: #ccc;
    font-size: 14px;
    margin: 0 2px;
}

/* ── Section Title ── */
.directory-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #222;
    margin: 20px 0 0 !important;
    padding: 0 0 15px !important;
    border-bottom: 1px solid #e8e8e8;
}

/* ── Letter Group Row — letter LEFT, names RIGHT ── */
.letter-group {
    display: flex !important;
    align-items: flex-start !important;
    border-bottom: 1px solid #e8e8e8;
    padding: 25px 0 !important;
}

/* Letter column — fixed width on left, centered */
.letter-col {
    width: 200px !important;
    min-width: 200px !important;
    flex-shrink: 0;
    padding-top: 2px;
    text-align: center !important;
}
.letter-label {
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #333 !important;
}

/* Names column — fills remaining space */
.names-col {
    flex: 1 !important;
    min-width: 0;
}

/* Name list base — no bullets */
.name-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    column-gap: 30px !important;
}

/* 4 columns for main /brands page */
.name-list-4col {
    column-count: 4 !important;
}

/* 3 columns for single letter /brands/A page */
.name-list-3col {
    column-count: 3 !important;
}

.name-list li {
    list-style: none !important;
    break-inside: avoid;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.name-list li a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 2.1 !important;
    display: block !important;
    transition: color 0.15s;
}
.name-list li a:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Show all link — right aligned */
.show-all-link {
    margin-top: 10px;
    text-align: right;
}
.show-all-link a {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.show-all-link a:hover {
    text-decoration: underline;
}

/* ── Single Letter Page heading ── */
.directory-letter-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #222;
    margin: 25px 0 5px !important;
    padding: 0 0 15px !important;
    border-bottom: 1px solid #e8e8e8;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.no-results p {
    font-size: 16px;
    margin-bottom: 15px;
}
.btn-back {
    display: inline-block;
    padding: 10px 24px;
    background: #2c2c44;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}
.btn-back:hover { background: #1a1a30; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .name-list-4col {
        column-count: 3 !important;
    }
    .letter-col {
        width: 120px !important;
        min-width: 120px !important;
    }
}
@media (max-width: 768px) {
    .directory-header h1 {
        font-size: 24px !important;
    }
    .letter-group {
        flex-direction: column !important;
        padding: 20px 0 !important;
    }
    .letter-col {
        width: auto !important;
        min-width: auto !important;
        text-align: left !important;
        margin-bottom: 10px;
    }
    .name-list-4col,
    .name-list-3col {
        column-count: 2 !important;
    }
    .directory-search-input {
        font-size: 14px !important;
        padding: 12px 50px 12px 14px !important;
    }
}
@media (max-width: 480px) {
    .name-list-4col,
    .name-list-3col {
        column-count: 1 !important;
    }
}
/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (Login, Register, Forgot/Reset Password)
   ═══════════════════════════════════════════════════════════ */

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0 60px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 36px 32px;
}
.auth-title {
    font-size: 21px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}
.auth-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
}
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #2c2c44;
}

.form-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2c2c44;
}
.forgot-link {
    font-size: 13px;
    color: #2c2c44;
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.btn-auth-submit {
    width: 100%;
    padding: 11px;
    background: #2c2c44;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-auth-submit:hover {
    background: #1a1a30;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}
.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 14px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

/* Social Login */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}
.btn-social:hover {
    border-color: #bbb;
    background: #fafafa;
}

.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}
.auth-footer-text a {
    color: #2c2c44;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }


/* ═══════════════════════════════════════════════════════════
   USER DASHBOARD (Profile, Wishlist)
   ═══════════════════════════════════════════════════════════ */

.user-dashboard {
    display: flex;
    gap: 30px;
    padding: 30px 0 60px;
}

/* Sidebar */
.user-sidebar {
    width: 220px;
    flex-shrink: 0;
}
.user-avatar-section {
    text-align: center;
    padding: 24px 14px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 12px;
}
.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2c2c44;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 2px;
}
.user-email {
    font-size: 12px;
    color: #888;
    margin: 0;
    word-break: break-all;
}
.user-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.15s;
}
.user-nav-item:hover {
    background: #f0f0f0;
    color: #222;
}
.user-nav-item.active {
    background: #2c2c44;
    color: #fff;
}

/* Content */
.user-content {
    flex: 1;
    min-width: 0;
}
.user-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}
.user-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.user-card-danger {
    border-color: #fecaca;
}
.user-card-danger .user-card-title {
    color: #991b1b;
}
.user-card-danger p {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
}
.btn-danger {
    padding: 9px 20px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.wishlist-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.wishlist-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.wishlist-item-image {
    position: relative;
    height: 190px;
    background: #f8f8f8;
    overflow: hidden;
}
.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wishlist-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    color: #999;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wishlist-remove-btn:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.wishlist-item-info {
    padding: 10px;
}
.wishlist-item-brand {
    font-size: 11px;
    color: #999;
    margin: 0 0 2px;
    text-transform: uppercase;
}
.wishlist-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wishlist-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0;
}
.wishlist-empty {
    text-align: center;
    padding: 50px 20px;
}
.wishlist-empty h3 {
    font-size: 17px;
    color: #444;
    margin: 14px 0 6px;
}
.wishlist-empty p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .user-dashboard {
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
    }
    .user-avatar-section {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 14px;
    }
    .user-avatar {
        margin: 0;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .user-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    .user-nav-item {
        white-space: nowrap;
    }
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-card {
        padding: 24px 18px;
    }
}
.directory-header-bg .directory-description { color: #222 !important; font-size: 16px !important; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE PILL BAR — Always-visible gender nav
   ═══════════════════════════════════════════════════════════════════
   Sits between the white header and the page content. On mobile only.
   Hidden on desktop (>= 992px) — the existing mega menu takes over.
   =================================================================== */
.mh-pillbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
}
.mh-pillbar-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 0 12px;
}
.mh-pillbar-inner::-webkit-scrollbar { display: none; }

/* Pill — works for both <a> (navigate) and <button> (drill) variants */
.mh-pillbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 1px solid #d6d6dc;
    border-radius: 999px;
    background: #fff;
    color: #1a1f3c;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mh-pillbar-pill:hover,
.mh-pillbar-pill:focus {
    background: #f3f4f6;
    border-color: #1a1f3c;
    color: #1a1f3c;
    text-decoration: none;
    outline: none;
}
.mh-pillbar-pill:active {
    background: #1a1f3c;
    color: #fff;
}

/* Hide the entire pillbar on desktop — mega menu handles nav there */
@media (min-width: 992px) {
    .mh-pillbar { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   HIERARCHICAL MOBILE DRAWER — mh-mm-* classes
   ═══════════════════════════════════════════════════════════════════
   The drawer (#mobileMenu) sets data-current-level="1..4" via JS.
   CSS uses that attribute to:
     • Show search + tabs + extras at L1 only (.mh-mm-l1-only).
     • Show only the active panel (.is-active) at any level.
     • Hide L1 chrome at L2+ so deeper panels feel cleaner.
   =================================================================== */

/* L1-only chrome — hidden once user drills past Level 1 */
.mh-mobile-menu[data-current-level="2"] .mh-mm-l1-only,
.mh-mobile-menu[data-current-level="3"] .mh-mm-l1-only,
.mh-mobile-menu[data-current-level="4"] .mh-mm-l1-only {
    display: none !important;
}

/* Tab strip at the top — Fashiola-style horizontal pills */
.mh-mm-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.mh-mm-tabs::-webkit-scrollbar { display: none; }

.mh-mm-tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.mh-mm-tab:hover { color: #1a1f3c; }
.mh-mm-tab.is-active {
    color: #1a1f3c;
    border-bottom-color: #1a1f3c;
}

/* Panel stack — all panels stacked, only one visible at a time */
.mh-mm-stack {
    position: relative;
    background: #fff;
}

/* Every panel hidden by default; shown when .is-active.
   At L1, the active L1 panel matches the active tab.
   At L2+, drilling adds .is-active to the chosen panel and updates
   data-current-level on the drawer to push tabs/search out of view. */
.mh-mm-panel { display: none; }
.mh-mm-panel.is-active { display: block; }

/* L2+ panels fully cover the drawer body when active */
.mh-mobile-menu[data-current-level="2"] .mh-mm-panel-l1,
.mh-mobile-menu[data-current-level="3"] .mh-mm-panel-l1,
.mh-mobile-menu[data-current-level="4"] .mh-mm-panel-l1 {
    display: none !important;
}
.mh-mobile-menu[data-current-level="3"] .mh-mm-panel-l2,
.mh-mobile-menu[data-current-level="4"] .mh-mm-panel-l2 {
    display: none !important;
}
.mh-mobile-menu[data-current-level="4"] .mh-mm-panel-l3 {
    display: none !important;
}

/* Back-bar (L2+ only) with chevron + breadcrumb pill */
.mh-mm-back-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}
.mh-mm-back {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #1a1f3c;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    font-family: inherit;
}
.mh-mm-back:hover { background: #f3f4f6; }
.mh-mm-pill {
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1f3c;
}

/* Lists — drill rows + leaf rows + view-all rows */
.mh-mm-list,
.mh-mm-extras {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.mh-mm-extras { border-top: 8px solid #f3f4f6; }

.mh-mm-row {
    border-bottom: 1px solid #f1f1f3;
}
.mh-mm-row:last-child { border-bottom: 0; }

/* Drill row: button styled like a row, chevron on the right */
.mh-mm-drill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 0;
    color: #1a1f3c;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.mh-mm-drill:hover,
.mh-mm-drill:active { background: #f9fafb; }
.mh-mm-drill > span { flex: 1 1 auto; }
.mh-mm-drill > i {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #9ca3af;
    font-size: 13px;
}

/* Leaf row: full-width tappable anchor */
.mh-mm-row-leaf > a {
    display: block;
    padding: 14px 16px;
    color: #1a1f3c;
    text-decoration: none;
    font-size: 15px;
}
.mh-mm-row-leaf > a:hover,
.mh-mm-row-leaf > a:active { background: #f9fafb; text-decoration: none; }

/* View-all row: prominent label, points to listing URL */
.mh-mm-view-all {
    border-bottom: 1px solid #e5e7eb !important;
}
.mh-mm-view-all > a {
    display: block;
    padding: 14px 16px;
    color: #1a1f3c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 15px;
}
.mh-mm-view-all > a:hover,
.mh-mm-view-all > a:active { background: #f9fafb; }

/* Hide entire drawer's mm-* on desktop — desktop has the mega menu */
@media (min-width: 992px) {
    .mh-mm-tabs,
    .mh-mm-stack,
    .mh-mm-extras { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   BUILD 5 — PILLBAR TIGHTENING + SIDEBAR-ACTIVE HIDE
   ═══════════════════════════════════════════════════════════════════
   Two adjustments to the existing .mh-pillbar styles above:

   (1) Pill horizontal padding reduced (18px → 12px) and inner gap
       reduced (8px → 6px) so all four pills (Women / Men / Beauty /
       Home) fit on a 360px viewport without horizontal scroll. The
       pills already used flex with overflow-x:auto, but the previous
       padding made them wider than necessary.

   (2) When the catalog/brand/shop sidebar is open (body has the
       .ct-sidebar-active class — added by initMobileSidebar in
       catalog.js) the pillbar hides entirely. This ensures the
       sidebar visually owns the viewport from the top down and the
       brand/shop logo at the top of the sidebar isn't squeezed
       below the pillbar.
   =================================================================== */

/* (1) Tighter pill padding + inner gap (mobile only — desktop hides
       the entire pillbar via the existing min-width:992px rule) */
@media (max-width: 991px) {
    .mh-pillbar-inner {
        gap: 6px;
        padding: 0 10px;
    }
    .mh-pillbar-pill {
        padding: 8px 12px;
        font-size: 12px;
        letter-spacing: 0.2px;
    }
}

/* (2) Hide the pillbar when the catalog sidebar (categories/filters
       drawer) is open. The hamburger drawer is independent — it
       already covers the full viewport height itself, so this rule
       doesn't affect that flow. */
body.ct-sidebar-active .mh-pillbar {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   BUILD 6 — DRAWER WIDTH + HOMEPAGE SECTION SPACING
   ═══════════════════════════════════════════════════════════════════
   Two adjustments, both pure overrides (no original rules touched):

   (1) Hamburger drawer width 280px → 320px so all four L1 tabs
       (WOMEN / MEN / BEAUTY / HOME) fit comfortably inside the
       drawer with the .mh-mm-tabs horizontal pill strip. The
       original .mh-mobile-menu rule at line 356 used:
           width: 280px;  left: -300px;
       Override to:
           width: 320px;  left: -340px;  (off-screen offset must
       exceed width by 20px so transition-from position is fully
       hidden — matches the original 20px margin pattern.)

   (2) Homepage subcat sections (Women's Fashion / Men's Fashion /
       Home & Living carousels on the index page) — reduce the
       vertical gap between adjacent sections. Original rule at
       line 519: padding: 40px 0. The combined effect with each
       section title's 30px margin-bottom and the swiper-wrapper's
       padding-bottom: 10px produced ~120px of empty space between
       the last card of one section and the title of the next.
       Halve the section padding to 20px on mobile so the gap
       compresses to ~80px (still enough breathing room).
       Mobile only — desktop has more horizontal context and the
       original spacing reads correctly there.
   =================================================================== */

/* (1) Hamburger drawer — wider so all 4 L1 tabs fit */
.mh-mobile-menu {
    width: 320px;
    left: -340px;
}

/* (2) Homepage subcategory carousels — tighter vertical spacing on mobile */
@media (max-width: 991px) {
    .mh-subcat-section {
        padding: 20px 0;
    }
    /* Tighten the section-title's margin-bottom too — original 30px is
       fine on desktop but feels heavy on a narrow viewport when there's
       only one or two cards visible per section. */
    .mh-subcat-section .section-title.section-title2.section-title3 {
        margin-bottom: 16px;
    }
}
