/*
Theme Name: Astra Child
Template: astra
*/
@import url('../astra/style.css');

/* =============================================
   KEEPER iD — OVERFLOW FIX
   ============================================= */

html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* =============================================
   KEEPER iD — GLOBAL FONT
   ============================================= */

body,
h1, h2, h3, h4, h5, h6,
p, span, a, li,
.woocommerce-loop-product__title,
.product_title,
.kid-shop-title,
button, .button,
.nav-link, .menu-item a,
input, select, textarea {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.product_title,
.kid-shop-title,
.woocommerce-loop-product__title {
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

button, .button, .btn,
.wc-block-components-button,
.single_add_to_cart_button {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.main-header-menu .menu-item a,
.ast-main-header-wrap .menu-item a {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* =============================================
   KEEPER iD — HIDE UNWANTED ELEMENTS
   ============================================= */

.wc-block-components-express-payment,
.woocommerce-product-page-express-payment,
#payment .payment_method_stripe_googlepay,
.wc-stripe-googlepay-button-wrapper {
    display: none !important;
}

span.woo-selected-variation-item-name {
    display: none !important;
}

/* =============================================
   KEEPER iD — SHOP PAGE — BASE ONLY
   (detailed component styles are in css/kid-shop.css)
   ============================================= */

body.post-type-archive-product {
    background-color: #0A0A0A !important;
}

body.post-type-archive-product #page,
body.post-type-archive-product #content,
body.post-type-archive-product .site-content,
body.post-type-archive-product #primary,
body.post-type-archive-product .content-area,
body.post-type-archive-product .ast-container,
body.post-type-archive-product #ast-content-area-wrap,
body.post-type-archive-product .entry-content,
body.post-type-archive-product main.site-main {
    background-color: #0A0A0A !important;
    background: #0A0A0A !important;
    color: #ffffff !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.post-type-archive-product .ast-archive-description,
body.post-type-archive-product .woocommerce-products-header,
body.post-type-archive-product h1.page-title {
    display: none !important;
}

/* =============================================
   KEEPER iD — BODY FONT FIX (global)
   ============================================= */

.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol,
.price,
.kid-stock-status,
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.product_meta,
.product_meta span,
.product_meta a,
.sku,
.posted_in,
.posted_in a,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
label,
.label,
p {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* =============================================
   KEEPER iD — TRUST BAR TEXT
   Scoped to single product page ONLY.
   Shop page trust bar is handled by kid-shop.css.
   ============================================= */

body.single-product .kid-trust-title,
body.single-product .kid-trust-text {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
    display: block !important;
}

body.single-product .kid-trust-sub {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
    font-size: 12px !important;
    color: #888888 !important;
    display: block !important;
    margin-top: 2px !important;
}

/* =============================================
   KEEPER iD — SINGLE PRODUCT PAGE
   ============================================= */

body.single-product #page,
body.single-product #content,
body.single-product .site-content,
body.single-product #primary,
body.single-product .content-area,
body.single-product .ast-container,
body.single-product #ast-content-area-wrap,
body.single-product main.site-main,
body.single-product .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #0A0A0A !important;
}

body.single-product .single-product .summary *,
body.single-product .woocommerce-product-details__short-description *,
body.single-product .price,
body.single-product .woocommerce-Price-amount,
body.single-product .stock,
body.single-product .product_meta,
body.single-product .product_meta *,
body.single-product label,
body.single-product p,
body.single-product span {
    font-family: 'solano-gothic-pro-mvb-light', Arial Narrow, Arial, sans-serif !important;
    font-weight: 700 !important;
}

body.single-product .kid-product-page {
    background: #0A0A0A;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
}

body.single-product .kid-product-breadcrumb {
    padding: 20px 40px;
}

body.single-product .kid-breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888888;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.single-product .kid-breadcrumb-back:hover {
    color: #ffffff;
}

body.single-product .kid-product-grid {
    display: grid !important;
    grid-template-columns: 55% 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    padding: 0 40px 80px 20px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

body.single-product .kid-gallery-col {
    position: sticky;
    top: 40px;
}

body.single-product .kid-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

body.single-product .kid-gallery__item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #1A1A1A;
}

body.single-product .kid-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.single-product .kid-details-col {
    padding-top: 0;
    align-self: start;
}

body.single-product .kid-eyebrow {
    display: block !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FF1E8C;
    margin-bottom: 10px;
}

body.single-product .kid-eyebrow a,
body.single-product .kid-eyebrow span {
    color: #FF1E8C !important;
    text-decoration: none;
}

body.single-product .product_title {
    display: block !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin: 0 0 14px !important;
}

body.single-product .kid-price {
    display: block !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

body.single-product .kid-price ins .woocommerce-Price-amount,
body.single-product .kid-price ins bdi {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

body.single-product .stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

body.single-product .stock.in-stock {
    background: rgba(0, 180, 80, 0.15);
    color: #00B450;
    border: 1px solid #00B450;
}

body.single-product .stock.out-of-stock {
    background: rgba(136, 136, 136, 0.15);
    color: #888888;
    border: 1px solid #888888;
}

body.single-product .stock.on-backorder {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
    border: 1px solid #FFA500;
}

body.single-product .woocommerce-variation-availability {
    display: none !important;
}

body.single-product .woocommerce-variation-add-to-cart,
body.single-product .cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

body.single-product .kid-trust-bar {
    display: flex;
    gap: 0;
    border-top: 1px solid #2A2A2A;
    border-bottom: 1px solid #2A2A2A;
    margin: 24px 0;
    padding: 16px 0;
}

body.single-product .kid-trust-item {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid #2A2A2A;
}

body.single-product .kid-trust-item:last-child {
    border-right: none;
}

body.single-product .kid-trust-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

body.single-product .product_meta {
    clear: both !important;
    display: block !important;
    font-size: 12px;
    color: #888888;
    padding-top: 16px;
    border-top: 1px solid #2A2A2A;
    margin-top: 16px;
    margin-bottom: 24px;
}

body.single-product .product_meta a {
    color: #FF1E8C !important;
    text-decoration: none;
}

body.single-product .kid-accordions {
    border-top: 1px solid #2A2A2A;
}

body.single-product .kid-accordion {
    border-bottom: 1px solid #2A2A2A;
}

body.single-product .kid-accordion__trigger {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

body.single-product .kid-accordion__icon {
    color: #FF1E8C;
    font-size: 18px;
    line-height: 1;
}

body.single-product .kid-accordion__body {
    display: none;
    padding-bottom: 16px;
}

body.single-product .kid-accordion.is-open .kid-accordion__body {
    display: block;
}

body.single-product .kid-accordion__content p,
body.single-product .kid-accordion__content li {
    font-size: 14px;
    color: #888888;
    line-height: 1.7;
}

body.single-product .kid-accordion__content ul {
    padding-left: 16px;
}

body.single-product .kid-size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

body.single-product .kid-size-table th {
    text-align: left;
    padding: 8px 12px;
    background: #1A1A1A;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.single-product .kid-size-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #2A2A2A;
    color: #888888;
}

/* =============================================
   KEEPER iD — IMAGE LIGHTBOX
   ============================================= */

#kid-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#kid-lightbox.active {
    display: flex;
}

#kid-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

#kid-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

#kid-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #FF1E8C;
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =============================================
   KEEPER iD — RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    body.post-type-archive-product .kid-shop-hero {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ============================================================
   KEEPER iD - SIDE CART DRAWER
   ============================================================ */

.kid-side-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    transition: opacity 0.3s ease;
}
.kid-side-cart-overlay.is-open {
    display: block;
}

.kid-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: #1a1a1a;
    border-left: 1px solid #333;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
.kid-side-cart.is-open {
    transform: translateX(0);
}

.kid-side-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}
.kid-side-cart__title {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    color: #ffffff !important;
    margin: 0 !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kid-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6007e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    line-height: 1;
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
}

.ast-cart-menu-wrap .count,
.ast-header-cart-wrap .count,
header .cart-count {
    display: none;
}

.kid-side-cart__close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.kid-side-cart__close:hover { color: #ffffff; }

.kid-side-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}
.kid-side-cart__body::-webkit-scrollbar { width: 4px; }
.kid-side-cart__body::-webkit-scrollbar-track { background: transparent; }
.kid-side-cart__body::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.kid-side-cart__empty {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
}

.kid-side-cart__item {
    display: grid;
    grid-template-columns: 80px 1fr 28px;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #2a2a2a;
}
.kid-side-cart__item:first-child { padding-top: 4px; }
.kid-side-cart__item:last-child { border-bottom: none; }

.kid-side-cart__item-img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
}
.kid-side-cart__img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.kid-side-cart__item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.kid-side-cart__item-name {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    display: block;
}
.kid-side-cart__item-name:hover { color: #e6007e; }
.kid-side-cart__meta {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}
.kid-side-cart__item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.kid-side-cart__qty {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 12px;
    color: #888;
}
.kid-side-cart__item-price {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #e6007e;
}
.kid-side-cart__item-price .woocommerce-Price-amount { color: #e6007e !important; }

.kid-side-cart__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2a2a2a;
    border-radius: 50%;
    color: #888;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.kid-side-cart__remove:hover { background: #e6007e; color: #fff; }

.kid-side-cart__footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #333;
    background: #1a1a1a;
    flex-shrink: 0;
}
.kid-side-cart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}
.kid-side-cart__subtotal-label {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #e6007e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.kid-side-cart__subtotal-amount {
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.kid-side-cart__subtotal-amount .woocommerce-Price-amount { color: #ffffff !important; }

.kid-side-cart__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-family: solano-gothic-pro-mvb-light, "Arial Narrow", Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.25s ease;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}
.kid-side-cart__btn:last-child { margin-bottom: 0; }
.kid-side-cart__btn--outline {
    background: transparent;
    border: 2px solid #555;
    color: #ffffff !important;
}
.kid-side-cart__btn--outline:hover { border-color: #ffffff; color: #ffffff !important; }
.kid-side-cart__btn--primary {
    background: #e6007e;
    border: 2px solid #e6007e;
    color: #ffffff !important;
}
.kid-side-cart__btn--primary:hover { background: #cc006e; border-color: #cc006e; color: #ffffff !important; }

@media (max-width: 480px) {
    .kid-side-cart { width: 100vw; }
}

.admin-bar .kid-side-cart { top: 32px; }
.admin-bar .kid-side-cart-overlay { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .kid-side-cart { top: 46px; }
    .admin-bar .kid-side-cart-overlay { top: 46px; }
}

body:has(#kidSideCart) .ast-site-header-cart-data {
    display: none !important;
}

/* ============================================
   KEEPER iD — PRICE COLORS (GLOBAL)
   ============================================ */

/* RRP / original price (strikethrough) = pink */
.kid-price del .woocommerce-Price-amount,
.kid-price del,
del .woocommerce-Price-amount,
.price del,
.price del .woocommerce-Price-amount {
    color: #e6007e !important;
}

/* Sale price = white */
.kid-price ins .woocommerce-Price-amount,
.kid-price ins,
ins .woocommerce-Price-amount,
.price ins,
.price ins .woocommerce-Price-amount {
    color: #ffffff !important;
}

/* ============================================
   KEEPER iD — PRODUCT-SPECIFIC: POST-5373
   (Goalproof Aqua Foama GK Glove Wash)
   ============================================ */

/* Fix #2: Hide duplicate Availability badge */
.postid-5373 p.ast-stock-detail {
    display: none !important;
}

/* Fix #3: Hide Size Guide accordion */
.postid-5373 .kid-accordions .kid-accordion:nth-child(2) {
    display: none !important;
}