/* Font import removed for performance - loaded async in header.php */
/* @import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap'); */

:root {
    /* CORE PALETTE */
    --bg: #f9fafb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-focus: #111827;

    /* ACCENTS */
    --primary: #111827;
    --primary-fg: #ffffff;
    --accent: #f3f4f6;
    /* Soft UI backgrounds */
    --success: #16a34a;
    --success-bg: #dcfce7;
    --success-text: #14532d;
    --danger: #ef4444;
    --totalGreen: linear-gradient(90deg, #22c55e, #16a34a);

    /* DIMENSIONS */
    --max-w: 1120px;
    --radius: 8px;
    --header-h: 68px;
    /* Approx height for scroll offset */

    /* ANIMATION */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --dur: 0.3s;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-header: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    height: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- TOP CAMPAIGN BAR --- */
.campaign-bar {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    /* CLS önleme */
    contain: layout style;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a:hover {
    opacity: 0.8;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 14px;
    /* Prevents zoom on iOS */
}

/* --- LAYOUT UTILS --- */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}



/* --- TOPBAR --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

/* --- TOTAL BAR (Refined) --- */
.totalBar {
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 99999;
}

.totalBar.visible {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 80px;
    opacity: 1;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.totalBar .t1 {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.95;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.totalBar .t2 {
    font-size: 20px;
    font-weight: 900;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    color: #111827;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #f9fafb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.header-in {
    /* Height removed, using padding for equal spacing */
    max-width: var(--max-w);
    margin: 0 auto;
    /* Adjusted vertical padding for compactness */
    padding: 16px 20px;
    display: flex;
    align-items: center;
    /* Strictly centered vertically */
    justify-content: space-between;
}

.brand {
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    /* Fix alignment */
    letter-spacing: -0.02em;
    color: var(--primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

/* Header Actions with Separators */
.h-actions {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
}

.h-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--text);
    border-radius: 50%;
    transition: background 0.2s;
}

.h-btn:hover {
    background: var(--accent);
    color: #fc5e05;
}

.h-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 2px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #fc5e05;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

/* --- STEP PROGRESS BAR (Conditionally Visible) --- */
.stepbar {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    /* Hidden by default to remove whitespace */
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.stepbar.active {
    display: block;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.pwrap {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, .25);
    background: rgba(34, 197, 94, .08);
    overflow: hidden;
    position: relative;
}

.pbar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s var(--ease);
    position: relative;
}

.pbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(100%)
    }
}

/* --- TOTAL BAR (Green, Floating) --- */
.totalBar {
    width: 100%;
    margin: 0;
    padding: 0;
    /* Zero padding when hidden */
    background: var(--totalGreen);
    color: #fff;
    text-align: center;
    /* Animation state */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

/* Show state added via JS to body or element */
.totalBar.visible {
    max-height: 80px;
    opacity: 1;
    padding: 12px 16px;
    /* Restore padding when visible */
}

.totalBar .t1 {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.95;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.totalBar .t2 {
    font-size: 20px;
    font-weight: 900;
    margin-top: 2px;
}

/* --- MAIN GRID LAYOUT --- */
.main-grid {
    display: grid;
    gap: 24px;
    margin-top: 0;
}

@media (min-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
        /* Gallery Left, Content Right */
        align-items: start;
    }

    .sticky-content {
        position: sticky;
        top: 20px;
        align-self: start;
        /* SCROLL KALDIRILDI - sayfa normal scroll yapacak */
    }
}

/* --- CARDS & BOXES --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    /* SHADOW ADDED */
}

.card-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.card-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

.card-head span {
    font-size: 12px;
    color: var(--muted);
}

.card-body {
    padding: 16px;
}

/* --- GALLERY (UPDATED FOR 1500x2000 PORTRAIT) --- */
.gallery-container {
    position: relative;
    background: var(--accent);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 3/4;
    min-height: 450px;
    /* CLS önleme */
    background: #f8f8f8;
    overflow: hidden;
    contain: layout style;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    content-visibility: auto;
    /* Lazy rendering */
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
}

.gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05) translateZ(0);
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: #374151;
}

.gallery-nav.left {
    left: 12px;
}

.gallery-nav.right {
    right: 12px;
}

/* --- FORM ELEMENTS --- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-label.req::after {
    content: "*";
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .row-3 {
        grid-template-columns: 1fr;
    }
}

/* --- SWATCHES --- */
.swatch-grid {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    justify-content: center;
    /* CENTERED */
    flex-wrap: wrap;
}

.swatch {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    /* GPU hızlandırma */
}

.swatch:hover {
    transform: translateY(-3px) translateZ(0);
}

.swatch.active {
    border-color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.swatch-fill {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.swatch.active .swatch-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* --- STEP WIZARD --- */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s var(--ease);
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SUMMARY BAR (MOBILE BOTTOM) --- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px;
    display: flex !important;
    z-index: 2147483647 !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 900px) {
    .bottom-bar {
        display: none !important;
    }
}

.price-display small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.price-display strong {
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
}

.btn-primary:hover {
    background: #000;
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--accent);
}

.btn-block {
    width: 100%;
}

/* DESKTOP ACTIONS */
.desktop-actions {
    display: none;
    margin-top: 20px;
}

@media (min-width: 900px) {
    .desktop-actions {
        display: flex;
        gap: 12px;
    }
}

/* MENUS & DRAWERS */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    background: var(--surface);
    width: 100%;
    max-width: 320px;
    z-index: 201;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
}

.drawer.right {
    right: 0;
    transform: translateX(100%);
}

.drawer.left {
    left: 0;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 16px;
}

/* --- SUCCESS --- */
.success-box {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* --- DETAILS & REVIEWS --- */
.details-area {
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.det-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #f9fafb;
}

.det-tab-btn {
    padding: 16px 24px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: none;
    border-right: 1px solid var(--border);
    transition: all 0.2s;
    background: none;
    font-size: 14px;
    cursor: pointer;
}

.det-tab-btn:hover {
    background: #fff;
    color: var(--text);
}

.det-tab-btn.active {
    background: #fff;
    color: var(--text);
    font-weight: 700;
    box-shadow: inset 0 2px 0 0 var(--text);
}

.det-content {
    display: none;
    animation: fadeIn 0.4s var(--ease);
    padding: 24px;
}

.det-content.active {
    display: block;
}

.det-content p {
    margin-top: 0;
}

.review-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 600px) {
    .review-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .review-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Yorum Resim Galerisi */
.rev-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rev-img-link {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: zoom-in;
}

.rev-img-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.rev-gallery .rev-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #eee;
}

.rev-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}

/* Fancybox Modal Stilleri - Büyük Resim */
.fancybox__container .fancybox__content {
    padding: 0 !important;
}

.fancybox__container .fancybox__content img,
.fancybox-content img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* jQuery Fancybox v3 için */
.fancybox-slide--image .fancybox-content {
    max-width: 90vw !important;
    max-height: 90vh !important;
}

.fancybox-slide--image .fancybox-content img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Mobil için galeri ayarları */
@media (max-width: 600px) {
    .rev-img-link {
        width: 56px;
        height: 56px;
        border-radius: 6px;
    }

    .rev-img {
        width: 56px;
        height: 56px;
        border-radius: 6px;
    }

    .rev-gallery {
        gap: 6px;
        margin-top: 10px;
    }

    /* Fancybox Modal - Mobil */
    .fancybox__container .fancybox__content,
    .fancybox-content {
        padding: 0 !important;
        margin: 10px !important;
    }

    .fancybox__container .fancybox__content img,
    .fancybox-content img,
    .fancybox-slide--image .fancybox-content img {
        max-width: 95vw !important;
        max-height: 85vh !important;
    }

    /* Yorum kartı mobil */
    .review-item {
        padding: 12px;
    }

    .rev-avatar {
        width: 36px;
        height: 36px;
    }

    .rev-letter {
        font-size: 14px;
    }

    .rev-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .rev-meta {
        font-size: 11px;
    }
}

.rev-body h5 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.rev-body p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.stars {
    color: #f59e0b;
    font-size: 12px;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 1px;
}

/* Features List */
.feat-list li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text);
}

.feat-list strong {
    font-weight: 700;
    color: var(--text);
    margin-right: 6px;
}

/* --- FOOTER --- */


/* --- SOCIAL PROOF NOTIFICATION --- */


.social-proof.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    /* Green-ish */
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sp-content {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
}

.sp-content b {
    font-weight: 700;
    color: #111;
}

.sp-time {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .social-proof {
        left: 10px;
        right: 10px;
        bottom: 85px;
        max-width: none;
    }
}

/* --- SCROLL TOP --- */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #000;
    transform: translateY(-2px);
}

/* --- FOOTER EXTENDED --- */
.footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    color: var(--text);
    box-shadow: 0 -4px 20px -5px rgba(0, 0, 0, 0.1), 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.footer-in {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: left;
}

.f-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text);
    text-transform: uppercase;
}

.f-col a {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.f-col a:hover {
    color: var(--primary);
}

.f-social {
    display: flex;
    gap: 12px;
}

.f-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: all 0.2s;
}

.f-social a:hover {
    background: var(--text);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 24px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .right a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 600px) {
    .scroll-top {
        bottom: 85px;
        right: 10px;
    }

    /* Above mobile bar */
}

/* REVIEWS MODERN */
.rev-summary-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    align-items: center;
}

.rs-left {
    text-align: center;
    min-width: 120px;
}

.rs-score {
    font-size: 36px;
    font-weight: 900;
    color: #f59e0b;
    line-height: 1;
}

.rs-stars {
    color: #f59e0b;
    font-size: 18px;
    margin: 4px 0;
    letter-spacing: 2px;
}

.rs-count {
    font-size: 12px;
    color: var(--muted);
}

.rs-right {
    flex: 1;
    min-width: 240px;
}

.rs-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.rs-row span:first-child {
    width: 45px;
}

.rs-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 0 8px;
    overflow: hidden;
}

.rs-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 3px;
}

.rs-num {
    width: 30px;
    text-align: right;
}

.rs-action {
    min-width: 150px;
    text-align: right;
}

.rev-photos-filter {
    margin-bottom: 24px;
}

.rpf-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.rpf-grid img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
}

.rpf-more {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}

.rev-list-modern {
    display: grid;
    gap: 16px;
}

.rm-card {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.rm-card:last-child {
    border-bottom: none;
}

.rm-head {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    align-items: center;
}

.rm-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.rm-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.rm-body p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
    color: var(--text);
}

.rm-imgs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rm-imgs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

.rm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.rm-user {
    font-weight: 600;
    color: var(--text);
}

.rm-like {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.rm-like:hover {
    color: var(--primary);
}

.rm-seller-reply {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

/* --- UNIFIED PAGE LAYOUT (Sidebar + Content) --- */
.unified-card {
    background: #fff;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* SIDEBAR (Left) */
.sidebar-inner {
    width: 260px;
    flex-shrink: 0;
    background: #fdfdfd;
    border-right: 1px solid var(--border);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.sidebar-menu a:last-child {
    border-bottom: none;
}

.sidebar-menu a:hover {
    background: #f9fafb;
    color: var(--primary);
}

.sidebar-menu a.active {
    background: #fff;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 21px;
    /* Adjust for border */
}

/* CONTENT (Right) */
.content-inner {
    flex: 1;
    padding: 32px;
}

.page-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.typography {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}

.typography p {
    margin-bottom: 16px;
}

.typography h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--primary);
}

.typography ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.typography li {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .unified-card {
        flex-direction: column;
        margin: 20px;
        width: auto;
    }

    .sidebar-inner {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .content-inner {
        padding: 24px;
    }
}

/* --- SEO TEXT AREA --- */
.seo-text-area {
    background: #ffffff;
    width: calc(100% - 40px);
    max-width: calc(var(--max-w) - 40px);
    margin: 0px auto 40px;
    /* Centered with bottom spacing */
    padding: 30px 24px;
    /* Internal padding */
    border: 1px solid var(--border);
    /* Full border to look like card */
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.seo-text-inner {
    width: 100%;
}

.seo-content {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    position: relative;
    transition: max-height 0.3s ease;
}

.seo-content.collapsed {
    max-height: 60px;
    /* Show roughly 2 lines */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.seo-toggle-btn {
    display: inline-block;
    margin-top: 12px;
    font-weight: 800;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.seo-toggle-btn:hover {
    text-decoration: underline;
}

/* --- FOOTER SECURE --- */
.footer-secure {
    text-align: center;
    padding: 24px;
    margin: 40px auto;
    /* Centered with vertical spacing */
    background: #ffffff;
    max-width: var(--max-w);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Drop shadow */
    border: 1px solid var(--border);
    /* Optional: distinct edge */
}

.footer-secure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.footer-bottom .right a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 600px) {
    .scroll-top {
        bottom: 85px;
        right: 10px;
    }

    /* Above mobile bar */
}

@media (min-width: 900px) {
    .footer-in {
        display: flex;
        justify-content: space-between;
        gap: 0;
    }

    .f-col {
        flex: 1;
        padding: 0 30px;
        border-right: 1px solid #e5e7eb;
    }

    .f-col:first-child {
        padding-left: 0;
    }

    .f-col:last-child {
        border-right: none;
        padding-right: 0;
    }
}

/* --- HELPER CLASSES --- */
.wrap-center {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 16px;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
}

/* --- BLOG & CONTENT --- */
.page-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    padding: 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    margin: 0 0 12px;
}

.page-header p {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    text-decoration: underline;
}

/* Blog Detail */
.blog-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .blog-container {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.blog-cat-badge {
    display: inline-block;
    background: #e5e7eb;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}

.article-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 32px 0;
    border: 1px solid var(--border);
}

.article-image-featured {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

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

.cat-list li {
    margin-bottom: 10px;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}

.cat-count {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

/* Recent Posts */
.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.recent-post:last-child {
    margin-bottom: 0;
}

.rp-img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
}

.rp-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.4;
    color: var(--text);
}

.rp-info span {
    font-size: 11px;
    color: var(--muted);
}

/* Share Links */
.share-links {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    align-items: center;
    font-size: 13px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    background: #f9fafb;
}

/* Comments */
.comments-section {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.comment-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

/* --- AUTH & FORMS --- */
.auth-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #fff;
    color: var(--primary);
    border-top: 3px solid var(--primary);
    margin-top: -1px;
}

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
    color: var(--text);
}

.auth-body {
    padding: 32px;
}

.help-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}

.social-login {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.btn-full {
    width: 100%;
    display: flex;
}

/* --- SITEMAP --- */
.sitemap-card {
    background: #fff;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.sitemap-col h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 12px;
}

.sitemap-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s;
}

.sitemap-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--border);
    border-radius: 50%;
    transition: background 0.2s;
}

.sitemap-links a:hover {
    color: var(--primary);
}

.sitemap-links a:hover::before {
    background: var(--primary);
}

@media (max-width: 600px) {
    .sitemap-card {
        padding: 24px;
    }
}

/* --- KEYFRAMES & UTILS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-view {
    display: none;
    animation: fadeIn 0.3s var(--ease);
}

.form-view.active {
    display: block;
}

/* --- DESKTOP HEADER MENU --- */
.desktop-menu-area {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 900px) {
    .desktop-menu-area {
        display: flex;
    }
}

.desktop-menu-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s;
}

.desktop-menu-link:hover {
    color: var(--muted);
}


/* --- PRODUCT TABS (Flex with Separators) --- */
.product-tabs-container {
    display: flex;
    background: #fff;
    border-top: 1px solid var(--border);
    /* border-bottom will be handled by container if needed, or added here */
    width: 100%;
}

.product-tabs-group {
    display: flex;
    flex: 1;
    /* Takes available space */
}

.btn-tab {
    flex: 1;
    /* Equal width */
    background: #fff;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    padding: 20px 4px;
    border-radius: 0;
    /* Square edges */
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
    white-space: nowrap;
    /* Prevent wrapping if tight */
}

.btn-tab:last-child {
    border-right: none;
}

.btn-tab:hover {
    background: #fff;
    color: #fc5e05;
}

.btn-tab.active {
    background: #fff;
    color: #fc5e05;
    font-weight: 700;
    border-bottom: 3px solid #fc5e05;
}

/* --- FIXED UTILS (Restored) --- */
.scroll-top {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    color: var(--text);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #f9fafb;
}

.social-proof {
    position: fixed;
    bottom: 85px;
    left: 30px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    /* Updated radius */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    max-width: 320px;
}

.social-proof.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.sp-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-content {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}

/* SEO Toggle Button update */
.seo-toggle-btn {
    display: block;
    margin: 24px auto 0;
    padding: 12px 32px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.seo-toggle-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* SUCCESS MODAL LIGHTBOX STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-text {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- MOBILE FIXES & HEADER UPDATES --- */

.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-right: 15px;
}

.header-links a {
    color: var(--text);
    transition: color 0.2s;
}

.header-links a:hover {
    color: #fc5e05;
}

@media (max-width: 900px) {
    .header-links {
        display: none !important;
    }
}

/* Blog Grid Mobile Adjustments */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        padding: 24px 16px !important;
        gap: 16px !important;
    }
}

/* General Content Safety for Mobile */
@media (max-width: 600px) {

    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto;
    }

    /* Better padding for main containers on small screens */
    .wrap,
    .header-in,
    .footer-in {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 600px) {
    .blog-meta {
        flex-wrap: wrap !important;
    }
}




/* --- MOBILE FOOTER SYSTEM (FIXED) --- */

/* 1. Default State: HIDDEN on Desktop */
#ep-mobile-footer {
    display: none !important;
}

/* 2. Mobile State: VISIBLE (max-width: 900px matching site breakpoint) */
@media (max-width: 900px) {

    /* Hide Desktop Footer & Elements */
    .footer,
    .desktop-actions {
        display: none !important;
    }

    /* SEO alanı mobilde de görünsün - Kart tasarımı korunacak */
    .seo-text-area {
        display: block !important;
        width: calc(100% - 32px) !important;
        margin: 16px 16px 100px !important;
        padding: 20px 16px !important;
        background: #fff !important;
        border: 1px solid var(--border) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    }

    .seo-text-area .seo-content {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    .seo-text-area .seo-content.collapsed {
        max-height: 80px !important;
    }

    .seo-text-area .seo-toggle-btn {
        display: block !important;
        width: 100% !important;
        margin-top: 16px !important;
        padding: 12px 24px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--text) !important;
        text-align: center !important;
    }

    /* Kategori keyword'leri mobilde */
    #categoryKeywords {
        margin-top: 16px !important;
        padding-top: 16px !important;
    }

    #categoryKeywords span {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    /* Show Mobile Footer Container */
    #ep-mobile-footer {
        display: block !important;
        width: 100%;
        background: transparent;
        /* Transparent to blend with body */
        padding: 0 20px 40px !important;
        /* Left/Right padding matches site wrapper */
        margin-top: 20px !important;
        box-sizing: border-box;
    }

    /* Inner Card Style - Matches Site Cards */
    #ep-mobile-footer .mobile-footer {
        display: block !important;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        /* Uses site radius variable */
        box-shadow: var(--shadow);
        /* Uses site shadow variable */
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* -- INTERNAL FOOTER STYLES -- */
    .mobile-footer .topbox {
        text-align: center;
        padding: 20px 16px 16px;
        border-bottom: 1px solid var(--border);
        background: #f9fafb;
    }

    .mobile-footer .topbox .brand-mobile {
        font-weight: 900;
        font-size: 20px;
        letter-spacing: -0.02em;
        color: var(--primary);
        margin-bottom: 8px;
        display: block;
    }

    .mobile-footer .topbox .desc {
        font-size: 12px;
        color: var(--muted);
        margin: 0 auto 12px;
        line-height: 1.4;
        max-width: 280px;
    }

    .mobile-footer details {
        border-bottom: 1px solid var(--border);
        margin: 0;
        background: #fff;
    }

    .mobile-footer summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        color: var(--text);
        outline: none;
    }

    .mobile-footer summary::-webkit-details-marker {
        display: none;
    }

    .mobile-footer .plus {
        color: var(--muted);
        font-weight: 400;
        font-size: 18px;
    }

    .mobile-footer details[open] .plus::before {
        content: "−";
    }

    .mobile-footer details:not([open]) .plus::before {
        content: "+";
    }

    /* Active summary style */
    .mobile-footer details[open] summary {
        border-bottom: 1px solid #f3f4f6;
        color: var(--primary);
    }

    .mobile-footer .content {
        padding: 8px 0;
        background: #fff;
    }

    .mobile-footer .links {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-footer .links li {
        margin: 0;
    }

    .mobile-footer .links a {
        display: block;
        padding: 10px 20px;
        color: var(--muted);
        text-decoration: none !important;
        font-size: 14px;
        transition: all 0.2s;
        border-left: 2px solid transparent;
    }

    .mobile-footer .links a:hover {
        color: var(--primary);
        background: #f9fafb;
        border-left-color: var(--primary);
        padding-left: 24px;
    }

    /* Social & Extra */
    .mobile-footer .social-box {
        padding: 24px;
        text-align: center;
        background: #fff;
    }

    /* Mobil Footer Kartlar Görseli - Tam Genişlik */
    .mobile-footer .social-box>div:last-of-type img,
    .mobile-footer .social-box img[alt*="Ödeme"] {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .mobile-footer .social-title {
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--muted);
        margin-bottom: 16px;
        display: block;
    }

    .mobile-footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .mobile-footer .social-icons a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f3f4f6;
        display: grid;
        place-items: center;
        color: var(--text);
        transition: all 0.2s;
    }

    .mobile-footer .social-icons a:hover {
        background: var(--text);
        color: #fff;
    }

    .mobile-footer .bottom-area {
        padding: 16px;
        background: #f9fafb;
        text-align: center;
        border-top: 1px solid var(--border);
    }

    .mobile-footer .copyright {
        font-size: 12px;
        color: var(--muted);
        margin-top: 8px;
    }
}



/* --- TOTAL BAR & STICKY LOGIC (CLEAN) --- */

/* 1. Desktop Behavior (Default) */
.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95);
}

.totalBar {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background: var(--success, #16a34a);
    color: #fff;
    cursor: default;
}

.totalBar.visible {
    max-height: 80px;
    opacity: 1;
    padding: 10px 16px;
}

/* 2. Mobile Behavior (max-width: 900px) */
@media (max-width: 900px) {

    /* Un-stick the header so it scrolls away */
    .header {
        position: relative !important;
        top: auto !important;
        height: auto !important;
    }

    /* Fix the Total Bar to the top when visible */
    .totalBar.visible {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        padding: 12px 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        max-height: 60px !important;
        /* Compact on mobile */
    }

    .totalBar .t1 {
        font-size: 11px;
        font-weight: 600;
        text-align: left;
    }

    .totalBar .t2 {
        font-size: 16px;
        font-weight: 800;
        text-align: right;
    }
}

/* --- UNIVERSAL STICKY TOTAL BAR FIX --- */

/* 1. Force Header to be normal flow (so it scrolls away) for everyone */
.header {
    position: relative !important;
    top: auto !important;
    z-index: 100 !important;
}

/* 2. Total Bar Base Style */
.totalBar {
    width: 100%;
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    /* Appearance */
    background: var(--success, #16a34a);
    color: #fff;

    /* Transition for smooth appearance */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* 3. When Visible: FIXED at Top of Viewport */
.totalBar.visible {
    /* Layout */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    /* Position Fixed = Sticky behavior independent of parent */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    /* Highest priority */

    /* Dimensions */
    width: 100% !important;
    max-height: 80px !important;
    padding: 12px 20px !important;

    /* Visuals */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;

    /* Animation entry */
    animation: stickySlideDown 0.3s ease forwards;
}

@keyframes stickySlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Specific Adjustments for Font Size */
@media (max-width: 600px) {
    .totalBar.visible {
        padding: 10px 16px !important;
        height: auto !important;
    }

    .totalBar .t1 {
        font-size: 11px;
    }

    .totalBar .t2 {
        font-size: 16px;
    }
}

/* --- PRODUCT BADGES --- */
.product-badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

/* Sabit Rozetler - gallery kaydırılsa bile yerinde kalır */
.product-badge-container.fixed-badges {
    z-index: 1000;
}

/* Video play icon overlay */
.gallery-item video {
    cursor: pointer;
}

/* Positions */
.product-badge-container.top-left {
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    align-items: flex-start;
}

.product-badge-container.top-right {
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
    align-items: flex-end;
}

.product-badge-container.bottom-left {
    bottom: 12px;
    left: 12px;
    top: auto;
    right: auto;
    align-items: flex-start;
}

.product-badge-container.bottom-right {
    bottom: 12px;
    right: 12px;
    top: auto;
    left: auto;
    align-items: flex-end;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Tahmini Kargo Tarihi Badge - Sosyal Bildirim Tarzı */
.shipping-estimate-badge {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    left: auto !important;
    top: auto !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    z-index: 50 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    max-width: 280px !important;
    box-sizing: border-box !important;
}

.shipping-estimate-badge * {
    box-sizing: border-box !important;
}

.shipping-estimate-badge .shipping-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    background: #f97316 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.shipping-estimate-badge .shipping-icon svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    stroke: #ffffff !important;
    fill: none !important;
    display: block !important;
}

.shipping-estimate-badge .shipping-divider {
    width: 1px !important;
    min-width: 1px !important;
    height: 40px !important;
    background: #e5e7eb !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: block !important;
}

.shipping-estimate-badge .shipping-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    line-height: 1.3 !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.shipping-estimate-badge .shipping-label {
    font-size: 10px !important;
    color: #374151 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    display: block !important;
    white-space: nowrap !important;
}

.shipping-estimate-badge .shipping-date {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    display: block !important;
    white-space: nowrap !important;
}

.shipping-estimate-badge .shipping-status {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #16a34a !important;
    display: block !important;
    white-space: nowrap !important;
}

/* Mobilde biraz daha kompakt ama aynı yapı */
@media (max-width: 600px) {
    .shipping-estimate-badge {
        bottom: 8px !important;
        right: 8px !important;
        padding: 8px 12px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .shipping-estimate-badge .shipping-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .shipping-estimate-badge .shipping-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .shipping-estimate-badge .shipping-divider {
        height: 36px !important;
    }

    .shipping-estimate-badge .shipping-text {
        gap: 1px !important;
    }

    .shipping-estimate-badge .shipping-label {
        font-size: 9px !important;
        color: #374151 !important;
        font-weight: 600 !important;
    }

    .shipping-estimate-badge .shipping-date {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #111 !important;
    }

    .shipping-estimate-badge .shipping-status {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #16a34a !important;
    }
}

/* Colors */
.badge-orange {
    background-color: #f97316;
}

/* Orange-500 */
.badge-green {
    background-color: #15803d;
}

/* Green-700 (Darker for contrast) */
.badge-red {
    background-color: #dc2626;
}

/* Red-600 */
.badge-blue {
    background-color: #2563eb;
}

/* Blue-600 */
.badge-black {
    background-color: #111827;
}

/* Gray-900 */
.badge-purple {
    background-color: #7c3aed;
}

/* Violet-600 */
/* Ask Store Button */
.btn-ask {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #dcfce7;
}

.btn-ask:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

/* ========================================
   MOBILE HEADER STYLES
   Blog linki sola alınmış, gri çizgi yok, 
   iconlarla eşit boşluklu
   ======================================== */

/* Desktop: Header links visible, mobile blog hidden */
.header-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-blog-link {
    display: none !important;
}

.desktop-menu-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-menu-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.desktop-menu-link:hover,
.desktop-menu-link.active {
    color: #fc5e05;
}

@media (max-width: 900px) {

    /* Hide desktop elements */
    .header-links {
        display: none !important;
    }

    .desktop-menu-area {
        display: none !important;
    }

    /* Show mobile blog link */
    .mobile-blog-link {
        display: inline-flex !important;
        align-items: center;
        margin-right: 8px;
        color: #fc5e05;
    }

    .mobile-blog-link:hover {
        color: #e65400;
    }

    /* h-actions evenly spaced on mobile */
    .h-actions {
        gap: 0;
        justify-content: flex-end;
    }

    .h-actions .h-btn {
        margin: 0 4px;
    }

    /* Remove first separator on mobile */
    .h-actions>.h-sep:first-of-type {
        display: none !important;
    }

    /* Brand smaller on mobile */
    .brand {
        font-size: 16px;
    }

    .header-in {
        padding: 12px 16px;
    }
}

/* ========================================
   FANCYBOX / LIGHTBOX OVERRIDES
   1500x2000 Portrait Images Optimization
   ======================================== */

/* Lightbox arka planı */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Ana görüntü container */
.fancybox__content {
    padding: 0 !important;
    background: transparent !important;
}

/* Görüntü stilleri - portrait 3:4 oran */
.fancybox__image {
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
}

/* Mobil için küçük toolbar */
@media (max-width: 768px) {
    .fancybox__toolbar {
        opacity: 0.8;
    }

    .fancybox__image {
        max-height: 80vh !important;
    }
}

/* Zoom butonları */
.fancybox__button--zoom,
.fancybox__button--slideshow {
    display: flex !important;
}

/* Thumbnail strip */
.fancybox__thumbs .carousel__slide {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.fancybox__thumbs .carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   PAGESPEED PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU Accelerated Animations - Prevent Non-Composited Animations */
.social-proof,
.modal-overlay,
.drawer,
.drawer-overlay,
.ep-fab,
.ep-panel,
.ep-btn,
.totalBar,
.scroll-top,
.btn,
.btn-tab,
.swatch {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce Motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Content Visibility for lazy rendering (below-the-fold content) */
.details-area,
.footer,
.mobile-footer,
.seo-text-area {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* CLS Prevention - Reserve space for dynamic content */
.price-display-main {
    min-height: 120px;
}

#discountBadge {
    min-height: 35px;
}

.product-tabs-container {
    min-height: 50px;
}

/* Optimize touch targets for mobile */
@media (max-width: 768px) {

    .btn,
    .h-btn,
    .gallery-nav,
    .swatch {
        min-height: 44px;
        min-width: 44px;
    }
}