/* ==========================================================================
   KALLES Fashion 15 Theme Stylesheet for WAVUX
   ========================================================================== */

:root {
    --color-bg: #ffffff;
    --color-surface: #f7f7f7;
    --color-text: #222222;
    --color-text-muted: #777777;
    --color-accent: #222222;
    --color-accent-2: #e55353;
    --color-border: #e5e5e5;
    --font-heading: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.kalles-body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Header & Sticky Scroll Effect */
.kalles-header-wrapper {
    width: 100%;
    transition: all 0.3s ease;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

/* Builder stellt den Header (05.08.2026): Huelle wird zu reiner Struktur.

   Hintergrund, Glas, Schatten, Trennlinie und Kleben gehoeren dem Block
   `header_bar` und sind dort Optionen. Solange die weisse Flaeche hier stand,
   war „Milchglas" nicht zu sehen: Der Block wurde halbdurchsichtig, dahinter
   stand diese Huelle undurchsichtig weiss. Nichts durchzusehen.

   `.is-sticky` wird hier ebenfalls entschaerft — der Block bringt sein eigenes
   Kleben mit Platzhalter mit. Zwei Systeme fuer dieselbe Aufgabe ergeben
   springende Kopfzeilen. */
.kalles-header-wrapper--builder,
.kalles-header-wrapper--builder.is-sticky {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    position: static;
    animation: none;
}

/* `.is-transparent` ist am 05.08.2026 entfallen: Weder das Layout noch
   kalles.js hat die Klasse je gesetzt — sie stammt aus der Zeit vor der
   Block-Option „Ueber dem Inhalt liegen". Tote Regeln lesen sich wie
   Moeglichkeiten und kosten beim naechsten Mal wieder eine halbe Stunde. */

.kalles-header-wrapper.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--color-border);
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.kalles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 24px;
}

.kalles-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
}

.kalles-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (max-width: 900px) {
    .kalles-nav { display: none; }
}

.kalles-nav-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kalles-nav-link:hover {
    color: var(--color-accent-2);
}

.kalles-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kalles-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: grid;
    place-items: center;
    transition: opacity 0.2s ease;
}

.kalles-icon-btn:hover {
    opacity: 0.7;
}

.kalles-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-accent-2);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

/* Buttons */
.kalles-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #111111;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kalles-btn:hover {
    background: #333333;
    border-color: #333333;
}

.kalles-btn-outline {
    background: transparent;
    color: #111111;
    border-color: #111111;
}

.kalles-btn-outline:hover {
    background: #111111;
    color: #ffffff;
}

/* Product Card */
.kalles-product-card {
    transition: transform 0.3s ease;
}

.kalles-product-card:hover {
    transform: translateY(-4px);
}

/* Abgedunkelt (23.10.2026): Weiß auf dem Türkis #01bad4 kam nur auf 2,3 : 1.
   Abgeleitet statt fest, damit eine eigene Zweitfarbe mitzieht. */
.kalles-badge {
    background: color-mix(in srgb, var(--color-accent-2) 62%, #000);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Footer */
.kalles-footer {
    background: #111111;
    color: #ffffff;
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.kalles-footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.kalles-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .kalles-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.kalles-footer-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.kalles-footer-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;

}

.kalles-footer-links {
    list-style: none;
}

.kalles-footer-links li {
    margin-bottom: 10px;
}

.kalles-footer-links a {
    color: #aaaaaa;
    font-size: 14px;
}

.kalles-footer-links a:hover {
    color: #ffffff;
}

.kalles-footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: #777777;
}

/* Slide-out Cart Drawer */
.kalles-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.kalles-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 90vw);
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.kalles-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.kalles-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
}

.kalles-drawer-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.kalles-free-ship-bar {
    background: #f0f7f4;
    color: #2b7a4b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.kalles-cart-items-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
}
