/* =========================================================
   LUXELITE PERFUMES
   SHOP STYLESHEET
   MOBILE FIRST — RESPONSIVE PRODUCT GRID
========================================================= */

:root {
    --lux-purple: #351d39;
    --lux-purple-light: #6b3b70;
    --lux-gold: #b88a44;
    --lux-pink: #fff8fc;
    --lux-border: #eee5ed;
    --lux-text: #351d39;
    --lux-muted: #777;
}

/* SHOP CONTAINER */

.lux-shop {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 12px 35px;
    box-sizing: border-box;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--lux-text);
}

/* SHOP INTRO */

.lux-shop-intro {
    margin-bottom: 14px;
    text-align: center;
}

.lux-shop-intro h1 {
    margin: 0 0 5px;
    color: var(--lux-purple);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.lux-shop-intro p {
    margin: 0 0 4px;
    color: #6e5c70;
    font-size: 11px;
    line-height: 1.5;
}

.lux-shop-intro > span {
    color: var(--lux-gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

/* OPTIONAL SHOP FLYER */

.lux-shop-flyer {
    position: relative;
    min-height: 125px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(
        115deg,
        #351d39 0%,
        #5b285e 48%,
        #b879a8 100%
    );
    box-shadow: 0 6px 18px rgba(53, 29, 57, .18);
}

.lux-shop-flyer::before,
.lux-shop-flyer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lux-shop-flyer::before {
    width: 150px;
    height: 150px;
    right: -55px;
    top: -45px;
    background: rgba(255, 255, 255, .10);
}

.lux-shop-flyer::after {
    width: 110px;
    height: 110px;
    left: -45px;
    bottom: -55px;
    background: rgba(216, 189, 145, .18);
    filter: blur(4px);
}

.lux-shop-flyer-text {
    position: relative;
    z-index: 1;
    width: 75%;
    padding: 20px 15px;
    box-sizing: border-box;
}

.lux-shop-flyer-text span {
    display: block;
    margin-bottom: 4px;
    color: #e5c78e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.lux-shop-flyer-text h1 {
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: .95;
}

.lux-shop-flyer-text p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
    line-height: 1.4;
}

/* SEARCH */

.lux-shop-search {
    margin-bottom: 10px;
}

.lux-shop-search input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #eadfe8;
    border-radius: 20px;
    outline: none;
    background: #fff;
    color: var(--lux-purple);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    box-shadow: 0 3px 10px rgba(53, 29, 57, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lux-shop-search input::placeholder {
    color: #aaa;
}

.lux-shop-search input:focus {
    border-color: var(--lux-gold);
    box-shadow: 0 0 0 2px rgba(184, 138, 68, .12);
}

/* CATEGORY FILTERS */

.lux-shop-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 13px;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lux-shop-filters::-webkit-scrollbar {
    display: none;
}

.shop-filter {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid #e6dce5;
    border-radius: 18px;
    background: #fff;
    color: #555;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease,
                border-color .2s ease;
}

.shop-filter.active {
    border-color: var(--lux-purple);
    background: var(--lux-purple);
    color: #fff;
    box-shadow: 0 3px 7px rgba(53, 29, 57, .15);
}

.shop-filter:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
}

/* PRODUCT GRID — THREE COLUMNS ON MOBILE */

.lux-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    align-items: stretch;
}

/* PRODUCT CARD */

.lux-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--lux-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 9px rgba(53, 29, 57, .07);
    transition: box-shadow .2s ease, transform .2s ease;
}

.lux-shop-card:hover {
    box-shadow: 0 6px 16px rgba(53, 29, 57, .12);
}

@media (hover: hover) {
    .lux-shop-card:hover {
        transform: translateY(-2px);
    }
}

/* PRODUCT IMAGE AREA */

.lux-shop-image {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 116px;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
    background: radial-gradient(
        circle at center,
        #fff 0%,
        #fff8fc 48%,
        #f3e1ef 100%
    );
    border-bottom: 1px solid #f0e5ed;
}

/* DECORATIVE SHADOW — NEVER BLOCK IMAGE TAPS */

.lux-shop-image::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 18%;
    right: 18%;
    bottom: 5px;
    height: 6px;
    border-radius: 50%;
    background: rgba(53, 29, 57, .10);
    filter: blur(5px);
    pointer-events: none;
}

/* CLICKABLE IMAGE LINK */

.lux-shop-image-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    outline: none;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(184, 138, 68, .15);
}

.lux-shop-image-link:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: -3px;
    border-radius: 5px;
}

/* Let the anchor receive taps made directly on the image. */

.lux-shop-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .25s ease;
}

@media (hover: hover) {
    .lux-shop-image-link:hover img {
        transform: scale(1.05);
    }
}

/* NEW BADGE */

.lux-product-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    border-radius: 4px;
    background: var(--lux-purple);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
    text-transform: uppercase;
    pointer-events: none;
}

/* PRODUCT INFORMATION */

.lux-shop-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 7px 6px 8px;
    box-sizing: border-box;
}

.lux-product-category {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: var(--lux-gold);
    font-size: 7px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lux-shop-content h2 {
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--lux-purple);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.lux-shop-content p {
    display: -webkit-box;
    min-height: 27px;
    max-height: 27px;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--lux-muted);
    font-size: 8px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* PRICE — LARGER AND EASIER TO READ ON PHONES */

.lux-product-price {
    width: 100%;
    margin-top: auto;
    margin-bottom: 7px;
    padding-top: 5px;
    box-sizing: border-box;
    border-top: 1px solid #f0e8ef;
    color: var(--lux-purple);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* PRODUCT ACTIONS */

.lux-shop-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 27px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lux-buy-form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* VIEW BUTTON */

.lux-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 27px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid var(--lux-gold);
    border-radius: 14px;
    background: #fff;
    color: var(--lux-purple);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* BUY BUTTON */

.lux-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 27px;
    padding: 0 8px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid var(--lux-purple);
    border-radius: 14px;
    background: var(--lux-purple);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lux-view-button:active,
.lux-buy-button:active {
    transform: scale(.96);
}

.lux-view-button:focus-visible,
.lux-buy-button:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
}

/* REMOVE LINK UNDERLINES */

.lux-shop a {
    text-decoration: none;
}

/* EMPTY SEARCH RESULTS */

.lux-shop-empty {
    padding: 35px 10px;
    text-align: center;
}

.lux-shop-empty[hidden] {
    display: none !important;
}

.lux-shop-empty h2 {
    margin: 0 0 6px;
    color: var(--lux-purple);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
}

.lux-shop-empty p {
    margin: 0;
    color: var(--lux-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* VERY NARROW PHONES — KEEP THREE COLUMNS */

@media (max-width: 360px) {
    .lux-shop {
        padding-right: 8px;
        padding-left: 8px;
    }

    .lux-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .lux-shop-image {
        height: 100px;
        padding: 3px;
    }

    .lux-product-badge {
        top: 4px;
        left: 4px;
        padding: 2px 4px;
        font-size: 6px;
    }

    .lux-shop-content {
        padding: 6px 4px 7px;
    }

    .lux-product-category {
        font-size: 6px;
    }

    .lux-shop-content h2 {
        font-size: 12px;
    }

    .lux-shop-content p {
        font-size: 7px;
    }

    .lux-product-price {
        font-size: 13px;
        letter-spacing: -.3px;
    }

    .lux-shop-actions {
        gap: 3px;
    }

    .lux-view-button,
    .lux-buy-button {
        min-height: 25px;
        padding: 0 5px;
        font-size: 8px;
    }
}

/* TABLETS — KEEP THREE COLUMNS */

@media (min-width: 600px) and (max-width: 899px) {
    .lux-shop {
        padding-right: 20px;
        padding-left: 20px;
    }

    .lux-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .lux-shop-image {
        height: 190px;
        padding: 10px;
    }

    .lux-shop-content {
        padding: 12px;
    }

    .lux-product-category {
        font-size: 9px;
    }

    .lux-shop-content h2 {
        font-size: 19px;
    }

    .lux-shop-content p {
        min-height: 36px;
        max-height: 36px;
        font-size: 10px;
    }

    .lux-product-price {
        font-size: 17px;
    }

    .lux-shop-actions {
        justify-content: flex-start;
        gap: 8px;
    }

    .lux-view-button,
    .lux-buy-button {
        min-height: 34px;
        padding: 0 14px;
        font-size: 11px;
    }
}

/* DESKTOP — FOUR COLUMNS */

@media (min-width: 900px) {
    .lux-shop {
        padding: 28px 24px 50px;
    }

    .lux-shop-intro {
        margin-bottom: 22px;
    }

    .lux-shop-intro h1 {
        font-size: 38px;
    }

    .lux-shop-intro p {
        font-size: 14px;
    }

    .lux-shop-intro > span {
        font-size: 17px;
    }

    .lux-shop-search {
        max-width: 650px;
        margin: 0 auto 14px;
    }

    .lux-shop-search input {
        height: 44px;
        font-size: 13px;
    }

    .lux-shop-filters {
        justify-content: center;
        margin-bottom: 20px;
    }

    .shop-filter {
        padding: 9px 16px;
        font-size: 12px;
    }

    .lux-shop-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .lux-shop-image {
        height: 245px;
        padding: 12px;
    }

    .lux-product-badge {
        top: 10px;
        left: 10px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .lux-shop-content {
        padding: 14px;
    }

    .lux-product-category {
        font-size: 10px;
    }

    .lux-shop-content h2 {
        font-size: 23px;
    }

    .lux-shop-content p {
        min-height: 42px;
        max-height: 42px;
        font-size: 11px;
    }

    .lux-product-price {
        margin-bottom: 10px;
        font-size: 20px;
    }

    .lux-shop-actions {
        justify-content: flex-start;
        gap: 8px;
    }

    .lux-view-button,
    .lux-buy-button {
        min-height: 36px;
        padding: 0 16px;
        font-size: 11px;
    }
}

/* LARGE DESKTOP SCREENS */

@media (min-width: 1200px) {
    .lux-shop-grid {
        gap: 24px;
    }

    .lux-shop-image {
        height: 275px;
    }
}

/* SHOP NAVIGATION */

.shop-main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.shop-main-nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.shop-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 3px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #d4af37;
    color: #111;
    font-size: 10px;
    font-weight: 700;
}

/* SHOPPING NAVBAR */

.shopping-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee5ef;
}

.shopping-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 1200px;
    min-height: 66px;
    margin: 0 auto;
    padding: 8px 12px;
    box-sizing: border-box;
}

/* LOGO */

.shopping-logo {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.shopping-logo strong {
    color: var(--lux-purple);
    font-size: 17px;
    letter-spacing: 2px;
}

.shopping-logo span {
    margin-top: 4px;
    color: #b58b45;
    font-size: 7px;
    letter-spacing: 3px;
}

/* NAVIGATION LINKS */

.shopping-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.shopping-nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 49px;
    min-height: 48px;
    padding: 4px 5px;
    box-sizing: border-box;
    border-radius: 9px;
    color: #5d4b61;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.shopping-nav-link:active {
    transform: scale(.94);
}

.shopping-nav-link:hover {
    background: #f8f1f9;
    color: var(--lux-purple);
}

.shopping-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 17px;
    line-height: 1;
}

/* SHOPPING CART COUNT */

.shopping-cart-link {
    padding-right: 7px;
}

.shopping-cart-count {
    position: absolute;
    top: 4px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #b58b45;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

/* SMALL NAVBAR SCREENS */

@media (max-width: 360px) {
    .shopping-navbar {
        min-height: 62px;
        padding: 7px 8px;
    }

    .shopping-logo strong {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .shopping-logo span {
        font-size: 6px;
        letter-spacing: 2.5px;
    }

    .shopping-nav {
        gap: 1px;
    }

    .shopping-nav-link {
        min-width: 40px;
        min-height: 43px;
        padding: 3px 2px;
        font-size: 8px;
    }

    .shopping-nav-icon {
        width: 20px;
        height: 20px;
        font-size: 15px;
    }

    .shopping-cart-count {
        top: 3px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 7px;
    }
}

/* DESKTOP NAVBAR */

@media (min-width: 900px) {
    .shopping-navbar {
        padding-right: 24px;
        padding-left: 24px;
    }

    .shopping-logo strong {
        font-size: 21px;
    }

    .shopping-logo span {
        font-size: 8px;
    }

    .shopping-nav {
        gap: 8px;
    }

    .shopping-nav-link {
        min-width: 64px;
        min-height: 52px;
        font-size: 11px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .lux-shop-card,
    .lux-shop-image img,
    .lux-view-button,
    .lux-buy-button,
    .shop-filter,
    .shopping-nav-link {
        transition: none;
    }
}