/*
Theme Name: STAMINA 2026
Theme URI: https://stmn.pl
Author: Antigravity
Description: Custom WooCommerce Light/Dark Theme for STAMINA.
Version: 1.0.0
*/

/* ── CART DRAWER ── */
.cart-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw;
    background: var(--plum); z-index: 9999;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header { background: var(--plum); color: white; padding: 28px 32px 20px 32px; display: flex; justify-content: space-between; align-items: center; }
.cart-title { font-family: var(--font-h); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; line-height: 1; color: white; }
.close-cart { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 32px; font-weight: 300; cursor: pointer; padding: 8px; margin: -8px; transition: color 0.2s ease, transform 0.2s ease; display: flex; align-items: center; justify-content: center; }
.close-cart:hover { color: white; transform: scale(1.1); }

.widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-raised, #F8F8F8); }
.widget_shopping_cart_content.is-loading { pointer-events: none; }
.cart-content { flex: 1; padding: 16px 32px; overflow-y: auto; display: flex; flex-direction: column; margin: 0; list-style: none; }
.cart-item { display: grid !important; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0 !important; border-bottom: 1px solid var(--border); align-items: stretch; margin: 0 !important; }

#cart-drawer .cart-item a { display: inline-flex !important; font-weight: inherit !important; padding: 0 !important; border: none !important; }
#cart-drawer .item-name a { font-weight: 600 !important; }
#cart-drawer .item-actions a.remove { position: static !important; display: inline-block !important; width: auto !important; height: auto !important; border-radius: 0 !important; color: var(--dim, #a9a9a9) !important; font-size: 12px !important; font-weight: 500 !important; text-decoration: underline !important; padding: 0 !important; background: transparent !important; line-height: 1 !important; margin: 0 !important; }
#cart-drawer .item-actions a.remove:hover { color: #FF3366 !important; background: transparent !important; }

.item-img-container { width: 72px; height: 90px; background: #FFF; border: 1px solid var(--border); border-radius: 0; display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; }
.item-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; margin: auto !important; }

.item-details { display: flex; flex-direction: column; justify-content: space-between; }
.item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: -2px; }
.item-name { font-family: var(--font-h); font-weight: 600; font-size: 15px; color: var(--text); margin: 0 0 4px 0; line-height: 1.3; }
.item-name a { color: inherit; text-decoration: none; }
.item-meta { font-size: 12px; color: var(--dim, #a9a9a9); margin: 0; }
.item-price { font-family: var(--font-m); font-weight: 600; font-size: 14px; white-space: nowrap; }

.item-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.qty-controls { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 0; height: 32px; background: #FFFFFF; }
.qty-btn { width: 32px; height: 100%; background: none; border: none; font-family: var(--font-h); font-size: 18px; font-weight: 500; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; outline: none; }
.qty-btn:hover { background: var(--bg-hover, #f1f1f1); color: var(--plum); }
.qty-val { width: 32px; text-align: center; font-family: var(--font-m); font-size: 13px; font-weight: 500; appearance: none; -moz-appearance: textfield; border: none; padding: 0; background: transparent; color: var(--text); outline: none; box-shadow: none; }
.qty-val::-webkit-outer-spin-button, .qty-val::-webkit-inner-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }

.cart-footer { padding: 24px 32px 32px 32px; background: var(--bg-raised); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,0.02); }
.cart-summary-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-family: var(--font-m); font-size: 18px; color: var(--text); font-weight: 600; }
.woocommerce-mini-cart__buttons { margin: 0 !important; display: flex !important; flex-direction: column !important; padding: 0 !important; }
.woocommerce-mini-cart__buttons .button.checkout { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; box-sizing: border-box !important; background: var(--plum) !important; color: white !important; padding: 20px !important; font-family: var(--font-h) !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0.15em !important; text-transform: uppercase !important; text-decoration: none !important; border: none !important; cursor: pointer; transition: background 0.2s ease; border-radius: 0 !important; margin: 0 !important; line-height: 1 !important;}
.woocommerce-mini-cart__buttons .button.checkout:hover { background: var(--plum-l, #4a1528) !important; color: white !important; }
.woocommerce-mini-cart__buttons .button.checkout:active { transform: translateY(1px); }

/* Fix WooCommerce defaults */
p.woocommerce-mini-cart__empty-message { padding: 32px; text-align: center; font-family: var(--font-h); color: var(--dim, #a9a9a9); }

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-sub);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); /* Raised look */
    display: flex;
    flex-direction: column;
    z-index: 99999;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    border-radius: 4px;
    max-width: 680px;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 32px;
}

.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-sec);
    font-family: var(--font-t);
}

.cookie-text strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 2px;
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-secondary {
    background: transparent;
    border: 1px solid var(--border-sub);
    color: var(--text-main);
}
.cookie-secondary:hover {
    border-color: var(--text-main);
}

.cookie-primary {
    background: var(--plum);
    border: 1px solid var(--plum);
    color: #fff;
}
.cookie-primary:hover {
    background: var(--plum-l);
    border-color: var(--plum-l);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .cookie-content {
        flex-direction: column;
        padding: 20px;
        align-items: flex-start;
        gap: 20px;
    }
    .cookie-actions {
        width: 100%;
        flex-direction: column-reverse;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}
