/**
 * Klay Theme — WooCommerce Overrides
 *
 * Dark-theme styling for all WooCommerce block-based elements.
 * Uses theme.json CSS custom properties for full style-variation support.
 *
 * @package Klay
 */

/* ==========================================================================
   CSS Variables (inherit from theme.json)
   ========================================================================== */

:root {
    --klay-woo-radius: 12px;
    --klay-woo-radius-sm: 8px;
    --klay-woo-radius-pill: 9999px;
    --klay-woo-transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   1. PRODUCT CARDS (Archive / Shop Grid)
   ========================================================================== */

/* Product card container */
.klay-product-card {
    transition: transform var(--klay-woo-transition);
}

/* Text + price row — full width */
.klay-product-card > .wp-block-group {
    width: 100%;
}

.klay-product-card:hover {
    transform: translateY(-4px);
}

/* Product image container — border hover from reference */
.wc-block-components-product-image,
.klay-product-card .wp-block-woocommerce-product-image {
    overflow: hidden;
    border-radius: var(--klay-woo-radius);
    border: 1px solid var(--wp--preset--color--border-main);
    background: var(--wp--preset--color--card-bg);
    transition: border-color var(--klay-woo-transition);
}

.klay-product-card:hover .wp-block-woocommerce-product-image {
    border-color: var(--wp--preset--color--brand-primary);
}

/* Product image hover zoom + opacity transition */
.wc-block-components-product-image img,
.klay-product-card .wp-block-woocommerce-product-image img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    border-radius: 0;
    opacity: 0.8;
}

.klay-product-card:hover .wp-block-woocommerce-product-image img,
.wc-block-components-product-image:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Product title links */
.wc-block-components-product-name,
.klay-product-card .wp-block-post-title a {
    color: var(--wp--preset--color--text-heading);
    text-decoration: none;
    transition: color var(--klay-woo-transition);
}

.klay-product-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--brand-primary);
}

/* Product price */
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
}

.wc-block-components-product-price .wc-block-components-product-price__value {
    color: var(--wp--preset--color--text-heading);
}

.wc-block-components-product-price del {
    color: var(--wp--preset--color--text-body);
    opacity: 0.5;
}

.wc-block-components-product-price ins {
    color: var(--wp--preset--color--brand-primary);
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================================
   2. SALE BADGE
   ========================================================================== */

.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-image .wc-block-components-product-sale-badge {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: var(--klay-woo-radius-pill);
    border: none;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* ==========================================================================
   3. STAR RATINGS
   ========================================================================== */

.wc-block-components-product-rating .wc-block-components-product-rating__stars span::before,
.star-rating span::before {
    color: var(--wp--preset--color--brand-primary);
}

.wc-block-components-product-rating .wc-block-components-product-rating__stars::before,
.star-rating::before {
    color: var(--wp--preset--color--border-main);
}

/* ==========================================================================
   4. ADD TO CART / PRODUCT BUTTONS
   ========================================================================== */

/* Product button in archive grid */
.wc-block-components-product-button .wp-element-button,
.wp-block-woocommerce-product-button .wp-element-button,
.wp-block-button .wc-block-components-product-button__button {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
    border: none;
    border-radius: var(--klay-woo-radius-pill);
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--klay-woo-transition);
    width: auto;
    text-align: center;
}

.wc-block-components-product-button .wp-element-button:hover,
.wp-block-woocommerce-product-button .wp-element-button:hover {
    box-shadow: 0 0 20px rgba(217, 251, 6, 0.3);
    transform: translateY(-1px);
}

/* Button container — row layout */
.wc-block-components-product-button,
.wp-block-woocommerce-product-button {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
}

/* "X IN CART" count badge */
.wc-block-components-product-button .wc-block-components-product-button__button--added::after,
.wc-block-components-product-button .added_to_cart + .added_to_cart,
.wp-element-button.added {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* "View Cart" link after adding to cart */
.wc-block-components-product-button .added_to_cart,
.wp-block-woocommerce-product-button .added_to_cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    color: var(--wp--preset--color--text-heading) !important;
    border: 1px solid var(--wp--preset--color--border-main) !important;
    border-radius: var(--klay-woo-radius-pill) !important;
    padding: 12px 24px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    margin-top: 0 !important;
    cursor: pointer;
    transition: all var(--klay-woo-transition);
}

.wc-block-components-product-button .added_to_cart:hover,
.wp-block-woocommerce-product-button .added_to_cart:hover {
    border-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--brand-primary) !important;
    transform: translateY(-1px);
}

/* Single product Add to Cart form */
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button,
.wp-block-woocommerce-add-to-cart-form button.button {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
    border: none !important;
    border-radius: var(--klay-woo-radius-pill) !important;
    padding: 16px 40px !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--klay-woo-transition);
    font-family: var(--wp--preset--font-family--body);
    width: 100%;
}

.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button:hover {
    box-shadow: 0 0 24px rgba(217, 251, 6, 0.35);
    transform: translateY(-2px);
}

/* Quantity input */
.wp-block-woocommerce-add-to-cart-form .quantity input.qty,
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    background-color: var(--wp--preset--color--card-bg);
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-sm);
    padding: 10px 12px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 16px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wp-block-woocommerce-add-to-cart-form .quantity input.qty:focus {
    border-color: var(--wp--preset--color--brand-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 251, 6, 0.15);
}

/* ==========================================================================
   5. CART PAGE
   ========================================================================== */

/* Cart block wrapper */
.wp-block-woocommerce-cart,
.wc-block-cart {
    color: var(--wp--preset--color--text-body);
}

/* Cart items — card-style rows per reference Cart.jsx */
.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color var(--klay-woo-transition);
}

.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row:hover {
    border-color: var(--wp--preset--color--text-heading);
}

.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row td {
    border: none;
    padding: 0;
}

/* Cart item title */
.wc-block-cart .wc-block-components-product-name {
    color: var(--wp--preset--color--text-heading);
    font-weight: 600;
}

.wc-block-cart .wc-block-components-product-name:hover {
    color: var(--wp--preset--color--brand-primary);
}

/* Cart item image — rounded with page bg per reference */
.wc-block-cart .wc-block-cart-item__image {
    background: var(--wp--preset--color--page-bg);
    border-radius: var(--klay-woo-radius-sm);
    overflow: hidden;
}

.wc-block-cart .wc-block-cart-item__image img {
    border-radius: 0;
}

/* Cart item metadata */
.wc-block-cart .wc-block-components-product-metadata {
    color: var(--wp--preset--color--text-body);
    font-size: 13px;
}

/* Quantity selector in cart — bordered pill per reference */
.wc-block-components-quantity-selector {
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-sm);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.wc-block-components-quantity-selector button {
    background: transparent;
    color: var(--wp--preset--color--text-heading);
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    transition: background var(--klay-woo-transition);
}

.wc-block-components-quantity-selector button:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Remove item link — red on hover per reference trash icon */
.wc-block-cart .wc-block-cart-item__remove-link {
    color: var(--wp--preset--color--text-body);
    font-size: 0;
    opacity: 0.6;
    transition: all var(--klay-woo-transition);
}

.wc-block-cart .wc-block-cart-item__remove-link::before {
    content: '✕';
    font-size: 14px;
}

.wc-block-cart .wc-block-cart-item__remove-link:hover {
    color: #ef4444;
    opacity: 1;
}

/* Cart totals sidebar — card container per reference */
.wc-block-cart .wp-block-woocommerce-cart-totals-block {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 128px;
}

.wc-block-cart .wc-block-cart__totals-title {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 18px;
}

.wc-block-cart .wc-block-components-totals-wrapper {
    border-color: var(--wp--preset--color--border-main) !important;
}

.wc-block-cart .wc-block-components-totals-item__label {
    color: var(--wp--preset--color--text-body);
}

.wc-block-cart .wc-block-components-totals-item__value {
    color: var(--wp--preset--color--text-heading);
    font-weight: 600;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--wp--preset--color--brand-primary);
    font-size: 24px;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--heading);
}

/* Proceed to checkout button */
.wc-block-cart__submit-button,
.wc-block-cart .wc-block-components-checkout-return-to-cart-button,
.wc-block-cart .wc-block-cart__submit-button .wc-block-components-button {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
    border: none !important;
    border-radius: var(--klay-woo-radius-pill) !important;
    padding: 16px 32px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--klay-woo-transition);
    width: 100%;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-cart__submit-button .wc-block-components-button:hover {
    box-shadow: 0 0 24px rgba(217, 251, 6, 0.3);
    transform: translateY(-2px);
}

/* Coupon/discount input */
.wc-block-components-totals-coupon input {
    background-color: var(--wp--preset--color--card-bg);
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-sm);
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--body);
}

.wc-block-components-totals-coupon input:focus {
    border-color: var(--wp--preset--color--brand-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 251, 6, 0.15);
}

.wc-block-components-totals-coupon button {
    background-color: var(--wp--preset--color--surface-bg);
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-sm);
    cursor: pointer;
    transition: all var(--klay-woo-transition);
}

.wc-block-components-totals-coupon button:hover {
    border-color: var(--wp--preset--color--brand-primary);
    color: var(--wp--preset--color--brand-primary);
}

/* ==========================================================================
   6. CHECKOUT PAGE
   ========================================================================== */

/* Checkout wrapper */
.wp-block-woocommerce-checkout,
.wc-block-checkout {
    color: var(--wp--preset--color--text-body);
}

/* Section headings — numbered step style per reference Checkout.jsx */
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-title {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wp--preset--color--border-main);
    margin-bottom: 24px;
}

/* Step descriptions */
.wc-block-checkout .wc-block-components-checkout-step__description {
    color: var(--wp--preset--color--text-body);
}

/* Checkout sections spacing */
.wc-block-checkout .wc-block-components-checkout-step {
    margin-bottom: 48px;
}

/* Checkout order summary card — per reference */
.wc-block-checkout .wp-block-woocommerce-checkout-totals-block {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 128px;
}

/* Checkout order summary heading */
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-panel__button {
    color: var(--wp--preset--color--text-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Checkout order item price in lime */
.wc-block-checkout .wc-block-components-order-summary-item__total-price {
    color: var(--wp--preset--color--brand-primary);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
}

/* Checkout order item image */
.wc-block-checkout .wc-block-components-order-summary-item__image img {
    border: 1px solid var(--wp--preset--color--border-main);
}

/* Payment method section — card per reference */
.wc-block-checkout .wc-block-components-payment-method-label {
    color: var(--wp--preset--color--text-heading);
    font-weight: 700;
}

.wc-block-checkout .wc-block-checkout__payment-method {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius);
    padding: 24px;
}

/* Form fields */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-checkout select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input {
    background-color: var(--wp--preset--color--card-bg) !important;
    color: var(--wp--preset--color--text-heading) !important;
    border: 1px solid var(--wp--preset--color--border-main) !important;
    border-radius: var(--klay-woo-radius-sm) !important;
    padding: 14px 16px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 15px;
    transition: border-color var(--klay-woo-transition);
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-text-input textarea:focus {
    border-color: var(--wp--preset--color--brand-primary) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 251, 6, 0.15);
}

/* Form labels */
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout label {
    color: var(--wp--preset--color--text-body);
    font-size: 13px;
}

/* Checkout step borders */
.wc-block-checkout .wc-block-components-checkout-step {
    border-color: var(--wp--preset--color--border-main);
}

.wc-block-checkout .wc-block-components-checkout-step::after {
    border-color: var(--wp--preset--color--border-main);
}

/* Radio buttons / checkboxes */
.wc-block-checkout .wc-block-components-radio-control__input,
.wc-block-checkout input[type="radio"] {
    accent-color: var(--wp--preset--color--brand-primary);
}

.wc-block-checkout .wc-block-components-checkbox__input,
.wc-block-checkout input[type="checkbox"] {
    accent-color: var(--wp--preset--color--brand-primary);
}

/* Shipping options */
.wc-block-checkout .wc-block-components-radio-control__option {
    border-color: var(--wp--preset--color--border-main);
    background: var(--wp--preset--color--card-bg);
    border-radius: var(--klay-woo-radius-sm);
    padding: 16px;
    transition: border-color var(--klay-woo-transition);
}

.wc-block-checkout .wc-block-components-radio-control__option:hover,
.wc-block-checkout .wc-block-components-radio-control__option--checked {
    border-color: var(--wp--preset--color--brand-primary);
}

.wc-block-checkout .wc-block-components-radio-control__label {
    color: var(--wp--preset--color--text-heading);
    font-weight: 600;
}

.wc-block-checkout .wc-block-components-radio-control__secondary-label {
    color: var(--wp--preset--color--text-body);
}

/* Order summary in checkout */
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item {
    border-bottom: 1px solid var(--wp--preset--color--border-main);
}

.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image img {
    border-radius: var(--klay-woo-radius-sm);
}

/* Place order button */
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-button:not(.is-link) {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
    border: none !important;
    border-radius: var(--klay-woo-radius-pill) !important;
    padding: 18px 40px !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--klay-woo-transition);
    width: 100%;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
    box-shadow: 0 0 24px rgba(217, 251, 6, 0.35);
    transform: translateY(-2px);
}

/* Checkout totals */
.wc-block-checkout .wc-block-components-totals-wrapper {
    border-color: var(--wp--preset--color--border-main) !important;
}

.wc-block-checkout .wc-block-components-totals-item__label {
    color: var(--wp--preset--color--text-body);
}

.wc-block-checkout .wc-block-components-totals-item__value {
    color: var(--wp--preset--color--text-heading);
    font-weight: 600;
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--wp--preset--color--brand-primary);
    font-weight: 700;
    font-family: var(--wp--preset--font-family--heading);
}

/* Payment methods */
.wc-block-checkout .wc-block-components-payment-method-label {
    color: var(--wp--preset--color--text-heading);
}

.wc-block-checkout .wc-block-components-payment-method-icons img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* ==========================================================================
   7. MY ACCOUNT — Two-Column Sidebar Layout
   ========================================================================== */

/* Overall account page layout: sidebar + content */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* ---- SIDEBAR NAVIGATION ---- */
.woocommerce-MyAccount-navigation {
    position: sticky;
    top: 120px;
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--wp--preset--color--text-heading);
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all var(--klay-woo-transition);
    border: none;
    position: relative;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--wp--preset--color--page-bg);
    color: var(--wp--preset--color--text-heading);
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    background: var(--wp--preset--color--surface-bg) !important;
    color: var(--wp--preset--color--brand-primary) !important;
    border-left: none !important;
}

/* Add icons via CSS pseudo-elements */
.woocommerce-MyAccount-navigation ul li a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.woocommerce-MyAccount-navigation ul li.is-active a::before {
    /* Lime filter for active state */
    filter: brightness(0) saturate(100%) invert(87%) sepia(51%) saturate(618%) hue-rotate(20deg) brightness(104%) contrast(101%);
    opacity: 1;
}

/* SVG data URIs for each menu item icon */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* Logout item styling */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--wp--preset--color--text-body);
    opacity: 0.6;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    opacity: 1;
    color: #ef4444;
}

/* ---- MAIN CONTENT AREA ---- */
.woocommerce-MyAccount-content {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 16px;
    padding: 40px;
    min-height: 500px;
    color: var(--wp--preset--color--text-body);
}

.woocommerce-MyAccount-content>p:first-child {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content a {
    color: var(--wp--preset--color--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* Dashboard greeting links */
.woocommerce-MyAccount-content>p a {
    color: var(--wp--preset--color--brand-primary);
}

/* ---- ORDER HISTORY TABLE ---- */
.woocommerce-orders-table,
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    color: var(--wp--preset--color--text-body);
}

.woocommerce-orders-table th,
.woocommerce table.shop_table th {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    padding: 16px 12px;
    border-bottom: 2px solid var(--wp--preset--color--border-main);
    text-align: left;
}

.woocommerce-orders-table td,
.woocommerce table.shop_table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--wp--preset--color--border-main);
    vertical-align: middle;
    font-size: 14px;
}

.woocommerce-orders-table tr:hover,
.woocommerce table.shop_table tbody tr:hover {
    background: var(--wp--preset--color--page-bg);
    transition: background var(--klay-woo-transition);
}

/* Order number link */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    color: var(--wp--preset--color--brand-primary);
    font-weight: 700;
}

/* Order status badge */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Table action buttons */
.woocommerce-orders-table .woocommerce-button,
.woocommerce table.shop_table .button {
    background: transparent;
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-pill);
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all var(--klay-woo-transition);
    display: inline-block;
}

.woocommerce-orders-table .woocommerce-button:hover,
.woocommerce table.shop_table .button:hover {
    border-color: var(--wp--preset--color--brand-primary);
    color: var(--wp--preset--color--brand-primary);
}

/* ---- ADDRESS CARDS ---- */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.woocommerce-Address {
    background: var(--wp--preset--color--page-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 12px;
    padding: 24px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.woocommerce-Address-title h3 {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    margin: 0;
}

.woocommerce-Address-title a {
    color: var(--wp--preset--color--brand-primary) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce-Address address {
    font-style: italic;
    color: var(--wp--preset--color--text-body);
    line-height: 1.8;
    font-size: 14px;
}

/* ---- LOGIN / REGISTER FORMS ---- */
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
}

/* Account page login/register side-by-side */
.u-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.u-columns .u-column-1,
.u-columns .u-column-2 {
    width: 100% !important;
}

.u-columns h2 {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 24px;
    margin-bottom: 24px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background-color: var(--wp--preset--color--page-bg);
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-sm);
    padding: 14px 16px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 15px;
    width: 100%;
    transition: border-color var(--klay-woo-transition);
}

.woocommerce form .form-row input.input-text:focus {
    border-color: var(--wp--preset--color--brand-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 251, 6, 0.15);
}

.woocommerce form .form-row label {
    color: var(--wp--preset--color--text-body);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.woocommerce form button.button,
.woocommerce form input[type="submit"] {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
    border: none !important;
    border-radius: var(--klay-woo-radius-pill);
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--klay-woo-transition);
    font-family: var(--wp--preset--font-family--body);
    width: 100%;
}

.woocommerce form button.button:hover {
    box-shadow: 0 0 24px rgba(217, 251, 6, 0.3);
    transform: translateY(-2px);
}

/* Remember me checkbox */
.woocommerce form .form-row .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--text-body);
    font-size: 13px;
}

.woocommerce form .form-row .woocommerce-form__label-for-checkbox input {
    accent-color: var(--wp--preset--color--brand-primary);
}

/* Lost password link */
.woocommerce .lost_password a {
    color: var(--wp--preset--color--text-body);
    font-size: 13px;
    transition: color var(--klay-woo-transition);
}

.woocommerce .lost_password a:hover {
    color: var(--wp--preset--color--brand-primary);
}

/* ---- RESPONSIVE: Stack on mobile ---- */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce-MyAccount-navigation {
        position: static;
    }

    .woocommerce-MyAccount-content {
        padding: 24px;
    }

    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .u-columns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. NOTICES & MESSAGES
   ========================================================================== */

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
    background-color: rgba(217, 251, 6, 0.08) !important;
    color: var(--wp--preset--color--brand-primary) !important;
    border: 1px solid rgba(217, 251, 6, 0.2) !important;
    border-radius: var(--klay-woo-radius-sm);
    padding: 16px 20px;
    font-size: 14px;
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: var(--klay-woo-radius-sm);
    padding: 16px 20px;
    font-size: 14px;
}

.woocommerce-info,
.wc-block-components-notice-banner.is-info {
    background-color: rgba(96, 165, 250, 0.08) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-radius: var(--klay-woo-radius-sm);
    padding: 16px 20px;
    font-size: 14px;
}

.wc-block-components-notice-banner svg {
    fill: currentColor;
}

/* ==========================================================================
   9. SINGLE PRODUCT ENHANCEMENTS
   ========================================================================== */

/* Product gallery — card container per reference SingleProduct.jsx */
.wp-block-woocommerce-product-image-gallery {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: 16px;
    overflow: hidden;
}

.wp-block-woocommerce-product-image-gallery img {
    border-radius: 0;
}

/* Gallery thumbnails — grid below main image per reference */
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.wp-block-woocommerce-product-image-gallery .flex-control-thumbs li {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.wp-block-woocommerce-product-image-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    opacity: 0.6;
    transition: opacity var(--klay-woo-transition);
    cursor: pointer;
}

.wp-block-woocommerce-product-image-gallery .flex-control-thumbs li img:hover,
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
}

/* Product info sticky column — hide scrollbar */
.klay-product-info .wp-block-group {
    scrollbar-width: none;
}

.klay-product-info .wp-block-group::-webkit-scrollbar {
    display: none;
}

/* Product price on single — large, light weight per reference */
.klay-product-info .wp-block-woocommerce-product-price .wc-block-components-product-price {
    font-size: 32px;
    font-weight: 300;
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--text-heading);
}

/* Archive price stays bold */
.wp-block-woocommerce-product-price .wc-block-components-product-price {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--text-heading);
}

.wp-block-woocommerce-product-price .wc-block-components-product-price ins {
    color: var(--wp--preset--color--brand-primary);
    text-decoration: none;
}

/* Product SKU */
.wp-block-woocommerce-product-sku {
    color: var(--wp--preset--color--text-body);
}

/* Variation swatches */
.wp-block-woocommerce-add-to-cart-form table.variations select {
    background-color: var(--wp--preset--color--card-bg);
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-sm);
    padding: 10px 16px;
    font-family: var(--wp--preset--font-family--body);
}

.wp-block-woocommerce-add-to-cart-form table.variations label {
    color: var(--wp--preset--color--text-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Product tabs (if shortcode fallback) */
.woocommerce-tabs .tabs {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    border-bottom: 1px solid var(--wp--preset--color--border-main);
    margin-bottom: 32px;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 12px 24px;
    color: var(--wp--preset--color--text-body);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid transparent;
    transition: all var(--klay-woo-transition);
}

.woocommerce-tabs .tabs li a:hover,
.woocommerce-tabs .tabs li.active a {
    color: var(--wp--preset--color--text-heading);
    border-bottom-color: var(--wp--preset--color--brand-primary);
}

.woocommerce-tabs .entry-content {
    color: var(--wp--preset--color--text-body);
    font-size: 15px;
    line-height: 1.7;
}

.woocommerce-tabs .entry-content h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-heading);
    margin-bottom: 24px;
}

/* Reviews dark mode styling */
#reviews #comments ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

#reviews #reply-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--wp--preset--color--text-heading);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 16px;
}

#reviews #commentform p {
    color: var(--wp--preset--color--text-body);
    font-size: 14px;
    margin-bottom: 16px;
}

#reviews #commentform label {
    display: block;
    color: var(--wp--preset--color--text-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

#reviews #commentform textarea,
#reviews #commentform input[type="text"],
#reviews #commentform input[type="email"],
#reviews #commentform select {
    width: 100%;
    background-color: var(--wp--preset--color--card-bg, #18181b) !important;
    border: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.12)) !important;
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    border-radius: var(--klay-woo-radius-sm, 8px) !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-family: var(--wp--preset--font-family--body) !important;
    box-sizing: border-box !important;
    transition: border-color var(--klay-woo-transition) !important;
}

#reviews #commentform textarea:focus,
#reviews #commentform input[type="text"]:focus,
#reviews #commentform input[type="email"]:focus,
#reviews #commentform select:focus {
    border-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    outline: none !important;
}

#reviews #commentform #submit {
    background-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    color: var(--wp--preset--color--text-on-brand, #000000) !important;
    border: none !important;
    border-radius: var(--klay-woo-radius-pill, 9999px) !important;
    padding: 14px 36px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: opacity var(--klay-woo-transition) !important;
    margin-top: 12px !important;
}

#reviews #commentform #submit:hover {
    opacity: 0.9 !important;
}

#reviews .comment-form-rating .stars a {
    color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
}

/* Related products — same card styling as archive */
.wp-block-woocommerce-related-products .wc-block-components-product-image {
    overflow: hidden;
    border-radius: var(--klay-woo-radius);
    border: 1px solid var(--wp--preset--color--border-main);
    background: var(--wp--preset--color--card-bg);
    transition: border-color var(--klay-woo-transition);
}

.wp-block-woocommerce-related-products .wc-block-components-product-image:hover {
    border-color: var(--wp--preset--color--brand-primary);
}

/* ==========================================================================
   10. MINI CART
   ========================================================================== */

.wc-block-mini-cart__badge {
    background-color: var(--wp--preset--color--brand-primary) !important;
    color: var(--wp--preset--color--text-on-brand) !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
    color: var(--wp--preset--color--text-heading);
    font-family: var(--wp--preset--font-family--heading);
}

/* ==========================================================================
   11. PAGINATION — Circular buttons per reference ShopArchive.jsx
   ========================================================================== */

.wc-block-pagination .wc-block-pagination-page,
.wp-block-query-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--wp--preset--color--text-heading);
    border: 1px solid var(--wp--preset--color--border-main);
    border-radius: var(--klay-woo-radius-pill);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--klay-woo-transition);
    padding: 0;
}

.wc-block-pagination .wc-block-pagination-page:hover,
.wp-block-query-pagination .page-numbers:hover {
    border-color: var(--wp--preset--color--brand-primary);
    color: var(--wp--preset--color--brand-primary);
}

.wc-block-pagination .wc-block-pagination-page--active,
.wp-block-query-pagination .page-numbers.current {
    background-color: var(--wp--preset--color--brand-primary);
    color: var(--wp--preset--color--text-on-brand);
    border-color: var(--wp--preset--color--brand-primary);
}

/* ==========================================================================
   12. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {

    /* Stack single product columns */
    .wp-block-woocommerce-product-image-gallery {
        margin-bottom: 32px;
    }

    /* Full-width buttons on mobile */
    .wc-block-cart__submit-button,
    .wc-block-components-checkout-place-order-button {
        width: 100%;
    }

    /* Account navigation stacks vertically */
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }

    /* Tables become scrollable */
    .woocommerce table.shop_table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {

    /* Smaller padding on mobile */
    .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row td {
        padding: 12px 8px;
    }

    .wc-block-checkout .wc-block-components-text-input input {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }
}

/* ==========================================================================
   13. MODERN AGENCY SINGLE PRODUCT & RELATED ITEMS (KLAY)
   Matches https://agency-block-theme.preview.emergentagent.com/product/1
   ========================================================================== */

/* ==========================================================================
   13. MODERN AGENCY SINGLE PRODUCT & RELATED ITEMS (KLAY)
   Matches https://agency-block-theme.preview.emergentagent.com/product/1
   ========================================================================== */

/* Main page layout */
.single-product-main {
    background-color: var(--wp--preset--color--page-bg, #0f1011) !important;
}

/* --------------------------------------------------------------------------
   1. PRODUCT GALLERY (LEFT COLUMN)
   Hero square frame with 2-column thumbnails underneath (per agency reference)
   -------------------------------------------------------------------------- */

/* Outer gallery wrapper */
.single-product .wp-block-woocommerce-product-image-gallery,
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* The Main 1:1 Aspect Ratio Slider Frame */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background: var(--wp--preset--color--card-bg, #161819) !important;
    border: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.1)) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.single-product .woocommerce-product-gallery__image {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* Badge (Best Seller / On Sale) on Single Product Gallery */
.single-product .woocommerce-product-gallery .onsale,
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper::after,
.single-product .woocommerce-product-gallery .flex-viewport::after {
    content: "BEST SELLER";
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    background-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    color: var(--wp--preset--color--text-on-brand, #000000) !important;
    font-family: var(--wp--preset--font-family--heading, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    padding: 8px 18px !important;
    border-radius: 9999px !important;
    z-index: 25 !important;
    line-height: 1 !important;
    pointer-events: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.single-product .woocommerce-product-gallery .onsale {
    content: "SALE" !important;
}

/* Hide zoom icon on product gallery to prevent overlapping BEST SELLER badge */
.single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Gallery Thumbnails BELOW Main Image (per agency reference) */
.single-product .woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
.single-product .woocommerce-product-gallery .flex-control-thumbs {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 16px !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    clear: both !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.1)) !important;
    background: var(--wp--preset--color--card-bg, #161819) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.65 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    border-radius: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    transform: scale(1.03) !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active),
.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    box-shadow: 0 0 16px rgba(217, 251, 6, 0.2) !important;
}

/* --------------------------------------------------------------------------
   2. PRODUCT SUMMARY (RIGHT COLUMN)
   -------------------------------------------------------------------------- */

/* Category badge */
.single-product .wp-block-post-terms[class*="product_cat"] a {
    color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Title */
.single-product h1.wp-block-post-title {
    font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif) !important;
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
}

/* Price & Rating Row */
.single-product .klay-price-rating-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    margin-bottom: 24px !important;
    flex-wrap: nowrap !important;
}

.single-product .klay-price-rating-row .wc-block-components-product-price,
.single-product .klay-price-rating-row .wp-block-woocommerce-product-price,
.single-product .price {
    font-size: 2.25rem !important;
    font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif) !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.single-product .klay-price-rating-row .wc-block-components-product-price .woocommerce-Price-amount,
.single-product .price .woocommerce-Price-amount {
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
}

/* Rating badge & stars */
.klay-rating-badge,
.single-product .woocommerce-product-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
}

.klay-rating-stars {
    color: #facc15 !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
}

.klay-rating-count,
.single-product .woocommerce-review-link {
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
}

/* Excerpt */
.single-product .wp-block-post-excerpt,
.single-product .wp-block-post-excerpt p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    margin-bottom: 24px !important;
}

/* Product Feature Checklist */
.klay-product-checklist {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 28px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.klay-product-checklist li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #d1d5db !important;
    line-height: 1.5 !important;
}

.klay-product-checklist li::before {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d9fb06' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* --------------------------------------------------------------------------
   3. ADD TO CART FORM & ACTION BUTTONS
   -------------------------------------------------------------------------- */

.single-product form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 28px 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.single-product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.single-product form.cart .quantity input.qty {
    height: 56px !important;
    min-height: 56px !important;
    width: 72px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.12)) !important;
    color: #ffffff !important;
    font-family: var(--wp--preset--font-family--heading, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease !important;
}

.single-product form.cart .quantity input.qty:focus {
    border-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
}

.single-product form.cart button.single_add_to_cart_button {
    height: 56px !important;
    min-height: 56px !important;
    flex: 1 1 auto !important;
    background: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    color: #000000 !important;
    border-radius: 9999px !important;
    border: none !important;
    font-family: var(--wp--preset--font-family--heading, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 32px !important;
    box-shadow: 0 10px 25px -5px rgba(217, 251, 6, 0.3) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.single-product form.cart button.single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 15px 30px -5px rgba(217, 251, 6, 0.45) !important;
}

/* Secondary Shield / Guarantee Button */
.single-product .klay-product-shield-btn {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    border-radius: 50% !important;
    border: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.15)) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.single-product .klay-product-shield-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
}

.single-product .klay-product-shield-btn:hover {
    border-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    background: rgba(217, 251, 6, 0.08) !important;
    transform: translateY(-2px) !important;
}

/* --------------------------------------------------------------------------
   4. SKU & CATEGORY METADATA ROW (SPACE BETWEEN)
   -------------------------------------------------------------------------- */

.single-product .klay-product-meta-row {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.1)) !important;
    padding-top: 24px !important;
    margin-top: 24px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
}

/* SKU styling (Left side) */
.single-product .klay-product-meta-row .wc-block-components-product-sku,
.single-product .klay-product-meta-row .wp-block-woocommerce-product-sku {
    margin: 0 !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
}

.single-product .klay-product-meta-row .wc-block-components-product-sku::before {
    content: none !important;
    display: none !important;
}

.single-product .klay-product-meta-row .wc-block-components-product-sku .wp-block-post-terms__prefix {
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
}

.single-product .klay-product-meta-row .wc-block-components-product-sku .sku {
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    font-weight: 600 !important;
}

/* Category styling (Right side) */
.single-product .klay-product-meta-row .taxonomy-product_cat {
    margin: 0 !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    text-align: right !important;
}

.single-product .klay-product-meta-row .taxonomy-product_cat::before {
    content: "CATEGORY: ";
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    font-weight: 700 !important;
}

.single-product .klay-product-meta-row .taxonomy-product_cat a {
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.single-product .klay-product-meta-row .taxonomy-product_cat a:hover {
    color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
}

/* --------------------------------------------------------------------------
   5. PRODUCT DETAILS & TABS (CONSTRAINED CONTAINER)
   -------------------------------------------------------------------------- */

.single-product .klay-product-details-section > .wp-block-group,
.single-product .klay-product-details-section .wp-block-woocommerce-product-details,
.single-product .klay-product-details-section .woocommerce-tabs,
.single-product .wp-block-woocommerce-product-details.alignwide,
.single-product .wp-block-woocommerce-product-details {
    width: 100% !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 32px !important;
    border-bottom: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.1)) !important;
    padding: 0 0 16px 0 !important;
    margin: 0 0 32px 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 1360px !important;
}

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

.single-product .woocommerce-tabs ul.tabs li a {
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    font-family: var(--wp--preset--font-family--heading, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--wp--preset--color--text-heading, #ffffff) !important;
    border-bottom-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
}

.single-product .woocommerce-tabs .panel {
    background: transparent !important;
    border: none !important;
    color: var(--wp--preset--color--text-body, #d1d5db) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    width: 100% !important;
    max-width: 1360px !important;
    padding: 0 !important;
}

.single-product .woocommerce-Tabs-panel--description p,
.single-product .woocommerce-tabs .panel p {
    max-width: 900px !important;
    margin: 0 0 16px 0 !important;
    color: var(--wp--preset--color--text-body, #9ca3af) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* Hide duplicate "Description" title inside the tab panel */
.single-product .woocommerce-Tabs-panel--description h2,
.single-product .woocommerce-tabs .panel > h2:first-child {
    display: none !important;
}

/* --------------------------------------------------------------------------
   6. RELATED ITEMS SECTION (CONSTRAINED CONTAINER)
   -------------------------------------------------------------------------- */

.single-product .klay-product-related-section > * {
    width: 100% !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Fix Comment/Review Submit Button Size */
#reviews #commentform #submit,
.comment-form #submit,
p.form-submit #submit,
input#submit.submit {
    width: auto !important;
    min-width: 140px !important;
    max-width: 220px !important;
    height: 48px !important;
    min-height: 48px !important;
    display: inline-block !important;
}

/* --------------------------------------------------------------------------
   6. RELATED ITEMS 4-COLUMN GRID
   -------------------------------------------------------------------------- */

.klay-related-grid .wc-block-grid__products,
.klay-related-grid .wp-block-woocommerce-product-template {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .klay-related-grid .wc-block-grid__products,
    .klay-related-grid .wp-block-woocommerce-product-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .klay-related-grid .wc-block-grid__products,
    .klay-related-grid .wp-block-woocommerce-product-template {
        grid-template-columns: 1fr !important;
    }
}

.klay-related-grid .klay-product-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.klay-related-grid .klay-product-card .image-wrapper {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid var(--wp--preset--color--border-main, rgba(255, 255, 255, 0.1)) !important;
    background: var(--wp--preset--color--card-bg, #161819) !important;
    aspect-ratio: 4 / 5 !important;
    transition: border-color 0.3s ease !important;
}

.klay-related-grid .klay-product-card:hover .image-wrapper {
    border-color: var(--wp--preset--color--brand-primary, #d9fb06) !important;
}

.klay-related-grid .klay-product-card .image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.85 !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease !important;
}

.klay-related-grid .klay-product-card:hover .image-wrapper img {
    transform: scale(1.06) !important;
    opacity: 1 !important;
}

.klay-related-grid .klay-product-card .wp-block-woocommerce-product-button {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 16px !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 5 !important;
}

.klay-related-grid .klay-product-card:hover .wp-block-woocommerce-product-button {
    transform: translateY(0) !important;
}

.klay-related-grid .klay-product-card .wp-block-woocommerce-product-button a,
.klay-related-grid .klay-product-card .wp-block-woocommerce-product-button button {
    width: 100% !important;
    background: var(--wp--preset--color--brand-primary, #d9fb06) !important;
    color: #000000 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}





