/*
 * imprezole skin — makes the shop look like imprezole.pl (light, violet, Poppins, pill buttons,
 * violet panels, charcoal footer). It only overrides main.css / responsive.css; delete the
 * `imprezuj-skin` enqueue in functions.php and the shop is back to its old dark look.
 * Tokens mirror app/globals.css of the imprezole.pl app.
 */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f6fb;
    --card: #ffffff;
    --card-alt: #eeecf6;
    --border: rgba(31, 27, 46, 0.1);
    --border-strong: rgba(31, 27, 46, 0.18);
    --text: #1f1b2e;
    --text-muted: #625f72;
    --text-faint: #86839a;

    --brand: #6246ea;
    --brand-2: #8b6dff;
    --brand-deep: #241663;
    --pink: #f0479b;
    --tint: #ebe6ff;
    --tint-soft: #f5f2ff;
    --glow: #d9d0ff;
    --ink: #1f1b2e;

    /* main.css paints buttons/badges with `background-image: var(--gradient)`: a solid colour has to be
       written as a one-stop gradient for that property to accept it. */
    --grad-1: var(--brand);
    --grad-2: var(--brand-2);
    --grad-3: var(--brand);
    --gradient: linear-gradient(var(--brand), var(--brand));

    --star: #f5a524;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --font: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { font-size: 15px; }
h1, h2, h3 { letter-spacing: -0.02em; }
.section-heading h2 { font-weight: 600; letter-spacing: -0.02em; }
.shop-archive-header h1 { font-weight: 600; }
.eyebrow { letter-spacing: 0.12em; }

/* ---------- Buttons: pills, solid violet ---------- */
.btn { font-weight: 600; }
.btn-primary { background-image: var(--gradient); background-color: var(--brand); box-shadow: none; }
.btn-primary:hover { opacity: 1; background-color: var(--brand-deep); background-image: none; }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: none;
}
.btn-secondary:hover { background: var(--bg-alt); }

/* ---------- Top bar: charcoal, with the way back to the marketplace ---------- */
.topbar { background: var(--ink); border-bottom: 0; }
.topbar-inner { color: rgba(255, 255, 255, 0.72); }
.topbar-phone { color: #fff; }
.topbar-back { color: #fff; font-weight: 600; }
.topbar-back:hover { color: var(--glow); }
.topbar-back .icon { color: var(--glow); }

/* ---------- Header ---------- */
.main-header, .main-nav { background: var(--bg); }
.site-logo-text { font-weight: 700; letter-spacing: -0.03em; }
.site-logo-text .dot { color: var(--brand); }
.site-search-input { background: var(--bg-alt); border-color: transparent; }
.site-search-input:focus { background: #fff; border-color: var(--brand); }
.site-search-btn { background-image: var(--gradient); background-color: var(--brand); }
.header-actions { margin-left: auto; }
.header-action:hover { background: var(--bg-alt); }
.header-action-cart { color: var(--text); }
.mobile-menu-toggle { border-radius: 999px; }
.main-nav-list a { font-weight: 500; }
.main-nav-list a:hover { color: var(--brand); }

/* ---------- Hero: violet panel over the photo, like the marketplace home ---------- */
.hero-card { border: 0; border-radius: var(--radius-lg); background: var(--brand-deep); }
.hero-overlay {
    background: linear-gradient(100deg, rgba(30, 16, 92, 0.93) 0%, rgba(98, 70, 234, 0.62) 46%, rgba(98, 70, 234, 0.04) 100%);
}
.hero-title { font-weight: 600; letter-spacing: -0.03em; }
.hero-title .text-gradient, .hero-title span {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--glow);
}
.hero-card .btn-primary { background: #fff; background-image: none; color: var(--brand); }
.hero-card .btn-primary:hover { background: var(--tint); }
.hero-card .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero-card .btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Cards: white, hairline, soft radius ---------- */
.category-card, .product-card { background: var(--card); border-color: var(--border); border-radius: var(--radius-md); }
.category-card:hover, .product-card:hover { border-color: rgba(98, 70, 234, 0.45); }
.benefits-panel { background: var(--bg-alt); border-color: transparent; }
.benefit-icon { background: #fff; color: var(--brand); }
.product-card-media { background: var(--card-alt); }
.product-wishlist { background: rgba(255, 255, 255, 0.92); color: var(--text); }
.product-wishlist:hover, .product-wishlist.is-active { color: var(--pink); }
.product-wishlist.is-active { background: #fff; }
.product-card-media .product-add-btn { box-shadow: 0 6px 14px rgba(98, 70, 234, 0.35); }
.product-name { font-weight: 500; }
.product-price { font-weight: 600; }
.imprezuj-stars { background: linear-gradient(90deg, #d9d6e6 0 100%); }
.trust-badge svg, .footer-strip-inner .icon { color: var(--brand); }

/* ---------- Inspiration / stats / newsletter ---------- */
.inspiration-card { background: var(--bg-alt); border-color: transparent; }
.stats-panel {
    background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 60%, var(--brand-2) 100%);
    border-color: transparent;
}
.stat { border-color: rgba(255, 255, 255, 0.16); }
.stat-value { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; font-weight: 700; }
.stat-label { color: rgba(255, 255, 255, 0.78); }
.newsletter-card {
    background:
        radial-gradient(110% 90% at 100% 100%, rgba(240, 71, 155, 0.7) 0%, transparent 60%),
        linear-gradient(150deg, var(--brand-deep), var(--brand) 60%, var(--brand-2));
    border-color: transparent;
}
.newsletter-text h2 { color: #fff; font-weight: 600; }
.newsletter-text p { color: rgba(255, 255, 255, 0.82); }
.newsletter-input { background: #fff; border-color: transparent; color: var(--text); }
.newsletter-submit.btn-primary, .newsletter-card .btn-primary { background: #fff; background-image: none; color: var(--brand); }
.newsletter-promise { color: rgba(255, 255, 255, 0.72); }
.newsletter-promise.is-error { color: #ffd0d0; }
.newsletter-promise.is-success { color: #d3ffe9; }

/* ---------- Footer: charcoal, like the marketplace ---------- */
.site-footer { background: var(--ink); color: #fff; border-top: 0; margin-top: 72px; }
.footer-strip { background: rgba(255, 255, 255, 0.05); border-bottom-color: rgba(255, 255, 255, 0.08); }
.footer-strip-inner { color: rgba(255, 255, 255, 0.72); }
.footer-strip-inner .icon { color: var(--glow); }
.site-footer .site-logo-text { color: #fff; }
.site-footer .site-logo-text .dot { color: var(--glow); }
.footer-col h3 { color: #fff; font-weight: 600; }
.footer-col a, .footer-col li, .footer-col-brand p { color: rgba(255, 255, 255, 0.66); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-link-strong { color: var(--glow); font-weight: 600; }
.footer-social-icon { color: rgba(255, 255, 255, 0.66); border-color: rgba(255, 255, 255, 0.2); }
.footer-social-icon:hover { color: #fff; border-color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }
.payment-icons span { color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.16); }
.copyright { color: rgba(255, 255, 255, 0.5); }

/* ---------- WooCommerce: notices and stock readable on white ---------- */
.woocommerce-message { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.woocommerce-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.woocommerce-info { background: var(--tint-soft); color: var(--text); border-color: var(--tint); }
p.stock.in-stock { color: #047857; }
p.stock.out-of-stock { color: #b91c1c; }
.product-remove a:hover { color: #b91c1c; }
::selection { background: rgba(139, 109, 255, 0.3); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---------- Layout fixes that only become visible on a light background ---------- */
/* footer strip: .container's own padding shorthand was winning over the strip's vertical padding */
.footer-strip-inner { padding-top: 16px; padding-bottom: 16px; }
/* pages rendered by index.php carry an inline `padding:64px 0` on the container: the text touched the window edge */
.site-main > .container { padding: 56px 20px 72px !important; }
.site-main article > h1 { font-size: 30px; font-weight: 600; margin-bottom: 20px; }

/* single product: gallery + summary side by side instead of a full-width photo */
div.type-product[id^="product-"] { display: grid; gap: 32px 48px; align-items: start; }
@media (min-width: 900px) {
    div.type-product[id^="product-"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    div.type-product[id^="product-"] .woocommerce-tabs { grid-column: 1 / -1; }
    div.type-product[id^="product-"] .related, div.type-product[id^="product-"] .upsells { grid-column: 1 / -1; }
}
div.type-product[id^="product-"] .woocommerce-product-gallery { margin-bottom: 0; }
div.type-product[id^="product-"] .woocommerce-product-gallery img { max-height: 560px; object-fit: cover; }
div.type-product[id^="product-"] .summary { padding-top: 6px; }
.product_title { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
div.type-product .price { font-size: 26px; font-weight: 600; margin: 12px 0; }
.woocommerce-product-gallery__trigger { background: rgba(255, 255, 255, 0.92); }
.woocommerce-tabs .tabs a { font-weight: 500; }
.woocommerce-tabs .tabs .active a, .woocommerce-tabs .tabs li.active a { color: var(--text); }

/* stars: the accessible text inside the fill span must never show */
.star-rating span { font-size: 0; }
.star-rating span::before { font-size: 14px; }
.star-rating::before { color: #d9d6e6; }

/* links inside WooCommerce forms */
.woocommerce-LostPassword a, .lost_password a, .woocommerce-privacy-policy-link { color: var(--brand); }
.woocommerce-breadcrumb { color: var(--text-muted); }
.woocommerce-breadcrumb a:hover { color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }

.woocommerce-product-gallery__trigger { display: none; } /* its icon font is not loaded (shows an empty box) */

/* ---------- Mobile: the top bar keeps only the way back to the marketplace and the phone ---------- */
@media (max-width: 700px) {
    .topbar-left .topbar-item:not(.topbar-back) { display: none; }
}

/* ---------- Cart: rules written for product cards leaked into the cart table ---------- */
/* .product-name (card title: clamped, display:-webkit-box) also lands on the cart's <td class="product-name"> */
td.product-name, td.product-name a { display: table-cell; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; min-height: 0; font-size: 14px; font-weight: 500; color: var(--text); }
td.product-name a { display: inline; }
td.product-name a:hover { color: var(--brand); }
td.product-remove { width: 1%; white-space: nowrap; }
td.product-thumbnail { width: 88px; }
td.product-thumbnail img { width: 56px; max-width: none; }
td.product-price, td.product-subtotal { font-weight: 600; }
td.product-quantity .qty { width: 72px; height: 44px; border-radius: 999px; text-align: center; }

/* coupon + update buttons: one tidy row instead of a raw input and two loose buttons */
td.actions { padding-top: 20px; }
td.actions .coupon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; float: left; }
td.actions .coupon label { display: none; }
td.actions #coupon_code {
    height: 44px; min-width: 190px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 999px;
    background: #fff; color: var(--text); font: inherit; font-size: 14px; outline: none;
}
td.actions #coupon_code:focus { border-color: var(--brand); }
td.actions > .button, td.actions button[name="update_cart"] { float: right; background-image: none; background: var(--bg-alt); color: var(--text) !important; border: 1px solid var(--border-strong); }
td.actions > .button:hover, td.actions button[name="update_cart"]:hover { background: var(--card-alt); }
td.actions .coupon .button { background-image: var(--gradient); }
@media (max-width: 700px) {
    td.actions .coupon, td.actions > .button, td.actions button[name="update_cart"] { float: none; width: 100%; }
    td.actions .coupon input, td.actions .coupon .button { flex: 1 1 100%; }
    td.actions > .button, td.actions button[name="update_cart"] { margin-top: 10px; }
}

/* ---------- Phones: nothing may be wider than the window ---------- */
.newsletter-card > * { min-width: 0; }
.newsletter-input { min-width: 0; }
@media (max-width: 700px) {
    .newsletter-card { padding: 28px 22px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-submit { width: 100%; }

    /* the cart table: WooCommerce's own stacking CSS is disabled in this theme, so do it here
       (WooCommerce prints each cell's label in data-title) */
    .woocommerce-cart-form table.shop_table_responsive thead { display: none; }
    .woocommerce-cart-form table.shop_table_responsive,
    .woocommerce-cart-form table.shop_table_responsive tbody,
    .woocommerce-cart-form table.shop_table_responsive tr,
    .woocommerce-cart-form table.shop_table_responsive td { display: block; width: 100%; }
    .woocommerce-cart-form table.shop_table_responsive tr.cart_item {
        position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; row-gap: 4px;
        padding: 16px 32px 16px 0; border-bottom: 1px solid var(--border);
    }
    .woocommerce-cart-form tr.cart_item td { border: 0; padding: 0; width: auto; }
    .woocommerce-cart-form tr.cart_item td.product-thumbnail { grid-row: 1 / span 4; width: auto; }
    .woocommerce-cart-form tr.cart_item td.product-remove { position: absolute; top: 14px; right: 0; width: auto; }
    .woocommerce-cart-form tr.cart_item td.product-price::before,
    .woocommerce-cart-form tr.cart_item td.product-quantity::before,
    .woocommerce-cart-form tr.cart_item td.product-subtotal::before {
        content: attr(data-title) ": "; color: var(--text-muted); font-weight: 400; font-size: 12.5px;
    }
    .woocommerce-cart-form tr.cart_item td.product-quantity { display: flex; align-items: center; gap: 8px; }
    .woocommerce-cart-form tr.cart_item td.product-quantity .qty { width: 72px; }
    .woocommerce-cart-form tr td.actions { padding: 18px 0 0; border: 0; }
    .cart_totals { max-width: none; }
}
