:root {
    --venz-bg: #fafafa;
    --venz-fg: #1f2937;
    --venz-accent: #ef4444;
}

body {
    background: var(--venz-bg);
    color: var(--venz-fg);
}

.storefront-main {
    min-height: 60vh;
}

/* Mega menu */
.main-menu .megamenu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    z-index: 1000;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.main-menu .nav-item:hover .megamenu,
.main-menu .nav-item:focus-within .megamenu {
    display: block;
}

/* Product card */
.product-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: .5rem;
    overflow: hidden;
    transition: all .2s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: #fff;
    overflow: hidden;
}

.product-card .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .product-gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-card .product-image img,
.product-card .product-gallery-slides .gallery-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card .product-gallery-slides .gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .25s ease;
}

.product-card .product-gallery-slides .gallery-slide.active {
    opacity: 1;
}

.product-card .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s ease, background .15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.product-card .gallery-nav:hover {
    background: #fff;
}

.product-card .gallery-prev { left: .5rem; }
.product-card .gallery-next { right: .5rem; }

@media (hover: hover) {
    .product-card .product-image.has-gallery .gallery-nav,
    .product-card .product-image.has-gallery .gallery-progress {
        opacity: 0;
    }

    .product-card .product-image.has-gallery:hover .gallery-nav,
    .product-card .product-image.has-gallery:hover .gallery-progress {
        opacity: 1;
    }
}

@media (hover: none) {
    .product-card .product-image.has-gallery .gallery-nav,
    .product-card .product-image.has-gallery .gallery-progress {
        opacity: 1;
    }
}

.product-card .gallery-progress {
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
    z-index: 2;
    display: flex;
    gap: 3px;
    transition: opacity .2s ease;
}

.product-card .gallery-segment {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .5);
    border-radius: 1px;
    transition: background .2s ease;
}

.product-card .gallery-segment.active {
    background: rgba(31, 41, 55, .85);
}

.product-card .product-badges {
    position: absolute; top: .5rem; left: .5rem;
    display: flex; flex-direction: column; gap: .25rem;
    z-index: 2;
}

.product-card .badge-new { background: #10b981; color: #fff; }
.product-card .badge-sale { background: var(--venz-accent); color: #fff; }
.product-card .badge-bestseller { background: #f59e0b; color: #fff; }
.product-card .badge-campaign {
    background: #b45309;
    color: #fff;
    max-width: calc(100% - 0.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .product-body {
    padding: .75rem;
    display: flex; flex-direction: column; gap: .25rem;
    flex: 1;
}

.product-card .product-brand { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.product-card .product-name { font-size: .9rem; color: var(--venz-fg); text-decoration: none; line-height: 1.3; min-height: 2.6em; }
.product-card .product-name:hover { color: var(--venz-accent); }

.product-card .price-line { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.product-card .price-current { font-weight: 700; font-size: 1rem; }
.product-card .price-current.is-campaign { color: #b45309; }
.product-card .price-old { color: #9ca3af; text-decoration: line-through; font-size: .85rem; }
.product-card .product-card-campaign-name {
    flex-basis: 100%;
    font-size: .75rem;
    font-weight: 600;
    color: #b45309;
    line-height: 1.3;
}
.product-card .price-discount { background: var(--venz-accent); color: #fff; font-size: .7rem; padding: .1rem .35rem; border-radius: .25rem; }

.product-card .color-swatches { display: flex; gap: .25rem; margin-top: .25rem; }
.product-card .color-swatch {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

/* Hero */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    color: #fff;
    border-radius: .75rem;
    padding: 4rem 2rem;
    overflow: hidden;
}
.hero-banner::after {
    content: "";
    position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.05) 100%);
}

.section-heading {
    display: flex; justify-content: space-between; align-items: center;
    margin: 3rem 0 1rem;
}
.section-heading h2 {
    font-size: 1.5rem; font-weight: 700; margin: 0;
}

/* Detail page */
.product-gallery {
    position: sticky; top: 80px;
}
.product-gallery .main-image {
    width: 100%; aspect-ratio: 3/4; background: #f8fafc; border-radius: .5rem;
    overflow: hidden;
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.product-gallery .thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.product-gallery .thumbs button {
    width: 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: .25rem;
    background: #f8fafc; overflow: hidden; cursor: pointer;
}
.product-gallery .thumbs button.active { border-color: var(--venz-fg); }
.product-gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }

.variant-group { margin-bottom: 1rem; }
.variant-group label.group-label {
    display: block; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: #6b7280; margin-bottom: .5rem;
}

.color-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.color-option {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; padding: 0; background-clip: content-box; box-sizing: border-box;
    overflow: hidden; position: relative;
}
.color-option--photo {
    width: 56px; height: 80px; border-radius: .35rem; border: 1px solid #d1d5db;
    background: #fff;
}
.color-option--photo.selected { border-color: var(--venz-fg); border-width: 2px; }
.color-option.selected { border-color: var(--venz-fg); }
.color-option.disabled { opacity: .3; cursor: not-allowed; }
.color-option img, .color-option .swatch-fill { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.color-option--photo img {
    border-radius: .25rem;
    object-fit: contain;
    object-position: center top;
}

.size-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-option {
    min-width: 48px; padding: .5rem .75rem; border: 1.5px solid #d1d5db; border-radius: .375rem;
    background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600; color: #111;
}
.size-option.selected {
    background: #111; color: #fff; border-color: #111;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--venz-fg, #c96);
}
.size-option.disabled,
.size-option:disabled {
    background: #f3f4f6; color: #b0b0b0; border-color: #e5e7eb;
    opacity: 1; cursor: not-allowed; text-decoration: line-through;
    text-decoration-thickness: 1.5px; box-shadow: none;
}

.price-block { margin: 1rem 0; }
.price-block .price-current { font-size: 1.6rem; font-weight: 700; }
.price-block .price-old { color: #9ca3af; text-decoration: line-through; }

.breadcrumb-row { padding: .75rem 0; font-size: .85rem; }

/* Listing sidebar */
.listing-filters .filter-group { border-bottom: 1px solid #e5e7eb; padding: 1rem 0; }
.listing-filters .filter-group h6 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* Login modal — kompakt, küçük ekranda taşmasın */
#signinModal.modal {
    --venz-auth-accent: var(--venz-accent, #ef4444);
    --venz-auth-accent-hover: #dc2626;
    --venz-auth-accent-soft: rgba(239, 68, 68, 0.15);
    --venz-auth-ink: var(--venz-fg, #1f2937);
    --venz-auth-muted: #6b7280;
    --venz-auth-border: #e5e7eb;
    --venz-auth-surface: #fff;
    --venz-auth-field-gap: .45rem;
    --venz-auth-label-gap: .18rem;
}

#signinModal .venz-auth-modal__dialog {
    max-width: 360px;
    margin: .5rem auto;
    max-height: calc(100dvh - 1rem);
}

#signinModal .modal-content {
    border: 0;
    border-radius: .75rem;
    background: var(--venz-auth-surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
    max-height: calc(100dvh - 1rem);
}

#signinModal .venz-auth-modal__body {
    position: relative;
    padding: .85rem 1rem .95rem;
    color: var(--venz-auth-ink);
    max-height: calc(100dvh - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#signinModal .venz-auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--venz-auth-field-gap);
}

#signinModal .tab-content,
#signinModal .tab-pane {
    margin: 0;
    padding: 0;
}

#signinModal .venz-auth-field--recaptcha {
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.1rem;
}

#signinModal .venz-recaptcha {
    min-height: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transform: scale(0.88);
    transform-origin: center top;
    margin-bottom: -0.35rem;
}

#signinModal .venz-recaptcha-status {
    font-size: 0.7rem;
    color: var(--venz-auth-muted, #6b7280);
}

#signinModal .venz-auth-modal__close {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 2;
}

#signinModal .venz-auth-modal__intro {
    text-align: center;
    margin-bottom: .45rem;
    padding: 0 1.25rem;
}

#signinModal .venz-auth-modal__title {
    margin: 0 0 .15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--venz-auth-ink);
    line-height: 1.25;
}

#signinModal .venz-auth-modal__subtitle {
    margin: 0;
    font-size: .78rem;
    color: var(--venz-auth-muted);
    line-height: 1.3;
}

#signinModal .venz-auth-modal__error {
    position: relative;
    margin: 0 0 .5rem;
    padding: .45rem .6rem;
    border-radius: .5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: .74rem;
    line-height: 1.3;
}

#signinModal .venz-auth-modal__error::before {
    display: none;
}

#signinModal .venz-auth-modal__error-text {
    margin: 0;
    font-size: .74rem;
    color: #991b1b;
}

#signinModal .venz-auth-tabs {
    display: flex;
    gap: .35rem;
    margin-bottom: .55rem !important;
}

#signinModal .venz-auth-tabs .nav-item {
    flex: 1 1 0;
}

#signinModal .venz-auth-tab {
    width: 100%;
    padding: .38rem .55rem;
    color: var(--venz-auth-muted);
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid var(--venz-auth-border);
    border-radius: .45rem;
    background: var(--venz-auth-surface);
    text-transform: none;
    line-height: 1.2;
}

#signinModal .venz-auth-tab:hover {
    color: var(--venz-auth-accent);
    border-color: var(--venz-auth-accent);
}

#signinModal .venz-auth-tab.active {
    background: var(--venz-auth-accent);
    border-color: var(--venz-auth-accent);
    color: #fff;
}

#signinModal .venz-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}

#signinModal .venz-auth-field {
    margin: 0;
    padding: 0;
}

#signinModal .venz-auth-field__hint {
    font-weight: 400;
    color: var(--venz-auth-muted);
    font-size: .7rem;
}

#signinModal .venz-auth-field__error {
    margin-top: .1rem;
    font-size: .7rem;
    line-height: 1.25;
    color: #dc2626;
}

#signinModal .venz-auth-field__error:empty,
#signinModal .venz-auth-field__error[hidden] {
    display: none;
}

#signinModal .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

#signinModal .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .12rem rgba(220, 53, 69, .18);
}

#signinModal .form-label {
    margin: 0 0 var(--venz-auth-label-gap);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
    color: var(--venz-auth-ink);
}

#signinModal .form-control {
    margin: 0;
    padding: .32rem .55rem !important;
    height: 2rem !important;
    min-height: 2rem !important;
    max-height: 2rem !important;
    font-size: .8125rem !important;
    line-height: 1.25 !important;
    background: var(--venz-auth-surface);
    border: 1px solid var(--venz-auth-border);
    color: var(--venz-auth-ink);
    border-radius: .4rem;
}

#signinModal .form-control:-webkit-autofill,
#signinModal .form-control:-webkit-autofill:hover,
#signinModal .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--venz-auth-surface) inset;
    -webkit-text-fill-color: var(--venz-auth-ink);
}

#signinModal .form-text {
    margin-top: .08rem;
    margin-bottom: 0;
    font-size: .68rem;
    line-height: 1.25;
    color: var(--venz-auth-muted);
}

#signinModal .venz-auth-modal__extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: .15rem 0 .35rem;
    font-size: .75rem;
    color: var(--venz-auth-muted);
}

#signinModal .venz-auth-modal__extras .form-check-label {
    font-size: .75rem;
}

#signinModal .venz-auth-modal__link {
    font-size: .75rem;
    color: var(--venz-auth-accent);
    text-decoration: none;
    white-space: nowrap;
}

#signinModal .venz-auth-modal__link:hover {
    color: var(--venz-auth-accent-hover);
    text-decoration: underline;
}

#signinModal .venz-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    height: 2.15rem;
    padding: .4rem .85rem;
    margin-top: .15rem;
    font-size: .82rem;
    background: var(--venz-auth-accent);
    border: 1px solid var(--venz-auth-accent);
    color: #fff;
    font-weight: 600;
    border-radius: .45rem;
}

@media (max-height: 760px) {
    #signinModal .venz-auth-modal__subtitle {
        display: none;
    }

    #signinModal .venz-auth-modal__intro {
        margin-bottom: .3rem;
    }

    #signinModal .venz-auth-field-gap,
    #signinModal.modal {
        --venz-auth-field-gap: .35rem;
    }

    #signinModal .venz-recaptcha {
        transform: scale(0.8);
        margin-bottom: -0.55rem;
    }
}

@media (max-width: 420px) {
    #signinModal .venz-auth-modal__dialog {
        max-width: calc(100vw - 1rem);
        margin: .35rem auto;
    }

    #signinModal .venz-auth-field-row {
        grid-template-columns: 1fr;
        gap: .35rem;
    }
}

#signinModal .venz-auth-submit:hover,
#signinModal .venz-auth-submit:focus {
    background: var(--venz-auth-accent-hover);
    border-color: var(--venz-auth-accent-hover);
    color: #fff;
}

#signinModal .venz-auth-submit:disabled {
    background: #fca5a5;
    border-color: #fca5a5;
}

#signinModal .form-control:focus {
    border-color: var(--venz-auth-accent);
    box-shadow: 0 0 0 .2rem var(--venz-auth-accent-soft);
}

#signinModal .form-check-input:checked {
    background-color: var(--venz-auth-accent);
    border-color: var(--venz-auth-accent);
}

#signinModal .form-check-input:focus {
    border-color: var(--venz-auth-accent);
    box-shadow: 0 0 0 .2rem var(--venz-auth-accent-soft);
}

/* Storefront toast bildirimleri */
.venz-toast-host {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.venz-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.4rem;
    background: #111;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.venz-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.venz-toast--success {
    border-left: 3px solid #2e7d32;
}

.venz-toast--error {
    border-left: 3px solid #c62828;
}

.venz-toast__msg {
    flex: 1 1 auto;
    min-width: 0;
}

.venz-toast__close {
    flex: 0 0 auto;
    margin: -0.15rem -0.25rem 0 0;
    padding: 0.15rem 0.4rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.venz-toast__close:hover,
.venz-toast__close:focus {
    color: #fff;
    outline: none;
}

@media (max-width: 575.98px) {
    .venz-toast-host {
        top: auto;
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}


/* Ürün kısa açıklaması (HTML) */
.product-short-description p:last-child { margin-bottom: 0; }
.product-short-description iframe, .product-short-description img, .product-short-description video { max-width: 100%; }
