/* ROMO DECOR - Minimal Luxury Store */

body.romo-shop {
    --bg: #faf9f6;
    --surface: #ffffff;
    --ink: #302820;
    --brown: #594536;
    --accent: #9b795d;
    --muted: #898078;
    --line: #eeeae4;

    background: var(--bg) !important;
    color: var(--ink);
    font-family: 'Vazirmatn', sans-serif;
}

/* HEADER */

.romo-shop header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96) !important;
    color: var(--ink) !important;
    padding: 15px 24px !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 3px 16px rgba(40,30,20,.035);
    backdrop-filter: blur(14px);
}

.romo-shop header > div {
    max-width: 1360px;
    gap: 25px;
}

.romo-shop header h1 {
    color: var(--ink) !important;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.romo-shop header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
}

.romo-shop header nav a {
    color: #66594e;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

.romo-shop header nav a:hover {
    color: var(--accent);
}

/* MAIN */

.romo-shop main {
    max-width: 1360px;
    padding: 42px 22px 65px;
}

/* HERO */

.romo-shop main > div:first-child {
    position: relative;
    padding: 46px 28px;
    margin-bottom: 28px;
    border: 1px solid #eee8df;
    border-radius: 5px;
    background:
        linear-gradient(110deg, #f2ece3, #fbfaf7 70%);
    text-align: center;
}

.romo-shop main > div:first-child h2 {
    color: var(--ink) !important;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 8px;
}

.romo-shop main > div:first-child p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.2;
}

/* CATEGORY + SEARCH */

.romo-shop main > div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 8px 0 22px !important;
    box-shadow: none !important;
}

.romo-shop main > div:nth-child(2) > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.romo-shop main > div:nth-child(2) button {
    border: 1px solid #e9e3da;
    border-radius: 30px;
    padding: 9px 17px;
    background: #fff;
    color: #62564b;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

.romo-shop main > div:nth-child(2) button:hover {
    background: #f2ece4;
    border-color: #d7c6b3;
    color: var(--brown);
}

.romo-shop main > div:nth-child(2) button:first-child {
    background: var(--brown) !important;
    color: #fff !important;
    border-color: var(--brown);
}

.romo-shop #searchInput {
    width: min(100%, 300px);
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid #e9e3da;
    border-radius: 30px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.romo-shop #searchInput:focus {
    border-color: #b89a7b;
    box-shadow: 0 0 0 3px rgba(155,121,93,.09);
}

/* PRODUCT GRID */

.romo-shop #productGrid {
    gap: 20px;
}

.romo-shop .product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--surface) !important;
    border: 1px solid #eeeae5 !important;
    border-radius: 7px !important;
    box-shadow: 0 2px 9px rgba(40,30,20,.025) !important;
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease;
}

.romo-shop .product-card:hover {
    transform: translateY(-5px);
    border-color: #d9c8b5 !important;
    box-shadow: 0 13px 30px rgba(40,30,20,.085) !important;
}

/* Product images intentionally untouched */

.romo-shop .product-card h3 {
    color: #382f28 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 2;
}

.romo-shop .product-card p {
    color: #967451 !important;
    font-size: 14px;
    font-weight: 800;
}

.romo-shop .product-card a {
    display: block;
    background: var(--brown) !important;
    color: #fff !important;
    border: 1px solid var(--brown);
    border-radius: 5px !important;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease;
}

.romo-shop .product-card a:hover {
    background: #80644d !important;
    border-color: #80644d;
}

/* FOOTER */

.romo-shop footer {
    background: #302820 !important;
    color: #e9dfd3 !important;
    padding: 35px 20px !important;
    border-top: 1px solid #493a2e;
    line-height: 2.2;
}

/* MOBILE */

@media (max-width: 767px) {
    .romo-shop header {
        padding: 12px 15px !important;
    }

    .romo-shop header > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .romo-shop header h1 {
        font-size: 19px;
    }

    .romo-shop header nav {
        gap: 8px 17px;
        font-size: 12px;
    }

    .romo-shop main {
        padding: 24px 13px 40px;
    }

    .romo-shop main > div:first-child {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    .romo-shop main > div:nth-child(2) {
        align-items: stretch;
        gap: 13px;
    }

    .romo-shop main > div:nth-child(2) > div {
        gap: 7px;
    }

    .romo-shop main > div:nth-child(2) button {
        padding: 8px 12px;
        font-size: 11px;
    }

    .romo-shop #searchInput {
        width: 100%;
    }

    .romo-shop #productGrid {
        gap: 12px;
    }

    .romo-shop .product-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .romo-shop * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* ROMO_CATEGORY_CAROUSEL_V1 */

.romo-shop .category-list {
    display: block;
    width: 100%;
}

.romo-shop .category-section {
    margin: 0 0 42px;
    padding: 0;
}

.romo-shop .category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.romo-shop .category-heading > div:first-child {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.romo-shop .category-heading h3 {
    margin: 0;
    color: #302820;
    font-size: 19px;
    font-weight: 800;
}

.romo-shop .category-heading span {
    color: #898078;
    font-size: 12px;
}

.romo-shop .carousel-controls {
    display: flex;
    gap: 8px;
}

.romo-shop .carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e9e3da;
    border-radius: 50%;
    background: #fff;
    color: #594536;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.romo-shop .carousel-arrow:hover {
    background: #594536;
    border-color: #594536;
    color: #fff;
}

.romo-shop .category-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    direction: rtl;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 5px 2px 17px;
}

.romo-shop .category-track::-webkit-scrollbar {
    display: none;
}

.romo-shop .category-track .product-card {
    flex: 0 0 255px;
    width: 255px;
    min-width: 0;
    scroll-snap-align: start;
}

.romo-shop .product-empty {
    padding: 35px 15px;
    text-align: center;
    color: #898078;
    background: #fff;
    border: 1px solid #eeeae4;
    border-radius: 8px;
}

.romo-shop main > div:nth-child(2) button.is-active {
    background: #594536 !important;
    color: #fff !important;
    border-color: #594536 !important;
}

@media (max-width: 767px) {
    .romo-shop .category-section {
        margin-bottom: 30px;
    }

    .romo-shop .category-heading h3 {
        font-size: 16px;
    }

    .romo-shop .category-track {
        gap: 12px;
        padding-bottom: 13px;
    }

    .romo-shop .category-track .product-card {
        flex-basis: 72vw;
        width: 72vw;
        max-width: 290px;
    }

    .romo-shop .carousel-arrow {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .romo-shop .category-track {
        scroll-behavior: auto;
    }
}
