/* ==========================================================================
   KEERTHI STONES - COMPLETE STYLESHEET
   ========================================================================== */
:root {
    --primary-color: #111111; 
    --accent-color: #c9a050; 
    --accent-hover: #b08a3e;
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --bg-light: #fafafa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex-grow: 1; }

#header-root {
    position: sticky;
    top: 0;
    z-index: 99999;
    width: 100%;
    display: block;
}

/* ==========================================================================
   HEADER - VARIANT 4 / REFINED COMPACT NAVIGATION
   ========================================================================== */
.floating-header {
    position: relative;
    background: rgba(232, 224, 225, 0.96) !important;
    padding: 12px 24px;
    margin: 14px auto;
    width: min(95%, 1400px);
    border-radius: 10px;
    border: 1px solid rgba(107, 0, 48, 0.05);
    box-shadow: 0 8px 24px rgba(30, 20, 24, 0.09);
    box-sizing: border-box;
}

.header-main-row {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto auto;
    align-items: center;
    column-gap: 20px;
    width: 100%;
    min-height: 50px;
    background: rgba(233, 225, 226);
}

.header-left {
    min-width: max-content;
}

.header-left a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left h2 {
    margin: 0;
    color: #6b0030 !important;
    font-size: 1.28rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.45px !important;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-left img {
    display: none;
    max-height: 38px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
}

/* Search */
.header-search-row {
    min-width: 0;
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(80, 60, 65, 0.08);
    border-radius: 5px;
    height: 42px;
    width: 100%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.035);
    overflow: hidden;
}

.category-dropdown {
    position: relative;
    height: 100%;
}

.category-btn {
    background: #eee8e9;
    border: none;
    border-right: 1px solid #ddd6d7;
    border-radius: 5px 0 0 5px;
    height: 100%;
    padding: 0 14px;
    color: #343034;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-btn:hover {
    background: #e5dddf;
    color: #6b0030;
}

.category-chevron {
    font-size: 10px;
    color: #777;
}

.search-input-box {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    background: #ffffff;
    color: #8b8587;
}

.search-input-box input {
    border: none;
    outline: none;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 15px 0 9px;
    font-size: 13px;
    color: #333;
    font-family: inherit;
    background: transparent;
}

.search-submit-btn {
    background: #6b0030;
    color: #ffffff;
    border: none;
    width: 45px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.search-submit-btn:hover {
    background: #520024;
}

/* Category dropdown */
.category-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
    border-radius: 8px;
    padding: 5px 0;
    list-style: none;
    z-index: 100001;
    margin: 0;
    border: 1px solid #e8e4e5;
}

.category-dropdown .dropdown-menu li {
    border-bottom: 1px solid #f0eded;
}

.category-dropdown .dropdown-menu li:last-child {
    border-bottom: none;
}

.category-dropdown .dropdown-menu li a {
    display: block;
    padding: 11px 17px !important;
    color: #333333 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.category-dropdown .dropdown-menu li a:hover {
    background: #f8f4f5;
    color: #6b0030 !important;
    padding-left: 20px !important;
    transition: all 0.2s ease;
}

.sub-menu-right {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-left: 5px;
    min-width: 220px;
}

.group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #444;
    padding: 11px 17px;
    font-size: 13px;
    transition: 0.2s;
}

.group-toggle:hover {
    background: #f8f4f5;
    color: #6b0030;
}

/* Desktop navigation - Variant 4 */
.header-nav-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: max-content;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    border-right: 1px solid rgba(107, 0, 48, 0.14);
    padding-right: 20px;
}

.plain-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f1b1d;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.plain-nav-link i {
    color: #111;
    font-size: 16px;
}

.plain-nav-link:hover {
    color: #6b0030;
    transform: translateY(-1px);
}

.plain-nav-link:hover i {
    color: #6b0030;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-btn {
    min-height: 42px;
    padding: 0 17px !important;
    font-size: 11px !important;
    letter-spacing: 0.15px;
    border-radius: 8px !important;
    font-weight: 800 !important;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    text-transform: none;
    background: #6b0030 !important;
    color: #ffffff !important;
    border: 1px solid #6b0030 !important;
    box-shadow: 0 4px 12px rgba(107, 0, 48, 0.14);
}

.quote-btn:hover {
    background: #520024 !important;
    border-color: #520024 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(107, 0, 48, 0.18);
}

/* Right-side icons */
.header-icons-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: 18px;
    border-left: 1px solid rgba(107, 0, 48, 0.14);
}

.icon-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #6b0030;
    font-size: 19px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 5px;
    width: 36px;
    height: 36px;
    text-decoration: none;
}

.icon-btn:hover {
    transform: translateY(-1px);
    color: #4a0020;
}

.cart-icon-btn {
    position: relative;
}

.cart-badge-icon {
    position: absolute;
    top: -2px;
    right: -3px;
    background-color: #b0003a;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    min-width: 17px;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e6dede;
    box-sizing: border-box;
}

.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: -6px;
    background: #fff;
    width: 220px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.14);
    border-radius: 10px;
    border: 1px solid #ece7e8;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 100001;
    flex-direction: column;
    text-align: left;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 17px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #ece7e8;
    border-top: 1px solid #ece7e8;
}

.user-dropdown-menu.show {
    display: flex;
    animation: slideDown 0.18s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu li {
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 650;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: 0.2s;
}

.user-dropdown-menu li i {
    color: #777;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.user-dropdown-menu li:hover {
    background: #f8f4f5;
    color: #6b0030;
}

.user-dropdown-menu li:hover i {
    color: #6b0030;
}

.user-dropdown-menu li.logout-text {
    border-top: 1px solid #eee;
    margin-top: 4px;
    color: #9d163d;
}

.user-dropdown-menu li.logout-text i {
    color: #9d163d;
}

.user-dropdown-menu li.logout-text:hover {
    background: #fff0f3;
    color: #8b0e31;
}

/* Mobile-only controls / drawer */
.mobile-only {
    display: none !important;
}

.mobile-navigation-panel {
    display: none;
}

.desktop-only {
    display: flex !important;
}

@media (max-width: 1120px) and (min-width: 993px) {
    .floating-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .header-main-row {
        column-gap: 12px;
    }

    .quote-btn {
        padding-left: 13px !important;
        padding-right: 13px !important;
        font-size: 10px !important;
    }

    .header-search-row {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    #header-root {
        position: sticky;
    }

    .floating-header {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .header-main-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo icons"
            "search search";
        column-gap: 10px;
        row-gap: 12px;
        min-height: auto;
    }

    .header-left {
        grid-area: logo;
        min-width: 0;
    }

    .header-left h2 {
        font-size: 1.05rem !important;
        letter-spacing: 1.15px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .header-left img {
        max-height: 34px;
        max-width: 150px;
    }

    .header-search-row {
        grid-area: search;
        width: 100%;
        min-width: 0;
    }

    .header-nav-row.desktop-header-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: #fff;
        border: 1px solid #ebe6e7;
        border-radius: 12px;
        box-shadow: 0 14px 35px rgba(0,0,0,0.14);
        padding: 10px;
        z-index: 100000;
        margin: 0;
    }

    .header-nav-row.desktop-header-nav.show {
        display: flex;
    }

    .header-nav-row .nav-links-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border-right: none;
        padding-right: 0;
    }

    .header-nav-row .plain-nav-link {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #f0ecee;
        margin: 0 0 4px 0;
        padding: 12px 10px;
        justify-content: flex-start;
        gap: 10px;
        font-size: 13px;
    }

    .nav-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-buttons a,
    .nav-buttons button {
        width: 100%;
        min-height: 44px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        grid-area: icons;
        justify-content: flex-end;
    }

    .mobile-only .icon-btn {
        width: 34px;
        height: 34px;
    }

    .mobile-menu-toggle.is-open {
        background: rgba(107,0,48,0.08);
        border-radius: 8px;
    }

    .mobile-navigation-panel {
        display: none;
    }

    .mobile-navigation-panel.show {
        display: none;
    }
}

@media (max-width: 560px) {
    .floating-header {
        width: calc(100% - 14px);
        padding: 10px;
        margin: 7px auto;
    }

    .header-main-row {
        row-gap: 9px;
    }

    .header-left h2 {
        font-size: 0.92rem !important;
        letter-spacing: 0.9px !important;
    }

    .search-container {
        height: 40px;
    }

    .category-btn {
        padding: 0 10px;
        font-size: 10px;
    }

    .search-input-box input {
        font-size: 12px;
        padding-right: 10px;
    }

    .mobile-only {
        gap: 1px !important;
    }

    .mobile-only .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}


/* Home loading overlay */
.home-loading {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6b0030;
  background: #fff;
  z-index: 999999 !important;
  font-size: 14px;
  box-sizing: border-box;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #ece7e9;
  border-top-color: #6b0030;
  border-radius: 50%;
  animation: homeSpin 0.8s linear infinite;
}

@keyframes homeSpin {
  to { transform: rotate(360deg); }
}

body.page-is-loading #footer-root {
  visibility: hidden !important;
}


/* Mobile header/dropdown refinements */
@media (max-width: 768px) {
    .category-dropdown .dropdown-menu {
        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;
        box-sizing: border-box;
    }

    .category-dropdown .dropdown-menu.sub-menu-right {
        width: calc(100vw - 195px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 195px) !important;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 10px !important;
        white-space: normal !important;
    }

    .category-dropdown .dropdown-menu.sub-menu-right li a {
        padding: 9px 3px !important;
        font-size: 12px !important;
        line-height: 1.3;
        white-space: normal !important;
        word-break: normal;
    }

    .category-dropdown .group-toggle {
        padding: 10px 13px !important;
        font-size: 13px !important;
    }

    .mobile-home-btn {
        display: inline-flex !important;
    }

    .quote-btn { touch-action: manipulation; }
}

@media (max-width: 400px) {
    .category-dropdown .dropdown-menu {
        width: 175px !important;
        min-width: 175px !important;
        max-width: 175px !important;
    }

    .category-dropdown .dropdown-menu.sub-menu-right {
        width: calc(100vw - 180px) !important;
        max-width: calc(100vw - 180px) !important;
    }

    .mobile-only .icon-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* ========================================= */
/* GET A QUOTE / AUTH MODAL FORM STYLES      */
/* ========================================= */
.quote-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.quote-modal-content { background: #fff; width: 95%; max-width: 650px; border-radius: 10px; padding: 25px; border: 1px solid #6b0030; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #555; line-height: 1; border: none; background: none; }
.close-modal:hover { color: #d00; }
.quote-form-row { display: flex; gap: 15px; margin-bottom: 12px; }
.quote-form-group { flex: 1; margin-bottom: 12px; }
.quote-form-group label { display: block; font-size: 12px; font-weight: 600; color: #333; margin-bottom: 5px; }
.quote-modal-content input, .quote-modal-content select, .quote-modal-content textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 13px; box-sizing: border-box; }
.quote-modal-content input:read-only { color: #888; }
.quote-submit-btn { background: #6b0030; color: #fff; padding: 12px; border: none; border-radius: 6px; width: 100%; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.quote-submit-btn:hover { background: #4a0020; transform: translateY(-2px); }
@media (max-width: 768px) { .quote-form-row { flex-direction: column; gap: 0; } }

.auth-divider { display: flex; align-items: center; text-align: center; margin: 20px 0; color: #aaa; font-size: 12px; font-weight: bold; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid #eee; }
.auth-divider span { padding: 0 10px; }
.google-auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #333; border: 1px solid #ccc; padding: 12px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.google-auth-btn:hover { background: #f9f9f9; }
.google-auth-btn img { width: 18px; height: 18px; }

/* ========================================= */
/* FIX FOR "ADD TO CART" BLACK BUTTON ISSUE  */
/* ========================================= */
.pm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.pm-overlay.show { display: flex; opacity: 1; }
.pm-content { background: #fff; width: 90%; max-width: 900px; border-radius: 16px; display: flex; overflow: hidden; position: relative; transform: translateY(30px); transition: transform 0.4s ease; box-shadow: 0 25px 60px rgba(0,0,0,0.3); min-height: 450px; }
.pm-overlay.show .pm-content { transform: translateY(0); }
.pm-close { position: absolute; top: 15px; right: 20px; font-size: 35px; cursor: pointer; color: #888; z-index: 10; border: none; background: transparent; transition: color 0.3s; padding: 0; line-height: 1; }
.pm-close:hover { color: #111; }
.pm-left { width: 45%; background: #f4f4f4; padding: 40px; display: flex; align-items: center; justify-content: center; position: relative; border-left: 12px solid #d4af37; }
.pm-img-wrapper { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.15); background: #fff; }
.pm-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.pm-right { width: 55%; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.pm-title { font-size: 32px; font-family: 'Playfair Display', serif; color: #111; text-transform: uppercase; font-weight: 800; margin: 0 0 15px 0; letter-spacing: 1px; }
.pm-desc { font-size: 15px; color: #555; line-height: 1.6; margin: 0 0 25px 0; font-family: 'Inter', sans-serif; }
.pm-price-wrap { display: flex; align-items: center; margin-bottom: 35px; border-top: 1px solid #eee; padding-top: 25px; }
.pm-price { font-size: 30px; font-weight: 800; color: #111; font-family: 'Inter', sans-serif; }
.pm-actions { display: flex; gap: 15px; margin-top: auto; }

.pm-btn-cart { background: #ffffff !important; color: #6b0030 !important; border: 2px solid #6b0030 !important; padding: 16px 35px !important; border-radius: 40px !important; font-weight: 800 !important; font-family: 'Inter', sans-serif !important; cursor: pointer !important; transition: all 0.3s ease, transform 0.2s ease !important; flex-grow: 1 !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 14px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; }
.pm-btn-cart:hover { background: #6b0030 !important; color: #ffffff !important; transform: translateY(-2px) !important; box-shadow: 0 10px 20px rgba(107,0,48,0.15) !important; }
.pm-btn-quote { background: #111 !important; color: #fff !important; padding: 16px 35px; border-radius: 40px; font-weight: bold; font-family: 'Inter', sans-serif; border: none; cursor: pointer; transition: background 0.3s, transform 0.2s; flex-grow: 1; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }
.pm-btn-quote:hover { background: #6b0030 !important; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(107,0,48,0.2); }

@media (max-width: 768px) {
    .pm-content { flex-direction: column; max-height: 90vh; overflow-y: auto; width: 95%; padding: 20px; }
    .pm-left { width: 100%; border-left: none; border-top: 8px solid #d4af37; padding: 15px; }
    .pm-right { width: 100%; padding: 20px 15px; text-align: center; }
    .pm-actions { flex-direction: column; }
    .pm-actions button { width: 100%; margin-bottom: 10px; }
}

/* ========================================= */
/* MISC GLOBAL SECTIONS                      */
/* ========================================= */
.hero-banner { height: 80vh; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); }
.hero-banner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 4rem; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; font-weight: 300; }

.about-company { padding: 100px 5%; text-align: center; background: #fff; }
.about-company h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary-color); margin-bottom: 30px; }
.about-company p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #555; }

.custom-slider { position: relative; width: 100%; height: 70vh; overflow: hidden; background: var(--primary-color); }
.custom-slider .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out, transform 4s ease-out; transform: scale(1.1); }
.custom-slider .slide.active { opacity: 1; transform: scale(1); }

footer { background-color: #000000; color: #ffffff; padding: 70px 5% 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; } .footer-col ul { display: flex; flex-direction: column; align-items: center; padding: 0; } }
.footer-col h3 { color: #ffffff; font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col ul li { margin-bottom: 12px; line-height: 1.8; color: #ffffff; }
.footer-col ul { list-style: none; }
.footer-col a { color: #ffffff; text-decoration: none; transition: opacity 0.3s ease; }
.footer-col a:hover { opacity: 0.6; }
.copyright { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 20px; font-size: 13px; color: #ffffff; }
.social-item a { display: inline-block; opacity: 0.6; transition: opacity 0.3s ease, transform 0.2s ease; margin-right: 15px; }
.social-item a:hover { opacity: 1; transform: translateX(5px); }

#scrollToTopBtn { position: fixed; bottom: 40px; right: 40px; width: 45px; height: 45px; background-color: #6b0030; color: white; border: none; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); z-index: 9999; }
#scrollToTopBtn.show { opacity: 1; visibility: visible; }
#scrollToTopBtn:hover { transform: translateY(-5px); background-color: #4a0020; }

.global-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #111; color: #fff; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 14px; z-index: 999999; opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.global-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.cart-page-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; font-family: 'Inter', sans-serif; min-height: 60vh; }
.cart-header-title { font-family: 'Playfair Display', serif; font-size: 32px; color: #111; margin-bottom: 15px; }
.cart-header-wrapper { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; margin-bottom: 30px; }
.continue-shopping-link { color: #666; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; }
.continue-shopping-link:hover { color: #6b0030; }
.cart-layout { display: flex; gap: 30px; align-items: flex-start; }
.cart-items-section { flex: 1; }
.empty-cart-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: none; }
.empty-cart-state i { font-size: 60px; color: #ccc; margin-bottom: 20px; }
.empty-cart-state h3 { font-size: 24px; color: #333; margin-bottom: 15px; }
.btn-primary { display: inline-block; background: #6b0030; color: white; padding: 12px 25px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: #4a0020; transform: translateY(-2px); }

.cart-item { display: flex; align-items: center; background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f4f4f4; transition: 0.3s; }
.cart-item-img { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; margin-right: 20px; }
.cart-item-details { flex: 1; }
.cart-item-title { font-size: 18px; font-weight: 700; color: #222; margin: 0 0 5px 0; }
.cart-item-price { font-weight: 700; color: #6b0030; font-size: 16px; }

.qty-controls { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; width: max-content; }
.qty-btn { background: #f9f9f9; border: none; padding: 8px 12px; cursor: pointer; color: #333; transition: 0.2s; font-weight: bold; }
.qty-btn:hover { background: #eee; }
.qty-input { width: 60px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-weight: 600; padding: 8px 0; pointer-events: auto; }
.item-subtotal { font-weight: 700; color: #111; margin: 0 20px; width: 100px; text-align: right; }
.remove-btn { color: #dc3545; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; padding: 10px; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.remove-btn:hover { color: #a71d2a; }

.order-summary { width: 350px; background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #f4f4f4; position: sticky; top: 20px; }
.summary-title { font-size: 20px; font-weight: 800; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: #555; font-size: 15px; }
.summary-total { font-size: 22px; font-weight: 800; color: #111; border-top: 2px solid #eee; padding-top: 15px; margin-top: 15px; }
.summary-note { display: block; text-align: right; font-size: 12px; color: #888; margin-top: -5px; }
.btn-checkout { width: 100%; background: #6b0030; color: white; border: none; padding: 16px; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: 20px; text-transform: uppercase; letter-spacing: 1px; }
.btn-checkout:hover { background: #4a0020; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(107,0,48,0.2); }
.btn-checkout:disabled { background: #a55a79; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 768px) {
    .cart-layout { flex-direction: column; }
    .order-summary { width: 100%; position: static; margin-top: 20px; }
    .cart-item { flex-direction: column; text-align: center; position: relative; padding-top: 40px; }
    .cart-item-img { margin: 0 auto 15px auto; width: 120px; height: 120px; }
    .qty-controls { margin: 15px auto; width: 100%; justify-content: center; }
    .item-subtotal { margin: 10px auto; width: 100%; text-align: center; }
    .remove-btn { position: absolute; top: 10px; right: 10px; }
}

.luxury-section, .dynamic-products-section { padding: 80px 5%; width: 100%; box-sizing: border-box; background-color: #ffffff; background-image: none; }

.luxury-header, .luxury-subtitle, .luxury-grid { max-width: 1400px; margin-left: auto; margin-right: auto; }
.luxury-header { display: flex; justify-content: center; align-items: center; position: relative; margin-bottom: 10px; }
.luxury-header h2 { font-family: var(--font-heading); font-size: 2.2rem; color: #111; font-weight: 600; }
.view-all-link { position: absolute; right: 0; font-size: 0.95rem; color: #666; text-decoration: underline; transition: color 0.3s ease; }
.view-all-link:hover { color: #6b0030; }
.luxury-subtitle { text-align: center; color: #444; margin-bottom: 40px; font-size: 1rem; line-height: 1.6; }
.luxury-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.luxury-card { text-align: center; }
.luxury-img-wrapper { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background: #efefef; }
.luxury-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.luxury-img-wrapper:hover img { transform: scale(1.05); }
.luxury-name { font-family: var(--font-body); font-size: 1rem; color: #222; font-weight: 500; padding: 0 10px; }

.dynamic-products-section { text-align: center; }
.dp-header, .dp-tabs, .dp-slider-wrapper, .dp-controls { max-width: 1400px; margin-left: auto; margin-right: auto; }
.dp-tiny-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 4px; color: #888; display: block; margin-bottom: 10px; }
.dp-header h2 { font-family: var(--font-heading); font-size: 2.5rem; color: #222; margin-bottom: 10px; font-weight: 700; }
.dp-header p { color: #666; font-size: 1rem; }
.dp-tabs { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.dp-tab { background: none; border: none; font-size: 1rem; color: #777; cursor: pointer; padding-bottom: 5px; transition: 0.3s; font-weight: 500; }
.dp-tab:hover { color: #111; }
.dp-tab.active { color: #111; font-weight: 700; }

.dp-slider-wrapper { width: 100%; overflow: hidden; margin-bottom: 30px; }
.dp-slider { display: flex; gap: 25px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 20px; text-align: left; scrollbar-width: none; -ms-overflow-style: none; }
.dp-slider::-webkit-scrollbar { display: none; }

.dp-card { min-width: 280px; max-width: 280px; background: #fff; flex-shrink: 0; transition: transform 0.3s; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.dp-card:hover { transform: translateY(-5px); }
.dp-img-box { background: #efefef; padding: 30px; height: 320px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: 8px 8px 0 0; }
.dp-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dp-info { padding: 0 20px 20px 20px; }
.dp-info h3 { font-family: var(--font-heading); font-size: 1.2rem; color: #333; margin-bottom: 8px; font-weight: 600; }
.dp-desc { font-size: 0.9rem; color: #888; line-height: 1.5; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dp-divider { width: 30px; height: 2px; background: #ddd; margin-bottom: 15px; }
.dp-price { font-weight: 700; font-size: 1.1rem; color: #111; }

.dp-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.dp-controls button { background: none; border: none; font-size: 1.5rem; color: #555; cursor: pointer; transition: color 0.3s; }
.dp-controls button:hover { color: #111; }
.dp-dots { display: flex; gap: 8px; font-size: 1.2rem; color: #ccc; }
.dp-dots .active { color: #111; }

@media (max-width: 1024px) { .luxury-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .dp-card { min-width: 240px; }
    .dp-img-box { height: 260px; padding: 20px; }
    .home-luxury-grid { grid-template-columns: 1fr; gap: 20px; }
    .dp-slider { gap: 15px; padding-bottom: 10px; }
}
@media (max-width: 600px) {
    .luxury-grid { grid-template-columns: 1fr; }
    .luxury-header { flex-direction: column; text-align: center; }
    .view-all-link { position: static; margin-top: 15px; display: inline-block; }
}

.inner-page-banner { background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1518640467707-6811f4a6ab73?q=80&w=1920'); background-size: cover; background-position: center; background-attachment: fixed; padding: 80px 20px; text-align: center; border-radius: 0 0 30px 30px; margin-bottom: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-bottom: 1px solid #eaeaea; }
.inner-page-banner h1 { font-family: var(--font-heading); font-size: 3.2rem; color: #111; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.inner-page-banner p { color: #666; font-size: 1.1rem; letter-spacing: 1px; }

.no-data-box { background: #ffffff; padding: 50px; text-align: center; border-radius: 12px; max-width: 800px; margin: 0 auto 80px auto; box-shadow: 0 5px 25px rgba(0,0,0,0.05); border: 1px solid #eee; }
.no-data-box p { color: #555; font-size: 1.1rem; }
.no-data-box strong { color: #6b0030; }
@media (max-width: 768px) { .inner-page-banner { padding: 50px 20px; } .inner-page-banner h1 { font-size: 2.2rem; } }

.interactive-cladding-section { padding: 120px 5% 80px; background-color: #fcfcfc; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.cladding-container { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: 0 auto; width: 100%; gap: 60px; }
.cladding-info { flex: 1; max-width: 550px; }
.category-subtitle { color: #6b0030; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; }
#stone-title { font-size: 2.8rem; color: #1a1a2e; margin-bottom: 20px; line-height: 1.2; transition: opacity 0.3s ease; }
#stone-desc { font-size: 1.1rem; color: #555; line-height: 1.6; margin-bottom: 30px; transition: opacity 0.3s ease; }
.select-text { font-size: 0.85rem; color: #888; margin-bottom: 15px; letter-spacing: 1px; }
.stone-selectors { display: flex; gap: 15px; margin-bottom: 40px; }
.stone-btn { padding: 10px 20px; background: #fff; border: 1px solid #ddd; color: #333; cursor: pointer; border-radius: 4px; font-weight: bold; transition: all 0.3s ease; }
.stone-btn:hover { border-color: #6b0030; }
.stone-btn.active { background: #6b0030; color: #fff; border-color: #6b0030; box-shadow: 0 4px 10px rgba(107, 0, 48, 0.3); }

.cladding-visualizer { flex: 1.2; display: flex; justify-content: center; align-items: center; perspective: 600px; }
.wall-scene { width: 100%; max-width: 950px; aspect-ratio: 3 / 2; position: relative; transform: rotateY(-20deg) rotateX(0deg); transform-style: preserve-3d; box-shadow: -20px 25px 45px rgba(0,0,0,0.15); border-right: 8px solid #ebebeb; border-radius: 4px; }
.wall-image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.6s ease-in-out; border-radius: 4px; }
.wall-image.active { opacity: 1; }
@media (max-width: 992px) { .wall-scene { transform: rotateY(0) rotateX(0); border-right: none; } }

.products-grid-section { padding: 80px 5%; background-color: #f9f9f9; }
.products-container { max-width: 1300px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.2rem; color: #1a1a2e; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #666; font-size: 1.1rem; margin-bottom: 50px; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: all 0.3s ease-in-out; cursor: pointer; }
.product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 30px rgba(107, 0, 48, 0.15); border-color: #6b0030; }
.product-img-box { width: 100%; height: 220px; overflow: hidden; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-box img { transform: scale(1.1); }

.product-info { padding: 20px; text-align: center; }
.product-info h3 { font-size: 1.3rem; color: #222; margin-bottom: 8px; }
.product-info p { font-size: 0.9rem; color: #777; margin-bottom: 20px; }
.card-quote-btn { background: transparent; color: #6b0030; border: 2px solid #6b0030; padding: 8px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.card-quote-btn:hover { background: #6b0030; color: #fff; }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

/* Gallery Section */
.cladding-gallery-section { padding: 80px 20px; background-color: #ffffff; text-align: center; overflow: hidden; }
.gallery-header .gallery-subtitle { font-size: 14px; color: #6b0030; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.gallery-header .gallery-title { font-size: 42px; color: #111; margin: 10px 0; font-weight: 800; }
.gallery-header .gallery-desc { color: #555; margin-bottom: 50px; font-size: 18px; }
.gallery-slider-container { position: relative; width: 100%; max-width: 1200px; height: 450px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide { position: absolute; width: 550px; height: 380px; border-radius: 20px; background-size: cover; background-position: center; transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: 0 15px 35px rgba(0,0,0,0.2); opacity: 0; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); }
.gallery-slide.active { opacity: 1; z-index: 3; transform: translate(-50%, -50%) scale(1); box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.gallery-slide.prev { opacity: 0.8; z-index: 2; transform: translate(-95%, -50%) scale(0.8); }
.gallery-slide.next { opacity: 0.8; z-index: 2; transform: translate(-5%, -50%) scale(0.8); }
.gallery-slide.prev-outer { opacity: 0.4; z-index: 1; transform: translate(-130%, -50%) scale(0.6); }
.gallery-slide.next-outer { opacity: 0.4; z-index: 1; transform: translate(30%, -50%) scale(0.6); }

@media (max-width: 768px) {
    .gallery-slider-container { height: 300px; }
    .gallery-slide { width: 75%; height: 250px; }
    .gallery-slide.prev-outer, .gallery-slide.next-outer { opacity: 0; }
    .gallery-slide.prev { transform: translate(-80%, -50%) scale(0.8); opacity: 0.5; }
    .gallery-slide.next { transform: translate(-20%, -50%) scale(0.8); opacity: 0.5; }
}

.category-dropdown .dropdown-menu li { border-bottom: 1px solid #eee; }
.category-dropdown .dropdown-menu li:last-child { border-bottom: none; }
.group-toggle { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: #444; padding: 12px 20px; font-size: 14px; transition: 0.3s; }
.group-toggle:hover { background: #f8f9fa; color: #6b0030; }

.page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.page-loader-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e5e5e5;
  border-top-color: #6b0030;
  border-radius: 50%;
  animation: pageLoaderSpin 0.8s linear infinite;
}

@keyframes pageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}
/* ========================================================================
   DYNAMIC GLOBAL SETTINGS TOP BAR
   Data is supplied by header.js from the existing Global Settings data.
   ======================================================================== */
.header-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
    margin: -12px -24px 12px;
    padding: 0 22px;
    background: #6b0030;
    color: #fff;
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
}

.header-topbar-left,
.header-topbar-right {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.header-topbar-left {
    flex: 1 1 auto;
}

.header-topbar-right {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.header-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.header-topbar-item i {
    font-size: 11px;
}

.header-topbar-item:hover {
    opacity: 0.88;
}

.header-topbar-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.32);
    flex: 0 0 auto;
}

.header-topbar-tagline {
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.header-topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-topbar-social {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50%;
    transition: background 0.18s ease, transform 0.18s ease;
}

.header-topbar-social:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.header-topbar-social i {
    font-size: 13px;
}

.header-topbar-muted,
.header-topbar-loading {
    opacity: 0.85;
}

@media (max-width: 1100px) {
    .header-topbar {
        padding: 0 16px;
    }

    .header-topbar-tagline {
        display: none;
    }

    .header-topbar-right {
        margin-left: auto;
    }
}

@media (max-width: 992px) {
    .header-topbar {
        display: none;
    }

    .floating-header {
        margin-top: 10px;
    }
}

/* Product Modal Premium Upgrade */
#global-product-modal .pm-content {
    width: min(1100px, 94vw) !important;
    max-width: 1100px !important;
    min-height: 0 !important;
    max-height: min(88vh, 860px);
    border: 1px solid rgba(107,0,48,.12);
    border-radius: 22px;
    background: linear-gradient(135deg, #fffdfb 0%, #ffffff 48%, #fbf7f5 100%);
    box-shadow: 0 34px 90px rgba(35,21,28,.28);
}
#global-product-modal .pm-left {
    width: 46% !important;
    border-left: 0 !important;
    border-right: 1px solid #eadfe4;
    background: linear-gradient(145deg, #f7f3f1 0%, #eee7e4 100%);
    padding: 28px !important;
}
#global-product-modal .pm-img-wrapper {
    height: 100%;
    min-height: 500px;
    border: 1px solid #e4d7d4;
    border-radius: 18px;
    background: #f7f4f1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 18px 38px rgba(74,46,55,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
#global-product-modal .pm-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: #f7f4f1;
}
#global-product-modal .pm-right {
    width: 54% !important;
    padding: 38px 38px 30px !important;
    justify-content: flex-start;
    overflow: auto;
}
#global-product-modal .pm-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e6d9de;
    background: rgba(255,255,255,.92);
    color: #6b0030;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    z-index: 5;
}
#global-product-modal .pm-title {
    margin: 8px 46px 10px 0;
    color: #2c2427;
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.06;
    letter-spacing: -.3px;
}
#global-product-modal .pm-desc {
    margin: 0 0 20px;
    max-width: 700px;
    color: #655c60;
    font-size: 14px;
    line-height: 1.75;
}
#global-product-modal .pm-details-section {
    margin: 0 0 20px !important;
    padding: 18px 0 !important;
    border-top: 1px solid #eadfe4 !important;
    border-bottom: 1px solid #eadfe4 !important;
}
#global-product-modal .pm-details-section > div:first-child {
    color: #7d4960 !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
}
#global-product-modal #pm-details-grid {
    gap: 9px !important;
}
#global-product-modal #pm-details-grid > div {
    background: rgba(250,246,248,.72) !important;
    border: 1px solid #efe3e7 !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
}
#global-product-modal .pm-price-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 12px !important;
}
#global-product-modal .pm-price-block { min-width: 0; }
#global-product-modal .pm-price-kicker {
    display: block;
    margin-bottom: 5px;
    color: #9a7b88;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}
#global-product-modal .pm-price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
#global-product-modal .pm-price {
    font-size: clamp(28px, 3vw, 34px) !important;
    font-weight: 800 !important;
    color: #171214 !important;
    font-family: 'Inter', sans-serif !important;
}
#global-product-modal .pm-unit {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f7edf1;
    color: #7c3c56;
    font-size: 11px;
    font-weight: 800;
}
#global-product-modal .pm-availability-badge {
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf8f1;
    color: #157347;
    border: 1px solid #cdebd8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
#global-product-modal .pm-availability-badge.is-unavailable {
    background: #fff0f0;
    color: #b42318;
    border-color: #f5c9c9;
}
#global-product-modal .pm-weight-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #f8f5f3;
    border: 1px solid #ece3df;
    color: #6b5f64;
    font-size: 12px;
    line-height: 1.45;
}
#global-product-modal .pm-weight-strip i { color: #6b0030; }
#global-product-modal .pm-actions {
    display: grid !important;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 10px !important;
    margin-top: auto !important;
}
#global-product-modal .pm-actions button {
    min-height: 50px;
    margin: 0 !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    letter-spacing: 1.05px !important;
}
#global-product-modal .pm-btn-cart {
    background: #6b0030 !important;
    color: #fff !important;
    border: 1px solid #6b0030 !important;
    box-shadow: 0 10px 22px rgba(107,0,48,.16) !important;
}
#global-product-modal .pm-btn-cart:hover { background: #4a0020 !important; transform: translateY(-1px) !important; }
#global-product-modal .pm-btn-quote {
    background: #fff !important;
    color: #6b0030 !important;
    border: 1px solid #d8c0c9 !important;
}
#global-product-modal .pm-btn-quote:hover { background: #fbf2f6 !important; color: #4a0020 !important; transform: translateY(-1px); }
#global-product-modal .pm-btn-download {
    background: #f3eeeb !important;
    color: #574d50 !important;
    border: 1px solid #ddd1cc !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
}
#global-product-modal .pm-btn-download:hover { background: #ebe2de !important; color: #2d2528 !important; transform: translateY(-1px); }
@media (max-width: 820px) {
    #global-product-modal .pm-content { width: 94vw !important; max-height: 92vh; flex-direction: column; overflow-y: auto; }
    #global-product-modal .pm-left, #global-product-modal .pm-right { width: 100% !important; }
    #global-product-modal .pm-left { border-right: 0; border-bottom: 1px solid #eadfe4; padding: 18px !important; }
    #global-product-modal .pm-img-wrapper { min-height: 320px; height: 48vh; max-height: 420px; }
    #global-product-modal .pm-right { padding: 26px 22px 24px !important; }
    #global-product-modal .pm-actions { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    #global-product-modal .pm-content { width: calc(100vw - 18px) !important; border-radius: 16px; }
    #global-product-modal .pm-left { padding: 12px !important; }
    #global-product-modal .pm-img-wrapper { min-height: 250px; height: 48vh; }
    #global-product-modal .pm-right { padding: 22px 16px 18px !important; }
    #global-product-modal .pm-title { font-size: 28px; margin-right: 34px; }
    #global-product-modal .pm-desc { font-size: 13px; }
    #global-product-modal .pm-details-section { padding: 14px 0 !important; }
    #global-product-modal .pm-price-wrap { align-items: flex-start; flex-direction: column; }
}


/* Mobile category flyouts expand inside the menu so every category link stays visible/clickable. */
@media (max-width: 768px) {
  .category-dropdown .dropdown-menu {
    max-width: calc(100vw - 16px) !important;
    max-height: min(72vh, 620px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
  }

  .category-dropdown .dropdown-menu.sub-menu-right.is-mobile-inline {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 0 8px !important;
    padding: 8px 12px 10px !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    align-items: start;
    gap: 5px 12px !important;
    box-sizing: border-box !important;
    background: #fbf8f9 !important;
    border: 0 !important;
    border-top: 1px solid #eee4e8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .category-dropdown .dropdown-menu.sub-menu-right.is-mobile-inline li {
    min-width: 0 !important;
    border-bottom: 1px solid #eee8eb !important;
  }

  .category-dropdown .dropdown-menu.sub-menu-right.is-mobile-inline li a {
    display: block !important;
    padding: 10px 3px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    color: #373136 !important;
    touch-action: manipulation;
  }

  .category-dropdown .dropdown-menu.sub-menu-right.is-mobile-inline li a:active {
    color: #6b0030 !important;
    background: #f3e8ed !important;
  }

  .category-dropdown .group-dropdown > .group-toggle[aria-expanded="true"] {
    color: #6b0030 !important;
    background: #faf2f5 !important;
  }
}
