﻿:root {
    --cat-navy: #091426;
    --cat-navy-2: #101f36;
    --cat-gold: #d6ad54;
    --cat-gold-light: #f3dfa1;
    --cat-text: #172238;
    --cat-muted: #7c8491;
    --cat-bg: #f8f7f3;
    --cat-white: #fff;
    --cat-border: #e9e4d8;
    --cat-radius: 20px;
}

.catalog-body {
    margin: 0;
    color: var(--cat-text);
    background: var(--cat-bg);
    font-family: "Estedad", "Tahoma", sans-serif;
    direction: rtl;
}

    .catalog-body *,
    .catalog-body *::before,
    .catalog-body *::after {
        box-sizing: border-box;
    }

    .catalog-body a {
        color: inherit;
        text-decoration: none;
    }

    .catalog-body button,
    .catalog-body input,
    .catalog-body select {
        font: inherit;
    }

    .catalog-body button {
        cursor: pointer;
    }

.catalog-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 82px;
    padding: 14px 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(9, 20, 38, .97);
    border-bottom: 1px solid rgba(214, 173, 84, .24);
    backdrop-filter: blur(16px);
}

.catalog-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    flex-shrink: 0;
}

.brand-gem {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: var(--cat-gold-light);
    border: 1px solid rgba(214, 173, 84, .65);
    border-radius: 13px;
    background: rgba(214, 173, 84, .09);
    font-size: 20px;
}

.catalog-brand strong {
    display: block;
    font-family: Georgia, serif;
    letter-spacing: 1.2px;
    font-size: 17px;
}

    .catalog-brand strong b {
        color: var(--cat-gold);
    }

.catalog-brand small {
    display: block;
    margin-top: 4px;
    color: #b8bfca;
    font-size: 10px;
}

.catalog-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    color: #e4e7ec;
    font-size: 13px;
}

    .catalog-nav a {
        transition: color .2s ease;
    }

        .catalog-nav a:hover {
            color: var(--cat-gold-light);
        }

.catalog-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    color: var(--cat-gold-light) !important;
    border: 1px solid rgba(214, 173, 84, .5);
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.catalog-menu-btn {
    display: none;
    color: var(--cat-gold-light);
    background: transparent;
    border: 1px solid rgba(214, 173, 84, .4);
    border-radius: 10px;
    padding: 10px 13px;
}

.catalog-hero {
    min-height: 490px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 72px 8%;
    color: white;
    background: radial-gradient(ellipse at 85% 15%, rgba(214, 173, 84, .17), transparent 35%), radial-gradient(ellipse at 10% 95%, rgba(214, 173, 84, .09), transparent 35%), linear-gradient(120deg, #07101e, #0d1c32 58%, #13223a);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    pointer-events: none;
    background-image: linear-gradient(30deg, transparent 48%, #d6ad54 49%, transparent 50%), linear-gradient(150deg, transparent 48%, #d6ad54 49%, transparent 50%);
    background-size: 70px 120px;
    mask-image: linear-gradient(to left, black, transparent 80%);
}

.catalog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cat-gold-light);
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 2px;
}

    .hero-eyebrow span {
        width: 24px;
        height: 1px;
        background: var(--cat-gold);
    }

.catalog-hero h1 {
    margin: 24px 0 16px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.5;
}

    .catalog-hero h1 span {
        display: block;
        color: var(--cat-gold-light);
    }

.catalog-hero-content > p {
    max-width: 640px;
    color: #c6ced9;
    font-size: 15px;
    line-height: 2.3;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 14px 23px;
    color: #171c27 !important;
    background: linear-gradient(135deg, #f6e4a6, #d1a342);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(214, 173, 84, .2);
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .hero-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(214, 173, 84, .3);
    }

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 38px;
}

    .hero-features div {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #d2d8e1;
        font-size: 11px;
    }

    .hero-features i {
        color: var(--cat-gold);
    }

.hero-decoration {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(214, 173, 84, .15);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-decoration-one {
    left: 9%;
    top: 16%;
}

.hero-decoration-two {
    left: 14%;
    top: 24%;
    width: 180px;
    height: 180px;
}

.catalog-market-strip {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 25px;
    width: min(1120px, 90%);
    margin: -35px auto 0;
    padding: 23px 28px;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(12, 25, 45, .08);
}

.market-strip-title,
.market-strip-update {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .market-strip-title strong,
    .market-strip-update strong {
        display: block;
        margin-bottom: 5px;
        color: var(--cat-navy);
        font-size: 13px;
    }

    .market-strip-title small,
    .market-strip-update span,
    .market-strip-price span {
        display: block;
        color: var(--cat-muted);
        font-size: 11px;
    }

.market-live-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: #23a574;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(35, 165, 116, .1);
}

.market-strip-price {
    padding: 4px 25px;
    border-right: 1px solid var(--cat-border);
    border-left: 1px solid var(--cat-border);
}

    .market-strip-price strong {
        display: block;
        margin-top: 8px;
        color: #9b762b;
        font-size: 20px;
        font-weight: 900;
    }

.market-strip-update i {
    color: #b08a3d;
    font-size: 21px;
}

.catalog-section {
    width: min(1200px, 90%);
    margin: 90px auto;
}

.catalog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.section-kicker {
    display: block;
    color: #b08a3d;
    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: 1.6px;
    font-weight: 700;
}

.catalog-section-heading h2,
.calculator-heading h3 {
    margin: 10px 0;
    color: var(--cat-navy);
    font-size: clamp(24px, 3vw, 33px);
    font-weight: 850;
}

    .catalog-section-heading h2 span,
    .calculator-heading h3 span {
        color: #b18b3f;
    }

.catalog-section-heading p,
.calculator-heading p {
    margin: 0;
    color: var(--cat-muted);
    font-size: 13px;
    line-height: 2;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.category-tile {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    color: var(--cat-text);
    background: white;
    border: 1px solid var(--cat-border);
    border-radius: 17px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

    .category-tile:hover,
    .category-tile.active {
        transform: translateY(-4px);
        border-color: #d5b66e;
        box-shadow: 0 12px 28px rgba(12, 25, 45, .07);
    }

    .category-tile.active {
        background: linear-gradient(160deg, #fffdf6, #fff8e6);
    }

.category-icon {
    display: grid;
    place-items: center;
    width: 53px;
    height: 53px;
    color: #b18b3f;
    background: #f7f0dd;
    border-radius: 16px;
    font-size: 22px;
}

.category-tile strong {
    font-size: 13px;
}

.category-tile small {
    color: var(--cat-muted);
    font-size: 10px;
}

.products-section {
    margin-top: 100px;
}

.products-heading {
    align-items: end;
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(350px, 100%);
    padding: 0 14px;
    background: white;
    border: 1px solid var(--cat-border);
    border-radius: 12px;
}

    .catalog-search > i {
        color: #b18b3f;
    }

    .catalog-search input {
        width: 100%;
        min-width: 0;
        height: 48px;
        color: var(--cat-text);
        background: transparent;
        border: 0;
        outline: none;
        font-size: 12px;
    }

    .catalog-search button {
        padding: 7px;
        color: #9098a4;
        background: transparent;
        border: 0;
    }

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 12px;
}

.active-filter-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8b6a2d;
    font-size: 12px;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cat-muted);
    font-size: 11px;
}

    .catalog-sort select {
        max-width: 190px;
        padding: 9px 10px;
        color: var(--cat-text);
        background: #faf9f5;
        border: 1px solid var(--cat-border);
        border-radius: 8px;
        outline: none;
        font-size: 11px;
    }

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.catalog-product-card {
    overflow: hidden;
    background: white;
    border: 1px solid #ece8de;
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .catalog-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 38px rgba(10, 25, 45, .1);
    }

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #ede9df;
    cursor: pointer;
}

    .product-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .45s ease;
    }

.catalog-product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-card-badge {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 7px 10px;
    color: #4e3a13;
    background: #f5e6b6;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.product-card-heart {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    color: #fff;
    background: rgba(9, 20, 38, .7);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
}

    .product-card-heart.is-favorite {
        color: #fff;
        background: #a83c50;
    }

.product-card-body {
    padding: 17px;
}

.product-card-category {
    color: #ad873a;
    font-size: 10px;
    font-weight: 700;
}

.product-card-body h3 {
    min-height: 25px;
    margin: 8px 0;
    color: var(--cat-navy);
    font-size: 14px;
    font-weight: 800;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 13px 0;
    padding-bottom: 13px;
    color: var(--cat-muted);
    border-bottom: 1px solid #f0ede5;
    font-size: 10px;
}

.product-card-price-label {
    color: var(--cat-muted);
    font-size: 10px;
}

.product-card-price {
    display: block;
    margin-top: 6px;
    color: #997329;
    font-size: 15px;
    font-weight: 900;
}

.product-card-price-note {
    display: block;
    margin-top: 5px;
    color: #a2a6ae;
    font-size: 9px;
}

.product-card-details {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 13px;
    color: white;
    background: var(--cat-navy);
    border: 0;
    border-radius: 10px;
    font-size: 11px;
    transition: background .2s ease;
}

    .product-card-details:hover {
        background: #172b48;
    }

    .product-card-details i {
        color: var(--cat-gold-light);
    }

.catalog-empty {
    padding: 60px 20px;
    text-align: center;
    background: white;
    border: 1px dashed #d8cfba;
    border-radius: 18px;
}

    .catalog-empty[hidden],
    .catalog-detail-overlay[hidden] {
        display: none !important;
    }

    .catalog-empty > i {
        color: #c5a252;
        font-size: 32px;
    }

    .catalog-empty h3 {
        color: var(--cat-navy);
    }

    .catalog-empty p {
        color: var(--cat-muted);
        font-size: 13px;
    }

    .catalog-empty button {
        margin-top: 10px;
        padding: 12px 18px;
        color: white;
        background: var(--cat-navy);
        border: 0;
        border-radius: 9px;
    }

.catalog-promo {
    display: flex;
    align-items: center;
    gap: 25px;
    width: min(1200px, 90%);
    margin: 90px auto;
    padding: 35px;
    color: white;
    background: radial-gradient(circle at 0 0, rgba(214,173,84,.18), transparent 45%), linear-gradient(110deg, #081426, #14243b);
    border: 1px solid rgba(214,173,84,.35);
    border-radius: 22px;
}

.promo-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    color: var(--cat-gold-light);
    background: rgba(214,173,84,.12);
    border: 1px solid rgba(214,173,84,.35);
    border-radius: 20px;
    font-size: 27px;
}

.catalog-promo > div:nth-child(2) {
    flex: 1;
}

    .catalog-promo > div:nth-child(2) > span {
        color: var(--cat-gold-light);
        font-family: Georgia, serif;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

.catalog-promo h2 {
    margin: 8px 0;
    color: white;
    font-size: 21px;
}

.catalog-promo p {
    margin: 0;
    color: #c2cad5;
    font-size: 12px;
    line-height: 2;
}

.catalog-promo > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: #151c2a;
    background: linear-gradient(135deg, #f5e4a8, #d4a64b);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.price-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.price-info-card {
    position: relative;
    overflow: hidden;
    padding: 27px;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 18px;
}

    .price-info-card > span {
        position: absolute;
        top: 16px;
        left: 20px;
        color: #e6deca;
        font-family: Georgia, serif;
        font-size: 28px;
        font-weight: 800;
    }

    .price-info-card > i {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        color: #a78338;
        background: #f8f1df;
        border-radius: 14px;
        font-size: 20px;
    }

    .price-info-card h3 {
        margin: 20px 0 9px;
        color: var(--cat-navy);
        font-size: 15px;
    }

    .price-info-card p {
        margin: 0;
        color: var(--cat-muted);
        font-size: 12px;
        line-height: 2.2;
    }

.catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 6%;
    color: white;
    background: #07101e;
}

    .catalog-footer p {
        color: #b6becb;
        font-size: 12px;
    }

    .catalog-footer > a:last-child {
        color: var(--cat-gold-light);
        font-size: 12px;
    }

/* Product detail overlay */
.catalog-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 30px 16px;
    background: rgba(3, 10, 20, .78);
    backdrop-filter: blur(8px);
}

.catalog-detail-panel {
    position: relative;
    width: min(1100px, 100%);
    margin: auto;
    padding: 32px;
    background: #fbfaf6;
    border: 1px solid rgba(214,173,84,.35);
    border-radius: 22px;
    box-shadow: 0 25px 90px rgba(0,0,0,.35);
}

.detail-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: white;
    background: var(--cat-navy);
    border: 0;
    border-radius: 50%;
    font-size: 17px;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-left: 45px;
    color: var(--cat-muted);
    font-size: 11px;
}

    .detail-breadcrumb a {
        color: #9c762f;
    }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 38px;
}

.detail-main-image {
    position: relative;
    overflow: hidden;
    height: 420px;
    background: #eae5d8;
    border-radius: 17px;
}

    .detail-main-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.detail-image-label {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 9px 12px;
    color: #f8e6a9;
    background: rgba(8,20,38,.82);
    border: 1px solid rgba(214,173,84,.4);
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: 1px;
}

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.detail-thumbnail {
    overflow: hidden;
    height: 100px;
    padding: 0;
    background: #eee9dc;
    border: 2px solid transparent;
    border-radius: 12px;
}

    .detail-thumbnail.active {
        border-color: #c5a04a;
    }

    .detail-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.detail-category {
    display: block;
    margin-top: 14px;
    color: #a78338;
    font-size: 11px;
    font-weight: 800;
}

.detail-information h2 {
    margin: 9px 0;
    color: var(--cat-navy);
    font-size: 29px;
    font-weight: 900;
}

.detail-code {
    color: var(--cat-muted);
    font-size: 11px;
}

    .detail-code strong {
        color: #9a772f;
        direction: ltr;
        display: inline-block;
    }

.detail-description {
    color: #657082;
    font-size: 13px;
    line-height: 2.3;
}

.detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 23px 0;
}

    .detail-specs > div {
        padding: 15px;
        background: white;
        border: 1px solid var(--cat-border);
        border-radius: 12px;
    }

    .detail-specs span,
    .detail-specs strong {
        display: block;
    }

    .detail-specs span {
        margin-bottom: 8px;
        color: var(--cat-muted);
        font-size: 10px;
    }

    .detail-specs strong {
        color: var(--cat-navy);
        font-size: 13px;
    }

.detail-price-preview {
    padding: 20px;
    background: linear-gradient(135deg, #fff9e7, #f5e7bd);
    border: 1px solid #e7d39a;
    border-radius: 14px;
}

    .detail-price-preview span,
    .detail-price-preview strong,
    .detail-price-preview small {
        display: block;
    }

    .detail-price-preview span {
        color: #77602e;
        font-size: 11px;
    }

    .detail-price-preview strong {
        margin: 10px 0;
        color: #74551b;
        font-size: 22px;
        font-weight: 900;
    }

    .detail-price-preview small {
        color: #8b784e;
        font-size: 10px;
    }

.detail-calc-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    color: #f4dfa0;
    background: var(--cat-navy);
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

.detail-calculator {
    margin-top: 40px;
    padding: 27px;
    background: white;
    border: 1px solid var(--cat-border);
    border-radius: 17px;
    scroll-margin-top: 25px;
}

.calculator-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

    .calculator-fields label {
        display: block;
        color: #4d586a;
        font-size: 11px;
        font-weight: 700;
    }

    .calculator-fields input {
        display: block;
        width: 100%;
        height: 47px;
        margin-top: 9px;
        padding: 0 12px;
        color: var(--cat-navy);
        background: #fbfaf6;
        border: 1px solid #e3ddcf;
        border-radius: 9px;
        outline: none;
        direction: ltr;
    }

        .calculator-fields input:focus {
            border-color: #c6a04b;
            box-shadow: 0 0 0 3px rgba(214,173,84,.12);
        }

.calculator-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .calculator-breakdown > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
        background: #f8f7f2;
        border-radius: 9px;
        font-size: 11px;
    }

        .calculator-breakdown > div span {
            color: var(--cat-muted);
        }

        .calculator-breakdown > div strong {
            color: var(--cat-navy);
            text-align: left;
        }

    .calculator-breakdown .calculator-total {
        grid-column: 1 / -1;
        padding: 20px;
        background: var(--cat-navy);
    
    }

.calculator-total span {
    color:#8b784e
    !important;
}

.calculator-breakdown .calculator-total strong {
    color: var(--cat-gold-light);
    font-size: 20px;
}

.calculator-disclaimer {
    margin: 20px 0 0;
    color: #858b95;
    font-size: 10px;
    line-height: 2.2;
}

@media (max-width: 1050px) {
    .catalog-nav {
        gap: 14px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-card-image {
        height: 220px;
    }
}

@media (max-width: 760px) {
    .catalog-header {
        min-height: 72px;
        padding: 12px 5%;
    }

    .catalog-nav,
    .catalog-back {
        display: none;
    }

    .catalog-menu-btn {
        display: block;
    }

    .catalog-nav.menu-open {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 5%;
        background: var(--cat-navy);
        border-top: 1px solid rgba(214,173,84,.25);
    }

        .catalog-nav.menu-open a {
            padding: 14px 4px;
            border-bottom: 1px solid rgba(255,255,255,.07);
        }

    .catalog-hero {
        min-height: 430px;
        padding: 55px 6%;
    }

        .catalog-hero h1 {
            font-size: 36px;
        }

    .catalog-hero-content > p {
        font-size: 13px;
    }

    .hero-features {
        gap: 14px;
    }

        .hero-features div {
            font-size: 10px;
        }

    .catalog-market-strip {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
        padding: 19px;
    }















    .market-strip-price {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 17px 0 0;
        border: 0;
        border-top: 1px solid var(--cat-border);
    }

        .market-strip-price strong {
            font-size: 18px;
        }

    .catalog-section {
        margin: 65px auto;
    }

    .catalog-section-heading,
    .products-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-search {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .category-tile {
        min-height: 140px;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .product-card-image {
        height: 175px;
    }

    .product-card-body {
        padding: 12px;
    }

        .product-card-body h3 {
            font-size: 12px;
        }

    .product-card-price {
        font-size: 12px;
    }

    .product-card-meta {
        font-size: 9px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-promo {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

        .catalog-promo h2 {
            font-size: 18px;
        }

    .price-info-grid {
        grid-template-columns: 1fr;
    }

    .catalog-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-detail-overlay {
        padding: 10px;
    }

    .catalog-detail-panel {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-main-image {
        height: min(360px, 90vw);
    }

    .detail-thumbnail {
        height: 85px;
    }

    .detail-information h2 {
        font-size: 24px;
    }

    .calculator-fields {
        grid-template-columns: 1fr;
    }

    .detail-calculator {
        padding: 20px 13px;
    }

    .calculator-breakdown > div {
        font-size: 10px;
    }

    .calculator-breakdown .calculator-total strong {
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    .catalog-product-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 250px;
    }

    .catalog-market-strip {
        width: 94%;
    }

    .detail-specs {
        gap: 8px;
    }

    .calculator-breakdown > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   KHATAM GOLD — PREMIUM NAVY & GOLD THEME
   Add this block at the END of catalog.css
========================================= */

.catalog-body {
    --cat-navy: #071326;
    --cat-navy-2: #102442;
    --cat-gold: #d8b45f;
    --cat-gold-light: #f7e7b1;
    --cat-text: #17253b;
    --cat-muted: #778397;
    --cat-bg: #f4f5f8;
    --cat-white: #ffffff;
    --cat-border: #e2e5eb;
    color: var(--cat-text);
    background: radial-gradient(ellipse at 5% 15%, rgba(216, 180, 95, .055), transparent 30%), #f4f5f8;
}

    .catalog-body ::selection {
        color: #071326;
        background: #ead49a;
    }

    .catalog-body a,
    .catalog-body button,
    .catalog-body input,
    .catalog-body select {
        -webkit-tap-highlight-color: transparent;
    }

        .catalog-body button:focus-visible,
        .catalog-body a:focus-visible,
        .catalog-body input:focus-visible,
        .catalog-body select:focus-visible {
            outline: 2px solid var(--cat-gold);
            outline-offset: 3px;
        }

/* Header */

.catalog-header {
    min-height: 84px;
    padding-inline: clamp(18px, 5.5vw, 86px);
    background: linear-gradient(110deg, #061020, #102541 58%, #09172b);
    border-bottom: 1px solid rgba(247, 231, 177, .3);
    box-shadow: 0 8px 28px rgba(4, 14, 30, .14);
}

.brand-gem {
    position: relative;
    overflow: hidden;
    width: 46px;
    height: 46px;
    color: #f7e7b1;
    background: linear-gradient(145deg, rgba(216, 180, 95, .22), rgba(216, 180, 95, .04));
    border-color: rgba(247, 231, 177, .55);
    box-shadow: inset 0 0 15px rgba(216, 180, 95, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.catalog-brand:hover .brand-gem {
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 0 22px rgba(216, 180, 95, .17);
}

.catalog-brand strong {
    letter-spacing: 1.5px;
}

.catalog-nav {
    gap: clamp(14px, 2vw, 29px);
}

    .catalog-nav a {
        position: relative;
        padding-block: 10px;
    }

        .catalog-nav a::after {
            position: absolute;
            right: 0;
            bottom: 2px;
            width: 0;
            height: 2px;
            content: "";
            background: linear-gradient(90deg, var(--cat-gold), var(--cat-gold-light));
            transition: width .25s ease;
        }

        .catalog-nav a:hover::after {
            width: 100%;
        }

.catalog-back {
    background: rgba(216, 180, 95, .07);
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

    .catalog-back:hover {
        color: #071326 !important;
        background: var(--cat-gold-light);
        border-color: var(--cat-gold-light);
    }

.catalog-menu-btn {
    transition: background .2s ease, color .2s ease;
}

    .catalog-menu-btn:hover {
        color: #071326;
        background: var(--cat-gold-light);
    }

/* Hero */

.catalog-hero {
    isolation: isolate;
    min-height: 520px;
    padding: clamp(55px, 7vw, 90px) clamp(24px, 8vw, 125px);
    background: radial-gradient(ellipse at 78% 30%, rgba(216, 180, 95, .19), transparent 31%), radial-gradient(ellipse at 10% 100%, rgba(42, 91, 146, .23), transparent 42%), linear-gradient(120deg, #050e1c 0%, #0b1b32 48%, #142b49 100%);
}

    .catalog-hero::before {
        position: absolute;
        top: -160px;
        left: -100px;
        width: 420px;
        height: 420px;
        content: "";
        border: 1px solid rgba(247, 231, 177, .11);
        border-radius: 50%;
        box-shadow: 0 0 0 35px rgba(247, 231, 177, .025), 0 0 0 75px rgba(247, 231, 177, .02);
        pointer-events: none;
    }

.catalog-hero-content {
    max-width: 790px;
}

.hero-eyebrow {
    color: #f5df9f;
    letter-spacing: 2.3px;
}

.catalog-hero h1 {
    line-height: 1.65;
    letter-spacing: -.5px;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .2);
}

    .catalog-hero h1 span {
        width: fit-content;
        background: linear-gradient(90deg, #d3a94d, #fff0bd 48%, #d8b45f);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.catalog-hero-content > p {
    color: #cbd5e2;
    line-height: 2.4;
}

.hero-cta {
    min-height: 49px;
    background: linear-gradient(120deg, #f9edc6, #e0bd6a 55%, #c79a3f);
    box-shadow: 0 10px 28px rgba(216, 180, 95, .18);
}

    .hero-cta:hover {
        box-shadow: 0 14px 38px rgba(216, 180, 95, .28);
    }

.hero-features {
    gap: 14px 25px;
}

    .hero-features div {
        padding: 9px 12px;
        background: rgba(255, 255, 255, .035);
        border: 1px solid rgba(255, 255, 255, .07);
        border-radius: 9px;
    }

/* Live gold market strip */

.catalog-market-strip {
    padding: 25px 30px;
    background: linear-gradient(135deg, #fff, #fcfbf7);
    border: 1px solid #e5dfd0;
    box-shadow: 0 18px 48px rgba(9, 24, 45, .09);
}

.market-strip-price strong {
    color: #9b7428;
    font-size: clamp(17px, 2vw, 23px);
    font-variant-numeric: tabular-nums;
}

.market-strip-title strong,
.market-strip-update strong {
    color: #0b1c33;
}

.market-live-dot {
    animation: cat-live-pulse 2s infinite;
}

@keyframes cat-live-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(35, 165, 116, .10);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(35, 165, 116, .035);
    }
}

/* Section headings */

.catalog-section {
    margin-block: clamp(65px, 8vw, 100px);
}

.catalog-section-heading {
    margin-bottom: 34px;
}

.section-kicker {
    margin-bottom: 10px;
    color: #a27b2d;
    letter-spacing: 2px;
}

.catalog-section-heading h2,
.calculator-heading h3 {
    letter-spacing: -.4px;
}

    .catalog-section-heading h2 span,
    .calculator-heading h3 span {
        color: #a47d30;
    }

.catalog-section-heading p,
.calculator-heading p {
    line-height: 2.2;
}

/* Category cards */

.category-grid {
    gap: 17px;
}

.category-tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 172px;
    background: linear-gradient(145deg, #fff 0%, #fbfaf6 100%);
    border-color: #e4e1d8;
    box-shadow: 0 5px 18px rgba(9, 24, 45, .025);
}

    .category-tile::before {
        position: absolute;
        z-index: -1;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        content: "";
        background: linear-gradient(90deg, #b58a35, #f3df9f, #b58a35);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .3s ease;
    }

    .category-tile:hover::before,
    .category-tile.active::before {
        transform: scaleX(1);
    }

    .category-tile:hover,
    .category-tile.active {
        transform: translateY(-5px);
        border-color: #d6b663;
        box-shadow: 0 15px 32px rgba(9, 24, 45, .08);
    }

    .category-tile.active {
        background: linear-gradient(145deg, #fffdf7, #f9f0d8);
    }

.category-icon {
    width: 57px;
    height: 57px;
    color: #a17a2e;
    background: linear-gradient(145deg, #fbf3df, #eee0b7);
    border: 1px solid rgba(181, 138, 53, .15);
    border-radius: 18px;
    transition: transform .25s ease, background .25s ease;
}

.category-tile:hover .category-icon,
.category-tile.active .category-icon {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(145deg, #f8e7b4, #e4c777);
}

/* Search and toolbar */

.catalog-search {
    min-height: 52px;
    background: #fff;
    border-color: #dfe3e9;
    box-shadow: 0 5px 18px rgba(9, 24, 45, .025);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .catalog-search:focus-within {
        border-color: #c4a04e;
        box-shadow: 0 0 0 4px rgba(216, 180, 95, .12);
    }

    .catalog-search input {
        font-size: 12px;
    }

    .catalog-search button:hover {
        color: #9b7428;
    }

.catalog-toolbar {
    min-height: 61px;
    padding: 14px 18px;
    background: linear-gradient(110deg, #fff, #fbfaf6);
    border-color: #e4e5e9;
    box-shadow: 0 5px 18px rgba(9, 24, 45, .025);
}

.active-filter-label {
    font-weight: 700;
}

.catalog-sort select {
    max-width: 230px;
    background: #fff;
    border-color: #e1dfd7;
    transition: border-color .2s ease;
}

    .catalog-sort select:focus {
        border-color: #c4a04e;
    }

/* Product cards */

.catalog-product-grid {
    gap: 24px;
}

.catalog-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 19px;
    box-shadow: 0 6px 22px rgba(8, 24, 46, .035);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

    .catalog-product-card:hover {
        transform: translateY(-7px);
        border-color: #d8bd79;
        box-shadow: 0 20px 42px rgba(8, 24, 46, .105);
    }

.product-card-image {
    height: 255px;
    background: linear-gradient(145deg, #f1eee6, #e4e7ec);
}

    .product-card-image img {
        transition: transform .55s cubic-bezier(.2, .7, .2, 1);
    }

.product-card-badge {
    color: #614718;
    background: linear-gradient(135deg, #fff1c3, #e6c979);
    border: 1px solid rgba(160, 120, 39, .12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.product-card-heart {
    width: 37px;
    height: 37px;
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}

    .product-card-heart:hover {
        transform: scale(1.08);
    }

    .product-card-heart.is-favorite {
        background: #a83c50;
    }

.product-card-body {
    padding: 19px;
}

.product-card-category {
    display: inline-block;
    padding: 5px 9px;
    color: #98702a;
    background: #fbf4e2;
    border-radius: 6px;
}

.product-card-body h3 {
    margin-block: 11px;
    font-size: 14px;
    line-height: 1.9;
}

.product-card-meta {
    margin-block: 13px;
    padding-bottom: 14px;
    line-height: 1.8;
}

.product-card-price {
    color: #9b7428;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.product-card-details {
    min-height: 44px;
    margin-top: 17px;
    padding: 12px 14px;
    background: linear-gradient(110deg, #071326, #142c4b);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

    .product-card-details:hover {
        background: linear-gradient(110deg, #112746, #1a385b);
        box-shadow: 0 7px 18px rgba(7, 19, 38, .16);
    }

    .product-card-details:active {
        transform: scale(.985);
    }

/* Empty results */

.catalog-empty {
    padding: 65px 20px;
    background: linear-gradient(145deg, #fff, #fbfaf6);
    border-color: #d9d0ba;
}

    .catalog-empty > i {
        display: inline-grid;
        place-items: center;
        width: 70px;
        height: 70px;
        background: #f7efd9;
        border-radius: 22px;
    }

    .catalog-empty button {
        padding: 13px 22px;
        background: linear-gradient(110deg, #071326, #173253);
        transition: transform .2s ease, box-shadow .2s ease;
    }

        .catalog-empty button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(7, 19, 38, .16);
        }

/* Promotional banner */

.catalog-promo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 4vw, 40px);
    background: radial-gradient(ellipse at 0 0, rgba(216, 180, 95, .18), transparent 48%), radial-gradient(ellipse at 100% 100%, rgba(47, 92, 142, .22), transparent 40%), linear-gradient(115deg, #050f1f, #102542 65%, #0a192d);
    border-color: rgba(216, 180, 95, .38);
    box-shadow: 0 20px 45px rgba(7, 19, 38, .12);
}

    .catalog-promo::after {
        position: absolute;
        z-index: -1;
        top: -90px;
        left: 20%;
        width: 220px;
        height: 220px;
        content: "";
        border: 1px solid rgba(247, 231, 177, .09);
        border-radius: 50%;
        box-shadow: 0 0 0 25px rgba(247, 231, 177, .025);
        pointer-events: none;
    }

.promo-icon {
    background: linear-gradient(145deg, rgba(216, 180, 95, .2), rgba(216, 180, 95, .06));
    box-shadow: inset 0 0 18px rgba(216, 180, 95, .06);
}

.catalog-promo h2 {
    line-height: 1.9;
}

.catalog-promo > a {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .catalog-promo > a:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 25px rgba(216, 180, 95, .18);
    }

/* Price information cards */

.price-info-grid {
    gap: 22px;
}

.price-info-card {
    padding: 30px;
    background: linear-gradient(145deg, #fff, #fbfaf7);
    border-color: #e3e4e7;
    box-shadow: 0 7px 24px rgba(8, 24, 46, .035);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .price-info-card:hover {
        transform: translateY(-5px);
        border-color: #d7bc77;
        box-shadow: 0 16px 35px rgba(8, 24, 46, .075);
    }

    .price-info-card > span {
        color: #e5d8b7;
    }

    .price-info-card > i {
        background: linear-gradient(145deg, #fbf2db, #eee0b7);
    }

/* Product details modal */

.catalog-detail-overlay {
    background: rgba(3, 10, 23, .84);
    backdrop-filter: blur(11px);
}

.catalog-detail-panel {
    background: linear-gradient(145deg, #fafaf8, #f3f4f7);
    border-color: rgba(216, 180, 95, .48);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
}

.detail-close {
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

    .detail-close:hover {
        color: #071326;
        background: var(--cat-gold-light);
        transform: rotate(90deg);
    }

.detail-breadcrumb {
    line-height: 1.9;
}

.detail-main-image {
    background: #e9e7e0;
    border: 1px solid #e0ded5;
    box-shadow: 0 10px 28px rgba(8, 24, 46, .07);
}

    .detail-main-image img {
        transition: opacity .2s ease;
    }

.detail-thumbnail {
    border-color: #e1e2e5;
    transition: border-color .2s ease, transform .2s ease;
}

    .detail-thumbnail:hover {
        transform: translateY(-2px);
        border-color: #c4a04e;
    }

    .detail-thumbnail.active {
        border-color: #c4a04e;
        box-shadow: 0 0 0 2px rgba(196, 160, 78, .13);
    }

.detail-information h2 {
    line-height: 1.8;
}

.detail-specs > div {
    background: linear-gradient(145deg, #fff, #fbfaf7);
    border-color: #e4e4e4;
}

.detail-price-preview {
    background: radial-gradient(ellipse at 100% 0, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(125deg, #fff9e8, #f0dfaa);
    border-color: #e5d09a;
}

    .detail-price-preview strong {
        font-variant-numeric: tabular-nums;
        line-height: 1.8;
    }

.detail-calc-jump {
    min-height: 48px;
    background: linear-gradient(110deg, #071326, #173253);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .detail-calc-jump:hover {
        transform: translateY(-2px);
        box-shadow: 0 9px 22px rgba(7, 19, 38, .16);
    }

/* Calculator */

.detail-calculator {
    background: #fff;
    border-color: #e2e4e9;
    box-shadow: 0 7px 25px rgba(8, 24, 46, .035);
}

.calculator-fields input {
    transition: border-color .2s ease, box-shadow .2s ease;
}

.calculator-breakdown > div {
    min-width: 0;
    border: 1px solid #ececf0;
}

    .calculator-breakdown > div strong {
        overflow-wrap: anywhere;
        font-variant-numeric: tabular-nums;
    }

.calculator-breakdown .calculator-total {
    background: linear-gradient(110deg, #071326, #142b49);
    border-color: rgba(216, 180, 95, .3);
    box-shadow: 0 8px 20px rgba(7, 19, 38, .1);
}

    .calculator-breakdown .calculator-total strong {
        color: #f7e7b1;
    }

/* Footer */

.catalog-footer {
    position: relative;
    overflow: hidden;
    padding: 36px 6%;
    background: radial-gradient(ellipse at 10% 0, rgba(216, 180, 95, .10), transparent 35%), linear-gradient(110deg, #050e1b, #10223b);
    border-top: 1px solid rgba(216, 180, 95, .25);
}

    .catalog-footer > a:last-child {
        transition: color .2s ease;
    }

        .catalog-footer > a:last-child:hover {
            color: #fff0bd;
        }

/* Responsive refinements */

@media (min-width: 1400px) {
    .catalog-product-grid {
        gap: 27px;
    }

    .product-card-image {
        height: 270px;
    }
}

@media (max-width: 1050px) {
    .catalog-header {
        gap: 18px;
    }

    .catalog-product-grid {
        gap: 17px;
    }

    .product-card-image {
        height: 225px;
    }
}

@media (max-width: 760px) {
    .catalog-header {
        min-height: 72px;
        gap: 12px;
    }

    .catalog-nav.menu-open {
        z-index: 120;
        padding: 10px 5% 15px;
        background: linear-gradient(110deg, #061020, #102541);
        box-shadow: 0 15px 25px rgba(0, 0, 0, .2);
    }

    .catalog-hero {
        min-height: 440px;
        padding: 55px 6%;
    }

        .catalog-hero h1 {
            font-size: clamp(31px, 7vw, 39px);
            line-height: 1.75;
        }

    .hero-features {
        gap: 9px;
    }

        .hero-features div {
            padding: 8px 9px;
        }

    .catalog-market-strip {
        padding: 19px;
        border-radius: 15px;
    }

    .catalog-section {
        margin-block: 62px;
    }

    .category-grid {
        gap: 12px;
    }

    .category-tile {
        min-height: 148px;
    }

    .catalog-product-grid {
        gap: 13px;
    }

    .product-card-image {
        height: 185px;
    }

    .product-card-body {
        padding: 13px;
    }

    .product-card-details {
        min-height: 42px;
        padding: 11px;
    }

    .catalog-promo {
        gap: 17px;
        border-radius: 18px;
    }

    .price-info-card {
        padding: 24px;
    }

    .catalog-detail-panel {
        padding: 21px 15px;
    }

    .detail-calculator {
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .catalog-brand {
        gap: 9px;
    }

    .brand-gem {
        width: 40px;
        height: 40px;
    }

    .catalog-brand strong {
        font-size: 15px;
    }

    .catalog-hero {
        padding-inline: 22px;
    }

    .hero-eyebrow {
        gap: 7px;
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .catalog-hero h1 {
        font-size: 31px;
    }

    .catalog-market-strip {
        width: 92%;
        gap: 17px 10px;
    }

    .market-strip-price strong {
        font-size: 17px;
    }

















    .category-tile {
        min-height: 136px;
        padding: 14px 7px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .category-tile strong {
        font-size: 12px;
    }

    .category-tile small {
        font-size: 9px;
    }

    .product-card-image {
        height: 155px;
    }

    .product-card-badge {
        top: 8px;
        right: 8px;
        padding: 6px 7px;
        font-size: 9px;
    }

    .product-card-heart {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
    }

    .product-card-body h3 {
        font-size: 12px;
        line-height: 1.8;
    }

    .product-card-price {
        font-size: 12px;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    .catalog-sort {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

        .catalog-sort select {
            max-width: 100%;
            flex: 1;
        }

    .detail-specs {
        grid-template-columns: 1fr 1fr;
    }

    .calculator-breakdown > div {
        padding: 12px 10px;
    }

    .calculator-breakdown .calculator-total {
        padding: 16px 12px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .catalog-body *,
    .catalog-body *::before,
    .catalog-body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
/* ==========================================
   KHATAM GOLD - PRODUCT CARD FIX
   این کد را انتهای catalog.css قرار بده
========================================== */

/* کارت محصول */
.catalog-product-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e5eb;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(7, 19, 38, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .catalog-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(7, 19, 38, 0.10);
    }

/* دکمه اصلی کارت */
.catalog-product-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: right;
    color: #17253b;
    background: #ffffff;
    border: 0;
    border-radius: inherit;
    cursor: pointer;
}

/* قاب عکس - جلوگیری از بزرگ شدن بیش از حد */
.catalog-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 205px;
    min-height: 205px;
    overflow: hidden;
    padding: 12px;
    background: #f2f1ed;
    border-bottom: 1px solid #e9e7e0;
}

    /* خود عکس محصول */
    .catalog-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
        transition: transform 0.35s ease;
    }

.catalog-product-card:hover .catalog-product-image img {
    transform: scale(1.04);
}

/* برچسب جدید و ویژه */
.catalog-product-image .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #594115;
    background: #f3dfa1;
    border: 1px solid #e2c879;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

/* بخش متن کارت */
.catalog-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 16px;
    background: #ffffff;
}

/* نام دسته بندی */
.catalog-product-category {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 7px;
    padding: 5px 9px;
    overflow: hidden;
    color: #896621;
    background: #faf3df;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* عنوان محصول */
.catalog-product-content h3 {
    display: -webkit-box;
    min-height: 0;
    margin: 5px 0 8px;
    overflow: hidden;
    color: #101f36;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.9;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* توضیحات محصول */
.catalog-product-description {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 12px;
    overflow: hidden;
    color: #5e6878;
    font-size: 11px;
    line-height: 2;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* وزن محصول */
.catalog-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 11px 0;
    color: #697386;
    border-top: 1px solid #edf0f3;
    font-size: 11px;
}

    .catalog-product-meta strong {
        color: #17253b;
        font-size: 12px;
        font-weight: 800;
    }

/* قیمت */
.catalog-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 11px 12px;
    background: #faf7ed;
    border: 1px solid #f0e7ce;
    border-radius: 10px;
}

    .catalog-product-price > span {
        color: #78653c;
        font-size: 10px;
    }

    .catalog-product-price strong {
        display: block;
        max-width: 100%;
        color: #8a6420;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

/* لینک نمایشی جزئیات */
.catalog-product-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 12px;
    color: #ffffff;
    background: #0b1c33;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s ease;
}

    .catalog-product-details i {
        color: #f3dfa1;
    }

.catalog-product-card:hover .catalog-product-details {
    background: #183554;
}

/* مخفی کردن صحیح کارت‌های فیلترشده */
.catalog-product-card[hidden] {
    display: none !important;
}

/* تبلت */
@media (max-width: 1050px) {
    .catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .catalog-product-image {
        height: 190px;
        min-height: 190px;
    }

    .catalog-product-content {
        padding: 14px;
    }
}

/* موبایل */
@media (max-width: 760px) {
    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-product-image {
        height: 155px;
        min-height: 155px;
        padding: 9px;
    }

    .catalog-product-content {
        padding: 11px;
    }

        .catalog-product-content h3 {
            font-size: 12px;
            line-height: 1.8;
        }

    .catalog-product-description {
        font-size: 10px;
    }

    .catalog-product-meta {
        font-size: 10px;
    }

        .catalog-product-meta strong {
            font-size: 11px;
        }

    .catalog-product-price {
        padding: 9px;
    }

        .catalog-product-price strong {
            font-size: 11px;
        }

    .catalog-product-details {
        padding: 10px;
        font-size: 10px;
    }
}

/* موبایل کوچک */
@media (max-width: 390px) {
    .catalog-product-image {
        height: 140px;
        min-height: 140px;
    }

    .catalog-product-content {
        padding: 9px;
    }

        .catalog-product-content h3 {
            font-size: 11px;
        }
}

```css
/* ==========================================
   KHATAM GOLD - CATALOG PRODUCT DETAILS
========================================== */
.catalog-detail-overlay,
.catalog-detail-overlay * {
    box-sizing: border-box;
}

.catalog-detail-overlay {
    --detail-gold: #c9a45c;
    --detail-gold-light: #e5ca8c;
    --detail-navy: #111c2d;
    --detail-navy-light: #1b2b42;
    --detail-text: #242a33;
    --detail-muted: #777f8c;
    --detail-border: #e8e3d9;
    --detail-bg: #f7f5f0;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    direction: rtl;
    background: rgba(8, 15, 27, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .catalog-detail-overlay[hidden] {
        display: none !important;
    }

.catalog-detail-panel {
    position: relative;
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: auto;
    padding: 38px;
    overflow: hidden;
    color: var(--detail-text);
    background: #fff;
    border: 1px solid rgba(201, 164, 92, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.28);
    animation: detailPanelEnter 0.3s ease both;
    font-family: inherit;
}

@keyframes detailPanelEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* بستن جزئیات */

.catalog-detail-panel .detail-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: var(--detail-navy);
    border: 1px solid rgba(201, 164, 92, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.25s ease;
}

    .catalog-detail-panel .detail-close:hover {
        color: var(--detail-navy);
        background: var(--detail-gold-light);
        transform: rotate(90deg);
    }

/* مسیر راهنما */

.catalog-detail-panel .detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0 0 18px;
    color: var(--detail-muted);
    border-bottom: 1px solid var(--detail-border);
    font-size: 13px;
}

    .catalog-detail-panel .detail-breadcrumb a {
        color: #9b7939;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .catalog-detail-panel .detail-breadcrumb a:hover {
            color: var(--detail-navy);
        }

    .catalog-detail-panel .detail-breadcrumb i {
        font-size: 10px;
        color: var(--detail-gold);
    }

/* چیدمان اصلی */

.catalog-detail-panel .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
    min-width: 0;
}

/* گالری تصاویر */

.catalog-detail-panel .detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.catalog-detail-panel .detail-main-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 360px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #f8f4eb 65%, #eee6d7 100%);
    border: 1px solid var(--detail-border);
    border-radius: 18px;
}

    .catalog-detail-panel .detail-main-image img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 360px;
        max-height: 540px;
        object-fit: contain;
        padding: 22px;
        transition: transform 0.4s ease;
    }

    .catalog-detail-panel .detail-main-image:hover img {
        transform: scale(1.035);
    }

.catalog-detail-panel .detail-image-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(17, 28, 45, 0.88);
    border: 1px solid rgba(229, 202, 140, 0.5);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    direction: ltr;
}

/* تصاویر کوچک؛ برای کلاس‌هایی که JS می‌سازد */

.catalog-detail-panel .detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
}

    .catalog-detail-panel .detail-thumbnails img,
    .catalog-detail-panel .detail-thumbnail,
    .catalog-detail-panel .detail-thumbnails button {
        width: 76px;
        height: 76px;
        padding: 5px;
        object-fit: contain;
        background: #faf9f6;
        border: 1px solid var(--detail-border);
        border-radius: 10px;
        cursor: pointer;
        transition: 0.2s ease;
    }

        .catalog-detail-panel .detail-thumbnails img:hover,
        .catalog-detail-panel .detail-thumbnail:hover,
        .catalog-detail-panel .detail-thumbnails button:hover,
        .catalog-detail-panel .detail-thumbnails .active {
            border-color: var(--detail-gold);
            box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.14);
        }

/* اطلاعات محصول */

.catalog-detail-panel .detail-information {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding-top: 5px;
}

.catalog-detail-panel .section-kicker {
    display: inline-block;
    margin-bottom: 13px;
    color: #a18143;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    direction: ltr;
    text-align: right;
}

.catalog-detail-panel .detail-category {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 7px 13px;
    overflow-wrap: anywhere;
    color: #80612b;
    background: #f7f0e2;
    border: 1px solid #ead9b5;
    border-radius: 30px;
    font-size: 12px;
}

.catalog-detail-panel .detail-information h2 {
    margin: 0 0 13px;
    color: var(--detail-navy);
    font-size: clamp(24px, 3vw, 35px);
    font-weight: 800;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.catalog-detail-panel .detail-code {
    margin: 0 0 18px;
    color: var(--detail-muted);
    font-size: 13px;
}

    .catalog-detail-panel .detail-code strong {
        margin-right: 5px;
        color: var(--detail-navy);
        direction: ltr;
        unicode-bidi: isolate;
    }

.catalog-detail-panel .detail-description {
    margin: 0 0 24px;
    color: #646c77;
    font-size: 14px;
    line-height: 2.2;
    overflow-wrap: anywhere;
}

/* مشخصات محصول */

.catalog-detail-panel .detail-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

    .catalog-detail-panel .detail-specs > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
        min-width: 0;
        min-height: 82px;
        padding: 15px;
        background: #fbfaf7;
        border: 1px solid var(--detail-border);
        border-radius: 12px;
        transition: border-color 0.2s ease, transform 0.2s ease;
    }

        .catalog-detail-panel .detail-specs > div:hover {
            border-color: #d8c18e;
            transform: translateY(-2px);
        }

        .catalog-detail-panel .detail-specs > div span {
            color: var(--detail-muted);
            font-size: 12px;
        }

        .catalog-detail-panel .detail-specs > div strong {
            color: var(--detail-navy);
            font-size: 15px;
            font-weight: 800;
            overflow-wrap: anywhere;
        }

/* قیمت تخمینی */

.catalog-detail-panel .detail-price-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 22px;
    background: linear-gradient(135deg, #142239 0%, #203550 100%);
    border: 1px solid rgba(201, 164, 92, 0.55);
    border-radius: 15px;
}

    .catalog-detail-panel .detail-price-preview > span {
        color: #e4d3ad;
        font-size: 13px;
    }

    .catalog-detail-panel .detail-price-preview > strong {
        color: #f0d394;
        font-size: clamp(21px, 3vw, 29px);
        font-weight: 900;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .catalog-detail-panel .detail-price-preview > small {
        color: #d0d7e1;
        font-size: 11px;
        line-height: 1.9;
    }

/* دکمه محاسبه */

.catalog-detail-panel .detail-calc-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    color: var(--detail-navy);
    background: #fff;
    border: 1px solid var(--detail-gold);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

    .catalog-detail-panel .detail-calc-jump i {
        color: #a18143;
    }

    .catalog-detail-panel .detail-calc-jump:hover {
        color: #fff;
        background: var(--detail-navy);
        border-color: var(--detail-navy);
    }

/* ماشین حساب و فرم استعلام */

.catalog-detail-panel .detail-calculator,
.catalog-detail-panel .catalog-inquiry-section {
    margin-top: 35px;
    padding: 28px;
    background: #fbfaf7;
    border: 1px solid var(--detail-border);
    border-radius: 18px;
}

.catalog-detail-panel .calculator-heading {
    margin-bottom: 23px;
}

    .catalog-detail-panel .calculator-heading .section-kicker {
        margin-bottom: 8px;
    }

    .catalog-detail-panel .calculator-heading h3 {
        margin: 0 0 8px;
        color: var(--detail-navy);
        font-size: clamp(21px, 2.5vw, 27px);
        font-weight: 800;
        line-height: 1.8;
    }

        .catalog-detail-panel .calculator-heading h3 span {
            color: #b28d48;
        }

    .catalog-detail-panel .calculator-heading p {
        margin: 0;
        color: var(--detail-muted);
        font-size: 13px;
        line-height: 2;
    }

/* فیلدهای ماشین حساب */

.catalog-detail-panel .calculator-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

    .catalog-detail-panel .calculator-fields label,
    .catalog-detail-panel #catalogInquiryForm > label {
        display: flex;
        flex-direction: column;
        gap: 9px;
        min-width: 0;
        color: #353c47;
        font-size: 13px;
        font-weight: 700;
    }

    .catalog-detail-panel .calculator-fields input,
    .catalog-detail-panel #catalogInquiryForm input:not([type="hidden"]):not([type="checkbox"]),
    .catalog-detail-panel #catalogInquiryForm textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 47px;
        margin: 0;
        padding: 12px 14px;
        color: var(--detail-navy);
        background: #fff;
        border: 1px solid #dedbd3;
        border-radius: 9px;
        outline: none;
        box-shadow: none;
        font-family: inherit;
        font-size: 14px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .catalog-detail-panel .calculator-fields input:focus,
        .catalog-detail-panel #catalogInquiryForm input:focus,
        .catalog-detail-panel #catalogInquiryForm textarea:focus {
            border-color: var(--detail-gold);
            box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.13);
        }

.catalog-detail-panel input[type="number"] {
    direction: ltr;
    text-align: right;
}

.catalog-detail-panel #catalogInquiryForm textarea {
    min-height: 105px;
    resize: vertical;
    line-height: 1.9;
}

/* ریز محاسبات */

.catalog-detail-panel .calculator-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 18px;
    background: #fff;
    border: 1px solid var(--detail-border);
    border-radius: 12px;
}

    .catalog-detail-panel .calculator-breakdown > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 15px 0;
        border-bottom: 1px solid #eeeae2;
    }

        .catalog-detail-panel .calculator-breakdown > div:last-child {
            border-bottom: none;
        }

    .catalog-detail-panel .calculator-breakdown span {
        color: #69717c;
        font-size: 13px;
        line-height: 1.8;
    }

    .catalog-detail-panel .calculator-breakdown strong {
        color: var(--detail-navy);
        font-size: 14px;
        font-weight: 800;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .catalog-detail-panel .calculator-breakdown .calculator-total {
        margin: 0 -18px;
        padding: 18px;
        background: #f5eedf;
        border-radius: 0 0 11px 11px;
    }

        .catalog-detail-panel .calculator-breakdown .calculator-total span {
            color: #725522;
            font-weight: 800;
        }

        .catalog-detail-panel .calculator-breakdown .calculator-total strong {
            color: #876323;
            font-size: 19px;
        }

.catalog-detail-panel .calculator-disclaimer {
    margin: 16px 0 0;
    color: var(--detail-muted);
    font-size: 11px;
    line-height: 2.1;
}

/* فرم درخواست استعلام */

.catalog-detail-panel #catalogInquiryForm {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
    margin: 0;
}

    .catalog-detail-panel #catalogInquiryForm .catalog-honeypot {
        position: absolute !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
    }

    .catalog-detail-panel #catalogInquiryForm button[type="submit"] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 51px;
        margin-top: 3px;
        padding: 13px 20px;
        color: #fff;
        background: var(--detail-navy);
        border: 1px solid var(--detail-navy);
        border-radius: 10px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
        transition: 0.25s ease;
    }

        .catalog-detail-panel #catalogInquiryForm button[type="submit"]:hover {
            color: var(--detail-navy);
            background: var(--detail-gold-light);
            border-color: var(--detail-gold);
        }

        .catalog-detail-panel #catalogInquiryForm button[type="submit"]:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

.catalog-detail-panel #catalogInquiryMessage {
    margin: 0;
    color: #426b4b;
    font-size: 13px;
    line-height: 1.9;
}

/* جلوگیری از تداخل استایل‌های عمومی سایت */

.catalog-detail-panel button,
.catalog-detail-panel input,
.catalog-detail-panel textarea {
    font-family: inherit;
}

    .catalog-detail-panel button:focus-visible,
    .catalog-detail-panel a:focus-visible {
        outline: 2px solid var(--detail-gold);
        outline-offset: 3px;
    }

/* تبلت */

@media (max-width: 900px) {
    .catalog-detail-overlay {
        padding: 16px;
    }

    .catalog-detail-panel {
        padding: 28px;
        border-radius: 20px;
    }

        .catalog-detail-panel .detail-layout {
            gap: 25px;
        }

        .catalog-detail-panel .detail-main-image,
        .catalog-detail-panel .detail-main-image img {
            min-height: 280px;
        }

        .catalog-detail-panel .calculator-fields {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
}

/* موبایل */

@media (max-width: 650px) {
    .catalog-detail-overlay {
        padding: 8px;
    }

    .catalog-detail-panel {
        padding: 22px 15px;
        border-radius: 15px;
    }

        .catalog-detail-panel .detail-close {
            top: 10px;
            left: 10px;
            width: 38px;
            height: 38px;
        }

        .catalog-detail-panel .detail-breadcrumb {
            max-width: calc(100% - 35px);
            gap: 7px;
            margin-bottom: 20px;
            padding-bottom: 13px;
            font-size: 11px;
        }

        .catalog-detail-panel .detail-layout {
            grid-template-columns: minmax(0, 1fr);
            gap: 25px;
        }

        .catalog-detail-panel .detail-main-image,
        .catalog-detail-panel .detail-main-image img {
            min-height: 260px;
            max-height: 390px;
        }

        .catalog-detail-panel .detail-main-image {
            aspect-ratio: 1 / 0.85;
        }

        .catalog-detail-panel .detail-information h2 {
            font-size: 25px;
        }

        .catalog-detail-panel .detail-specs {
            gap: 9px;
        }

            .catalog-detail-panel .detail-specs > div {
                min-height: 75px;
                padding: 12px;
            }

        .catalog-detail-panel .detail-calculator,
        .catalog-detail-panel .catalog-inquiry-section {
            margin-top: 25px;
            padding: 19px 13px;
            border-radius: 13px;
        }











        .catalog-detail-panel .calculator-fields {
            grid-template-columns: minmax(0, 1fr);
            gap: 14px;
        }

        .catalog-detail-panel .calculator-breakdown {
            padding: 5px 12px;
        }

            .catalog-detail-panel .calculator-breakdown > div {
                gap: 10px;
            }

            .catalog-detail-panel .calculator-breakdown span {
                font-size: 12px;
            }

            .catalog-detail-panel .calculator-breakdown strong {
                font-size: 12px;
            }

            .catalog-detail-panel .calculator-breakdown .calculator-total {
                margin-right: -12px;
                margin-left: -12px;
                padding: 15px 12px;
            }

                .catalog-detail-panel .calculator-breakdown .calculator-total strong {
                    font-size: 15px;
                }
}

/* موبایل خیلی کوچک */

@media (max-width: 360px) {
    .catalog-detail-panel {
        padding: 18px 11px;
    }

        .catalog-detail-panel .detail-specs {
            grid-template-columns: minmax(0, 1fr);
        }

        .catalog-detail-panel .detail-main-image,
        .catalog-detail-panel .detail-main-image img {
            min-height: 220px;
        }

        .catalog-detail-panel .detail-price-preview {
            padding: 17px 13px;
        }
}


/* =========================================
   KHATAM GOLD - PREMIUM PRODUCT COLLECTION
========================================= */

.products-section {
    position: relative;
    padding: 100px 0 90px;
    overflow: hidden;
}

.home-products-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.home-products-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #b99a55;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    direction: ltr;
}

.home-products-heading h2 {
    margin: 0 0 16px;
    color: #f7f2e8;
    font-size: clamp(27px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.7;
}

    .home-products-heading h2 span {
        color: #d5b56b;
    }

.home-products-heading p {
    margin: 0;
    color: #aaa6a0;
    font-size: 14px;
    line-height: 2.1;
}

/* CATEGORY FILTERS */

.home-category-area {
    max-width: 1100px;
    margin: 0 auto 42px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #171b20, #101317);
    border: 1px solid rgba(213, 181, 107, 0.18);
    border-radius: 22px;
    box-sizing: border-box;
}

.home-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.home-category-caption {
    color: #f1e7d0;
    font-size: 15px;
    font-weight: 700;
}

.home-category-hint {
    color: #888b90;
    font-size: 12px;
}

.home-category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.home-category-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 22px;
    border: 1px solid #35383c;
    border-radius: 12px;
    background: #1d2126;
    color: #c8c5bf;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

    .home-category-btn:hover {
        color: #e7cb87;
        border-color: #9f8147;
        transform: translateY(-2px);
    }

    .home-category-btn.active {
        color: #17130b;
        background: linear-gradient(135deg, #e7cf91, #b48c40);
        border-color: #d5b56b;
        box-shadow: 0 5px 18px rgba(181, 143, 62, .16);
        font-weight: 800;
    }

/* PRODUCT GRID */

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
}

.home-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    background: linear-gradient(155deg, #1c2025, #121519);
    border: 1px solid rgba(213, 181, 107, .15);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .13);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

    .home-product-card:hover {
        transform: translateY(-8px);
        border-color: rgba(213, 181, 107, .65);
        box-shadow: 0 22px 45px rgba(0, 0, 0, .27);
    }

/* PRODUCT IMAGE */

.home-product-image-wrap {
    position: relative;
    height: 290px;
    overflow: hidden;
    background: #242321;
}

.home-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.home-product-card:hover .home-product-image {
    transform: scale(1.07);
}

.home-product-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(10, 12, 14, .78) 0%, rgba(10, 12, 14, .08) 45%, transparent 70% );
    pointer-events: none;
}

.home-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 7px 13px;
    color: #21190b;
    background: linear-gradient(135deg, #f0dba6, #bd964d);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.home-product-image-action {
    position: absolute;
    right: 18px;
    bottom: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff8e8;
    font-size: 12px;
    font-weight: 600;
    transition: color .25s ease;
}

    .home-product-image-action i {
        color: #e1c47d;
        transition: transform .25s ease;
    }

.home-product-card:hover .home-product-image-action i {
    transform: translateX(-4px);
}

/* PRODUCT CONTENT */

.home-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.home-product-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-bottom: 13px;
    padding: 7px 12px;
    border: 1px solid rgba(213, 181, 107, .22);
    border-radius: 8px;
    background: rgba(213, 181, 107, .07);
    color: #d9bd7b;
    font-size: 11px;
    line-height: 1.6;
}

    .home-product-category i {
        font-size: 11px;
    }

.home-product-title {
    margin: 0 0 12px;
    color: #f5f1e8;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.9;
}

.home-product-description {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 20px;
    overflow: hidden;
    color: #a9a9a6;
    font-size: 12px;
    line-height: 2.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* WEIGHT AND WAGE */

.home-product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.home-product-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    color: #d8b96d;
    background: rgba(213, 181, 107, .09);
    border: 1px solid rgba(213, 181, 107, .12);
    border-radius: 11px;
}

.home-spec-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
}

    .home-spec-text small {
        color: #898b8e;
        font-size: 10px;
        white-space: nowrap;
    }

    .home-spec-text strong {
        color: #eee5d3;
        font-size: 12px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

/* CARD FOOTER */

.home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    color: #d7bd7d;
    font-size: 12px;
    font-weight: 700;
}

.home-product-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border: 1px solid rgba(213, 181, 107, .27);
    border-radius: 50%;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.home-product-card:hover .home-product-arrow {
    color: #19150d;
    background: #d5b56b;
    transform: translateX(-3px);
}

/* VIEW ALL */

.home-catalog-more {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

    .home-catalog-more a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 15px 27px;
        border: 1px solid #b99a55;
        border-radius: 12px;
        color: #e5cd92;
        background: transparent;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: color .25s ease, background .25s ease, transform .25s ease;
    }

        .home-catalog-more a:hover {
            color: #17130b;
            background: #d5b56b;
            transform: translateY(-3px);
        }

/* EMPTY STATE */

.home-products-empty {
    padding: 45px 20px;
    border: 1px dashed rgba(213, 181, 107, .25);
    border-radius: 18px;
    color: #aaa6a0;
    text-align: center;
}

    .home-products-empty > i {
        margin-bottom: 14px;
        color: #d5b56b;
        font-size: 32px;
    }

    .home-products-empty p {
        margin: 0;
        font-size: 14px;
    }

/* RESPONSIVE */

@media (max-width: 1000px) {
    .home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .home-product-image-wrap {
        height: 260px;
    }

    .home-category-area {
        margin-right: 15px;
        margin-left: 15px;
    }
}

@media (max-width: 600px) {
    .products-section {
        padding: 65px 0;
    }

    .home-products-heading {
        margin-bottom: 30px;
    }

        .home-products-heading p {
            font-size: 12px;
        }

    .home-category-area {
        padding: 18px;
        margin-bottom: 27px;
        border-radius: 17px;
    }

    .home-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-category-filters {
        gap: 9px;
    }

    .home-category-btn {
        min-height: 39px;
        padding: 8px 13px;
        font-size: 11px;
    }

    .home-products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 0 4px;
    }

    .home-product-card {
        border-radius: 18px;
    }

    .home-product-image-wrap {
        height: 290px;
    }

    .home-product-content {
        padding: 19px;
    }

    .home-product-title {
        font-size: 17px;
    }

    .home-product-description {
        min-height: auto;
    }

    .home-product-specs {
        gap: 8px;
    }

    .home-spec-icon {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
    }

    .home-spec-text strong {
        font-size: 11px;
    }
}

.detail-contact-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    direction: rtl;
}

.detail-contact-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(169, 131, 61, 0.35);
    border-radius: 10px;
    background: #fff;
    color: #19263b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

    .detail-contact-number i {
        color: #a9833d;
    }

    .detail-contact-number:hover {
        background: #19263b;
        color: #fff;
    }

        .detail-contact-number:hover i {
            color: #e8d39a;
        }

@media (max-width: 480px) {
    .detail-contact-numbers {
        flex-direction: column;
    }

    .detail-contact-number {
        width: 100%;
        max-width: 260px;
    }
}


/* =========================================
   KHATAM GOLD - MOBILE CATALOG SLIDER
========================================= */

@media screen and (max-width: 768px) {

    /* اسلایدر افقی محصولات کاتالوگ */
    #catalogProducts .catalog-product-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 14px !important;
        padding: 8px 12px 18px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        direction: rtl;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 12px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: #b89a5b transparent;
    }

    /* هر کارت؛ بخشی از کارت بعدی دیده می‌شود */
    #catalogProducts .catalog-product-card {
        flex: 0 0 82% !important;
        width: 82% !important;
        min-width: 0 !important;
        max-width: 82% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }

        /* کارت‌های مخفی‌شده با فیلتر */
        #catalogProducts .catalog-product-card[hidden] {
            display: none !important;
        }

    /* دکمه داخل کارت */
    #catalogProducts .catalog-product-open {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        text-align: right;
    }

    /* تصویر محصول */
    #catalogProducts .catalog-product-image {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        height: clamp(170px, 52vw, 225px) !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        flex: 0 0 auto !important;
        padding: 10px !important;
        overflow: hidden;
        box-sizing: border-box !important;
    }

        #catalogProducts .catalog-product-image img {
            display: block;
            width: 100% !important;
            height: 100% !important;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain !important;
            object-position: center;
        }

    /* محتوای کارت */
    #catalogProducts .catalog-product-content {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    #catalogProducts .catalog-product-category {
        max-width: 100%;
        font-size: 10px;
    }

    #catalogProducts .catalog-product-content h3 {
        margin: 5px 0 8px !important;
        font-size: 14px !important;
        line-height: 1.9 !important;
        display: -webkit-box;
        overflow: hidden;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #catalogProducts .catalog-product-description {
        display: -webkit-box;
        margin-bottom: 10px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.9;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #catalogProducts .catalog-product-meta {
        gap: 6px;
        margin-top: auto;
        padding: 9px 0;
        font-size: 10px;
    }

        #catalogProducts .catalog-product-meta strong {
            font-size: 11px;
        }

    #catalogProducts .catalog-product-price {
        gap: 5px;
        margin-top: 2px;
        padding: 9px;
    }

        #catalogProducts .catalog-product-price strong {
            font-size: 12px;
            line-height: 1.9;
            overflow-wrap: anywhere;
        }

    #catalogProducts .catalog-product-details {
        gap: 6px;
        margin-top: 10px;
        padding: 10px;
        font-size: 10px;
    }

    /* ظاهر کردن اسکرول‌بار در مرورگرهای مبتنی بر WebKit */
    #catalogProducts .catalog-product-grid::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    #catalogProducts .catalog-product-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    #catalogProducts .catalog-product-grid::-webkit-scrollbar-thumb {
        background: #b89a5b;
        border-radius: 10px;
    }
}

/* گوشی‌های باریک */
@media screen and (max-width: 400px) {

    #catalogProducts .catalog-product-card {
        flex-basis: 86% !important;
        width: 86% !important;
        max-width: 86% !important;
    }

    #catalogProducts .catalog-product-grid {
        gap: 11px !important;
        padding-inline: 10px !important;
    }

    #catalogProducts .catalog-product-content {
        padding: 10px !important;
    }

        #catalogProducts .catalog-product-content h3 {
            font-size: 13px !important;
        }

    #catalogProducts .catalog-product-image {
        height: 175px !important;
    }
}
/* =========================================
   RESPONSIVE HAMBURGER MENU
   KHATAM GOLD CATALOG
========================================= */

.catalog-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(214, 173, 84, 0.4);
    border-radius: 10px;
    background: #091426;
    color: #d6ad54;
    font-size: 21px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    z-index: 1002;
}

.catalog-menu-btn:hover,
.catalog-menu-btn.active {
    background: #d6ad54;
    color: #091426;
}

.catalog-menu-btn i {
    pointer-events: none;
}

@media (max-width: 900px) {

    .catalog-header {
        position: relative;
        z-index: 1000;
    }

    .catalog-menu-btn {
        display: inline-flex;
        flex-shrink: 0;
    }

    .catalog-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 10px;
        background: #091426;
        border: 1px solid rgba(214, 173, 84, 0.35);
        border-radius: 14px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .catalog-nav.mobile-menu-open {
        display: flex;
    }

    .catalog-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        padding: 12px 15px;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .catalog-nav a:hover,
    .catalog-nav a:focus {
        background: rgba(214, 173, 84, 0.13);
        color: #d6ad54;
    }

    .catalog-back {
        display: none;
    }
}

@media (min-width: 901px) {
    .catalog-menu-btn {
        display: none;
    }

    .catalog-nav {
        display: flex;
    }
}

