/* ==========================================================================
   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;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Syne', sans-serif;
}

body.page-template-page-products {
    background: linear-gradient(to bottom, #FCFAF6, #F7F4EF);
    color: var(--color-text);
    font-family: var(--font-sans);
    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: 140px 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 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.ms-breadcrumb-home {
    color: #C9A15A;
    text-decoration: none;
}
.ms-breadcrumb-sep {
    color: #5A5A5A;
    margin: 0 0.4rem;
}
.ms-breadcrumb-current {
    color: #5A5A5A;
}

.ms-page-title {
    font-family: var(--font-sans);
    font-size: 58px;
    font-weight: 500;
    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 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    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;
    border-radius: 9999px;
    margin: 0 auto 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 1400px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ms-category-bar-wrapper::-webkit-scrollbar {
    display: none;
}

.ms-category-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content;
       padding-inline: 10px;
    padding-block: 10px;
}

.ms-cat-btn {
    height: 45px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    border-radius: 9999px;
    padding: 6px 20px;
    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;
}

.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-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;
}

.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-commodity-card {
    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);
    background: var(--color-forest);
}

.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;
}
.ms-commodity-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.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: 58%;
    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-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: #4B5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.ms-page-number:hover {
    color: var(--color-gold);
}
.ms-page-number.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

/* ==========================================================================
   6. RESPONSIVE (DESKTOP ONLY FOR THIS TASK, PREVENTING BREAKAGE)
   ========================================================================== */
@media (max-width: 1024px) {
    .ms-intro-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ms-intro-right {
        width: 100%;
        justify-content: flex-start;
    }
    .ms-search-container {
        flex-direction: column;
        height: auto;
        border-radius: 20px;
        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;
}

.ms-single-product-page {
    background: #F8F6F1;
    padding-top: 160px;
    padding-bottom: 80px;
}

/* Breadcrumbs */
.ms-single-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 24px;
}
.ms-breadcrumb-link {
    color: #C7A24B;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
}
.ms-breadcrumb-link:hover {
    color: #102A1D;
}
.ms-breadcrumb-sep {
    color: #C7A24B;
}
.ms-breadcrumb-current {
    color: #C7A24B;
}

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

/* 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: #111111;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    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: 500;
}

/* 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(28, 43, 33, 0.05);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ms-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(199, 162, 75, 0.08);
    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(3, 1fr);
    grid-auto-rows: 285px;
}
.ms-catalogue-grid.ms-related-grid .ms-commodity-card {
    grid-column: span 1 !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-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
    .ms-single-btn-group {
        flex-direction: column;
    }
    .ms-single-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 575px) {
    .ms-single-features {
        grid-template-columns: 1fr;
    }
    .ms-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}




