/*
 Theme Name:  Wulks Child
 Description: Child theme for Wulks — protects customizations from parent theme updates.
 Template:    astra
 Version:     1.0.1
 Author:      Laurens & Claude <3
 Author URI:  https://dotcom-ventures.com
*/

/* =============================================================================
   WULKS PRODUCT CARDS
   Single source of truth for product card appearance.
   Used by: WooCommerce loops (shop, category, homepage widget)
            AND the search results page (via wcas-product-* classes).
   Editing here changes cards everywhere on the site.
   ============================================================================= */

/* WooCommerce outputs the loop as <ul class="products"> — neutralise its
   default float/clearfix styles when we're using our grid layout            */
ul.products.wcas-products-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
}

ul.products.wcas-products-grid::before,
ul.products.wcas-products-grid::after {
    display: none;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.wcas-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    align-content: start;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
/* Compound selectors beat Astra's and Elementor's own product card styles     */
.wcas-product-card,
ul.wcas-products-grid li.wcas-product-card,
.woocommerce ul.wcas-products-grid li.wcas-product-card,
.elementor ul.wcas-products-grid li.wcas-product-card,
.elementor-wc-products ul.wcas-products-grid li.wcas-product-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    text-align: left !important;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

/* Hover: lift + orange border glow */
.wcas-product-card:hover,
.wcas-product-card:focus-visible,
ul.wcas-products-grid li.wcas-product-card:hover,
ul.wcas-products-grid li.wcas-product-card:focus-visible,
.woocommerce ul.wcas-products-grid li.wcas-product-card:hover,
.elementor ul.wcas-products-grid li.wcas-product-card:hover,
.elementor-wc-products ul.wcas-products-grid li.wcas-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #e8730a !important;
}

/* ── Image area ────────────────────────────────────────────────────────────── */
.wcas-product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.wcas-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wcas-product-card:hover .wcas-product-image img {
    transform: scale(1.04);
}

.wcas-product-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

/* ── Badges (Sale, Niet op voorraad) ───────────────────────────────────────── */
.wcas-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: #e8730a;
    color: #ffffff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wcas-badge-oos  { background: #ef4444; }
.wcas-badge-sale { background: #16a34a; }

/* ── Card details ──────────────────────────────────────────────────────────── */
.wcas-product-details {
    padding: 16px 18px 18px;
}

.wcas-product-category {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.wcas-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcas-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 8px;
}

/* ── Price ─────────────────────────────────────────────────────────────────── */
.wcas-product-price {
    font-size: 17px;
    font-weight: 700;
    color: #e8730a;
    white-space: nowrap;
}

/* WooCommerce wraps sale prices in <del> (was) and <ins> (now).
   del = grey strikethrough so it reads clearly as "was"
   ins = orange, no underline                                                 */
.wcas-product-price del,
.wcas-product-price del * {
    color: #6b7280 !important;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 4px;
}

.wcas-product-price ins,
.wcas-product-price ins * {
    color: #e8730a !important;
    text-decoration: none;
    font-weight: 700;
}

/* ── Rating ────────────────────────────────────────────────────────────────── */
.wcas-product-rating {
    font-size: 13px;
    color: #f59e0b;
    white-space: nowrap;
}

.wcas-product-rating small {
    color: #9ca3af;
    font-size: 12px;
}

/* ── Button ────────────────────────────────────────────────────────────────── */
.wcas-product-button,
ul.wcas-products-grid li.wcas-product-card .wcas-product-button,
.woocommerce ul.wcas-products-grid li.wcas-product-card .wcas-product-button,
.elementor ul.wcas-products-grid li.wcas-product-card .wcas-product-button {
    width: 100%;
    padding: 10px;
    background: #e8730a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.wcas-product-button:hover,
ul.wcas-products-grid li.wcas-product-card .wcas-product-button:hover,
.woocommerce ul.wcas-products-grid li.wcas-product-card .wcas-product-button:hover,
.elementor ul.wcas-products-grid li.wcas-product-card .wcas-product-button:hover {
    background: #c9620a !important;
    color: #ffffff !important;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .wcas-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .wcas-product-image {
        height: 160px;
    }
}
/* =============================================================================
   Wulks Header Icons
   Targets the 3 icon widgets in the Elementor header container.
   - Orange icons at rest
   - Subtle orange pill background on hover
   - Crisp sizing (no blurry scaling)
   - Cart item count badge
   ============================================================================= */

/* ── Icon boxes (search + account) ─────────────────────────────────────────── */

/* The icon box wrapper */
.elementor-location-header .elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-location-header .elementor-widget-icon .elementor-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The icon itself — force orange, crisp size */
.elementor-location-header .elementor-widget-icon-box .elementor-icon,
.elementor-location-header .elementor-widget-icon-box .elementor-icon svg,
.elementor-location-header .elementor-widget-icon-box .elementor-icon i,
.elementor-location-header .elementor-widget-icon-box svg path,
.elementor-location-header .elementor-widget-icon-box svg circle {
    fill: #e8730a !important;
    color: #e8730a !important;
    stroke: none !important;
}

/* Icon box link wrapper — pill hover */
.elementor-location-header .elementor-widget-icon-box a.elementor-icon,
.elementor-location-header .elementor-widget-icon-box .elementor-icon-box-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.elementor-location-header .elementor-widget-icon-box a.elementor-icon:hover,
.elementor-location-header .elementor-widget-icon-box:hover .elementor-icon {
    background-color: #fdf5ef;
}

/* Hide the icon-box title (only want the icon) */
.elementor-location-header .elementor-widget-icon-box .elementor-icon-box-title {
    display: none;
}

/* ── Cart widget (Menu Cart) ────────────────────────────────────────────────── */

/* Force cart icon orange */
.elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon svg path,
.elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon svg,
.elementor-location-header .elementor-widget-woocommerce-menu-cart .e-font-icon-svg {
    fill: #e8730a !important;
    color: #e8730a !important;
}

/* Cart toggle button — match pill style */
.elementor-location-header .elementor-menu-cart__toggle .elementor-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 20px !important;
    transition: background-color 0.2s ease !important;
    min-height: unset !important;
}

.elementor-location-header .elementor-menu-cart__toggle .elementor-button:hover {
    background-color: #fdf5ef !important;
}

/* Cart price text — hide (keep count only) */
.elementor-location-header .elementor-menu-cart__toggle .elementor-button-text {
    display: none !important;
}

/* Cart item count bubble — orange pill style */
.elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon-qty {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    background: #e8730a !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    border-radius: 9px !important;
    text-align: center !important;
    border: 2px solid #f5f7f9 !important; /* matches header bg colour */
    box-sizing: border-box !important;
}

/* Hide count when cart is empty (Elementor sets data-counter="0") */
.elementor-location-header .elementor-button-icon-qty[data-counter="0"] {
    display: none !important;
}

/* ── wcas-trigger-search icon box ───────────────────────────────────────────── */
/* The search trigger has class wcas-trigger-search — target it specifically */

.elementor-location-header .wcas-trigger-search .elementor-icon,
.elementor-location-header .wcas-trigger-search .elementor-icon svg path,
.elementor-location-header .wcas-trigger-search .elementor-icon i {
    fill: #e8730a !important;
    color: #e8730a !important;
}

.elementor-location-header .wcas-trigger-search .elementor-icon-box-wrapper,
.elementor-location-header .wcas-trigger-search a.elementor-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 20px !important;
    transition: background-color 0.2s ease !important;
}

.elementor-location-header .wcas-trigger-search:hover .elementor-icon-box-wrapper,
.elementor-location-header .wcas-trigger-search a.elementor-icon:hover {
    background-color: #fdf5ef !important;
}

/* =============================================================================
   Header icons — force outline rendering across all browsers
   Working profile: fill:none stroke:#e8730a  ✓
   Broken profile:  fill:#e8730a stroke:none  ✗ (Elementor kit overrides fill)
   Fix: explicitly set fill:none on SVG shapes with maximum specificity
   ============================================================================= */

html body .elementor-location-header .elementor-widget-icon-box span.elementor-icon svg circle,
html body .elementor-location-header .elementor-widget-icon-box span.elementor-icon svg path,
html body .elementor-location-header .elementor-widget-icon-box span.elementor-icon svg line,
html body .elementor-location-header .elementor-widget-icon-box span.elementor-icon svg rect,
html body .elementor-location-header .elementor-widget-icon-box span.elementor-icon svg polyline {
    fill: none !important;
    stroke: #e8730a !important;
    stroke-width: 1.75px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Cart widget SVG shapes */
html body .elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon svg circle,
html body .elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon svg path,
html body .elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon svg line {
    fill: none !important;
    stroke: #e8730a !important;
    stroke-width: 1.75px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Icon box hover pill */
html body .elementor-location-header .elementor-widget-icon-box .elementor-icon-box-wrapper {
    border-radius: 22px !important;
    padding: 8px !important;
    transition: background-color 0.18s ease !important;
    cursor: pointer !important;
}
html body .elementor-location-header .elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
    background-color: #fdf5ef !important;
}
html body .elementor-location-header .elementor-widget-icon-box .elementor-icon-box-content {
    display: none !important;
}

/* Cart button */
html body .elementor-location-header .elementor-menu-cart__toggle .elementor-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 10px !important;
    height: 44px !important;
    border-radius: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: unset !important;
    transition: background-color 0.18s ease !important;
}
html body .elementor-location-header .elementor-menu-cart__toggle .elementor-button:hover {
    background-color: #fdf5ef !important;
}
html body .elementor-location-header .elementor-button-text { display: none !important; }
html body .elementor-location-header .elementor-button-icon-qty {
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    background: #e8730a !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    border-radius: 10px !important;
    border: none !important;
    position: static !important;
    box-sizing: border-box !important;
}

/* =============================================================================
   Wulks Shop page — hide WooCommerce default loop, show only our widget
   ============================================================================= */

/* Hide the entire WooCommerce default output on the shop page */
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering,
body.woocommerce-shop ul.products,
body.woocommerce-shop .woocommerce-info,
body.woocommerce-shop .woocommerce-no-results,
body.woocommerce-shop p.woocommerce-result-count {
    display: none !important;
}

/* Hide WooCommerce page title (shown by Astra above Elementor content) */
body.woocommerce-shop h1.entry-title,
body.woocommerce-shop .woocommerce-products-header__title {
    display: none !important;
}

/* Fix our widget layout */
.wcas-shop-all .wcas-results-grid {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    width: 100% !important;
}

.wcas-shop-all .wcas-filters-sidebar {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    padding: 24px !important;
    border-radius: 12px !important;
    position: sticky !important;
    top: 24px !important;
}

.wcas-shop-all .wcas-filter-section {
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.wcas-shop-all .wcas-filter-section:last-of-type {
    border-bottom: none !important;
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
}

.wcas-shop-all .wcas-filter-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    margin: 0 0 12px !important;
    display: block !important;
}

.wcas-shop-all #wcas-shop-cat,
.wcas-shop-all #wcas-shop-brand {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: #374151 !important;
    display: block !important;
}

.wcas-shop-all .wcas-price-range {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.wcas-shop-all .wcas-price-range input {
    flex: 1 !important;
    padding: 9px 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    min-width: 0 !important;
}

.wcas-shop-all .wcas-filter-option {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-size: 14px !important;
    color: #4b5563 !important;
}

.wcas-shop-all .wcas-filter-apply {
    width: 100% !important;
    padding: 11px !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: block !important;
    transition: background-color 0.2s ease !important;
}

.wcas-shop-all .wcas-filter-apply:hover {
    background: #e8730a !important;
}

.wcas-shop-all .wcas-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
}

@media (max-width: 900px) {
    .wcas-shop-all .wcas-results-grid {
        grid-template-columns: 1fr !important;
    }
    .wcas-shop-all .wcas-filters-sidebar {
        position: static !important;
    }
    .wcas-shop-all .wcas-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .wcas-shop-all .wcas-products-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ── Commerce card z-index — ensure Astra header stays on top ── */
.wulks-hero-section {
    position: relative;
    isolation: isolate;
}
.wulks-commerce-card-anchor,
.wulks-commerce-card {
    z-index: 50 !important;
}
.ast-main-header-wrap,
#ast-fixed-header,
.site-header {
    z-index: 9999 !important;
}
/* =============================================================================
 *  WULKS PRODUCT PAGE — Layout fixes  v2
 *  Append to bottom of style.css in child theme root
 *  Replace the previous block you added (delete everything after line 369)
 *  ============================================================================= */

/* ── 1. HEADER Z-INDEX ────────────────────────────────────────────────────────
 * Targets Elementor's sticky header using its actual live classes.
 * elementor-sticky--active is added when the header sticks to the top.
 * z-index 200 beats our card (z-index 50) so header always stays on top.
 * ---------------------------------------------------------------------------- */
.elementor-sticky,
.elementor-sticky--effects,
.elementor-sticky--active {
    z-index: 200 !important;
}

.elementor-location-header {
    z-index: 200 !important;
    position: relative !important;
}

/* ── 2. COMMERCE CARD — explicitly below header ──────────────────────────────*/
.wulks-commerce-card-anchor {
    z-index: 50 !important;
}
.wulks-commerce-card {
    z-index: 50 !important;
}

/* ── 3. CANVAS WIDTH — align with gallery and specs ─────────────────────────
 * Remove Elementor's own padding from the widget container so the canvas
 * controls its own spacing. Canvas uses --canvas-pad:48px internally
 * which matches wulks-gallery-wrap (28px left) and wulks-specs__inner (48px).
 * ---------------------------------------------------------------------------- */
.elementor-widget-html {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-widget-html > .elementor-widget-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Force the Elementor section/container wrapping the canvas to full width */
.elementor-section:has(.skg-canvas),
.e-con:has(.skg-canvas) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ── 4. GALLERY AND SPECS — full width, flush edges ─────────────────────────*/
.wulks-hero-section,
.wulks-gallery-wrap,
.wulks-specs {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* ── 5. RESPONSIVE ───────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
    .wulks-gallery-wrap { padding-right: 20px !important; }
    .skg-canvas { --canvas-pad: 20px; }
}

/* ── Wulks Gallery widget — allow full height ── */
.elementor-widget-wulks-gallery,
.elementor-widget-wulks-gallery .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
