/*
Theme Name: Filmstrip Store
Theme URI: https://fwdapps.net/p/fs/
Author: FWDesign
Author URI: https://fwdapps.net/
Description: A WooCommerce showcase for Filmstrip Slider, matching the standalone demo.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: filmstrip-store
*/

/* ################################################# */

/* Foundation */

/* ################################################# */

@font-face {
    font-family: Roboto;
    src: url('assets/Roboto.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html {
    scroll-behavior: auto;
}

body {
    overflow-x: clip;
}

/* Preserve the menu width while regular content uses the standalone layout. */
:root {
    --store-content-gutter: 32px;
    --store-full-content-inset: 8px;
}


.filmstrip-store .site-header {
    padding-inline: var(--store-content-gutter);
}

.site-header {
    z-index: 100;
}

.admin-bar .site-header {
    top: 32px;
}

.store-cart-count {
    display: inline-block;
    margin-left: 5px;
    color: var(--demo-accent);
    font-weight: 700;
}

.store-main {
    padding-top: 132px;
    padding-bottom: 56px;
    min-height: 60vh;
}

.store-main h1 {
    font-size: clamp(40px, 5.3vw, 76px);
    font-weight: 600;
    letter-spacing: -.045em;
    margin-bottom: 28px;
}

.store-main p {
    color: var(--demo-muted);
}


.store-page-content {
    margin-top: 40px;
}

.store-page-content p {
    margin-bottom: 20px;
}

.store-page-content h2 {
    margin: 32px 0 20px;
}

/* ################################################# */

/* Home and collection introduction */

/* ################################################# */

.store-hero {
    height: min(900px, 100svh);
    min-height: 450px;
}

.store-hero .fwdfs-host {
    height: 100% !important;
}

.store-hero-note {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--demo-line);
    font-size: 12px;
    color: var(--demo-muted);
}

.store-hero-note .eyebrow {
    color: var(--demo-ink);
}

.store-introduction {
    padding-block: 104px 112px;
}

.store-introduction h1 {
    font-size: clamp(48px, 7.5vw, 108px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -.055em;
    margin: 22px 0 28px;
}

.store-introduction h1 span,
.store-experience h2 span,
.store-outro h2 span {
    color: var(--demo-accent);
}

.store-introduction > p:not(.eyebrow) {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--demo-muted);
    margin-bottom: 32px;
}

.store-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 42px;
}

.store-section-heading h2 {
    margin-top: 14px;
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 500;
    letter-spacing: -.04em;
}

.store-text-link {
    border-bottom: 1px solid;
    padding-bottom: 6px;
    white-space: nowrap;
}

.store-text-link:hover {
    color: var(--demo-accent);
}

.store-shop-intro {
    max-width: 680px;
    font-size: 18px;
    margin: 0 0 36px;
}

.store-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    margin-top: 104px;
    padding: 72px;
    border-radius: 32px;
    background: #fff2f5;
}

.store-experience h2 {
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 500;
    letter-spacing: -.04em;
    margin: 20px 0 28px;
}

.store-experience-heading > p:last-child {
    color: var(--demo-muted);
    max-width: 390px;
}

.store-experience-list article {
    display: flex;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid #e9d9de;
}

.store-experience-list article:first-child {
    padding-top: 0;
    border: 0;
}

.store-experience-list article > span {
    font-size: 12px;
    color: var(--demo-accent);
    padding-top: 4px;
}

.store-experience-list h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.store-experience-list p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--demo-muted);
}

.store-outro {
    padding-block: 112px 90px;
}

.store-outro h2 {
    font-size: clamp(44px, 6.4vw, 88px);
    letter-spacing: -.045em;
    font-weight: 500;
    margin: 24px 0;
}

.store-outro > p:not(.eyebrow) {
    margin-bottom: 28px;
    color: var(--demo-muted);
}

.site-footer {
    padding-bottom: 32px;
    font-size: 12px;
}

/* ################################################# */

/* Product cards */

/* ################################################# */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 54px 28px;
    margin: 0;
    padding: 0;
    clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    min-width: 0;
}

.store-product-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
    border-radius: 20px;
    background: #eeeeef;
}

.woocommerce ul.products li.product .store-product-cover img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.woocommerce ul.products li.product:hover .store-product-cover img,
.woocommerce ul.products li.product:focus-within .store-product-cover img {
    transform: scale(1.045);
}

.store-card-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--demo-ink);
    transition: background 0.25s ease, color 0.25s ease;
}

.woocommerce ul.products li.product:hover .store-card-arrow,
.woocommerce ul.products li.product:focus-within .store-card-arrow {
    background: var(--demo-accent-fill);
    color: var(--demo-ink);
}

.filmstrip-store .store-card-arrow .store-arrow {
    width: 19px;
    height: 19px;
}

.store-card-description {
    color: var(--demo-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.woocommerce ul.products li.product .price {
    color: var(--demo-muted);
    font-size: 15px;
    font-weight: 400;
    margin: 10px 0 14px;
}



.woocommerce .woocommerce-result-count {
    font-size: 13px;
    color: var(--demo-muted);
    margin-bottom: 32px;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 32px;
}

.woocommerce .woocommerce-ordering select {
    padding: 10px 32px 10px 16px;
    border: 1px solid var(--demo-line);
    border-radius: 24px;
    background: white;
    color: #333;
    font-size: 13px;
}

/* ################################################# */

/* Product pages and actual gallery replacement */

/* ################################################# */

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 36px;
    font-size: 12px;
    color: var(--demo-muted);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--demo-ink);
}

.woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: start;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    width: auto;
    float: none;
    min-width: 0;
    margin: 0;
}

.woocommerce div.product div.summary {
    padding-top: 20px;
}

.woocommerce div.product .product_title {
    font-size: clamp(36px, 4.2vw, 60px);
    line-height: 1.06;
    letter-spacing: -.04em;
    margin: 16px 0 22px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 23px;
    font-weight: 500;
    color: var(--demo-ink);
    margin-bottom: 24px;
}

.woocommerce-product-details__short-description {
    margin: 20px 0 28px;
    font-size: 16px;
    line-height: 1.7;
}

.woocommerce .store-product-eyebrow {
    color: var(--demo-accent);
    font-size: 10px;
}

.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.woocommerce .quantity .qty {
    width: 76px;
    min-height: 48px;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--demo-line);
}

.woocommerce .store-main a.button,
.woocommerce .store-main button.button,
.woocommerce .store-main input.button,
.woocommerce .store-main #respond input#submit {
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 16px 26px;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid #111;
    transition: color .3s,background .3s;
}

.woocommerce .store-main a.button.alt,
.woocommerce .store-main button.button.alt {
    background: #111;
    color: white;
}

.woocommerce .store-main a.button:hover,
.woocommerce .store-main button.button:hover,
.woocommerce .store-main a.button.alt:hover,
.woocommerce .store-main button.button.alt:hover {
    background: var(--demo-accent);
    border-color: var(--demo-accent);
    color: white;
}

.woocommerce .product_meta {
    font-size: 12px;
    color: var(--demo-muted);
    margin-top: 24px;
}

.woocommerce .product_meta > span {
    display: block;
}

.woocommerce .store-demo-note {
    font-size: 12px;
    line-height: 1.6;
    padding: 18px 0;
    border-block: 1px solid var(--demo-line);
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related {
    grid-column: 1 / -1;
    margin-top: 32px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-color: var(--demo-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: 0;
    margin: 0 32px 0 0;
    padding: 0;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 18px 0;
    font-weight: 500;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--demo-accent);
    border-bottom: 2px solid var(--demo-accent);
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 0;
    background: none;
    border-radius: 0;
    max-width: 850px;
    margin-bottom: 48px;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 26px;
    margin: 0 0 20px;
}

.woocommerce div.product .related > h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 500;
}

.woocommerce div.product.fwdfs-product-full-width > .summary {
    max-width: 760px;
    margin: 32px 0 56px;
    padding-top: 0;
}

.woocommerce div.product.fwdfs-product-full-width > .fwdfs-product-gallery-full-width {
    margin-bottom: 28px;
}

/* ################################################# */

/* Cart, checkout and notices */

/* ################################################# */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--demo-accent);
    background: #fff2f5;
    color: #222;
    border-radius: 8px;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--demo-accent);
}

.woocommerce table.shop_table {
    border-color: var(--demo-line);
    border-radius: 12px;
    font-size: 14px;
}

.woocommerce table.shop_table td {
    padding: 20px 12px;
}

.woocommerce-cart table.cart img {
    width: 76px;
    border-radius: 8px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .coupon input.input-text {
    min-height: 46px;
    padding: 12px;
    border: 1px solid var(--demo-line);
    border-radius: 8px;
    background: white;
}

.woocommerce .coupon input.input-text {
    width: 160px !important;
}

.woocommerce form .form-row label {
    font-size: 13px;
}

.woocommerce-checkout #payment {
    background: #f6f6f7;
    border-radius: 14px;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 {
    font-size: 26px;
    margin-bottom: 24px;
}

/* ################################################# */

/* Responsive layouts */

/* ################################################# */

@media (max-width: 1399.98px) {

    .store-hero {
        height: clamp(450px, 62vw, 900px);
    }
}

@media (max-width: 1050px) {

    :root {
        --store-content-gutter: 24px;
        --store-full-content-inset: 0px;
    }

    .store-experience {
        gap: 40px;
        padding: 44px;
    }

    .woocommerce div.product {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
        gap: 28px;
    }
}

@media (max-width: 800px) {


    .store-main {
        padding-top: 108px;
    }

    .store-introduction {
        padding-block: 64px 72px;
    }

    .store-introduction > p:not(.eyebrow) {
        font-size: 17px;
    }

    .store-section-heading {
        align-items: flex-start;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 21px;
    }

    .store-experience {
        grid-template-columns: 1fr;
        margin-top: 64px;
        padding: 32px;
        border-radius: 20px;
    }

    .woocommerce div.product {
        display: block;
    }

    .woocommerce div.product div.summary {
        padding-top: 32px;
        margin-bottom: 40px;
    }

    .store-outro {
        padding-block: 72px 54px;
    }
}

@media (max-width: 599.98px) {

    .store-hero {
        height: max(450px, 110vw);
    }

    .store-hero-note {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }

    .store-section-heading {
        flex-direction: column;
        gap: 20px;
    }

    .store-introduction h1 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        gap: 28px 16px;
    }

    .store-product-cover {
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 19px;
    }



    .store-main h1 {
        font-size: 42px;
    }

    .store-experience {
        padding: 28px 24px;
    }

    .woocommerce .woocommerce-ordering {
        float: none;
    }

    .woocommerce .woocommerce-result-count {
        float: none;
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .store-card-arrow,
    .woocommerce ul.products li.product .store-product-cover img {
        transition: none;
    }
}

.woocommerce div.product .woocommerce-tabs .panel > p:not(.eyebrow) {
    max-width: none;
    margin: 0 0 18px;
    font-size: 16px;
}

/* Shared controls must retain the demo design on WooCommerce endpoints. */

.filmstrip-store .button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 17px 27px;
    border: 1px solid #111;
    border-radius: 40px;
    background: #111;
    color: #fff;
    line-height: 1.2;
    font-size: 15px;
    font-weight: 600;
}

.filmstrip-store .site-header .purchase-toggle {
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
    line-height: 1;
    gap: 14px;
    margin: 0;
}

/* Keep the dark base beneath the animated white reveal, including WooCommerce hover styles. */
.filmstrip-store .site-header .purchase-toggle:hover,
.filmstrip-store .site-header .purchase-toggle:focus-visible {
    background: #111;
    border-color: #111;
}

.filmstrip-store .site-header .purchase-nav[data-open] .purchase-toggle,
.filmstrip-store .site-header .purchase-toggle:focus-visible {
    color: #111;
}

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
    width: 100%;
    float: none;
    margin: 0;
}

.filmstrip-store .store-arrow {
    width: 22px;
    height: 22px;
    overflow: hidden;
    flex-shrink: 0;
}

.filmstrip-store .button:hover .store-arrow {
    transform: none;
}


.store-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-footer > a:last-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Current demo navigation uses the standalone menu's disabled treatment. */
.filmstrip-store .site-header .site-nav a[aria-disabled="true"] {
    color: #707070 !important;
    cursor: default;
    pointer-events: none;
}

.filmstrip-store .site-header .site-nav a[aria-disabled="true"] .menu-link-text {
    background-image: none !important;
    transition: none;
}

/* Mobile gallery dimensions follow the available width instead of a fixed height. */
@media (max-width: 599.98px) {
    .filmstrip-store .fwdfs-product-gallery .fwdfs-host {
        height: auto !important;
        min-height: 0;
        aspect-ratio: 4 / 5;
        max-height: 500px;
    }

    .filmstrip-store .store-hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
        max-height: 500px;
    }

    .filmstrip-store .store-hero .fwdfs-host {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    :root {
        --store-content-gutter: 18px;
    }
}

/* Full-width galleries keep their wide canvas; surrounding content stays contained. */
.store-main:has(> .fwdfs-product-full-width) {
    width: calc(100% - 2 * var(--store-content-gutter));
    max-width: calc(1920px - 2 * var(--store-content-gutter));
}

.store-main:has(> .fwdfs-product-full-width) > :not(.product),
.woocommerce div.product.fwdfs-product-full-width > :not(.fwdfs-product-gallery-full-width):not(.summary) {
    width: calc(100% - 2 * var(--store-full-content-inset));
    max-width: 1360px;
    margin-inline: auto;
}

.woocommerce div.product.fwdfs-product-full-width > .summary {
    margin-left: max(var(--store-full-content-inset), calc((100% - 1360px) / 2));
    margin-right: 0;
    max-width: min(760px, calc(100% - 2 * var(--store-full-content-inset)));
}


/* ################################################# */
/* Current standalone design */
/* ################################################# */

.store-outro .button[data-link-active] .link-letter-track {
    transform: translateY(-100%);
    transition-delay: calc(var(--letter-index) * 12ms);
}

.filmstrip-store .store-outro .button:hover,
.filmstrip-store .store-outro .button:focus-visible {
    background: var(--demo-accent-fill);
    border-color: var(--demo-accent-fill);
    color: #fff;
}

.filmstrip-store .store-main .fwdfs-product-gallery {
    min-width: 0;
}

@media (max-width: 599.98px) {
    .store-outro .button {
        max-width: 100%;
        gap: 12px;
        padding-inline: 20px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-outro .button .link-letter-track,
    .store-outro .button[data-link-active] .link-letter-track {
        transform: none;
        transition: none;
    }
}
