/* ======================================================
   BLACKWOOD STORE
   The Direct Editions Desk
====================================================== */

.store-page {
    background:
        radial-gradient(circle at top, rgba(184, 115, 51, 0.08), transparent 32%),
        radial-gradient(circle at 12% 28%, rgba(95, 125, 118, 0.08), transparent 28%),
        linear-gradient(180deg, #050505 0%, #090909 44%, #030303 100%);

    color: #f1ece4;
}

.store-wrap {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 150px 24px 90px;
}

/* ======================================================
   HERO
====================================================== */

.store-hero {
    max-width: 840px;
    margin: 0 auto 64px;
    text-align: center;
}

.store-kicker {
    margin: 0 0 14px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    line-height: 1.5;
    text-transform: uppercase;

    color: #b87333;
}

.store-hero h1 {
    margin: 0 0 22px;

    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: 2px;

    color: #f1ece4;
}

.store-lead {
    margin: 0 auto 18px;

    max-width: 700px;

    font-size: 22px;
    line-height: 1.45;

    color: rgba(241, 236, 228, 0.9);
}

.store-copy {
    margin: 0 auto;

    max-width: 720px;

    font-size: 16px;
    line-height: 1.8;

    color: rgba(215, 208, 198, 0.76);
}

/* ======================================================
   PANEL
====================================================== */

.store-panel {
    position: relative;

    margin: 0 auto 70px;
    padding: 42px;

    border: 1px solid rgba(184, 115, 51, 0.18);

    background:
        radial-gradient(circle at top left, rgba(184, 115, 51, 0.07), transparent 34%),
        linear-gradient(145deg, rgba(14, 14, 14, 0.98), rgba(5, 5, 5, 0.99));

    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.62),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.store-panel-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.store-panel-heading h2 {
    margin: 0 0 16px;

    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 400;

    color: #f1ece4;
}

.store-panel-heading p {
    margin: 0 auto;

    max-width: 680px;

    font-size: 15.5px;
    line-height: 1.75;

    color: rgba(215, 208, 198, 0.74);
}

/* ======================================================
   CONTROLS
====================================================== */

.store-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;

    margin: 0 0 34px;
}

.store-search-wrap {
    display: grid;
    gap: 8px;
}

.store-search-wrap label,
.store-filters-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2.2px;
    line-height: 1.4;
    text-transform: uppercase;

    color: rgba(184, 115, 51, 0.95);
}

.store-search-wrap input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid rgba(184, 115, 51, 0.24);
    border-radius: 0;

    background:
        linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(4, 4, 4, 0.99));

    color: #f1ece4;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.018),
        0 14px 32px rgba(0, 0, 0, 0.28);
}

.store-search-wrap input::placeholder {
    color: rgba(215, 208, 198, 0.42);
}

.store-search-wrap input:focus {
    outline: none;
    border-color: rgba(184, 115, 51, 0.7);

    box-shadow:
        0 0 34px rgba(184, 115, 51, 0.08),
        inset 0 0 0 1px rgba(184, 115, 51, 0.08);
}

.store-filters-area {
    display: grid;
    gap: 8px;
}

.store-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.store-filter-button {
    min-height: 36px;

    padding: 9px 13px;

    border: 1px solid rgba(184, 115, 51, 0.22);
    border-radius: 0;

    background: rgba(255, 255, 255, 0.018);

    color: rgba(215, 208, 198, 0.76);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5px;
    letter-spacing: 1.8px;
    line-height: 1.35;
    text-transform: uppercase;

    cursor: pointer;

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

.store-filter-button:hover,
.store-filter-button:focus {
    outline: none;

    color: #f1ece4;
    border-color: rgba(184, 115, 51, 0.52);
    background: rgba(184, 115, 51, 0.08);
}

.store-filter-button.is-active {
    color: #0b0b0b;
    border-color: rgba(184, 115, 51, 0.95);
    background: #b87333;
}

.store-status {
    margin: 0 0 24px;

    text-align: center;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;

    color: rgba(215, 208, 198, 0.58);
}

.store-status.is-error {
    color: rgba(232, 126, 126, 0.95);
}

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

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

.store-product-card {
    position: relative;

    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;

    min-height: 270px;
    padding: 24px;

    border: 1px solid rgba(184, 115, 51, 0.18);

    background:
        radial-gradient(circle at top left, rgba(184, 115, 51, 0.05), transparent 40%),
        linear-gradient(145deg, rgba(15, 15, 15, 0.98), rgba(5, 5, 5, 0.99));

    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.018);

    overflow: hidden;

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

.store-product-card::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(120deg, transparent 0%, rgba(184, 115, 51, 0.05) 50%, transparent 100%);

    opacity: 0;

    transition: opacity 0.25s ease;
}

.store-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 115, 51, 0.36);

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.58),
        0 0 34px rgba(184, 115, 51, 0.055),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.store-product-card:hover::before {
    opacity: 1;
}

.store-product-card[hidden],
.store-product-card.is-hidden {
    display: none;
}

.store-product-image {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.store-product-image img {
    display: block;

    width: 130px;
    height: 195px;

    object-fit: cover;

    border: 1px solid rgba(184, 115, 51, 0.24);

    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.7),
        0 0 28px rgba(184, 115, 51, 0.06);
}

.store-product-content {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.store-product-badge {
    display: inline-flex;
    align-items: center;

    margin: 0 0 10px;
    padding: 5px 9px;

    border: 1px solid rgba(184, 115, 51, 0.22);

    color: rgba(184, 115, 51, 0.94);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: 1.8px;
    line-height: 1.35;
    text-transform: uppercase;
}

.store-product-content h2 {
    margin: 0 0 8px;

    font-size: 26px;
    line-height: 1.12;
    font-weight: 400;

    color: #f1ece4;
}

.store-product-subtitle {
    margin: 0 0 6px;

    font-size: 14px;
    line-height: 1.45;

    color: rgba(241, 236, 228, 0.76);
}

.store-product-category {
    margin: 0 0 14px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5px;
    letter-spacing: 1.9px;
    line-height: 1.4;
    text-transform: uppercase;

    color: rgba(184, 115, 51, 0.82);
}

.store-product-description {
    margin: 0 0 18px;

    font-size: 14.5px;
    line-height: 1.65;

    color: rgba(215, 208, 198, 0.72);
}

.store-product-buy {
    margin-top: auto;
}

/* ======================================================
   SHOPIFY BUY BUTTON CLEANUP
====================================================== */

.store-product-buy iframe,
.store-product-buy div {
    max-width: 100%;
}

.store-product-buy .shopify-buy__layout-vertical {
    text-align: left !important;
}

.store-product-buy .shopify-buy__product {
    margin: 0 !important;
}

.store-product-buy .shopify-buy__product__price {
    margin-bottom: 12px !important;
}

.store-product-buy .shopify-buy__btn-wrapper {
    margin-top: 10px !important;
}

.store-product-buy .shopify-buy__quantity-container {
    margin: 0 8px 0 0 !important;
}

/* ======================================================
   NOTES / FAQ
====================================================== */

.store-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin-top: 34px;
}

.store-note-card {
    padding: 22px;

    border: 1px solid rgba(184, 115, 51, 0.14);

    background: rgba(255, 255, 255, 0.018);
}

.store-note-card h3 {
    margin: 0 0 10px;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;

    color: #f1ece4;
}

.store-note-card p {
    margin: 0;

    font-size: 14.5px;
    line-height: 1.7;

    color: rgba(215, 208, 198, 0.72);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1080px) {
    .store-grid {
        grid-template-columns: 1fr;
    }

    .store-product-card {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .store-wrap {
        padding-top: 130px;
    }

    .store-panel {
        padding: 34px 24px;
    }

    .store-controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .store-filters {
        justify-content: flex-start;
    }

    .store-note-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .store-wrap {
        padding: 112px 16px 70px;
    }

    .store-hero {
        margin-bottom: 44px;
    }

    .store-lead {
        font-size: 19px;
    }

    .store-panel {
        padding: 28px 18px;
    }

    .store-product-card {
        grid-template-columns: 1fr;
        gap: 18px;

        padding: 20px;
    }

    .store-product-image {
        justify-content: flex-start;
    }

    .store-product-image img {
        width: 118px;
        height: 177px;
    }

    .store-product-content h2 {
        font-size: 24px;
    }

    .store-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .store-filter-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .store-product-image img {
        width: 108px;
        height: 162px;
    }

    .store-product-content h2 {
        font-size: 22px;
    }
}
/* ======================================================
   STORE PAGE — FORCE CONTENT VISIBLE
   Fixes black screen if fade-in animation does not trigger
====================================================== */

.store-page .fade-in {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.store-product-card.is-targeted {
    border-color: rgba(184, 115, 51, 0.78);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.68),
        0 0 48px rgba(184, 115, 51, 0.18),
        inset 0 0 0 1px rgba(184, 115, 51, 0.18);
}
/* ======================================================
   STORE PAGE — CLEAN CONTROLS / FILTER LAYOUT FIX
====================================================== */

.store-page .store-controls {
    max-width: 1100px;
    margin: 42px auto 0;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 34px !important;
    align-items: center !important;
}

.store-page .store-search-wrap {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    display: grid !important;
    gap: 12px !important;
    text-align: center !important;
}

.store-page .store-search-wrap label {
    display: block !important;
    color: #b87333 !important;
    font-size: 11px !important;
    letter-spacing: 3px !important;
    line-height: 1.5 !important;
    text-transform: uppercase !important;
}

.store-page #blackwood-store-search {
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(184, 115, 51, 0.28) !important;
    background: rgba(0, 0, 0, 0.42) !important;
    color: #f1ece4 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
}

.store-page #blackwood-store-search::placeholder {
    color: rgba(241, 236, 228, 0.35) !important;
}

.store-page #blackwood-store-search:focus {
    border-color: rgba(184, 115, 51, 0.68) !important;
    box-shadow: 0 0 28px rgba(184, 115, 51, 0.12) !important;
}

.store-page .store-filters-area {
    width: 100% !important;
    display: grid !important;
    gap: 18px !important;
    text-align: center !important;
}

.store-page .store-filters-label {
    margin: 0 !important;
    color: #b87333 !important;
    font-size: 11px !important;
    letter-spacing: 3px !important;
    line-height: 1.5 !important;
    text-transform: uppercase !important;
}

.store-page .store-filters {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.store-page .store-filter-button {
    min-width: 130px !important;
    padding: 13px 16px !important;
    border: 1px solid rgba(184, 115, 51, 0.24) !important;
    background: rgba(0, 0, 0, 0.28) !important;
    color: rgba(241, 236, 228, 0.74) !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    cursor: pointer !important;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease !important;
}

.store-page .store-filter-button:hover,
.store-page .store-filter-button:focus-visible {
    border-color: rgba(184, 115, 51, 0.62) !important;
    background: rgba(184, 115, 51, 0.12) !important;
    color: #f1ece4 !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.store-page .store-filter-button.is-active {
    border-color: rgba(184, 115, 51, 0.9) !important;
    background: #b87333 !important;
    color: #0b0b0b !important;
}

.store-page .store-status {
    margin: 36px auto 28px !important;
    text-align: center !important;
    color: rgba(241, 236, 228, 0.48) !important;
    font-size: 11px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

/* Stop the controls getting crushed on tablets */
@media (max-width: 980px) {
    .store-page .store-controls {
        margin-top: 34px !important;
        gap: 28px !important;
    }

    .store-page .store-filter-button {
        min-width: 150px !important;
    }
}

/* Mobile: stack everything cleanly */
@media (max-width: 640px) {
    .store-page .store-panel {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .store-page .store-search-wrap {
        max-width: 100% !important;
    }

    .store-page .store-filters {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .store-page .store-filter-button {
        width: 100% !important;
        min-width: 0 !important;
    }
}
