/* FlowersStore — Product List page */

/* ── Page wrapper ─────────────────────────────────────────── */
.flr-pl {
    background: var(--theme-bg, #fbf6ee);
    min-height: 100vh;
}

/* ── Sub-hero banner ──────────────────────────────────────── */
.flr-pl__subhero {
    position: relative;
    min-height: clamp(460px, 60vh, 680px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.flr-pl__subhero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.flr-pl__subhero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(42, 35, 32, 0.70) 0%, rgba(42, 35, 32, 0.35) 55%, rgba(42, 35, 32, 0.15) 100%),
        linear-gradient(180deg, rgba(42, 35, 32, 0.40) 0%, transparent 40%, rgba(42, 35, 32, 0.40) 100%);
}

.flr-pl__subhero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    display: block;
}

.flr-pl__subhero-content {
    position: relative;
    z-index: 1;
    padding-block: clamp(64px, 9vw, 120px);
    max-width: 760px !important;
    margin-inline: auto !important;
    margin-top: clamp(40px, 12vh, 125px);
}

.flr-pl__crumb {
    font-family: var(--theme-font-family);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 1rem;
}

.flr-pl__crumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.flr-pl__crumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.flr-pl__heading {
    font-family: var(--theme-font-display);
    font-size: clamp(2.4rem, 6vw, 4.3rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.flr-pl__lede {
    margin-top: 1.1rem;
    font-family: var(--theme-font-family);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    max-width: 50ch;
    line-height: 1.65;
}

/* ── Catalogue section ────────────────────────────────────── */
.flr-pl__catalogue {
    padding-block: clamp(40px, 6vw, 80px);
}

/* ── Category filter pills ────────────────────────────────── */
.flr-pl__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(24px, 3.5vw, 40px);
}

.flr-pl__filter-btn,
.flr-pl__filters .t1-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--theme-font-family);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.75em 1.5em;
    border-radius: 999px;
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.14));
    background: #fff;
    color: var(--theme-text, #2a2320);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.flr-pl__filter-btn:hover,
.flr-pl__filters .t1-pill:hover {
    border-color: var(--theme-mocha, #b98d77);
}

.flr-pl__filter-btn.is-active,
.flr-pl__filters .t1-pill--active,
.flr-pl__filters .t1-pill.is-active {
    background: var(--theme-primary, #6f4f3a);
    border-color: var(--theme-primary, #6f4f3a);
    color: var(--theme-surface, #fff9f2);
}

/* ── Toolbar (sort + view) ────────────────────────────────── */
.flr-pl__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(24px, 3.5vw, 40px);
}

.flr-pl__toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sort custom dropdown */
.flr-pl__sort-wrap {
    position: relative;
}

.flr-pl__sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--theme-font-family);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text, #2a2320);
    background: #fff;
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.18));
    border-radius: 999px;
    padding: 0.6em 1.1em 0.6em 1em;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.flr-pl__sort-toggle:hover {
    border-color: var(--theme-mocha, #b98d77);
}

.flr-pl__sort-toggle[aria-expanded="true"] {
    border-color: var(--theme-primary, #6f4f3a);
    box-shadow: 0 0 0 3px rgba(111, 79, 58, 0.12);
}

.flr-pl__sort-toggle[aria-expanded="true"] .flr-pl__sort-chevron {
    transform: rotate(180deg);
}

.flr-pl__sort-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--theme-text-muted, #726a62);
}

.flr-pl__sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.14));
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(42, 35, 32, 0.13), 0 2px 8px rgba(42, 35, 32, 0.07);
}

.flr-pl__sort-dropdown[hidden] {
    display: none !important;
}

.flr-pl__sort-opt {
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--theme-font-family);
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--theme-text-muted, #726a62);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.65em 1em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.flr-pl__sort-opt:hover {
    background: var(--theme-blush, #f7e9e4);
    color: var(--theme-text, #2a2320);
}

.flr-pl__sort-opt.is-selected,
.flr-pl__sort-opt.is-active {
    font-weight: 600;
    color: var(--theme-primary, #6f4f3a);
    background: color-mix(in srgb, var(--theme-primary, #6f4f3a) 10%, transparent);
}

/* Filter blocks inside dropdown */
.flr-pl__filter-block {
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--theme-border, rgba(74, 58, 48, 0.1));
}

.flr-pl__filter-block:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.flr-pl__filter-label {
    display: block;
    font-family: var(--theme-font-family);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--theme-text-muted, #726a62);
    margin-bottom: 6px;
    padding: 0 0.5rem;
}

.flr-pl__sort-opts {
    display: flex;
    flex-direction: column;
}

/* On Sale toggle */
.flr-pl__filter-toggle {
    display: inline-flex;
    align-items: center;
    font-family: var(--theme-font-family);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--theme-text-muted, #726a62);
    background: transparent;
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.18));
    border-radius: 999px;
    padding: 0.45em 1em;
    cursor: pointer;
    margin: 2px 0.5rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.flr-pl__filter-toggle:hover {
    border-color: var(--theme-mocha, #b98d77);
    color: var(--theme-text, #2a2320);
}

.flr-pl__filter-toggle.is-selected,
.flr-pl__filter-toggle.is-active {
    background: color-mix(in srgb, var(--theme-primary, #6f4f3a) 12%, transparent);
    color: var(--theme-primary, #6f4f3a);
    border-color: color-mix(in srgb, var(--theme-primary, #6f4f3a) 40%, transparent);
    font-weight: 500;
}

/* Variant options */
.flr-pl__filter-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0.5rem;
}

/* Apply button */
.flr-pl__filter-apply {
    display: block;
    width: 100%;
    font-family: var(--theme-font-family);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-surface, #fff9f2);
    background: var(--theme-primary, #6f4f3a);
    border: none;
    border-radius: 999px;
    padding: 0.85em 1em;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.flr-pl__filter-apply:hover {
    background: var(--theme-espresso, #4a3a30);
}

/* View toggle */
.flr-pl__view {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--theme-border, rgba(74, 58, 48, 0.14));
    border-radius: 8px;
    padding: 2px;
    background: #fff;
}

.flr-pl__view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: var(--theme-text-muted, #726a62);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.flr-pl__view-btn.is-active {
    background: var(--theme-primary, #6f4f3a);
    color: #fff;
}

/* ── Product grid ─────────────────────────────────────────── */
.flr-pl__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.4vw, 34px);
}

@media (max-width: 640px) {
    .flr-pl__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .flr-pl__grid { grid-template-columns: 1fr; }
}

/* ── Product card ─────────────────────────────────────────── */
.flr-pl-item {
    cursor: pointer;
    min-width: 0;
}

/* Image wrapper — block link, no intrinsic size of its own */
.flr-pl-item__img-wrap {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* img-box is the square — padding-top trick works reliably on a <div> */
.flr-pl-item__img-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    height: 0;
    overflow: hidden;
    border-radius: var(--theme-radius-lg, 10px);
    background: var(--theme-blush, #f7e9e4);
}

.flr-pl-item__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.flr-pl-item:hover .flr-pl-item__img {
    transform: scale(1.06);
}

/* "Order Now" button — inside img-box so it sits over the image */
.flr-pl-item__order-btn {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary, #6f4f3a);
    color: var(--theme-surface, #fff9f2);
    font-family: var(--theme-font-family);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.95em 1em;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                background 0.3s;
}

.flr-pl-item:hover .flr-pl-item__order-btn {
    opacity: 1;
    transform: translateY(0);
}

.flr-pl-item__order-btn:hover {
    background: var(--theme-espresso, #4a3a30);
}

/* Card meta — below image, no padding box */
.flr-pl-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.flr-pl-item__meta-left {
    flex: 1 1 0;
    min-width: 0;
}

.flr-pl-item__name {
    font-family: var(--theme-font-display);
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--theme-text, #2a2320);
    line-height: 1.2;
    margin: 0 0 0.15em;
}

.flr-pl-item__cat {
    display: block;
    font-family: var(--theme-font-family);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--theme-mocha-deep, #8a6450);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price */
.flr-pl-item__price {
    font-family: var(--theme-font-family);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--theme-primary, #6f4f3a);
    white-space: nowrap;
    flex-shrink: 0;
}

.flr-pl-item__from {
    font-weight: 400;
    font-size: 0.82rem;
    margin-right: 2px;
    color: var(--theme-text-muted, #726a62);
}

/* ── List view ────────────────────────────────────────────── */
.flr-pl__grid.t1-pl-view-list {
    grid-template-columns: 1fr;
    gap: 0;
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    padding: clamp(16px, 2vw, 22px) 0;
    border-bottom: 1px solid var(--theme-border, rgba(74, 58, 48, 0.12));
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item:first-child {
    border-top: 1px solid var(--theme-border, rgba(74, 58, 48, 0.12));
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__img-wrap {
    flex-shrink: 0;
    width: clamp(80px, 10vw, 120px);
    display: block;
    border-radius: var(--theme-radius-lg, 10px);
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__img-box {
    padding-top: 100% !important;
    height: 0 !important;
    border-radius: var(--theme-radius-lg, 10px);
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__order-btn {
    display: none;
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__meta {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0;
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__meta-left {
    flex: 1;
    min-width: 0;
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__name {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__cat {
    white-space: normal;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.flr-pl__grid.t1-pl-view-list .flr-pl-item__price {
    flex-shrink: 0;
    font-size: 1rem;
    text-align: right;
}

@media (max-width: 480px) {
    .flr-pl__grid.t1-pl-view-list .flr-pl-item__price {
        display: none;
    }
}

/* ── Empty state ──────────────────────────────────────────── */
.flr-pl__empty {
    text-align: center;
    padding: 5rem 1rem;
}

.flr-pl__empty-msg {
    font-family: var(--theme-font-family);
    font-size: 1rem;
    color: var(--theme-text-muted, #726a62);
}

/* ── Pagination ───────────────────────────────────────────── */
.flr-pl__pagination[hidden] {
    display: none !important;
}

.flr-pl__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-top: clamp(40px, 5vw, 64px);
}

.flr-pl__page-btn {
    font-family: var(--theme-font-family);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-primary, #6f4f3a);
    background: none;
    border: 1px solid var(--theme-primary, #6f4f3a);
    border-radius: 999px;
    padding: 0.7em 1.4em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.flr-pl__page-btn:hover {
    background: var(--theme-primary, #6f4f3a);
    color: var(--theme-surface, #fff9f2);
}

.flr-pl__page-info {
    font-family: var(--theme-font-family);
    font-size: 0.9rem;
    color: var(--theme-text-muted, #726a62);
}

/* ── Mobile adjustments ───────────────────────────────────── */
@media (max-width: 768px) {
    .flr-pl__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        margin-inline: calc(-1 * var(--theme-gutter, 24px));
        padding-inline: var(--theme-gutter, 24px);
    }

    .flr-pl__filters::-webkit-scrollbar { display: none; }

    .flr-pl__filter-btn,
    .flr-pl__filters .t1-pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* Always show order button on touch devices */
    .flr-pl-item__order-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .flr-pl__toolbar {
        flex-wrap: wrap;
    }

    .t1-pl-view-list .flr-pl-item {
        grid-template-columns: 90px 1fr;
    }
}

/* ── Bespoke feature section ──────────────────────────────── */
.flr-pl__feature {
    background: var(--theme-blush, #f7e9e4);
    padding-block: clamp(60px, 8vw, 100px);
}

.flr-pl__feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 90px);
}

.flr-pl__feature-media {
    border-radius: var(--theme-radius-lg, 14px);
    overflow: hidden;
}

.flr-pl__feature-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.flr-pl__feature-eyebrow {
    font-family: var(--theme-font-family);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--theme-mocha-deep, #8a6450);
    margin-bottom: 1.1rem;
}

.flr-pl__feature-title {
    font-family: var(--theme-font-display);
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--theme-text, #2a2320);
    margin-bottom: 1.2rem;
}

.flr-pl__feature-body {
    font-family: var(--theme-font-family);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    color: var(--theme-text-muted, #726a62);
    max-width: 48ch;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.flr-pl__feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.flr-pl__feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--theme-font-family);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9em 1.8em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.flr-pl__feature-btn:hover {
    transform: translateY(-2px);
}

.flr-pl__feature-btn--solid {
    background: var(--theme-primary, #6f4f3a);
    color: var(--theme-surface, #fff9f2);
    border-color: var(--theme-primary, #6f4f3a);
}

.flr-pl__feature-btn--solid:hover {
    background: var(--theme-espresso, #4a3a30);
    border-color: var(--theme-espresso, #4a3a30);
}

.flr-pl__feature-btn--ghost {
    background: transparent;
    color: var(--theme-text, #2a2320);
    border-color: var(--theme-border, rgba(74, 58, 48, 0.3));
}

.flr-pl__feature-btn--ghost:hover {
    background: var(--theme-primary, #6f4f3a);
    color: var(--theme-surface, #fff9f2);
    border-color: var(--theme-primary, #6f4f3a);
}

@media (max-width: 768px) {
    .flr-pl__feature-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .flr-pl__feature-media img {
        aspect-ratio: 16 / 9;
    }
}
