/*
Theme Name: Mitre LAFC Shop
Theme URI: https://lesateliersfc.fr
Author: Les Ateliers FC
Description: ThÃ¨me blank compatible WooCommerce pour la boutique Les Ateliers FC (capsule Mitre x LAFC et merch).
Version: 1.0
Text Domain: mitre-lafc-shop
*/

@font-face {
    font-family: 'Eurostile';
    src: url('assets/fonts/EurostileLT.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eurostile';
    src: url('assets/fonts/EurostileLT-Oblique.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Eurostile';
    src: url('assets/fonts/EurostileLT-Demi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eurostile';
    src: url('assets/fonts/EurostileLT-DemiOblique.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header (identique sur toutes les pages) */

.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 32px;
}

.site-header .logo-left {
    justify-self: start;
}

.site-header .logo-right {
    justify-self: center;
}

.site-header .header-actions {
    justify-self: end;
}

.site-header .logo-left img {
    height: 32px;
    width: auto;
}

.site-header .logo-right img {
    height: 24px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-shop-link {
    font-family: 'Eurostile', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.header-cart-link {
    position: relative;
    display: flex;
    align-items: center;
}
.header-cart-icon {
    height: 20px;
    width: auto;
}

.header-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 600px) {
    .header-actions {
        gap: 10px;
    }
}

/* Shop page - grille 2 colonnes */
.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #eee;
}

.shop-item {
    display: block;
    background: #fff;
}

.shop-item-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-item-info {
    padding: 16px 20px 24px;
    font-family: 'Eurostile', sans-serif;
}

.shop-item-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.shop-item-price {
    font-size: 14px;
    color: #444;
}

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

/* Footer (identique sur toutes les pages) */
.site-footer {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    padding: 20px 0;
}

/* Hero (homepage) - image plein cadre */
body.home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
}

.hero > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero .hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 14px 32px 16px;
    border-radius: 4px;
}

.hero .hero-badge-title {
    height: 32px;
    width: auto;
}

.hero .hero-badge-sub {
    font-family: 'Eurostile', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #111;
    margin-top: 4px;
}

.hero .hero-brands {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero .hero-brands img {
    height: 28px;
    width: auto;
}

.hero .hero-brands .divider {
    width: 1px;
    height: 22px;
    background: #fff;
}

/* Product page - plein Ã©cran sans scroll, header/footer fixes */
body.single-product {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

body.single-product .site-header {
    grid-row: 1;
}

body.single-product #primary {
    grid-row: 2;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.single-product #primary #main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.single-product .site-footer {
    grid-row: 3;
}

.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.woocommerce div.product .woocommerce-product-gallery__trigger {
    display: none !important;
}

.product-title-svg {
    max-height: 44px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.woocommerce div.product .summary,
.woocommerce div.product .summary * {
    font-family: 'Eurostile', sans-serif;
}

.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper,
.woocommerce div.product .flex-viewport,
.woocommerce div.product ul.slides,
.woocommerce div.product .woocommerce-product-gallery__image {
    height: 100% !important;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.woocommerce div.product .flex-control-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    background: #111;
    border-radius: 999px;
    padding: 7px 12px;
    width: fit-content;
    margin: 0;
}

.woocommerce div.product .flex-control-nav li {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
    transition: background-color 0.3s ease;
}

.woocommerce div.product .flex-control-nav li img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.woocommerce div.product .flex-control-nav li:has(img.flex-active) {
    background: #fff;
}

.woocommerce div.product .summary {
    width: 100%;
    height: 100%;
    float: none;
    padding: 48px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
}

.summary-brands {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-brands img {
    height: 20px;
    width: auto;
}

.summary-brands .divider {
    width: 1px;
    height: 16px;
    background: #ccc;
}

.woocommerce div.product .summary .product_title {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1;
}

.woocommerce div.product p.price {
    font-size: 17px;
    font-weight: 400;
    color: #111;
    margin-bottom: 32px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 15px;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-badges {
    margin-bottom: 24px;
}

.product-badges p {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.woocommerce div.product .stock {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.woocommerce div.product form.cart {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.woocommerce div.product form.cart .quantity {
    width: 56px;
}

.woocommerce div.product form.cart .quantity input {
    width: 100%;
    height: 48px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce div.product .single_add_to_cart_button {
    flex: 0 0 auto;
    width: 180px;
    background: #111;
    color: #fff;
    border: none;
    padding: 0 24px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.woocommerce-product-gallery__image a {
    pointer-events: none;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #333;
}

@media (max-width: 900px) {
    body.single-product {
        height: auto;
        overflow: visible;
        display: block;
    }

    body.single-product #primary,
    body.single-product #primary #main {
        height: auto;
        overflow: visible;
        display: block;
    }

    .woocommerce div.product {
        grid-template-columns: 1fr;
        flex: none;
    }

    .woocommerce div.product .woocommerce-product-gallery {
        height: 70vh;
    }

    .woocommerce div.product .summary {
        height: auto;
        padding: 32px 24px;
    }
}