/* =============================================================================
   Shop Customizations – Frontend Styles
   Lädt nur auf Produktseiten (is_product)
   ============================================================================= */


/* Originale WC Variations-Tabelle verstecken */
.variations { display: none !important; }


/* ── Abschnitts-Labels – exakt wie Theme (.form-row label) ── */
.sc-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #000);
    display: block;
    margin-bottom: 8px;
}

/* ── Material-Buttons – passend zu .variable-item.button-variable-item ── */
.sc-material-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sc-mat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none !important;
    background: #F7F7F7 !important;
    color: var(--text, #555) !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    transition: border-color 0.2s, color 0.2s;
}

.sc-mat-btn:hover {
    border-color: var(--border, #DEDACE) !important;
    color: var(--accent, #000) !important;
    background: #F7F7F7 !important;
    box-shadow: none !important;
}

.sc-mat-btn.sc-active {
    border-color: var(--border, #DEDACE) !important;
    color: var(--accent, #000) !important;
    background: #F7F7F7 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* ── Größe-Trigger – passend zu Variation Select (border-radius: 25px) ── */
#gf-size-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    background: #fff !important;
    color: var(--text, #555) !important;
    border: 1px solid var(--border, #DEDACE) !important;
    border-radius: 25px !important;
    padding: 11px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
    margin-bottom: 4px;
}

#gf-size-trigger:hover {
    border-color: var(--primary, #CA9236) !important;
    background: #fff !important;
    box-shadow: none !important;
}

#gf-size-trigger.sc-has-selection {
    color: var(--text, #555) !important;
    border-color: var(--border, #DEDACE) !important;
}

/* ── Modal ── */
#gf-size-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9998;
}

#gf-size-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 9999;
    width: 92%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 12px;
}

#gf-size-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}

#gf-size-hdr h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#gf-size-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 4px 8px;
}

#gf-size-body {
    display: flex;
}

#gf-size-visual {
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    background: var(--background_light, #f5f3eb);
}

/* Größen-Rechtecke */
.gf-rect {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid #bbb;
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 0.15s, background 0.15s;
}

.gf-rect.gf-active {
    border-color: #333;
    background: rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.gf-rect-lbl {
    display: block;
    white-space: nowrap;
    font-size: 10px;
    color: #555;
    position: absolute;
    bottom: 4px;
    right: 6px;
}

/* Modal-Liste */
#gf-size-list {
    width: 310px;
    overflow-y: auto;
    padding: 8px 0;
}

.gf-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.gf-row:hover { background: #f9f8f6; }
.gf-row.gf-sel { background: #f5f3eb; }

.gf-row-name {
    flex: 1;
    font-size: 13px;
}

.gf-row-price {
    white-space: nowrap;
    font-size: 13px;
    color: #555;
}

.gf-row-btn {
    cursor: pointer;
    white-space: nowrap;
    background: transparent !important;
    color: inherit !important;
    border: 1px solid currentColor !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: none !important;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.gf-row-btn:hover,
.gf-row-btn.gf-picked {
    opacity: 1 !important;
    background: transparent !important;
    border-width: 2px !important;
    font-weight: 700 !important;
}

/* ── Rahmen Farbauswahl ── */
.sc-rahmen-farbe-wrap {
    margin-bottom: 16px;
}

.sc-color-swatches {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sc-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 4px;
    box-shadow: none !important;
}

.sc-swatch-circle {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent !important;
    transition: border-color 0.2s, transform 0.15s;
    box-sizing: border-box;
}

.sc-color-swatch:hover .sc-swatch-circle {
    border-color: #888 !important;
    transform: scale(1.08);
}

.sc-color-swatch.sc-active .sc-swatch-circle {
    border-color: #333 !important;
    transform: scale(1.08);
}

.sc-swatch-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Filter Widget (Sidebar) ──────────────────────────────────────────────── */

.sc-filter-section {
    margin-bottom: 24px;
}

.sc-filter-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.sc-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-filter-list li {
    margin: 0;
    padding: 0;
}

.sc-filter-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.15s;
}

.sc-filter-list li a:hover {
    color: #000;
}

.sc-filter-list li a span {
    font-size: 11px;
    color: #aaa;
    margin-left: 6px;
}

.sc-filter-list li.sc-filter-active a {
    font-weight: 700;
    color: #000;
}

.sc-filter-list li.sc-filter-active a::before {
    content: '✕ ';
    font-size: 10px;
    color: #999;
}

.sc-color-swatch.sc-active .sc-swatch-label {
    color: #1a1a1a;
    font-weight: 700;
}

/* ── Kategorieseiten: Beliebte Themen ── */
.sc-related-themes {
    margin-bottom: 32px;
    text-align: center;
}

.sc-related-themes-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent, #000);
    margin-bottom: 14px;
}

.sc-related-themes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sc-related-theme-btn {
    display: inline-block;
    background: #F7F7F7;
    color: var(--text, #555) !important;
    border: 1px solid var(--border, #DEDACE);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.sc-related-theme-btn:hover {
    border-color: var(--primary, #CA9236);
    color: var(--accent, #000) !important;
    background: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #gf-size-body { flex-direction: column; }
    #gf-size-visual { min-height: 220px; }
    #gf-size-list { width: 100%; }
}
