:root {
    --royal-shop-red: #9B2602;
    --royal-shop-red-light: #B83208;
    --royal-shop-red-dark: #741B01;
    --royal-shop-gold: #F9F47E;
    --royal-shop-white: #FFFFFF;
    --royal-shop-ivory: #FFFDF7;
    --royal-shop-ink: #201918;
    --royal-shop-charcoal: #171514;
    --royal-shop-muted: #726865;
    --royal-shop-line: #ECE7E4;
}

.royal-catalogue,
.royal-quote-modal {
    font-family: inherit;
}

.royal-catalogue {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 86px;
    box-sizing: border-box;
}

.royal-catalogue-intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.royal-catalogue-kicker,
.royal-products-kicker {
    margin-bottom: 9px;
    color: var(--royal-shop-red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.royal-catalogue-intro h1 {
    margin: 0;
    color: var(--royal-shop-ink);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1.8px;
}

.royal-catalogue-intro p {
    max-width: 650px;
    margin: 16px auto 0;
    color: var(--royal-shop-muted);
    font-size: 14px;
    line-height: 1.7;
}

.royal-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.royal-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--royal-shop-line);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(37, 23, 18, .055);
    transition: transform .28s ease, box-shadow .28s ease;
}

.royal-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(37, 23, 18, .09);
}

.royal-category-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #D8D1CD;
    background-size: cover;
    background-position: center;
}

.royal-category-media.has-placeholder {
    background:
        radial-gradient(circle at 80% 15%, rgba(249,244,126,.35), transparent 28%),
        linear-gradient(135deg, #9B2602 0%, #741B01 100%);
}

.royal-category-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,10,7,.03) 15%, rgba(20,10,7,.12) 42%, rgba(18,10,8,.82) 100%);
}

.royal-category-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: #E31625;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.royal-category-media-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 17px;
    z-index: 2;
}

.royal-category-kicker {
    margin-bottom: 5px;
    color: var(--royal-shop-gold);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.royal-category-media h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -.7px;
}

.royal-category-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.royal-category-description {
    min-height: 58px;
    margin: 0 0 18px;
    color: var(--royal-shop-muted);
    font-size: 11px;
    line-height: 1.65;
}

.royal-category-features {
    display: grid;
    gap: 9px;
    margin: 0 0 21px;
    padding: 0;
    list-style: none;
}

.royal-category-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--royal-shop-ink);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}

.royal-category-features li span {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: #E31625;
    font-size: 9px;
    font-weight: 900;
}

.royal-category-actions,
.royal-shop-actions {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 8px;
    margin-top: auto;
}

.royal-category-quote,
.royal-category-view,
.royal-shop-quote,
.royal-shop-view,
.royal-quote-submit {
    min-height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 8px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.royal-category-quote,
.royal-shop-quote,
.royal-quote-submit {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--royal-shop-red-light) 0%, var(--royal-shop-red) 55%, var(--royal-shop-red-dark) 100%);
    box-shadow: 0 7px 18px rgba(155,38,2,.2), inset 0 1px 0 rgba(255,255,255,.12);
}

.royal-category-view,
.royal-shop-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    background: var(--royal-shop-charcoal);
}

.royal-category-quote:hover,
.royal-shop-quote:hover,
.royal-quote-submit:hover,
.royal-category-view:hover,
.royal-shop-view:hover {
    transform: translateY(-2px);
}

.royal-category-view:hover,
.royal-shop-view:hover {
    color: var(--royal-shop-gold) !important;
    background: #090808;
}

.royal-products-section {
    padding-top: 82px;
    scroll-margin-top: 110px;
}

.royal-products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.royal-products-heading h2 {
    margin: 0;
    color: var(--royal-shop-ink);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.4px;
}

.royal-products-heading p {
    max-width: 470px;
    margin: 0;
    color: var(--royal-shop-muted);
    font-size: 12px;
    line-height: 1.65;
}

.royal-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.royal-shop-filter {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--royal-shop-line) !important;
    border-radius: 999px;
    color: var(--royal-shop-ink);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.royal-shop-filter:hover,
.royal-shop-filter.is-active {
    color: #FFFFFF;
    background: var(--royal-shop-red);
    border-color: var(--royal-shop-red) !important;
}

.royal-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.royal-shop-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--royal-shop-line);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(37,23,18,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.royal-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37,23,18,.085);
}

.royal-shop-card[hidden] {
    display: none !important;
}

.royal-shop-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F4F2EF;
}

.royal-shop-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.royal-shop-card:hover .royal-shop-image img {
    transform: scale(1.025);
}

.royal-shop-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.royal-shop-category {
    margin-bottom: 7px;
    color: var(--royal-shop-red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.royal-shop-card h3 {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -.4px;
}

.royal-shop-card h3 a {
    color: var(--royal-shop-ink) !important;
    text-decoration: none !important;
}

.royal-shop-card p {
    margin: 0 0 20px;
    color: var(--royal-shop-muted);
    font-size: 11px;
    line-height: 1.65;
}

.royal-shop-no-results,
.royal-shop-empty {
    grid-column: 1 / -1;
    padding: 42px 20px;
    text-align: center;
    color: var(--royal-shop-muted);
    border: 1px solid var(--royal-shop-line);
    border-radius: 14px;
    background: #FFFFFF;
}

.royal-single-quote-wrap {
    margin: 18px 0;
}

.royal-single-quote-wrap .royal-shop-quote {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
}

.royal-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.royal-quote-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.royal-quote-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29,12,7,.55);
    backdrop-filter: blur(3px);
}

.royal-quote-panel {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(31,14,8,.30);
    transform: translateY(15px) scale(.985);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.royal-quote-modal.is-open .royal-quote-panel {
    transform: translateY(0) scale(1);
}

.royal-quote-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: #F4F1EF;
    color: var(--royal-shop-red);
    font: 400 23px/1 Arial, sans-serif;
    cursor: pointer;
}

.royal-quote-product {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 17px;
    align-items: center;
    padding-right: 35px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--royal-shop-line);
}

.royal-quote-thumb-wrap {
    width: 92px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(135deg, #F5F1EF, #ECE5E1);
}

.royal-quote-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.royal-quote-label {
    margin-bottom: 5px;
    color: var(--royal-shop-red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.royal-quote-product-name {
    margin: 0 0 5px;
    color: var(--royal-shop-ink);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.7px;
}

.royal-quote-product-category {
    color: var(--royal-shop-muted);
    font-size: 11px;
}

.royal-quote-form {
    margin-top: 21px;
}

.royal-quote-field {
    margin-bottom: 13px;
}

.royal-quote-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--royal-shop-ink);
    font-size: 10px;
    font-weight: 800;
}

.royal-quote-field input,
.royal-quote-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #E3DFDC;
    border-radius: 8px;
    outline: none;
    color: var(--royal-shop-ink);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.royal-quote-field input:focus,
.royal-quote-field textarea:focus {
    border-color: var(--royal-shop-red);
    box-shadow: 0 0 0 3px rgba(155,38,2,.07);
}

.royal-quote-field textarea {
    min-height: 90px;
    resize: vertical;
}

.royal-quote-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
}

.royal-quote-submit {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    font-size: 12px;
}

.royal-quote-wa-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
}

.royal-quote-wa-icon svg {
    width: 14px;
    height: 14px;
    fill: #FFFFFF;
}

body.royal-quote-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .royal-category-grid,
    .royal-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .royal-catalogue {
        padding: 50px 16px 66px;
    }

    .royal-category-grid,
    .royal-shop-grid {
        grid-template-columns: 1fr;
    }

    .royal-category-media {
        aspect-ratio: 16 / 8.5;
    }

    .royal-category-description {
        min-height: 0;
    }

    .royal-products-section {
        padding-top: 62px;
    }

    .royal-products-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .royal-shop-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .royal-shop-filters::-webkit-scrollbar {
        display: none;
    }

    .royal-shop-filter {
        flex: 0 0 auto;
    }

    .royal-quote-panel {
        padding: 22px 18px;
        border-radius: 15px;
    }

    .royal-quote-product {
        grid-template-columns: 74px 1fr;
        gap: 13px;
    }

    .royal-quote-thumb-wrap {
        width: 74px;
    }

    .royal-quote-product-name {
        font-size: 20px;
    }

    .royal-quote-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
