/*
Theme Name: WC Modul Tema
Theme URI: https://example.com
Description: Letvægts WooCommerce tema med Hello Elementor som base. Indeholder komplet mersalgsmodul, admin-panel og performance-optimering — klar til brug uden plugins.
Author: Dit Navn
Author URI: https://example.com
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 7.0
WC tested up to: 8.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wcm-theme
Tags: woocommerce, elementor, ecommerce, child-theme
*/

/* === BASE === */
:root {
    --wcm-primary:   #111111;
    --wcm-accent:    #111111;
    --wcm-muted:     #888888;
    --wcm-border:    #e8e8e8;
    --wcm-radius:    8px;
    --wcm-surface:   #ffffff;
    --wcm-bg:        #f7f7f7;
}

/* === WOOCOMMERCE RESET === */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* === BADGES === */
.wcm-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
    pointer-events: none;
}
.wcm-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

/* === WISHLIST === */
.wcm-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid var(--wcm-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    padding: 0;
}
.wcm-wishlist-btn:hover {
    border-color: var(--wcm-primary);
}

/* === DISCOUNT TABLE === */
.wcm-discount-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}
.wcm-discount-table th,
.wcm-discount-table td {
    border: 1px solid var(--wcm-border);
    padding: 8px 12px;
    text-align: left;
}
.wcm-discount-table thead {
    background: var(--wcm-bg);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--wcm-muted);
}

/* === OFTEN BOUGHT TOGETHER === */
.wcm-frequently-bought {
    margin-top: 24px;
    background: var(--wcm-bg);
    border: 1px solid var(--wcm-border);
    border-radius: var(--wcm-radius);
    padding: 18px 20px;
}
.wcm-fbt__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--wcm-muted);
    margin-bottom: 12px;
}
.wcm-fbt__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wcm-fbt__list label {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
}

/* === STOCK WARNING === */
.wcm-stock-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #c0392b;
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    border-radius: 5px;
    padding: 6px 12px;
    margin-bottom: 14px;
}

/* === SHIPPING PROGRESS === */
.wcm-shipping-bar {
    background: var(--wcm-bg);
    border: 1px solid var(--wcm-border);
    border-radius: var(--wcm-radius);
    padding: 14px 18px;
    margin-bottom: 24px;
}
.wcm-shipping-bar p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #333;
}
.wcm-shipping-bar__track {
    height: 4px;
    background: #e5e5e5;
    border-radius: 99px;
    overflow: hidden;
}
.wcm-shipping-bar__fill {
    height: 100%;
    border-radius: 99px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* === CHECKOUT UPSELLS === */
.wcm-checkout-upsells {
    margin-bottom: 28px;
}
.wcm-checkout-upsells h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--wcm-muted);
    margin-bottom: 14px;
}
.wcm-checkout-upsells__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.wcm-upsell-card {
    border: 1px solid var(--wcm-border);
    border-radius: var(--wcm-radius);
    overflow: hidden;
    background: var(--wcm-surface);
}
.wcm-upsell-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.wcm-upsell-card__info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wcm-upsell-card__info strong {
    font-size: 12px;
    line-height: 1.3;
}
.wcm-btn-add {
    font-size: 11px !important;
    padding: 5px 8px !important;
    text-align: center;
}

/* === ORDER BUMP === */
.wcm-order-bump {
    border: 1.5px solid #d0d0d0;
    border-radius: var(--wcm-radius);
    padding: 16px;
    margin-bottom: 20px;
    background: #fafafa;
}
.wcm-bump-label {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
}
.wcm-bump-label img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.wcm-bump-label strong {
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}
.wcm-bump-label p {
    font-size: 12px;
    color: var(--wcm-muted);
    margin: 0;
}

/* === MINICART === */
.wcm-minicart {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 95vw;
    height: 100vh;
    background: var(--wcm-surface);
    box-shadow: -2px 0 40px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    transition: right .38s cubic-bezier(.4,0,.2,1);
}
.wcm-minicart.is-open { right: 0; }
.wcm-minicart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--wcm-border);
}
.wcm-minicart__header strong {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.wcm-minicart__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wcm-muted);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background .15s;
    padding: 0;
}
.wcm-minicart__close:hover { background: var(--wcm-bg); }
.wcm-minicart__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}
.wcm-minicart__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--wcm-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wcm-minicart__footer .button {
    text-align: center;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--wcm-radius);
}
.wcm-minicart__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 999998;
    display: none;
    backdrop-filter: blur(2px);
}
.wcm-minicart__overlay.is-open { display: block; }

/* === THANK YOU UPSELL === */
.wcm-thankyou-upsell {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--wcm-border);
}
.wcm-thankyou-upsell h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--wcm-muted);
    margin-bottom: 20px;
}
.wcm-thankyou-upsell__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.wcm-ty-card {
    border: 1px solid var(--wcm-border);
    border-radius: var(--wcm-radius);
    overflow: hidden;
    background: var(--wcm-surface);
}
.wcm-ty-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.wcm-ty-card__info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wcm-ty-card__info strong { font-size: 13px; }
.wcm-ty-card__info .button {
    margin-top: 4px;
    text-align: center;
    font-size: 12px;
    padding: 8px;
}

/* === RECENTLY VIEWED === */
.wcm-recently-viewed {
    margin-top: 64px;
}
.wcm-recently-viewed h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--wcm-muted);
    margin-bottom: 24px;
}
