/* ==========================================================================
   PIXEL-PERFECT LUXURY CATALOGUE - MOLVIZADAH SONS
   ========================================================================== */

:root {
    --color-bg: #fdfcf7;
    --color-forest: #1c2b21;
    --color-forest-light: #2c4234;
    --color-gold: #c39c4a;
    --color-border: rgba(28, 43, 33, 0.15);
    --color-white: #FFFFFF;
    --color-text: #1a201b;
    --color-text-muted: #5e6b62;
}

body.page-template-page-products,
.ms-catalogue-page,
.ms-catalogue-content {
    background: linear-gradient(to bottom, #FCFAF6, #F7F4EF);
    color: var(--color-text);
   
    position: relative;
    min-height: 100vh;
}

/* Very soft radial golden glow behind hero */
.ms-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(199, 162, 75, 0.08) 0%, rgba(248, 246, 241, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.ms-catalogue-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 2rem 64px 2rem;
}

/* ==========================================================================
   1. BREADCRUMB, TITLE & SEARCH ROW
   ========================================================================== */
.ms-intro-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 80px;
}

.ms-intro-left {
    flex: 0 0 auto;
}

.ms-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
	padding-bottom: 15px;
}
.ms-breadcrumb-link {
    color: #dddddd;
    text-decoration: none;
    transition: color 0.3s;
}
.ms-breadcrumb-link:hover {
    color: #dddddd;
}
.ms-breadcrumb-sep {
    color: #5e6b62;
}
.ms-breadcrumb-current {
    color: #C9A15A;
}

.ms-page-title {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    color: #1E2A23;
    line-height: 1.1;
    margin: 0 0 18px 0;
}

.ms-page-desc {
    font-size: 22px;
    line-height: 1.6;
    color: #4B4B4B;
    max-width: 380px;
    margin: 0;
}

/* The Unified Search Container */
.ms-intro-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.ms-search-container {
    background: #FFFFFF;
    border-radius: 999px;
    height: 76px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box;
}

.ms-search-section,
.ms-dropdown-section {
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.ms-search-pill {
    width: 420px;
    height: 52px;
    border: 1px solid #D9C08A;
    border-radius: 999px;
    padding: 0 20px;
    background: #FFFFFF;
}

.ms-search-container > .ms-dropdown-pill:nth-child(2) {
    width: 200px;
    height: 52px;
    border: 1px solid #D9C08A;
    border-radius: 999px;
    padding: 0 18px;
    background: #FFFFFF;
}

.ms-search-container > .ms-dropdown-pill:nth-child(3) {
    width: 220px;
    height: 52px;
    border: 1px solid #D9C08A;
    border-radius: 999px;
    padding: 0 18px;
    background: #FFFFFF;
}

.ms-search-icon,
.ms-dropdown-icon {
    color: #9B9B9B; /* Same as placeholder usually, or text */
    flex-shrink: 0;
    margin-right: 12px;
}

.ms-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    color: #2E2E2E;
}
.ms-search-input:focus {
    outline: none;
}
.ms-search-input::placeholder {
    color: #9B9B9B;
}

/* Dropdown specific overrides to fit in the container */
.ms-custom-select-wrapper {
    position: relative;
    width: 100%;
}

.ms-dropdown-section .ms-custom-select-trigger {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
    color: #2E2E2E;
    justify-content: space-between;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.ms-custom-select-options {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.ms-custom-select-wrapper.open .ms-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ms-custom-option {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ms-custom-option:hover {
    background: rgba(199, 162, 75, 0.05);
    color: var(--color-gold);
}

.ms-custom-option.selected {
    background: var(--color-gold);
    color: var(--color-white);
}
.ms-dropdown-section .ms-custom-options {
    top: calc(100% + 15px);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.ms-select {
    display: none;
}

/* 
==========================================================================
   2. CATEGORY BAR
   ========================================================================== */
.ms-category-bar-wrapper {
    background: #FFFFFF !important;
    border-radius: 9999px;
    margin: 0 auto 40px auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04) !important;
    width: 100%;
    max-width: calc(1400px - 4rem)!important;
    position: relative;
    z-index: 100;
    overflow: visible !important;
    scrollbar-width: none !important;
    user-select: none;
}
.ms-category-bar-wrapper:active {
    cursor: grabbing;
}
.ms-category-bar-wrapper::-webkit-scrollbar {
    display: none;
}

.ms-category-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding-inline: 10px;
    padding-block: 10px;
    position: relative;
    z-index: 101;
    overflow: visible !important;
}

@media (max-width: 1439px) {
    .ms-category-bar-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .ms-category-bar {
        flex-wrap: nowrap !important;
        width: max-content !important;
        overflow: visible !important;
        justify-content: flex-start !important;
    }
    .ms-category-bar .ms-cat-pill-item {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    .ms-category-bar .ms-cat-btn,
    .ms-category-bar .ms-pill,
    .ms-category-bar .ms-cat-pill-item .ms-pill {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        white-space: nowrap !important;
        padding-inline: 20px !important;
        margin: 0 !important;
    }
}

@media (max-width: 1023px) {
    .ms-category-bar-wrapper {
        border-radius: 24px !important;
    }
    .ms-category-bar {
        padding-inline: 10px !important;
    }
}

.ms-cat-pill-item {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    z-index: 1000;
}

.ms-cat-btn {
    height: 45px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    border-radius: 9999px;
    padding: 6px 23px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: #2E2E2E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;
}

.ms-cat-btn svg {
    color: #4B4B4B;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ms-cat-btn:hover {
    background: #F7F4EF;
    color: #1E2A23;
    border-color: #D9C08A;
}

.ms-cat-btn.active {
    background: #1D2B2A;
    color: #FFFFFF;
    border-color: #D9C08A;
    box-shadow: 0 0 12px rgba(217, 192, 138, 0.4);
}

.ms-cat-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #FFFFFF;
    border: 1px solid rgba(199, 162, 75, 0.35);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(16, 42, 29, 0.14);
    padding: 10px 6px;
    min-width: 210px;
    max-width: 280px;
    height: auto;
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 999999 !important;
}

.ms-cat-dropdown-menu.has-scroll {
    max-height: 390px;
    overflow-y: auto;
}

.ms-cat-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.ms-cat-pill-item:hover .ms-cat-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.ms-cat-pill-item:hover .ms-cat-caret {
    transform: rotate(180deg);
    color: #C79A5B !important;
}

.ms-cat-dropdown-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #C79A5B;
    padding: 6px 12px 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 6px;
    text-align: left;
}

.ms-cat-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ms-cat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #102A1D;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
}

.ms-cat-dropdown-item:hover {
    background: rgba(199, 162, 75, 0.08);
    color: #C79A5B;
}

.ms-cat-dropdown-item.is-current {
    background: rgba(199, 162, 75, 0.12);
    color: #C79A5B;
    font-weight: 600;
}

.ms-cat-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C79A5B;
    flex-shrink: 0;
}
.ms-cat-btn.active svg {
    color: #D9C08A;
}

/* 
==========================================================================
   3. PREMIUM LABELS ROW/* ==========================================================================
   3. PREMIUM LABELS ROW
   ========================================================================== */
.ms-premium-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.ms-label-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ms-label-left svg {
    color: var(--color-gold);
}
.ms-label-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ms-label-right svg {
    color: var(--color-text-muted);
}
.ms-label-chevron {
    margin-left: -0.2rem;
}

/* ==========================================================================
   4. PRODUCT GRID (EXACT MASONRY)
   ========================================================================== */
.ms-catalogue-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 285px;
    gap: 24px;
}

@media (min-width: 1025px) {
    .ms-catalogue-grid {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr) !important;
        grid-auto-rows: 285px !important;
        gap: 24px !important;
    }
	
    .ms-commodity-card:nth-child(n) {
        width: auto !important;
        max-width: none !important;
    }
    .ms-catalogue-grid:not(.ms-related-grid) .ms-commodity-card:nth-child(1) { grid-column: span 4 !important; grid-row: span 2 !important; }
    .ms-catalogue-grid:not(.ms-related-grid) .ms-commodity-card:nth-child(2) { grid-column: span 3 !important; grid-row: span 1 !important; }
    .ms-catalogue-grid:not(.ms-related-grid) .ms-commodity-card:nth-child(3) { grid-column: span 5 !important; grid-row: span 1 !important; }
    .ms-catalogue-grid:not(.ms-related-grid) .ms-commodity-card:nth-child(4) { grid-column: span 4 !important; grid-row: span 1 !important; }
    .ms-catalogue-grid:not(.ms-related-grid) .ms-commodity-card:nth-child(5) { grid-column: span 4 !important; grid-row: span 1 !important; }
}

.ms-commodity-card {
    grid-column: span 4;
    grid-row: span 1;
    border-radius: 18px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.ms-commodity-card:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.ms-commodity-card:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.ms-commodity-card:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.ms-commodity-card:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.ms-commodity-card:nth-child(5) { grid-column: span 4; grid-row: span 1; }

.ms-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 18px;
	display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.ms-card-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--color-white);
}

/* Image */
.ms-commodity-img-col {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    border-radius: inherit; /* Fix sub-pixel rounded clipping bleed */
}
.ms-commodity-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: inherit; /* Fix sub-pixel rounded clipping bleed */
}
.ms-commodity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}
.ms-commodity-card:hover .ms-commodity-img-col img {
    transform: scale(1.03);
}

/* Antique Gold Gradient Overlay */
.ms-commodity-img-col::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(32,24,12,0) 0%, rgba(45,34,18,0.18) 45%, rgba(78,58,28,0.45) 65%, rgba(110,82,36,0.72) 80%, #7A5A28 100%);
    z-index: 2;
}

/* Content */
.ms-commodity-content-col {
    position: relative;
    z-index: 3;
    padding: 18px 18px 24px 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.ms-commodity-content-col::before {
    content: '';
    height: 48%;
    display: block;
    flex-shrink: 0;
}

/* Top Category Tag */
.ms-card-meta-top {
    position: absolute;
    top: 18px;
    left: 18px;
}
.ms-meta-cat {
    background: #2A241C;
    color: #D4AF6A;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 9999px;
}

/* Typography Inside Card */
.ms-commodity-title {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 500;
    margin: 18px 0 4px 0;
    color: #FFFFFF;
    line-height: 1.2;
}

.ms-commodity-meta-bottom {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #F5F2EB;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(245,242,235,0.2);
}
.ms-meta-origin, .ms-meta-avail {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ms-meta-origin svg, .ms-meta-avail svg {
    color: #D4AF6A;
}

.ms-commodity-overview {
    font-size: 13px;
    line-height: 1.35;
    color: #E8E1D4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-commodity-overview p { margin: 0; }

.ms-commodity-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #D4AF6A;
    margin-top: auto;
}
.ms-commodity-cta .cta-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}
.ms-commodity-card:hover .ms-commodity-cta .cta-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   5. PAGINATION
   ========================================================================== */
.ms-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}
.ms-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ms-page-item {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.ms-page-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #E5E7EB; /* Subtle grey-tan border */
    background: var(--color-white);
    color: #4B5563; 
    transition: all 0.3s ease;
}
.ms-page-arrow:hover:not(:disabled) {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.ms-page-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.ms-pagination-wrapper a,
.ms-page-item,
.ms-page-number,
.ms-page-arrow {
    text-decoration: none !important;
}
.ms-pagination-wrapper a:hover,
.ms-page-item:hover,
.ms-page-number:hover,
.ms-page-arrow:hover {
    text-decoration: none !important;
}

.ms-page-numbers-pill {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    padding: 6px;
    gap: 4px;
    background: var(--color-white);
}
.ms-page-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #898e97;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none !important;
}
.ms-page-number:hover {
    color: var(--color-gold);
    text-decoration: none !important;
}
.ms-page-number.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    text-decoration: none !important;
}

/* ==========================================================================
   6. RESPONSIVE (DESKTOP ONLY FOR THIS TASK, PREVENTING BREAKAGE)
   ========================================================================== */
@media (max-width: 1024px) {
    .ms-intro-row {
        flex-direction: column;
        align-items: flex-start;
		    gap: 20px;
    }
    .ms-intro-right {
        width: 100%;
        justify-content: flex-start;
    }
    .ms-search-container {
        flex-direction: column;
        height: auto;
        border-radius: 40px;
        padding: 1rem 0;
    }
    .ms-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }
    .ms-search-section, .ms-dropdown-section {
        padding: 1rem 1.5rem;
    }
    .ms-catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ms-commodity-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .ms-commodity-card:nth-child(1) {
        grid-column: span 2;
    }
}































/* Enhanced Tall Card Typography */
.ms-commodity-card:nth-child(1) .ms-commodity-title {
    font-size: 28px;
    margin-bottom: 12px;
}
.ms-commodity-card:nth-child(1) .ms-commodity-overview {
    font-size: 14px;
    margin-bottom: 24px;
}
.ms-commodity-card:nth-child(1) .ms-meta-cat {
    padding: 6px 14px;
    font-size: 12px;
}

@media (max-width: 767px) {
    .ms-catalogue-grid {
        grid-template-columns: 1fr;
    }
    .ms-commodity-card:nth-child(n) {
        grid-column: span 1;
    }
}














/* ==========================================================================
   SINGLE PRODUCT PAGE REDESIGN
   ========================================================================== */
.ms-single-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE REDESIGN
   ========================================================================== */
.ms-single-content {
    max-width: 1400px;
    margin: 0 auto;
	padding: 0px 1.5rem 64px 1.5rem;
}

.ms-single-product-page {
    background: linear-gradient(to bottom, #FCFAF6, #F7F4EF);
    padding-top: 180px;
/*     padding-bottom: 80px; */
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

/* Main Card */
.ms-single-product-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: 43% 53%;
    gap: 30px;
    margin-bottom: 0;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Left: Media */
.ms-single-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@keyframes msImageReveal {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.ms-main-image-wrapper {
    width: 100%;
    aspect-ratio: 4/4;
    max-height: 500px;
    border-radius: 18px;
    overflow: hidden;
    animation: msImageReveal 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.ms-main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}
.ms-main-image-wrapper:hover img {
    transform: scale(1.05);
}
.ms-thumbnails-grid {
    display: flex;
    gap: 12px;
}
.ms-thumbnail-wrapper {
    width: 132px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.ms-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-thumbnail-wrapper:hover {
    opacity: 0.8;
}
.ms-thumbnail-wrapper.active {
    border-color: #C7A24B;
}

/* Right: Details */
.ms-single-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
	padding: 0px 40px;
}
.ms-single-badge {
    align-self: flex-start;
    background: #C7A24B;
    color: #FFFFFF;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}
.ms-single-title {
    font-size: 36px;
    font-weight: 600;
    color: #102A1D;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

/* Info Grid */
.ms-single-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.ms-info-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}
.ms-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ms-info-label {
    width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}
.ms-info-label svg {
    color: #C7A24B;
}
.ms-info-colon {
    width: 20px;
    color: #6b7280;
    font-weight: 500;
}
.ms-info-value {
    color: #102A1D;
    font-size: 15px;
    font-weight: 600;
}

/* Summary */
.ms-single-summary {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Buttons */
.ms-single-btn-group {
    display: flex;
    gap: 16px;
/*     margin-top: 32px; */
}
.ms-btn-primary-card, .ms-btn-secondary-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.ms-btn-primary-card {
    background: #ce9847;
    color: #ffffff;
    border: 1px solid #ce9847;
}
.ms-btn-primary-card:hover {
    background: #b5853e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(206, 152, 71, 0.2);
}
.ms-btn-secondary-card {
    background: #FFFFFF;
    color: #102A1D;
    border: 1px solid #C7A24B;
}
.ms-btn-secondary-card:hover {
    background: #F8F6F1;
    transform: translateY(-2px);
}

/* Single Features Section */
.ms-single-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.ms-feature-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ms-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(199, 162, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C7A24B;
    margin-bottom: 20px;
}
.ms-feature-icon svg {
    width: 24px;
    height: 24px;
}
.ms-feature-title {
    font-size: 17px;
    font-weight: 600;
    color: #102A1D;
    margin: 0 0 10px 0;
}
.ms-feature-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

/* Related Products */
.ms-related-products-section {
    margin-top: 60px;
}
.ms-related-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}
.ms-related-title {
    font-size: 24px;
    color: #102A1D;
    font-weight: 600;
    margin: 0;
}
.ms-related-link {
    color: #C7A24B;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.ms-related-link:hover {
    text-decoration: underline;
}

/* Related Products Grid Overrides */
.ms-catalogue-grid.ms-related-grid {
    grid-template-columns: repeat(12, 1fr) !important;
    grid-auto-rows: 285px;
}
.ms-catalogue-grid.ms-related-grid .ms-commodity-card {
    grid-column: span 4 !important;
    grid-row: span 1 !important;
}
.ms-catalogue-grid.ms-related-grid .ms-commodity-card:nth-child(1) .ms-commodity-title {
    font-size: 22px;
    margin-bottom: 4px;
}
.ms-catalogue-grid.ms-related-grid .ms-commodity-card:nth-child(1) .ms-commodity-overview {
    font-size: 13px;
    margin-bottom: 6px;
}
.ms-catalogue-grid.ms-related-grid .ms-commodity-card:nth-child(1) .ms-meta-cat {
    padding: 4px 10px;
    font-size: 11px;
}



/* Responsive */
@media (max-width: 991px) {
    .ms-single-product-page {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }
    .ms-single-content {
        padding: 30px 16px !important; /* Force a consistent left/right gap on all mobile/tablet screens */
        box-sizing: border-box !important;
    }
    .ms-single-product-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
    .ms-single-details {
        padding: 0 !important; /* Fix cramped layout by removing 40px side padding */
    }
    .ms-single-btn-group {
        flex-direction: column;
    }
    .ms-single-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    /* Force related products to stack vertically in a single column on mobile */
    html body .ms-single-product-page .ms-single-content .ms-catalogue-grid.ms-related-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 20px !important;
    }
}
@media (max-width: 575px) {
    .ms-single-features {
        grid-template-columns: 1fr;
    }
    .ms-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}






/* --- PREMIUM PRODUCT VARIANT SELECTORS --- */

.ms-variants-wrapper {
/*     margin: 32px 0; */
    padding: 24px 0;
    border-top: 1px solid #F3F4H6;
    border-bottom: 1px solid #F3F4H6;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ms-variant-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-variant-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.08em;
    display: block;
}

.ms-type-buttons, .ms-grade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Rounded Type Buttons */
.ms-type-btn {
    background: #FFFFFF;
    color: #102A1D;
    border: 1.5px solid #E5E7EB;
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.ms-type-btn:hover {
    border-color: #C7A24B;
    color: #C7A24B;
}

.ms-type-btn.active {
    background: #C7A24B;
    color: #FFFFFF;
    border-color: #C7A24B;
    box-shadow: 0 6px 18px rgba(199, 162, 75, 0.35);
    transform: translateY(-2px);
}

/* Radio-style Grade Chips */
.ms-grade-chip {
    background: #FFFFFF;
    color: #102A1D;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.ms-grade-chip:hover {
    border-color: #C7A24B;
}

.ms-grade-chip.active {
    border: 1.5px solid #C7A24B;
    background: rgba(199, 162, 75, 0.08);
    color: #102A1D;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(199, 162, 75, 0.1);
}

/* Spec Value Fade Transition */
.ms-info-value {
    transition: opacity 0.25s ease;
}

#ms-single-main-img {
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ── Prevent Mobile Horizontal Scroll and Layout Stretching ── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 991px) {
    /* Hide desktop-specific navigation menus inside custom header templates on mobile */
    .elementor-nav-menu--main,
    .hfe-nav-menu__layout-horizontal,
    .hfe-nav-menu--main,
    .elementor-widget-nav-menu .elementor-nav-menu--main,
    .elementor-widget-hfe-navigation-menu .hfe-nav-menu,
    .luxury-header .nav-links-wrapper {
        display: none !important;
    }
    
    /* Lock headers to full viewport width to prevent layout cut-off */
    .luxury-header, 
    #main-header, 
    .elementor-header, 
    .hfe-header {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}

