/* =========================================================
   SHOP INTRO
========================================================= */
.shop-heading {
    max-width: 720px;
    margin-bottom: 80px;
}

.shop-heading h1 {
    margin: 14px 0 24px;
    font-family: var(--font-display);
    font-size: clamp(55px, 6.5vw, 94px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--purple);
}

.shop-heading h1 em {
    font-weight: 400;
}

.shop-intro {
    max-width: 580px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* =========================================================
   SHOP ANNOUNCEMENT
========================================================= */

.shop-announcement {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 0 0 35px;
    padding: 18px 22px;

    border: 1px solid var(--deep-amethyst);

    background: var(--deep-amethyst);
    color: #fff;
}

.shop-announcement-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.shop-announcement-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* =========================================================
   SHOP — BRAND ALPHABET SECTIONS
   ========================================================= */

.shop-brand-sections {
    width: 100%;
}

.shop-brand-section {
    width: 100%;
    margin-top: 72px;
}

.shop-brand-section:first-child {
    margin-top: 0;
}

/* Alphabet heading */

.shop-brand-section-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.shop-brand-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(43, 27, 61, 0.18);
}

.shop-brand-section-heading h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* Keep existing product grid behavior */

.shop-brand-section .shop-grid {
    margin-top: 0;
}

/* =========================================================
   SHOP — A–Z BRAND NAVIGATION
   ========================================================= */

.shop-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    scroll-margin-top: 120px;

    width: 100%;

    margin: 0 0 64px;
    padding: 20px 0;

    border-top: 1px solid rgba(43, 27, 61, 0.12);
    border-bottom: 1px solid rgba(43, 27, 61, 0.12);
}


/* ---------------------------------------------------------
   Alphabet blocks
   --------------------------------------------------------- */

.shop-alphabet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    box-sizing: border-box;

    color: var(--amethyst);
    background: transparent;

    border: 1px solid rgba(43, 27, 61, 0.20);
    border-radius: 4px;

    text-decoration: none;

    /*
     * Use the site's existing body font.
     * Do not introduce a separate font here.
     */
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


/* ---------------------------------------------------------
   Available alphabet
   --------------------------------------------------------- */

.shop-alphabet-link:not(.is-disabled):hover {
    color: #fff;
    background: var(--amethyst);
    border-color: var(--amethyst);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   ALL button
   --------------------------------------------------------- */

.shop-alphabet-all {
    width: auto;
    min-width: 52px;

    padding: 0 14px;

    font-size: 0.72rem;
    letter-spacing: 0.12em;
}


/* ---------------------------------------------------------
   Disabled alphabet
   --------------------------------------------------------- */

.shop-alphabet-link.is-disabled {
    color: rgba(43, 27, 61, 0.28);
    background: rgba(43, 27, 61, 0.025);

    border-color: rgba(43, 27, 61, 0.08);

    cursor: default;
}


/* ---------------------------------------------------------
   Brand sections
   --------------------------------------------------------- */

.shop-brand-section {
    width: 100%;
    margin-top: 76px;

    scroll-margin-top: 100px;
}

.shop-brand-section:first-child {
    margin-top: 0;
}

.shop-brand-section-heading {
    display: flex;
    align-items: center;

    gap: 24px;
    margin-bottom: 30px;
}

.shop-brand-section-heading::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(43, 27, 61, 0.16);
}

.shop-brand-section-heading h2 {
    margin: 0;

    color: var(--amethyst);

    font-family: inherit;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;

    letter-spacing: 0.08em;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .shop-alphabet-nav {
        justify-content: flex-start;

        gap: 6px;

        margin-bottom: 48px;
        padding: 16px 0;
    }

    .shop-alphabet-link {
        width: 36px;
        height: 36px;

        font-size: 0.72rem;
    }

    .shop-alphabet-all {
        min-width: 48px;
        padding: 0 11px;
    }

    .shop-brand-section {
        margin-top: 56px;
    }

    .shop-brand-section-heading {
        gap: 16px;
        margin-bottom: 22px;
    }

    .shop-brand-section-heading h2 {
        font-size: 1.6rem;
    }

    .shop-brand-section-heading h2 a {
        color: inherit;
        text-decoration: none;
        font: inherit;
        letter-spacing: inherit;
        transition: opacity 0.25s ease;
    }

    .shop-brand-section-heading h2 a:hover {
        opacity: 0.6;
    }

}

/* =========================================================
   PRODUCT GRID
========================================================= */

.shop-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    display: grid;

    grid-template-columns:
        minmax(150px, 42%)
        minmax(0, 58%);

    min-height: 310px;

    background: #ffffff;

    border: 1px solid var(--border-light);

    overflow: hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(43, 27, 61, .25);

    box-shadow:
        0 18px 45px rgba(43, 27, 61, .08);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.perfume-card-image {
    width: 40%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3f6;
}

.product-card-image a {
    display: block;

    width: 100%;
    height: 100%;
}

.perfume-card-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.035);
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.product-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: var(--text-muted);
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-card-info {
    padding: 32px 30px;

    display: flex;
    flex-direction: column;

    min-width: 0;
}


/* =========================================================
   BRAND
========================================================= */

.product-brand {
    margin: 0 0 10px;

    font-family: "Nunito Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--text-muted);
}


/* =========================================================
   PRODUCT NAME
========================================================= */

.product-name {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;

    color: var(--purple);
}

.product-name a {
    color: inherit;

    text-decoration: none;
}


/* =========================================================
   CONCENTRATION
========================================================= */

.product-concentration {
    margin: 8px 0 20px;

    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-style: italic;

    color: var(--text-secondary);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.product-description {
    margin: 0;

    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;

    color: var(--text-secondary);
}


/* =========================================================
   AVAILABLE SIZES
========================================================= */

.product-sizes {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: auto;
    padding-top: 25px;
}

.product-size {
    padding: 6px 9px;

    border: 1px solid var(--border-light);

    font-family: "Nunito Sans", sans-serif;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: .05em;

    color: var(--text-secondary);

    background: #ffffff;
}


/* =========================================================
   VIEW LINK
========================================================= */

.product-view {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    width: fit-content;

    margin-top: 22px;

    font-family: "Nunito Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--purple);

    text-decoration: none;

    transition:
        gap var(--transition);
}

.product-view:hover {
    gap: 14px;
}

.product-view span {
    font-size: 16px;
}


/* =========================================================
   EMPTY SHOP
========================================================= */

.shop-empty {
    padding: 80px 20px;

    text-align: center;

    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.shop-empty p {
    margin: 5px 0;

    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;

    color: var(--text-secondary);
}

/* =========================================================
   SHOP PAGE
========================================================= */

.shop-page {
    background: var(--vial-glass);
    min-height: 80vh;
}

.shop-page-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 7vh var(--page-padding) 15vh;
}

/* SHOP HEADING */

.shop-heading {
    max-width: 750px;
    margin-bottom: 70px;
}

.shop-heading h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(50px, 7vw, 90px);
    line-height: .98;
    letter-spacing: -.05em;
    margin: 20px 0;
}

.shop-heading h1 em {
    color: var(--gemstone-gleam);
}

.shop-intro {
    max-width: 600px;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* PRODUCT GRID */

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


/* PRODUCT CARD */

.shop-grid .product-card {
    display: grid;
    grid-template-columns: 42% 58%;

    min-height: 320px;

    padding: 0;

    background: var(--pure-white);

    border: 1px solid rgba(43, 27, 61, .12);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.shop-grid .product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(43, 27, 61, .10);
}


/* PRODUCT IMAGE */

.shop-grid .product-card-image {
    width: 100%;
    height: 100%;
    min-height: 320px;

    background: var(--vial-glass);

    overflow: hidden;
}

.shop-grid .product-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.shop-grid .product-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    aspect-ratio: auto;

    object-fit: cover;

    background: var(--vial-glass);

    transition: transform .4s ease;
}

.shop-grid .product-card:hover .product-card-image img {
    transform: scale(1.04);
}


/* PRODUCT INFORMATION */

.shop-grid .product-card-info {
    min-width: 0;

    padding: 30px;

    display: flex;
    flex-direction: column;
}


/* BRAND */

.product-brand {
    margin: 0 0 8px;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .15em;
    text-transform: uppercase;
}


/* NAME */

.shop-grid .product-name {
    margin: 0;

    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
}

.shop-grid .product-name a {
    color: var(--deep-amethyst);
}


/* CONCENTRATION */

.product-concentration {
    margin: 7px 0 20px;

    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;

    color: var(--gemstone-gleam);
}


/* DESCRIPTION */

.product-description {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


/* SIZES */

.product-sizes {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: auto;
    padding-top: 25px;
}

.product-size {
    padding: 5px 9px;

    border: 1px solid var(--gemstone-gleam);

    color: var(--deep-amethyst);

    font-size: 10px;
    letter-spacing: .05em;
}


/* VIEW */

.product-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    margin-top: 20px;

    color: var(--deep-amethyst);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-view:hover {
    color: var(--gemstone-gleam);
}

.product-view span {
    font-size: 16px;
}

/* Page-specific styles moved from inline CSS: shop/index.php */
.shop-search {
            margin: 2.5rem 0 3rem;
        }

        .shop-search-label {
            display: block;
            margin-bottom: 0.65rem;
            font-family: 'Playfair Display', Georgia, serif;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.02em;
        }

        .shop-search-row {
            display: flex;
            gap: 0.75rem;
            align-items: stretch;
        }

        .shop-search-input {
            flex: 1;
            min-width: 0;
            padding: 0.9rem 1rem;
            border: 1px solid rgba(43, 27, 61, 0.22);
            border-radius: 0;
            background: rgba(255, 255, 255, 0.7);
            font: inherit;
            color: inherit;
            outline: none;
        }

        .shop-search-input:focus {
            border-color: #2B1B3D;
            box-shadow: 0 0 0 2px rgba(43, 27, 61, 0.08);
        }

        .shop-search-button {
            padding: 0.9rem 1.6rem;
            border: 1px solid #2B1B3D;
            background: #2B1B3D;
            color: #fff;
            font: inherit;
            cursor: pointer;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .shop-search-button:hover {
            opacity: 0.9;
        }

        .shop-search-button:active {
            transform: translateY(1px);
        }

        .shop-search-result {
            margin-top: 0.85rem;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .shop-search-clear {
            margin-left: 0.75rem;
            text-decoration: underline;
            text-underline-offset: 0.2em;
        }

/* =========================================================
   RESPONSIVE — ADD THIS AT THE VERY END OF public_shop.css
========================================================= */

@media (max-width: 900px) {

    /* One product card per row */
    .shop-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Image and description stay side-by-side */
    .shop-grid .product-card {
        display: grid !important;
        grid-template-columns: 40% 60% !important;
        align-items: stretch;
        width: 100%;
        min-height: 0;
        height: auto;
    }

    /* IMPORTANT:
       Do not give the image a fixed height.
       Let it stretch to exactly the height of the card. */
    .shop-grid .product-card-image {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        align-self: stretch;
        overflow: hidden;
    }

    .shop-grid .product-card-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .shop-grid .product-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .shop-grid .product-card-info {
        width: 100%;
        min-width: 0;
        padding: 25px;
        box-sizing: border-box;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .shop-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .shop-grid .product-card {
        display: grid !important;
        grid-template-columns: 40% 60% !important;
        align-items: stretch;
        min-height: 0;
        height: auto;
    }

    .shop-grid .product-card-image {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .shop-grid .product-card-image a,
    .shop-grid .product-card-image img {
        width: 100%;
        height: 100%;
    }

    .shop-grid .product-card-image img {
        object-fit: cover;
        object-position: center;
    }

    .shop-grid .product-card-info {
        padding: 20px;
        box-sizing: border-box;
    }

    .shop-grid .product-name {
        font-size: 22px;
    }

    .shop-grid .product-description {
        font-size: 12px;
        line-height: 1.6;
    }
}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 480px) {

    .shop-grid .product-card {
        grid-template-columns: 38% 62% !important;
        align-items: stretch;
    }

    .shop-grid .product-card-image {
        height: 100% !important;
        min-height: 0 !important;
    }

    .shop-grid .product-card-info {
        padding: 16px;
    }

    .shop-grid .product-name {
        font-size: 20px;
    }
}

/* =========================================================
   SHOP CART
========================================================= */
.floating-cart-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;

    background: var(--deep-amethyst);
    color: #fff;

    text-decoration: none;

    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    box-shadow: 0 8px 24px rgba(43, 27, 61, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(43, 27, 61, 0.24);
}

.floating-cart-button > span:first-child {
    font-size: 1rem;
}

.floating-cart-button b {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 19px;
    height: 19px;
    padding: 0 5px;

    border-radius: 50%;

    background: #fff;
    color: var(--deep-amethyst);

    font-size: 0.6rem;
    font-weight: 600;
}

html {
    scroll-behavior: smooth;
}