/* =========================================================
   AL-JAMIL — LUXURY STYLE
   ========================================================= */

:root {
    --ivory: #f8f4ec;
    --cream: #f2eadc;
    --pearl: #fffdf8;
    --champagne: #c9a96a;
    --gold-dark: #9b7738;
    --espresso: #2d2119;
    --brown: #5b4635;
    --muted: #8a7a68;
    --border: rgba(130, 101, 58, 0.20);
    --shadow: 0 18px 50px rgba(64, 43, 23, 0.10);
    --transition: 0.35s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--espresso);
    font-family: Georgia, "Times New Roman", serif;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   TOP LUXURY STRIP
   ========================================================= */

.luxury-strip {
    min-height: 34px;
    padding: 8px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #eadfcf;
    color: var(--brown);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(248, 244, 236, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.header-inner {
    width: min(1240px, calc(100% - 50px));
    min-height: 82px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-main {
    color: var(--espresso);

    font-size: 27px;
    font-weight: 500;
    letter-spacing: 7px;
}

.brand-sub {
    color: var(--gold-dark);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 7px;
    letter-spacing: 3px;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon,
.mobile-menu-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: transparent;
    color: var(--espresso);

    border: 1px solid transparent;
    border-radius: 50%;

    transition: var(--transition);
}

.header-icon:hover,
.mobile-menu-button:hover {
    border-color: var(--border);
    background: var(--cream);
}

.header-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CART COUNT
   ========================================================= */

.cart-button {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 0;

    min-width: 17px;
    height: 17px;
    padding: 0 4px;

    display: grid;
    place-items: center;

    background: #a32720;
    color: #fff;

    border-radius: 50%;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: bold;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 18px;
    height: 1px;
    background: var(--espresso);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
   HOUSE INTRO
   ========================================================= */

.house-intro {
    width: min(1100px, calc(100% - 40px));
    margin: 28px auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.eyebrow {
    color: var(--gold-dark);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.house-intro .eyebrow {
    white-space: nowrap;
}

.intro-line {
    width: 45px;
    height: 1px;
    background: var(--champagne);
}

.intro-copy {
    color: var(--muted);

    font-size: 12px;
    font-style: italic;
}


/* =========================================================
   CATEGORY NAVIGATION
   FOUR SMALL CLICKABLE BOXES
   ========================================================= */

.category-navigation {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
}

.category-navigation a {
    min-width: 145px;

    padding: 14px 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 253, 248, 0.95);

    color: var(--espresso);

    border: 1px solid var(--border);
    border-radius: 3px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;

    box-shadow:
        0 5px 18px rgba(64, 43, 23, 0.06);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* No underline */

.category-navigation a::after {
    display: none;
}


/* Hover effect */

.category-navigation a:hover {
    background: var(--espresso);

    color: #fffaf0;

    border-color: var(--espresso);

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(64, 43, 23, 0.14);
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    width: min(1200px, calc(100% - 70px));
    margin: 0 auto 65px;
}

.hero-slider {
    position: relative;

    width: 100%;
    height: clamp(230px, 35vw, 430px);

    overflow: hidden;

    border-radius: 8px;

    box-shadow: var(--shadow);
    background: var(--cream);
}

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   COLLECTION INTRO
   ========================================================= */

.collection-intro {
    width: min(700px, calc(100% - 40px));
    margin: 0 auto 80px;

    text-align: center;
}

.collection-intro h1 {
    margin: 12px 0;

    color: var(--espresso);

    font-size: clamp(28px, 4vw, 45px);
    font-weight: 400;
    letter-spacing: 1px;
}

.collection-intro > p:last-child {
    max-width: 520px;
    margin: auto;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   PRODUCT SECTION
   ========================================================= */

.product-section {
    width: min(1200px, calc(100% - 50px));
    margin: 0 auto 110px;

    scroll-margin-top: 120px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 22px;

    margin-bottom: 35px;
}

.section-number {
    padding-top: 5px;

    color: var(--champagne);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 7px 0;

    color: var(--espresso);

    font-size: clamp(28px, 4vw, 45px);
    font-weight: 400;
    letter-spacing: 4px;
}

.section-heading p:last-child {
    color: var(--muted);

    font-size: 12px;
    font-style: italic;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px 20px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    position: relative;

    min-width: 0;

    background: var(--pearl);

    border: 1px solid var(--border);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-image-wrap {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1.12;

    overflow: hidden;

    background: #eee6d9;

    cursor: zoom-in;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.5s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.035);
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-info {
    padding: 17px 15px 19px;

    text-align: center;
}

.product-name {
    min-height: 20px;

    color: var(--espresso);

    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.4px;
}


/* =========================================================
   PRODUCT BUTTONS
   ========================================================= */

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: 15px;
}

.order-now,
.add-cart {
    width: 100%;

    min-height: 37px;
    padding: 10px 12px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;

    transition: var(--transition);
}


/* ORDER NOW */

.order-now {
    background: var(--espresso);
    color: #fffaf0;
}

.order-now:hover {
    background: var(--gold-dark);
}


/* ADD TO CART */

.add-cart {
    background: transparent;
    color: var(--espresso);

    border: 1px solid rgba(45, 33, 25, 0.35);
}

.add-cart:hover {
    background: var(--cream);
    border-color: var(--gold-dark);
}


/* =========================================================
   SEARCH PANEL
   ========================================================= */

.search-panel {
    position: fixed;
    z-index: 1200;

    top: 91px;
    right: max(25px, calc((100vw - 1240px) / 2));

    width: min(360px, calc(100vw - 40px));

    padding: 12px;

    background: rgba(255, 253, 248, 0.98);

    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(50, 30, 10, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition: var(--transition);
}

.search-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 11px;

    border: 1px solid var(--border);
    background: var(--ivory);
}

.search-box svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: var(--brown);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.search-box input {
    width: 100%;

    outline: none;
    border: none;

    background: transparent;

    color: var(--espresso);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #9c8e7e;
}


/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.search-result-message {
    margin-top: 10px;
    padding: 10px;

    color: var(--muted);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-align: center;
}


/* =========================================================
   CART PANEL
   ========================================================= */

.cart-panel {
    position: fixed;
    z-index: 1300;

    top: 0;
    right: 0;

    width: min(420px, 100%);
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--pearl);

    border-left: 1px solid var(--border);

    box-shadow: -15px 0 50px rgba(40, 25, 10, 0.16);

    transform: translateX(100%);

    transition: transform 0.45s ease;
}

.cart-panel.open {
    transform: translateX(0);
}


/* =========================================================
   CART HEADER
   ========================================================= */

.cart-header {
    min-height: 105px;
    padding: 25px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    margin-top: 7px;

    font-size: 25px;
    font-weight: 400;
}

.cart-close,
.viewer-close {
    width: 38px;
    height: 38px;

    background: transparent;

    color: var(--espresso);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 27px;
    font-weight: 200;
}

.cart-close:hover,
.viewer-close:hover {
    color: var(--gold-dark);
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px 25px;
}

.empty-cart {
    padding: 60px 10px;

    color: var(--muted);

    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 13px;
    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 70px;
    height: 78px;

    overflow: hidden;

    background: var(--cream);
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-item-name {
    margin-bottom: 6px;

    font-size: 14px;
}

.cart-item-quantity {
    color: var(--muted);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
}

.remove-item {
    background: transparent;
    color: #9c7066;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
}

.remove-item:hover {
    color: #a32720;
}


/* =========================================================
   CART FOOTER
   ========================================================= */

.cart-footer {
    padding: 20px 25px;

    border-top: 1px solid var(--border);
}

.checkout-button {
    width: 100%;

    padding: 15px;

    background: var(--espresso);
    color: #fffaf0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;

    transition: var(--transition);
}

.checkout-button:hover {
    background: var(--gold-dark);
}


/* =========================================================
   IMAGE VIEWER
   ========================================================= */

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1500;

    padding: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(45, 33, 25, 0.88);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease;
}

.image-viewer.open {
    opacity: 1;
    visibility: visible;
}

.image-viewer img {
    max-width: min(900px, 90vw);
    max-height: 85vh;

    display: block;

    object-fit: contain;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 25px;

    color: #fff;
}


/* =========================================================
   BRAND STATEMENT
   ========================================================= */

.brand-statement {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto 110px;

    padding: 85px 30px;

    text-align: center;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brand-statement h2 {
    margin: 14px 0;

    color: var(--espresso);

    font-size: clamp(28px, 5vw, 52px);
    font-weight: 400;
}

.brand-statement > p:last-child {
    max-width: 500px;
    margin: auto;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    padding: 90px 25px;

    background: var(--cream);

    text-align: center;
}

.contact-inner {
    width: min(650px, 100%);
    margin: auto;
}

.contact-inner h2 {
    margin: 10px 0 20px;

    font-size: 38px;
    font-weight: 400;
    letter-spacing: 5px;
}

.contact-inner > p:nth-of-type(2) {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.9;
}

.contact-links {
    margin-top: 25px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-links a {
    padding-bottom: 4px;

    color: var(--gold-dark);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;

    border-bottom: 1px solid var(--champagne);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 50px 25px 35px;

    background: #e8dccb;

    color: var(--brown);

    text-align: center;
}

.footer-brand {
    font-size: 25px;
    letter-spacing: 6px;
}

.site-footer > p {
    margin-top: 7px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
}

.footer-divider {
    width: 45px;
    height: 1px;

    margin: 25px auto;

    background: var(--champagne);
}

.site-footer .developer-credit {
    color: var(--espresso);

    font-size: 9px;
    letter-spacing: 1px;
    text-transform: none;
}

.site-footer .copyright {
    margin-top: 14px;

    color: var(--muted);

    font-size: 8px;
    letter-spacing: 1px;
}


/* =========================================================
   SEARCH HIDDEN PRODUCTS
   ========================================================= */

.product-card.search-hidden {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .luxury-strip {
        padding: 7px 18px;
        font-size: 7px;
        letter-spacing: 2px;
    }

    .header-inner {
        width: calc(100% - 30px);
        min-height: 70px;
    }

    .brand-main {
        font-size: 22px;
        letter-spacing: 5px;
    }


    /* Tablet category boxes */

    .category-navigation {
        gap: 8px;
    }

    .category-navigation a {
        min-width: 120px;
        padding: 12px 15px;

        font-size: 9px;
        letter-spacing: 1.5px;
    }


    .hero-section {
        width: calc(100% - 35px);
    }

    .product-section {
        width: calc(100% - 30px);
    }

    .product-grid {
        gap: 16px 10px;
    }

    .product-info {
        padding: 13px 9px 15px;
    }

    .product-name {
        font-size: 14px;
    }

    .order-now,
    .add-cart {
        min-height: 34px;
        padding: 8px 5px;

        font-size: 8px;
        letter-spacing: 1.4px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .luxury-strip {
        min-height: 29px;
        padding: 6px 12px;

        font-size: 6px;
        letter-spacing: 1.5px;
    }

    .luxury-strip span:last-child {
        display: none;
    }


    /* Header */

    .header-inner {
        width: calc(100% - 24px);
        min-height: 65px;
    }

    .brand-main {
        font-size: 19px;
        letter-spacing: 4px;
    }

    .brand-sub {
        font-size: 5px;
        letter-spacing: 2px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-icon {
        width: 37px;
        height: 37px;
    }

    .header-icon svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-button {
        display: flex;
        width: 37px;
        height: 37px;
    }


    /* Mobile menu */

    .mobile-menu {
        position: absolute;
        top: 65px;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;

        background: rgba(255, 253, 248, 0.98);

        border-bottom: 1px solid var(--border);

        box-shadow:
            0 15px 30px rgba(50, 30, 10, 0.08);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);

        transition: var(--transition);
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu a {
        padding: 17px 20px;

        border-bottom: 1px solid var(--border);

        font-family: Arial, Helvetica, sans-serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 2px;
    }


    /* House intro */

    .house-intro {
        width: calc(100% - 25px);
        margin-top: 20px;

        gap: 9px;
    }

    .house-intro .eyebrow {
        font-size: 7px;
        letter-spacing: 1.8px;
    }

    .intro-line {
        width: 25px;
    }

    .intro-copy {
        font-size: 9px;
    }


    /* =====================================================
       MOBILE CATEGORY BOXES
       ===================================================== */

    .category-navigation {
        width: calc(100% - 16px);

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 5px;

        margin: 0 auto 18px;
    }

    .category-navigation a {
        min-width: 0;

        min-height: 38px;

        padding: 8px 2px;

        font-size: 6.5px;

        letter-spacing: 0.7px;

        border-radius: 3px;

        box-shadow:
            0 3px 10px rgba(64, 43, 23, 0.05);
    }

    .category-navigation a:hover {
        transform: translateY(-2px);
    }


    /* Hero */

    .hero-section {
        width: calc(100% - 24px);
        margin-bottom: 45px;
    }

    .hero-slider {
        height: 190px;

        border-radius: 6px;
    }


    /* Collection */

    .collection-intro {
        margin-bottom: 55px;
    }

    .collection-intro h1 {
        font-size: 28px;
    }

    .collection-intro > p:last-child {
        font-size: 11px;
        line-height: 1.7;
    }


    /* Product section */

    .product-section {
        width: calc(100% - 18px);
        margin-bottom: 75px;

        scroll-margin-top: 90px;
    }

    .section-heading {
        gap: 10px;
        margin-bottom: 20px;
    }

    .section-number {
        font-size: 8px;
    }

    .section-heading h2 {
        font-size: 25px;
        letter-spacing: 2.5px;
    }

    .section-heading p:last-child {
        font-size: 9px;
    }


    /* Three products per row */

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 10px 5px;
    }

    .product-image-wrap {
        aspect-ratio: 1 / 1.18;
    }

    .product-info {
        padding: 9px 4px 10px;
    }

    .product-name {
        min-height: 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 10px;
        line-height: 1.25;
    }

    .product-actions {
        gap: 4px;
        margin-top: 8px;
    }

    .order-now,
    .add-cart {
        min-height: 29px;

        padding: 6px 2px;

        font-size: 6px;
        letter-spacing: 0.7px;
    }


    /* Search */

    .search-panel {
        top: 73px;
        right: 12px;

        width: calc(100% - 24px);
    }


    /* Cart */

    .cart-header {
        min-height: 90px;
        padding: 20px;
    }

    .cart-header h2 {
        font-size: 21px;
    }

    .cart-items {
        padding: 15px 20px;
    }

    .cart-footer {
        padding: 15px 20px;
    }


    /* Viewer */

    .image-viewer {
        padding: 25px 15px;
    }

    .image-viewer img {
        max-width: 95vw;
        max-height: 80vh;
    }


    /* Brand statement */

    .brand-statement {
        padding: 60px 20px;
        margin-bottom: 70px;
    }

    .brand-statement h2 {
        font-size: 29px;
    }


    /* Contact */

    .contact-section {
        padding: 65px 20px;
    }

    .contact-inner h2 {
        font-size: 30px;
    }

    .contact-inner > p:nth-of-type(2) {
        font-size: 11px;
    }


    /* Footer */

    .site-footer {
        padding: 40px 15px 28px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .brand-main {
        font-size: 17px;
        letter-spacing: 3px;
    }

    .category-navigation {
        gap: 4px;
    }

    .category-navigation a {
        min-height: 35px;

        font-size: 5.7px;
        letter-spacing: 0.5px;
    }

    .product-grid {
        gap: 8px 4px;
    }

    .product-name {
        font-size: 9px;
    }

    .order-now,
    .add-cart {
        font-size: 5.5px;
    }
}