@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@400;700&display=swap');
:root{
    --white: #f5f0f0;
    --off-white: #e9e9e9;
    --onyx: #101010;
    --rich-mahogany: #260101;
    --dark-garnet: #591202;
    --rust-brown: #A62F03;
    --autumn-leaf:#F26716;
}

body{
    background-color: var(--white);
    color: var(--onyx);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.header-color{
    position: sticky;
    top: 0;
    z-index: 1;
    height: 110px;
    background-color: var(--onyx);
    margin-top: -100px;
}

/* Shop Page Styles */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px 32px 16px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.filter-sidebar {
    position: sticky;
    z-index: 0;
}

.filter-inner {
    position: sticky;
    margin-top: 110px !important;
    z-index: 900;
    background: var(--white);
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(16,16,16,0.06);
    box-shadow: 0 6px 18px rgba(16,16,16,0.04);
    /* allow internal scroll when content exceeds viewport */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filter-inner h3{
    font-size: 20px;
}

.filter-section {
    margin-bottom: 16px;
}

.filter-section h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--rich-mahogany);
}

.filter-section input[type="search"],
.filter-section input[type="number"]{
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.filter-section label { color: #333; font-size: 14px; }

.filter-cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.filter-cat-btn {
    padding: 7px 14px;
    border: 1.5px solid var(--rust-brown);
    border-radius: 20px;
    background: transparent;
    color: var(--rust-brown);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.filter-cat-btn:hover,
.filter-cat-btn.is-active {
    background: var(--rust-brown);
    color: var(--white);
}

.filter-apply {
    display: inline-block;
    padding: 10px 16px;
    background: var(--autumn-leaf);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.filter-clear {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--rust-brown);
    text-decoration: underline;
    cursor: pointer;
}
.shop-title {
    text-align: center;
    font-size: 48px;
    color: var(--rich-mahogany);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    font-weight: 700;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Page layout to match About / Contact UI */
.shop-main{
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}
.shop-title{
    font-size: 40px;
    color: var(--rich-mahogany);
    text-align: center;
    margin: 6px 0 22px;
    font-family: 'Playfair Display', serif;
}
@media (max-width: 1100px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 800px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .shop-container {
        display: block;
        padding: 24px 12px;
    }
    .filter-inner { position: static; top: auto; margin-bottom: 18px; }
}
.shop-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(16,16,16,0.08);
    padding: 22px 18px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    border: 0.5px solid var(--rich-mahogany);
}
.shop-image-trigger {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(16,16,16,0.12);
}
.shop-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(16,16,16,0.06);
}
.shop-product-title {
    font-size: 20px;
    color: var(--rich-mahogany);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.shop-desc {
    font-size: 15px;
    color: var(--onyx);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    text-align: center;
}
.shop-price {
    font-size: 18px;
    color: var(--autumn-leaf);
    font-weight: 800;
    margin-bottom: 14px;
}
.shop-btn {
    padding: 10px 20px;
    background: var(--rich-mahogany);
    color: var(--white);
    border: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16,16,16,0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.4px;
    margin-top: auto;
}
.shop-btn:hover {
    background: var(--rust-brown);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(240,156,15,0.18);
    transform: scale(1.06);
}

.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.product-modal.is-open {
    display: flex;
}

.product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,16,16,0.62);
}

.product-modal__dialog {
    position: relative;
    width: min(980px, 100%);
    background: linear-gradient(180deg, #fff8f3 0%, #fff 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(16,16,16,0.28);
    z-index: 1;
}

.product-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(38,1,1,0.08);
    color: var(--rich-mahogany);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.product-modal__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    min-height: 520px;
}

.product-modal__details {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.product-modal__eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rust-brown);
}

.product-modal__title {
    font-size: 42px;
    color: var(--rich-mahogany);
}

.product-modal__price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: var(--onyx);
}

.product-modal__price span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dark-garnet);
}

.product-modal__price strong {
    font-size: 32px;
    color: var(--autumn-leaf);
}

.product-modal__description {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 48ch;
}

.product-modal__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-modal__customize.is-active {
    background: var(--autumn-leaf);
}

.product-modal__basket {
    background: var(--onyx);
}

.customize-panel {
    margin-top: 8px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(242,103,22,0.08);
    border: 1px solid rgba(166,47,3,0.15);
}

.customize-panel h3 {
    font-size: 24px;
    color: var(--rich-mahogany);
    margin-bottom: 6px;
}

.customize-panel p {
    margin: 0 0 16px;
    color: rgba(16,16,16,0.8);
}

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

.customize-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--rich-mahogany);
    font-weight: 600;
}

.customize-grid input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(89,18,2,0.2);
    background: #fff;
    font: inherit;
}

.product-modal__image-wrap {
    background: linear-gradient(140deg, rgba(89,18,2,0.96) 0%, rgba(166,47,3,0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.product-modal__image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
}

/* Small screens: single column cards */
@media (max-width: 900px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .shop-img { height: 180px; }
    .product-modal__content { grid-template-columns: 1fr; }
    .product-modal__details { padding: 48px 24px 28px; order: 2; }
    .product-modal__image-wrap { min-height: 280px; order: 1; }
    .customize-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-main { padding: 16px; }
    .product-modal { padding: 12px; }
    .product-modal__dialog { border-radius: 18px; }
    .product-modal__title { font-size: 32px; }
    .product-modal__price strong { font-size: 26px; }
}