/* 
 * WOOCOMMERCE CUSTOM STYLES - MEET SERIES
 * Design: Arcane / Hextech / Asymmetric
 */

:root {
    --woo-card-bg: rgba(10, 10, 15, 0.95);
    --woo-border: rgba(0, 240, 255, 0.2);
    --woo-glow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* 1. Shop Hero Section */
.shop-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('https://silentworker.fr/wp-content/uploads/2026/04/Illustration_sans_titre-856-scaled.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 5% 150px;
    z-index: 10;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 767px) {
    .shop-hero {
        background-image: url('https://silentworker.fr/wp-content/uploads/2026/04/Illustration_sans_titre-857-scaled.png');
        min-height: 70vh;
        padding: 80px 5% 120px;
    }
}

.shop-hero-content {
    position: relative;
    z-index: 2;
}

.shop-hero-title {
    font-family: var(--font-title);
    font-size: clamp(4rem, 12vw, 10rem);
    color: var(--hexcore-blue);
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 30px rgba(0, 240, 255, 0.4);
    margin: 0;
    line-height: 0.9;
}

.shop-hero-subtitle {
    font-family: var(--font-body);
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
    margin-top: 15px !important;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.shop-hero .floating-tag {
    background: transparent !important;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    box-shadow: none !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.scroll-mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--hexcore-blue);
    border-radius: 10px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: var(--hexcore-blue);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--hexcore-blue);
    letter-spacing: 2px;
    font-weight: 900;
}

@keyframes scroll-wheel {
    0% {
        top: 5px;
        opacity: 1;
    }

    30% {
        top: 15px;
        opacity: 1;
    }

    100% {
        top: 15px;
        opacity: 0;
    }
}


/* Shop Ticker (Removed) */

/* 2. Global Shop Layout Overrides */
.post-type-archive-product .ast-container,
.tax-product_cat .ast-container {
    display: flex !important;
    flex-direction: column !important;
}

.post-type-archive-product #primary,
.tax-product_cat #primary {
    width: 100% !important;
}

.woocommerce-products-header,
.woocommerce-breadcrumb,
.ast-woo-shop-product-category,
.ast-woo-product-category,
.product-category,
.woocommerce-result-count,
.woocommerce-ordering,
.single-product .woocommerce-breadcrumb {
    display: none !important;
    /* Replaced by Shop Hero or explicitly removed */
}

/* 2. Asymmetric Product Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    /* Mobile Default */
    gap: 30px !important;
    padding: 60px 5% !important;
    margin: 0 auto !important;
    max-width: 1600px !important;
    position: relative;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(24, 1fr) !important;
        padding: 100px 5% !important;
    }
}

/* Grunge Texture Background for Shop Loop */
.woocommerce ul.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/shop-background.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 95%);
}

.woocommerce ul.products::after {
    display: none !important;
}

/* Add irregularity to the grid (Editorial/Collage) */
/* Responsive Spans */
.woocommerce ul.products li.product {
    grid-column: span 1 !important;
    /* Mobile/Tablet base */
    z-index: 10;
}

@media (min-width: 1200px) {
    .woocommerce ul.products li.product {
        grid-column: span 8 !important;
        /* Default 3 columns in 24-grid */
    }

    /* First item: Larger, slightly tilted - Reduced span for compactness */
    .woocommerce ul.products li.product:nth-child(1) {
        grid-column: 2 / span 10;
        grid-row: span 1;
        transform: rotate(-1deg);
    }

    /* Second item: Shifted up */
    .woocommerce ul.products li.product:nth-child(2) {
        grid-column: 14 / span 8;
        margin-top: -30px;
    }

    /* Third item: Shifted down */
    .woocommerce ul.products li.product:nth-child(3) {
        grid-column: 4 / span 7;
        margin-top: 30px;
        transform: rotate(1deg);
    }

    /* Fourth item: Large width */
    .woocommerce ul.products li.product:nth-child(4) {
        grid-column: 12 / span 12;
        margin-top: -10px;
    }

    /* Fifth item: Small and isolated */
    .woocommerce ul.products li.product:nth-child(5) {
        grid-column: 3 / span 6;
        margin-top: -20px;
    }
}

/* 3. Product Card Enhancements */
.woocommerce ul.products li.product {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-deep);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--woo-glow);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Dynamic Scanning Light Line - Diagonal Strict Following */
.woocommerce ul.products li.product::after {
    content: "";
    position: absolute;
    inset: -20%;
    /* Expanded to allow diagonal coverage */
    z-index: 5;
    background: linear-gradient(115deg,
            transparent 0%,
            transparent var(--shine-p1, 0%),
            rgba(255, 255, 255, 0.4) var(--shine-p2, 0%),
            transparent var(--shine-p3, 0%),
            transparent 100%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.woocommerce ul.products li.product:hover::after {
    opacity: 1;
}

/* Remove gloss line */
.woocommerce ul.products li.product::before {
    display: none;
}

/* Loot Badges */
.loot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 20;
    padding: 4px 12px;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.7rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.badge-athlete {
    background: var(--hexcore-blue);
    color: #000;
    box-shadow: 0 0 10px var(--hexcore-blue);
}

.badge-street {
    background: var(--jinx-purple);
    box-shadow: 0 0 10px var(--jinx-purple);
}

.badge-hexcore {
    background: var(--gold-warning);
    color: #000;
    box-shadow: 0 0 10px var(--gold-warning);
}

.badge-exclu {
    background: #222;
    color: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: none;
}

.ast-onsale-card {
    display: none !important;
}

/* 3b. Exclusive Product Handling */
.woocommerce ul.products li.product.is-exclu {
    /* opacity: 0.7; */
    filter: grayscale(0.1);
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
}

.woocommerce ul.products li.product.is-exclu .woocommerce-LoopProduct-link {
    pointer-events: none;
    cursor: default;
}

.woocommerce ul.products li.product.is-exclu .astra-shop-summary-wrap {
    flex: none !important;
    padding-bottom: 10px !important;
    min-height: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px) translateY(-5px);
    /* Double move for drama */
    border-color: var(--hexcore-blue) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

/* Reveal Animation */
.woocommerce ul.products li.product.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.woocommerce ul.products li.product.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Shop Controls (Result Count & Ordering) */
.woocommerce-notices-wrapper {
    margin-top: 20px;
    padding: 0 5%;
}

.woocommerce-result-count {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-light);
    margin: 30px 5% !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.woocommerce-ordering {
    margin: 30px 5% !important;
}

.woocommerce-ordering select {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid var(--hexcore-blue) !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-family: var(--font-body);
}

/* Image Hextech Reveal */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    transition: transform 0.8s ease;
    filter: saturate(0.8) contrast(1.1);
}

.woocommerce ul.products li.product:hover img {
    filter: none;
}

/* Product Info Overlay */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-title);
    font-size: 1.5rem !important;
    color: #fff !important;
    padding: 20px 20px 5px !important;
    text-transform: uppercase;
    text-align: center !important;
}

.woocommerce ul.products li.product .price {
    color: var(--gold-warning) !important;
    font-size: 1.2rem !important;
    padding: 0 20px 20px !important;
    font-family: var(--font-body);
    font-weight: 700 !important;
    text-align: center !important;
}

/* 4. "Add to Cart" Button - Hextech Style */
.woocommerce ul.products li.product .button {
    background: var(--jinx-purple) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-family: var(--font-title) !important;
    text-transform: uppercase !important;
    padding: 15px 25px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    width: 100%;
    text-align: center;
    border: none !important;
    letter-spacing: 1px;
    margin-top: auto !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--hexcore-blue) !important;
    box-shadow: 0 0 15px var(--hexcore-blue);
}

/* 5. Single Product Page - Cinematic Layout */
.woocommerce.single-product #primary {
    max-width: 90%;
    margin: 0 auto;
    float: none !important;
}

.woocommerce div.product {
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
}

.woocommerce div.product div.images {
    width: 40% !important;
    margin-bottom: 40px;
    float: none !important;
}

.woocommerce div.product div.images img {
    border: 2px solid var(--hexcore-blue);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: transform 0.5s ease;
}

.woocommerce div.product div.images img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.25);
}


.woocommerce div.product .summary {
    width: 55% !important;
    padding-left: 0;
    float: none !important;
}

@media (max-width: 768px) {
    .woocommerce div.product {
        flex-direction: column;
    }

    .woocommerce div.product div.images,
    .woocommerce div.product .summary {
        width: 100% !important;
    }
}

.woocommerce div.product .product_title {
    font-family: var(--font-title);
    font-size: 4rem !important;
    color: var(--hexcore-blue);
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.woocommerce div.product .price {
    color: var(--gold-warning) !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    margin-bottom: 25px !important;
    display: inline-block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Quantity Input Styling */
.woocommerce div.product .quantity {
    display: inline-flex;
    margin-right: 15px;
}

.woocommerce div.product .quantity input.qty {
    width: 60px !important;
    height: 55px !important;
    background: #111 !important;
    background-color: #111 !important;
    color: #fff !important;
    border: 2px solid var(--hexcore-blue) !important;
    font-family: var(--font-mono) !important;
    font-size: 1.2rem !important;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.woocommerce div.product .cart .single_add_to_cart_button {
    background: var(--jinx-purple) !important;
    font-family: var(--font-title) !important;
    padding: 18px 45px !important;
    font-size: 1.3rem !important;
    border-radius: 0 !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative;
    top: -2px;
}

.woocommerce div.product .cart .single_add_to_cart_button:hover {
    background: var(--hexcore-blue) !important;
    color: #000 !important;
    box-shadow: 0 0 25px var(--hexcore-blue);
    transform: translateY(-2px);
}

.product_meta {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.product_meta a {
    color: var(--hexcore-blue);
}

/* 6. Tabs Hextech Style */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 80px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    margin: 0 10px 0 0 !important;
    padding: 12px 25px !important;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: var(--hexcore-blue) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #fff !important;
    letter-spacing: 1px;
}

.woocommerce .woocommerce-tabs .panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px !important;
    margin-top: -1px;
    /* Overlap border */
}

/* Review Form Styling */
#review_form_wrapper #reply-title {
    font-family: var(--font-title);
    color: #fff;
    text-transform: uppercase;
    font-size: 1.5rem;
}

#review_form_wrapper .comment-form input,
#review_form_wrapper .comment-form textarea {
    background: #111 !important;
    background-color: #111 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    padding: 15px !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
}

.woocommerce #review_form #respond label {
    color: #fff !important;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

#review_form_wrapper .comment-form input:focus,
#review_form_wrapper .comment-form textarea:focus {
    border-color: var(--hexcore-blue) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

#review_form_wrapper .submit {
    background: var(--jinx-purple) !important;
    color: #fff !important;
    font-family: var(--font-title) !important;
    padding: 15px 30px !important;
    border-radius: 0 !important;
    border: none !important;
    text-transform: uppercase;
    cursor: pointer;
}

/* 7. Cart & Checkout (Minimalist Dark) */
.woocommerce-cart .alt,
.woocommerce-checkout .alt {
    background: var(--jinx-purple) !important;
    border: none !important;
}

.woocommerce table.shop_table {
    border: 1px solid #333 !important;
    border-radius: 0 !important;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border-top: 1px solid #222 !important;
    color: #ccc;
}


.woocommerce-js form .form-row label {
    color: #fff;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* 9. WooCommerce Blocks Checkout Styles */

/* Country/Region Select Container */
.wc-block-components-address-form .wc-blocks-components-select__container {
    background-color: rgba(10, 10, 15, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    height: 52px !important;
    padding: 0 !important;
}

/* Select Element */
.wc-block-components-address-form .wc-blocks-components-select__select {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    padding: 22px 15px 5px !important;
    height: 100% !important;
    width: 100% !important;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
}

/* Label Styling */
.wc-block-components-address-form .wc-blocks-components-select__label {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    top: 6px !important;
    left: 15px !important;
    font-family: var(--font-body) !important;
}

/* Expand Arrow (SVG) */
.wc-block-components-address-form .wc-blocks-components-select__expand {
    fill: #ffffff !important;
}

/* Fix for native dropdown list (options) */
.wc-block-components-address-form select,
.wc-block-components-address-form .wc-blocks-components-select__select {
    color-scheme: dark !important;
    background-color: #0a0a0f !important; /* Ensure the select itself has a dark background for the menu to follow */
}

.wc-block-components-address-form select option,
#billing-country option,
.wc-block-components-address-form .wc-blocks-components-select__select option {
    background-color: #111 !important;
    color: #ffffff !important;
}

.wc-block-components-text-input input {
    background-color: rgba(10, 10, 15, 0.8) !important;
    color: #fff !important;
}

/* End of WOOCOMMERCE CUSTOM STYLES */

/* 8. My Account Page - Layout & Aesthetics */

.woocommerce-account main#main {
    padding: 10px;
}

.woocommerce-account main#main article .woocommerce h2 {
    text-align: center;
}

.woocommerce-account .site-content {
    padding-top: 30px !important;
    background: #000;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    border-right: 1px solid rgba(0, 240, 255, 0.1);
    padding-right: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
    background: rgba(181, 0, 255, 0.1);
    border-color: var(--jinx-purple);
    box-shadow: 0 0 10px rgba(181, 0, 255, 0.2);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--jinx-purple);
}

.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label {
    top: 2px !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    padding-left: 50px;
    color: var(--text-light);
    font-family: var(--font-body);
}

.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--hexcore-blue);
    text-decoration: none;
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-shadow: 0 0 8px var(--hexcore-blue);
}

/* End of WOOCOMMERCE CUSTOM STYLES */