/**
 * WooCommerce shop loop + blocks — Deadweight catalog look.
 */

/* --- Archive shell (inside .dw-woocommerce) --- */
.dw-woocommerce .dw-shop-catalog {
    padding: var(--section-pad-y, 6rem) var(--section-pad-x, 2rem);
    position: relative;
    max-width: 100%;
}

.dw-woocommerce .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

/* Toolbar: result count + ordering */
.dw-shop-catalog .woocommerce-result-count {
    color: var(--text-muted);
    font-family: var(--font-base, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dw-shop-catalog .woocommerce-ordering {
    margin-bottom: 2rem;
}

.dw-shop-catalog .woocommerce-ordering select {
    background: #111;
    border: 1px solid #333;
    color: var(--text-pure);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: var(--font-base, 'Inter', sans-serif);
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2339FF14' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.dw-shop-catalog .woocommerce-ordering select:hover,
.dw-shop-catalog .woocommerce-ordering select:focus {
    border-color: var(--neon-green);
    outline: none;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

/* --- Classic loop: grid (override Woo floats) --- */
.dw-shop-grid.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
}

.dw-shop-grid.products::before,
.dw-shop-grid.products::after {
    display: none !important;
    content: none !important;
}

.dw-shop-grid.products li.product.dw-product-li {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.dw-shop-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dw-shop-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.dw-shop-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.dw-shop-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Card inner */
.dw-product-card {
    height: 100%;
}

.dw-product-card .woocommerce-loop-product__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.dw-product-card .card-img-container img,
.dw-product-card .card-img-container .woocommerce-placeholder {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Title: neon green (shop / archive loop) */
.dw-product-card .woocommerce-loop-product__title,
.dw-product-card .woocommerce-loop-product__title a {
    font-family: var(--font-massive, 'Anton', sans-serif);
    font-size: 1.8rem;
    letter-spacing: 1px;
    line-height: 1.2;
    max-width: 100%;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-weight: 900;
    color: var(--neon-green, #39ff14);
    text-decoration: none;
}

.dw-product-card .woocommerce-loop-product__title a:hover,
.dw-product-card .woocommerce-loop-product__title:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}

/* Shop archive: titles outside our card wrapper (fallback) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    color: var(--neon-green, #39ff14) !important;
    text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
    color: #fff !important;
}

.dw-loop-rating {
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
}

.dw-loop-rating .star-rating {
    color: var(--neon-green);
    font-size: 0.85rem;
}

.dw-loop-rating .star-rating span::before {
    color: var(--neon-green);
}

.dw-loop-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dw-loop-excerpt p {
    margin: 0 0 0.35em;
}

.dw-loop-excerpt p:last-child {
    margin-bottom: 0;
}

.dw-card-info-main {
    flex: 1;
    min-width: 0;
    max-width: 72%;
}

.dw-price-wrap {
    flex-shrink: 0;
    text-align: right;
    align-self: flex-end;
}

.dw-price-wrap .price {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--neon-green);
    display: block;
}

.dw-price-wrap .price del {
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0.85;
    margin-right: 0.35rem;
}

.dw-price-wrap .price ins {
    text-decoration: none;
}

/* Sale badge */
.dw-product-card .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--neon-green);
    color: var(--bg-deep-black);
    font-family: var(--font-massive, 'Anton', sans-serif);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    line-height: 1;
    border-radius: 0;
    min-height: 0;
    min-width: 0;
    font-weight: 900;
}

.dw-product-card .card-img-container {
    position: relative;
}

/* Add to cart / Select options */
.dw-product-card .button,
.dw-product-card a.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-family: var(--font-massive, 'Anton', sans-serif);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    background: transparent;
    border: 2px solid #444;
    color: var(--text-pure);
    padding: 1.2rem;
    font-size: 1.5rem;
    width: 100%;
    min-height: 50px;
    border-radius: 0;
    margin-top: auto;
}

.dw-product-card:hover .button,
.dw-product-card:hover a.button {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: var(--bg-deep-black);
    box-shadow: 0 0 10px var(--neon-green);
}

.dw-product-card .added_to_cart {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--neon-green);
    font-weight: 700;
    text-align: center;
}

/* Pagination */
.dw-shop-catalog .woocommerce-pagination {
    margin-top: 4rem;
    text-align: center;
}

.dw-shop-catalog .woocommerce-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.dw-shop-catalog .woocommerce-pagination ul li {
    margin: 0;
    border: none;
    display: inline-block;
}

.dw-shop-catalog .woocommerce-pagination a,
.dw-shop-catalog .woocommerce-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid #333;
    color: var(--text-pure);
    font-weight: 700;
    text-decoration: none;
    background: #111;
}

.dw-shop-catalog .woocommerce-pagination a:hover,
.dw-shop-catalog .woocommerce-pagination span.current {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

/* No products */
.dw-shop-catalog .woocommerce-info {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: var(--text-pure);
    max-width: 1200px;
    margin: 2rem auto;
}

/* --- Cart: Proceed to checkout (classic + blocks) --- */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart a.checkout-button.button.alt,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button.button {
    background: var(--neon-green, #39ff14) !important;
    color: var(--bg-deep-black, #050505) !important;
    border: 2px solid var(--neon-green, #39ff14) !important;
    border-radius: 0 !important;
    font-family: var(--font-massive, 'Anton', sans-serif) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35) !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart a.checkout-button.button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button.button:hover {
    background: #fff !important;
    color: var(--bg-deep-black, #050505) !important;
    border-color: #fff !important;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35) !important;
}

body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
.wc-block-cart .wc-block-cart__submit-container .wc-block-components-button {
    background-color: var(--neon-green, #39ff14) !important;
    color: var(--bg-deep-black, #050505) !important;
    border: 2px solid var(--neon-green, #39ff14) !important;
    border-radius: 0 !important;
    font-family: var(--font-massive, 'Anton', sans-serif) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35) !important;
}

body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:hover,
.wc-block-cart .wc-block-cart__submit-container .wc-block-components-button:hover {
    background-color: #fff !important;
    color: var(--bg-deep-black, #050505) !important;
    border-color: #fff !important;
}

/* --- WooCommerce Blocks (Shop page built with blocks) --- */
.wc-block-grid__products,
ul.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.wc-block-grid__product,
li.wc-block-grid__product {
    background: rgba(20, 20, 20, 0.6) !important;
    border: 1px solid rgba(57, 255, 20, 0.1) !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.wc-block-grid__product:hover {
    transform: translateY(-8px);
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.25) !important;
}

.wc-block-grid__product .wc-block-grid__product-image {
    height: 380px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 2rem !important;
    background: #0a0a0a !important;
    overflow: hidden !important;
}

.wc-block-grid__product .wc-block-grid__product-image img {
    object-fit: contain !important;
    max-height: 100% !important;
    width: auto !important;
    transition: transform 0.5s ease !important;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
    transform: scale(1.05);
}

.wc-block-grid__product .wc-block-grid__product-title {
    font-family: var(--font-massive, 'Anton', sans-serif) !important;
    font-size: 1.8rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--neon-green, #39ff14) !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.2 !important;
}

.wc-block-grid__product .wc-block-grid__product-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.wc-block-grid__product .wc-block-grid__product-title a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}

.wc-block-grid__product .wc-block-grid__product-price {
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    color: var(--neon-green) !important;
    margin-bottom: 1rem !important;
}

.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .wc-block-grid__product-add-to-cart.wp-block-button__link,
.wc-block-grid__product a.add_to_cart_button {
    background: transparent !important;
    border: 2px solid #444 !important;
    color: var(--text-pure) !important;
    border-radius: 0 !important;
    font-family: var(--font-massive, 'Anton', sans-serif) !important;
    text-transform: uppercase !important;
    font-size: 1.5rem !important;
    padding: 1.2rem !important;
    width: 100% !important;
    margin-top: auto !important;
}

.wc-block-grid__product:hover .wp-block-button__link,
.wc-block-grid__product:hover a.add_to_cart_button {
    background: var(--neon-green) !important;
    border-color: var(--neon-green) !important;
    color: var(--bg-deep-black) !important;
    box-shadow: 0 0 10px var(--neon-green) !important;
}

.wp-block-woocommerce-product-query .wc-block-grid__products,
.wp-block-woocommerce-handpicked-products .wc-block-grid__products {
    margin-top: 2rem;
}

@media (max-width: 850px) {
    .dw-shop-grid.products,
    .wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .dw-shop-grid.products,
    .wc-block-grid__products {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .dw-product-card .woocommerce-loop-product__title {
        font-size: 1.5rem;
    }
}

/* --- Single product: comfortable page insets --- */
body.single-product .dw-woocommerce > .woocommerce {
    box-sizing: border-box;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 5vw, 3.5rem);
    padding-right: clamp(1.25rem, 5vw, 3.5rem);
    padding-top: clamp(1rem, 2.5vw, 2rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

/* Extra breathing room below fixed header (in addition to .dw-site-main top pad) */
body.single-product main.dw-site-main.dw-woocommerce {
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

/* --- Single product: neon Add to cart, links, readable selects --- */
body.single-product .woocommerce button.single_add_to_cart_button,
body.single-product .woocommerce .single_add_to_cart_button.button.alt,
body.single-product form.cart button[type='submit'].single_add_to_cart_button,
body.single-product form.cart button[type='submit'].alt:not(.minus):not(.plus) {
    background: var(--neon-green, #39ff14) !important;
    color: var(--bg-deep-black, #050505) !important;
    border: 2px solid var(--neon-green, #39ff14) !important;
    border-radius: 0 !important;
    font-family: var(--font-massive, 'Anton', sans-serif) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 1rem 1.75rem !important;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35) !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

body.single-product .woocommerce button.single_add_to_cart_button:hover,
body.single-product .woocommerce .single_add_to_cart_button.button.alt:hover,
body.single-product form.cart button[type='submit'].single_add_to_cart_button:hover,
body.single-product form.cart button[type='submit'].alt:not(.minus):not(.plus):hover {
    background: #fff !important;
    color: var(--bg-deep-black, #050505) !important;
    border-color: #fff !important;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35) !important;
}

/* Hyperlinks in product area (not primary buttons / product loop cards) */
body.single-product .woocommerce .product a:not(.button):not(.woocommerce-LoopProduct-link):not(.pswp__button) {
    color: var(--neon-green, #39ff14);
    text-decoration-color: rgba(57, 255, 20, 0.5);
}

body.single-product .woocommerce .product a:not(.button):not(.woocommerce-LoopProduct-link):not(.pswp__button):hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

body.single-product .woocommerce .woocommerce-breadcrumb a {
    color: var(--neon-green, #39ff14);
}

body.single-product .woocommerce .woocommerce-breadcrumb a:hover {
    color: #fff;
}

/* Tabs (Description / Additional information) */
body.single-product .woocommerce-tabs ul.tabs li a {
    color: var(--neon-green, #39ff14) !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--text-pure, #fff) !important;
    border-bottom-color: var(--neon-green, #39ff14) !important;
}

body.single-product .woocommerce-Tabs-panel a {
    color: var(--neon-green, #39ff14);
}

body.single-product .woocommerce-Tabs-panel a:hover {
    color: #fff;
}

/* Size / variation dropdowns and quantity */
body.single-product .woocommerce form.cart select,
body.single-product .woocommerce .variations select,
body.single-product .woocommerce .variations td.value select {
    background-color: #141414 !important;
    color: var(--text-pure, #fff) !important;
    border: 2px solid rgba(57, 255, 20, 0.35) !important;
    border-radius: 0 !important;
    padding: 0.85rem 2.75rem 0.85rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: var(--font-base, 'Inter', sans-serif) !important;
    cursor: pointer;
    min-height: 48px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%2339FF14' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

body.single-product .woocommerce form.cart select:hover,
body.single-product .woocommerce .variations select:hover,
body.single-product .woocommerce .variations td.value select:hover {
    border-color: var(--neon-green, #39ff14) !important;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
}

body.single-product .woocommerce form.cart select:focus,
body.single-product .woocommerce .variations select:focus,
body.single-product .woocommerce .variations td.value select:focus {
    border-color: var(--neon-green, #39ff14) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.35), 0 0 20px rgba(57, 255, 20, 0.15);
}

body.single-product .woocommerce .variations label,
body.single-product .woocommerce .variations th.label label {
    color: var(--text-pure, #fff) !important;
    font-weight: 700;
}

body.single-product .woocommerce .reset_variations {
    color: var(--neon-green, #39ff14) !important;
}

body.single-product .woocommerce .quantity .qty {
    background: #141414 !important;
    color: var(--text-pure, #fff) !important;
    border: 2px solid rgba(57, 255, 20, 0.35) !important;
    border-radius: 0 !important;
    min-height: 48px;
    padding: 0.5rem !important;
}

/* --- Single product: hide SKU / category / tags / brand row --- */
body.single-product div.product .product_meta,
body.single-product .woocommerce div.product .product_meta {
    display: none !important;
}

body.single-product .wp-block-woocommerce-product-meta {
    display: none !important;
}
