/* ============================================
   Nur Mühendislik - Kombi E-Ticaret
   Modern, Responsive, Kurumsal Tasarım
   ============================================ */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --primary-light: #ff6b75;
    --secondary: #1d3557;
    --secondary-light: #2a4a76;
    --accent: #f1faee;
    --success: #2a9d8f;
    --warning: #f4a261;
    --danger: #e63946;
    --info: #457b9d;

    --gray-50: #fafbfc;
    --gray-100: #f5f7fa;
    --gray-200: #e4e7eb;
    --gray-300: #cbd2d9;
    --gray-400: #9aa5b1;
    --gray-500: #7b8794;
    --gray-600: #616e7c;
    --gray-700: #52606d;
    --gray-800: #3e4c59;
    --gray-900: #1f2933;

    --white: #ffffff;
    --black: #000000;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
button { cursor: pointer; font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

/* ===== Top Bar ===== */
.topbar {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    font-size: 13px;
}
.topbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: white; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: nowrap; align-items: center; }
.topbar-info--left { grid-column: 1; justify-self: start; }
.topbar-info--right { grid-column: 3; justify-self: end; }
.topbar-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.topbar-ticker {
    grid-column: 2;
    justify-self: center;
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 20px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.topbar-ticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.topbar-ticker-item.is-active {
    opacity: 1;
    position: relative;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    min-height: var(--header-height);
    padding: 12px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--secondary);
    font-size: 20px;
    letter-spacing: -0.5px;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius);
    font-size: 22px;
    box-shadow: var(--shadow);
}
.logo-text small {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-box {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}
.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--gray-50);
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
}
.search-box button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-box button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: none;
    background: var(--gray-50);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}
.icon-btn:hover { background: var(--primary); color: white; transform: translateY(-1px); }
.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    white-space: nowrap;
    border: none;
}
.header-cta-btn:hover {
    color: white !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.header-cta-btn i { font-size: 15px; }
@media (max-width: 900px) {
    .header-cta-btn { padding: 10px 12px; }
    .header-cta-btn .cta-text { display: none; }
}

/* ===== Navigation ===== */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.main-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 52px;
}
.nav-menu-main {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    margin: 0;
    padding: 0;
}
.nav-menu-main::-webkit-scrollbar { height: 4px; }
.nav-menu-main::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
.nav-menu-main > li { position: relative; flex-shrink: 0; }
.nav-menu-main > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-800);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu-main > li > a:hover,
.nav-menu-main > li.active > a {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: linear-gradient(to bottom, transparent, rgba(230, 57, 70, 0.04));
}
.mega-chevron { font-size: 10px; opacity: 0.75; transition: transform 0.2s; }
.nav-mega.has-mega:hover .mega-chevron { transform: rotate(-180deg); }

/*
 * overflow-x: auto burada overflow-y'yi de "auto" yaptığı için (CSS spec)
 * aşağıya taşan mega panel kırpılıyordu; sadece başlık çizgisi görünüyordu.
 */
@media (min-width: 1025px) {
    .main-nav,
    .main-nav-inner {
        overflow: visible;
    }
    .nav-menu-main {
        overflow: visible;
    }

    .nav-mega.has-mega .mega-panel {
        position: absolute;
        left: 0;
        top: 100%;
        min-width: min(920px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        background: white;
        border: 1px solid var(--gray-100);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-xl);
        padding: 0;
        z-index: 120;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .nav-mega.has-mega:hover .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mega-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: none;
    letter-spacing: 0;
}
.mega-all-link:hover { color: var(--primary-dark) !important; }
.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;
    padding: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.mega-col {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.mega-col:hover { background: var(--gray-50); }
.mega-col-title {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: var(--secondary) !important;
    margin-bottom: 8px;
}
.mega-col-title:hover { color: var(--primary) !important; }
.mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-links li { margin-bottom: 4px; }
.mega-links a {
    display: block;
    font-size: 13px;
    color: var(--gray-600) !important;
    padding: 4px 0;
    font-weight: 500;
    border-radius: var(--radius-sm);
}
.mega-links a:hover { color: var(--primary) !important; padding-left: 4px; }
.mega-links a.is-current { color: var(--primary) !important; font-weight: 700; }

/* Mega — mobile / tablet */
@media (max-width: 1024px) {
    .nav-mega.has-mega .mega-panel {
        display: none;
        position: static;
        min-width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--gray-100);
        border-radius: var(--radius);
        margin: 8px 12px 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-mega.has-mega.open .mega-panel { display: block; }
    .nav-mega.has-mega:hover .mega-panel { display: none; }
    .nav-mega.has-mega.open:hover .mega-panel { display: block; }
    .mega-grid {
        max-height: 240px;
        grid-template-columns: 1fr;
    }
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-50);
    border-radius: var(--radius);
    color: var(--gray-800);
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

/* ===== Hero / Banner ===== */
.hero {
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.92) 0%, rgba(29, 53, 87, 0.75) 100%),
        url('/images/hero-bg.png') center / cover;
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(230, 57, 70, 0.2), transparent 60%);
}
.hero-content { position: relative; max-width: 700px; }
.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(230, 57, 70, 0.2);
    color: white;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(230, 57, 70, 0.4);
}
.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--primary-light); }
.hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-outline { background: transparent; color: var(--secondary); border: 2px solid currentColor; }
.btn-outline:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.btn-light { background: white; color: var(--secondary); }
.btn-light:hover { background: var(--gray-100); color: var(--secondary); }
.btn-success { background: var(--success); }
.btn-success:hover { background: #1f7a6f; }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-bg { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}
.section-header p { color: var(--gray-600); margin-top: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Grids ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ===== Brand Cards ===== */
.brand-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1.15rem 1rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 148px;
    height: 100%;
    box-sizing: border-box;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.brand-card__media {
    flex-shrink: 0;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brand-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: grayscale(20%);
    transition: var(--transition);
}
.brand-card:hover .brand-card__media img { filter: grayscale(0%); }
.brand-card__placeholder-icon {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}
.brand-card__name {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 13px;
    line-height: 1.35;
    margin-top: auto;
    word-break: break-word;
}

/* ===== Category Cards ===== */
.category-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    aspect-ratio: 4/3;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.category-card-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: var(--transition-slow);
}
.category-card:hover .category-card-bg { transform: scale(1.08); }
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.2));
}
.category-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}
.category-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.category-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Product Cards ===== */
.product-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); }
.product-card-media {
    aspect-ratio: 4 / 3;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
    display: block;
}
.product-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: var(--transition-slow);
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    z-index: 2;
}
.product-card .badge-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gray-700);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    z-index: 2;
}
.product-card-body { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; gap: 6px; }
.product-card .brand { color: var(--primary); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 4px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--primary); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-card .price { font-size: 20px; font-weight: 800; color: var(--primary); }
.product-card .price-old { font-size: 13px; color: var(--gray-400); text-decoration: line-through; }
.product-card .call-price { font-size: 14px; color: var(--gray-600); font-weight: 600; font-style: italic; }
.product-card-foot { padding: 0 1rem 1rem; }

/* ===== Favorite button (product card + detail) ===== */
.product-card-media-wrap { position: relative; }
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-500);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    padding: 0;
}
.favorite-btn:hover {
    color: var(--primary);
    background: white;
    transform: scale(1.08);
}
.favorite-btn.is-active {
    color: var(--primary);
    background: white;
}
.favorite-btn.is-active i { font-weight: 900; }
.favorite-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.favorite-form { margin: 0; }
.favorite-detail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.favorite-detail-btn.is-active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.06);
}

/* ===== Addresses ===== */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.address-card {
    background: white;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
}
.address-card:hover { border-color: var(--gray-200); box-shadow: var(--shadow); }
.address-card.is-default { border-color: var(--primary); }
.address-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.address-card__title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin: 0; }
.address-card__default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
}
.address-card__body { color: var(--gray-700); font-size: 13.5px; line-height: 1.55; flex: 1; }
.address-card__body strong { color: var(--gray-900); }
.address-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.address-card__actions .btn { padding: 6px 10px; font-size: 12.5px; }

/* ===== Installment rate badge ===== */
.installment-rate-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: rgba(230, 57, 70, 0.10);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: 0.2px;
}

/* ===== Product detail — havale & taksit tab ===== */
.product-iban-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin-bottom: 2rem;
}
.product-iban-box__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--gray-900);
}
.product-iban-box__intro { font-size: 14px; margin: 0 0 1rem; line-height: 1.5; }
.product-iban-box__dl {
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr;
    gap: 0.65rem 1.25rem;
    margin: 0;
    font-size: 14px;
}
.product-iban-box__dl dt {
    margin: 0;
    font-weight: 700;
    color: var(--gray-700);
}
.product-iban-box__dl dd { margin: 0; color: var(--gray-900); }
.product-iban-code {
    display: inline-block;
    padding: 6px 10px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.product-installment-block { margin-top: 0.25rem; }
.product-pay-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.product-pay-title__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(69, 123, 157, 0.12);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.product-pay-title__h {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
}
.product-pay-title__sub {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.product-pay-info.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 12px 14px;
}
.product-pay-info .fa-circle-info { margin-top: 2px; flex-shrink: 0; }
.product-pay-info div { font-size: 13px; line-height: 1.5; }

.installment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.installment-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    overflow: hidden;
}
.installment-card__head {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.35;
    color: var(--gray-800);
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gray-50);
}
.installment-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.installment-table th,
.installment-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--gray-100);
    text-align: right;
}
.installment-table th {
    background: white;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 11px;
}
.installment-table tbody tr:last-child td { border-bottom: none; }
.installment-table th:first-child,
.installment-table td:first-child { text-align: left; }

@media (max-width: 480px) {
    .installment-grid { grid-template-columns: 1fr; }
    .product-iban-box__dl { grid-template-columns: 1fr; }
}

.payment-options-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--gray-900);
}

#checkout-payment-options {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.checkout-payment-jump {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.checkout-address-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.checkout-address-heading:first-of-type {
    margin-top: 0.5rem;
}

.shipping-method-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shipping-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.shipping-method-option:hover {
    border-color: var(--primary);
    background: rgba(196, 30, 58, 0.03);
}

.shipping-method-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.shipping-method-option-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.shipping-method-option-name {
    font-weight: 600;
    color: var(--gray-900);
}

.shipping-method-option-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.shipping-method-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(196, 30, 58, 0.06);
    box-shadow: 0 0 0 1px rgba(196, 30, 58, 0.08);
}

.payment-installment--compact .product-iban-box {
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}
.payment-installment--compact .product-iban-box__title { font-size: 1rem; }
.payment-installment--compact .product-pay-title__icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}
.payment-installment--compact .product-pay-title__h { font-size: 1.02rem; }
.payment-installment--compact .installment-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.payment-installment--compact .installment-card__head {
    min-height: auto;
    font-size: 11px;
}
.payment-installment--compact .installment-table { font-size: 11px; }
.payment-installment--compact .installment-table th,
.payment-installment--compact .installment-table td { padding: 7px 8px; }

/* ===== Banner Strip ===== */
.banner-strip {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.banner-strip h3 { font-size: 24px; font-weight: 800; }
.banner-strip p { color: rgba(255, 255, 255, 0.85); }

/* ===== Features Strip ===== */
.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.feature strong { display: block; color: var(--gray-900); font-size: 14px; }
.feature span { color: var(--gray-600); font-size: 12px; }

/* ===== Products listing ===== */
.products-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}
.products-filter {
    height: fit-content;
    position: sticky;
    top: 100px;
    min-width: 0;
}
.products-main {
    min-width: 0;
}
.products-filter__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.products-filter__header h3 {
    margin: 0;
}
.products-filter__toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-700);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.products-filter__toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.products-filter__toggle i {
    transition: transform 0.25s ease;
}

.products-toolbar {
    overflow: visible;
}
.products-toolbar .card-body {
    overflow: visible;
}
.products-sort-form__label {
    margin-bottom: 0;
    white-space: nowrap;
}
.custom-select,
.products-sort {
    position: relative;
    min-width: 0;
}
.custom-select__native,
.products-sort__native {
    width: auto;
    min-width: 150px;
}
.custom-select__trigger,
.custom-select__menu,
.products-sort__trigger,
.products-sort__menu {
    display: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 1rem;
    margin-top: 4rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(3, 1fr); margin-bottom: 3rem; }
.footer h4 { color: white; font-size: 16px; margin-bottom: 1rem; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; font-size: 14px; }
.footer ul li a { color: var(--gray-400); transition: var(--transition); }
.footer ul li a:hover { color: white; padding-left: 4px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; color: white; font-weight: 800; font-size: 20px; }
.footer-about { color: var(--gray-400); font-size: 14px; line-height: 1.7; }
.footer-contact { margin-top: 1rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.footer-contact li a { color: var(--gray-400); text-decoration: none; transition: var(--transition); }
.footer-contact li a:hover { color: white; }

.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 13px;
    color: var(--gray-500);
}

.footer-developer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    margin-top: 1.5rem;
}
.footer-developer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-developer__text {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa5b1;
    line-height: 1;
}
.footer-developer__logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-developer__logo:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.footer-developer__logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.alert-success { background: #e7f7ed; color: #166534; border-color: #16a34a; }
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #dc2626; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }
.alert ul { list-style: none; }
.alert ul li::before { content: '• '; }

/* ===== Confirm modal (cart remove, etc.) ===== */
.confirm-modal {
    position: fixed;
    inset: 0;
    width: min(420px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    height: fit-content;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.confirm-modal::backdrop {
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.confirm-modal__box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1rem, 4vw, 1.5rem) clamp(1.25rem, 3vw, 1.5rem);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    text-align: center;
    max-height: min(85vh, 100vh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.confirm-modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    background: rgba(230, 57, 70, 0.12);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.confirm-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}
.confirm-modal__text {
    font-size: 15px;
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}
.confirm-modal__subtext {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 1.35rem;
}
.confirm-modal__subtext--solo {
    margin-top: 0;
    color: var(--gray-700);
}
.confirm-modal__actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}
.confirm-modal__actions .btn { min-width: 110px; }

/* ===== KVKK modal ===== */
.kvkk-link {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}
.kvkk-link:hover { color: #1d4ed8; }

/* ===== Password visibility toggle ===== */
.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 2.75rem;
}
.password-field__toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
}
.password-field__toggle:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}
.password-field__toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.kvkk-modal {
    position: fixed;
    inset: 0;
    width: min(640px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    height: fit-content;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.kvkk-modal::backdrop {
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.kvkk-modal__box {
    display: flex;
    flex-direction: column;
    max-height: min(85vh, 100vh - 2rem);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.kvkk-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}
.kvkk-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}
.kvkk-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
    cursor: pointer;
    flex-shrink: 0;
}
.kvkk-modal__close:hover { background: var(--gray-200); }
.kvkk-modal__body {
    padding: 1.25rem;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.65;
    color: var(--gray-700);
    text-align: left;
    -webkit-overflow-scrolling: touch;
}
.kvkk-modal__body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1.25rem 0 0.5rem;
}
.kvkk-modal__body h3:first-of-type { margin-top: 0; }
.kvkk-modal__body ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    list-style: disc;
}
.kvkk-modal__body li { margin-bottom: 0.35rem; }
.kvkk-modal__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
}

@media (max-width: 480px) {
    .confirm-modal {
        width: calc(100vw - 1.25rem);
        max-width: calc(100vw - 1.25rem);
        max-height: calc(100vh - 1.25rem);
    }
    .confirm-modal__title { font-size: 1.05rem; }
    .confirm-modal__actions { flex-direction: column-reverse; }
    .confirm-modal__actions .btn { width: 100%; min-width: 0; }
}

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--gray-800); }
.form-label .required { color: var(--primary); }
.form-control, .form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--gray-900);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-text { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.is-invalid { border-color: var(--danger) !important; }
.invalid-feedback { color: var(--danger); font-size: 12px; margin-top: 4px; }

.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-check label { font-size: 14px; color: var(--gray-800); cursor: pointer; }

/* ===== Cards ===== */
.card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--gray-50);
}
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.card-body { padding: 1.5rem; }

/* ===== Product Detail ===== */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery .main-image {
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-100);
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-thumb {
    aspect-ratio: 1;
    background: var(--gray-50);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-thumb.active, .product-thumb:hover { border-color: var(--primary); }

.product-detail h1 { font-size: 28px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; line-height: 1.25; }
.product-meta { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; font-size: 13px; color: var(--gray-600); }
.product-meta strong { color: var(--gray-900); }
.product-price-box {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-100);
}
.product-price-box .old { color: var(--gray-400); text-decoration: line-through; font-size: 16px; }
.product-price-box .now { color: var(--primary); font-size: 32px; font-weight: 800; }
.product-price-box .save { display: inline-block; margin-top: 8px; padding: 4px 12px; background: var(--primary); color: white; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }

.product-price-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.product-price-option {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    text-align: inherit;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.product-price-option:hover {
    border-color: var(--secondary-light);
    box-shadow: var(--shadow-md);
}
.product-price-option.is-selected {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary), var(--shadow-md);
}
.product-price-option:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}
.product-price-option.is-selected .product-price-option-head {
    background: var(--primary);
}
.product-price-option-head {
    padding: 12px 16px;
    background: var(--secondary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}
.product-price-option-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.15rem;
}
.product-price-option-price {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
}
.product-price-option-price .old {
    display: block;
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 2px;
}
.product-price-option-price .now {
    color: var(--gray-900);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}
.product-price-option-price .save {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}
.product-price-option-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.product-price-option-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--gray-600);
}
.product-price-option-note + .product-price-option-note {
    margin-top: 0.35rem;
}

.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.qty-box button {
    width: 40px; height: 44px;
    background: var(--gray-50);
    color: var(--gray-700);
    border: none;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
}
.qty-box button:hover { background: var(--primary); color: white; }
.qty-box input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    background: white;
    color: var(--gray-900);
}
.qty-box input:focus { outline: none; }

.extra-services-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    text-align: left;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.extra-services-toggle:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}
.extra-services-toggle .form-label {
    margin: 0;
    cursor: pointer;
}
.extra-services-toggle-icon {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.25s ease;
}
.extra-services-accordion.is-open .extra-services-toggle {
    border-color: var(--primary);
}
.extra-services-accordion.is-open .extra-services-toggle-icon {
    transform: rotate(180deg);
}
.extra-services-panel {
    margin-top: 0.75rem;
}
.extra-services-panel[hidden] {
    display: none;
}

.service-list { background: var(--gray-50); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--gray-100); }
.service-list .form-check {
    background: white;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
}
.service-list .form-check:hover { border-color: var(--primary); }
.service-list .form-check label { display: flex; justify-content: space-between; width: 100%; cursor: pointer; }
.service-list .form-check label .price { color: var(--primary); font-weight: 700; }

.tabs { border-bottom: 2px solid var(--gray-100); display: flex; margin-bottom: 1.5rem; gap: 4px; }
.tabs button {
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Tables ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.table th { background: var(--gray-50); font-weight: 700; color: var(--gray-700); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.table tbody tr:hover { background: var(--gray-50); }
.table-responsive { overflow-x: auto; }

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-primary { background: #fee2e2; color: #991b1b; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: var(--gray-100); color: var(--gray-700); }

/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}
.auth-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 460px;
    width: 100%;
    padding: 2.5rem;
}
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--gray-600); margin-bottom: 1.5rem; font-size: 14px; }
.auth-card .footer-link { text-align: center; margin-top: 1.5rem; font-size: 14px; color: var(--gray-600); }
.auth-card .footer-link a { color: var(--primary); font-weight: 600; }

/* ===== Account Sidebar ===== */
.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    min-width: 0;
}
.account-main {
    min-width: 0;
    max-width: 100%;
}
.account-sidebar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    min-width: 0;
}
.account-sidebar__title {
    padding: 8px 12px;
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.account-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.account-sidebar a,
.account-sidebar__logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.account-sidebar a:hover,
.account-sidebar a.active,
.account-sidebar__logout button:hover {
    background: var(--primary);
    color: white;
}
.account-sidebar__logout { margin: 0; }

/* ===== Stats Cards ===== */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.stat-card .stat-info small { display: block; color: var(--gray-500); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-info strong { font-size: 26px; font-weight: 800; color: var(--gray-900); }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-card .stat-icon.primary { background: rgba(230, 57, 70, 0.1); color: var(--primary); }
.stat-card .stat-icon.success { background: rgba(42, 157, 143, 0.1); color: var(--success); }
.stat-card .stat-icon.info { background: rgba(69, 123, 157, 0.1); color: var(--info); }
.stat-card .stat-icon.warning { background: rgba(244, 162, 97, 0.1); color: var(--warning); }

/* ===== Admin Layout ===== */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
    font-size: 18px;
}
.admin-nav { padding: 0 1rem; }
.admin-nav-title { padding: 12px 16px 6px; font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--transition);
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.05); color: white; }
.admin-nav a.active { background: var(--primary); color: white; }
.admin-nav a i { width: 18px; text-align: center; }

.admin-main { background: var(--gray-50); padding: 0; min-width: 0; overflow-x: clip; }
.admin-content { padding: 2rem; min-width: 0; max-width: 100%; }
.admin-topbar {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-topbar h1 { font-size: 20px; font-weight: 700; color: var(--gray-900); }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.admin-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Overlay: masa\u00fcst\u00fcnde tamamen gizli; mobile media i\u00e7inde a\u00e7\u0131lacak */
.admin-sidebar-overlay { display: none; }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding: 2rem 0; }
.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    margin-bottom: 1rem;
}
.cart-item img { width: 110px; height: 110px; object-fit: contain; background: var(--gray-50); border-radius: var(--radius-sm); }
.cart-item h4 { font-size: 15px; margin-bottom: 6px; }
.cart-item .extra-services-mini { font-size: 12px; color: var(--gray-600); margin-top: 6px; }
.cart-summary {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}
.cart-summary h3 { font-size: 18px; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100); }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--gray-700); }
.cart-summary .row.total { font-size: 22px; font-weight: 800; color: var(--gray-900); padding-top: 1rem; border-top: 1px solid var(--gray-100); margin-top: 8px; }
.cart-summary .row.total .price { color: var(--primary); }

/* ===== Pagination ===== */
.pagination { display: inline-flex; gap: 4px; list-style: none; padding: 0; }
.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
}
.pagination li.active span { background: var(--primary); color: white; border-color: var(--primary); }
.pagination li a:hover { background: var(--gray-50); color: var(--primary); }
.pagination li.disabled span { opacity: 0.4; pointer-events: none; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--gray-500); padding: 1rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--gray-400); }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ===== Responsive ===== */

/* --- Tablet / small desktop (≤ 1024px) --- */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .account-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 0;
    }
    .account-sidebar {
        position: static;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
    }
    .account-sidebar__title { display: none; }
    .account-sidebar__nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .account-sidebar__nav::-webkit-scrollbar { display: none; }
    .account-sidebar a,
    .account-sidebar__logout button {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 14px;
        background: var(--white);
        border: 1px solid var(--gray-200);
        box-shadow: var(--shadow-sm);
    }
    .account-sidebar a.active {
        border-color: var(--primary);
    }
    .account-sidebar__logout button {
        color: var(--gray-700);
    }
    .account-layout .grid.grid-3 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Ürünler: mobilde filtreler kapalı, ok ile açılır */
    .products-layout { grid-template-columns: 1fr; }
    .products-filter {
        position: static;
        overflow: visible;
    }
    .products-filter .card-body {
        overflow: visible;
    }
    .products-filter__toggle { display: inline-flex; }
    .products-filter__body { display: none; }
    .products-filter.is-open .products-filter__body { display: block; }
    .products-filter.is-open .products-filter__toggle i { transform: rotate(180deg); }

    /* Ürünler: mobil/tablet özel select menüleri */
    .products-toolbar,
    .products-toolbar .card-body,
    .products-main,
    .products-layout {
        overflow: visible;
    }
    .custom-select__native,
    .products-sort__native {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .custom-select__trigger,
    .products-sort__trigger {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 148px;
        padding: 10px 12px;
        border: 1.5px solid var(--gray-200);
        border-radius: var(--radius);
        background: white;
        color: var(--gray-900);
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: var(--transition);
    }
    .custom-select--block .custom-select__trigger {
        width: 100%;
        min-width: 0;
    }
    .custom-select__trigger:hover,
    .custom-select.is-open .custom-select__trigger,
    .products-sort__trigger:hover,
    .products-sort.is-open .products-sort__trigger {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
    }
    .custom-select__trigger i,
    .products-sort__trigger i {
        font-size: 11px;
        color: var(--gray-500);
        transition: transform 0.2s ease;
    }
    .custom-select.is-open .custom-select__trigger i,
    .products-sort.is-open .products-sort__trigger i {
        transform: rotate(180deg);
    }
    .custom-select__menu,
    .products-sort__menu {
        display: block;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        min-width: 100%;
        max-height: min(280px, 50vh);
        margin: 0;
        padding: 6px;
        list-style: none;
        background: #2b3038;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        z-index: 40;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .custom-select--block .custom-select__menu {
        left: 0;
        right: 0;
    }
    .custom-select__menu[hidden],
    .products-sort__menu[hidden] {
        display: none;
    }
    .custom-select__menu button,
    .products-sort__menu button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 12px;
        border: none;
        border-radius: var(--radius-sm);
        background: transparent;
        color: white;
        font-size: 14px;
        font-family: inherit;
        text-align: left;
        cursor: pointer;
    }
    .custom-select__menu button:hover,
    .custom-select__menu button[aria-selected="true"],
    .products-sort__menu button:hover,
    .products-sort__menu button[aria-selected="true"] {
        background: rgba(255, 255, 255, 0.12);
    }
    .custom-select__menu button[aria-selected="true"]::after,
    .products-sort__menu button[aria-selected="true"]::after {
        content: '✓';
        font-size: 13px;
        color: #7dd3fc;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* Header: kompakt 3 kolon (logo - arama - aksiyonlar) */
    .header-inner { grid-template-columns: auto 1fr auto; gap: 1rem; padding: 8px 0; }
    .search-box { max-width: 360px; }
    .header-actions { gap: 6px; }
    .icon-btn { width: 40px; height: 40px; font-size: 16px; }

    /* Tablet'te de hamburger menü göster */
    .mobile-menu-toggle { display: inline-flex; }
    .main-nav { position: relative; }
    .main-nav-inner { flex-direction: column; align-items: stretch; min-height: 0; }
    .nav-menu-main {
        display: none;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
    }
    .nav-menu-main.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
        padding: 8px 0;
        z-index: 50;
        max-height: min(85vh, 640px);
        overflow-y: auto;
    }
    .nav-menu-main.open > li { width: 100%; flex-shrink: 1; }
    .nav-menu-main.open > li > a {
        padding: 14px 16px;
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
        white-space: normal;
        justify-content: flex-start;
    }

    /* Admin: sidebar off-canvas */
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        left: -280px;
        z-index: 200;
        width: 260px;
        transition: left 0.3s ease;
        top: 0;
        height: 100vh;
    }
    .admin-sidebar.open { left: 0; }
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 199;
    }
    .admin-sidebar-overlay.show { display: block; }

    .admin-topbar { padding: 0.75rem 1rem; }
    .admin-topbar h1 { font-size: 16px; }
    .admin-content { padding: 1rem; }

    /* Dashboard / liste grid'leri */
    .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Inline 2fr 1fr admin grid'leri tek kolona */
    .admin-content .grid[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
    .admin-content .grid[style*="2fr 1fr 1fr"] { grid-template-columns: 1fr !important; }

    /* Tablolar yalnızca .table-responsive içinde yatay scroll alır;
       sayfanın bütünü yatay scroll olmaz. */
    .table-responsive { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
    .table-responsive > .table { min-width: 640px; width: max-content; }

    /* Card içinde inline padding/genişlik bozulmasını engelle */
    .admin-content .card { max-width: 100%; }

    /* Mobile admin toggle button */
    .admin-menu-toggle { display: inline-flex !important; }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    /* Top bar compact */
    .topbar { font-size: 11px; padding: 6px 0; }
    .topbar .container {
        grid-template-columns: auto 1fr auto;
        gap: 0.35rem 0.5rem;
    }
    .topbar-info { gap: 0.5rem; }
    .topbar-ticker {
        max-width: 100%;
        min-width: 0;
    }
    .topbar-ticker-item { white-space: normal; font-size: 10px; line-height: 1.3; }
    .topbar-info--right span { display: none; }
    .topbar-links { font-size: 11px; }
    .topbar-links a { font-size: 11px; }

    /* Header compact: logo solda, aksiyonlar sağda, arama gizli */
    .header-inner {
        grid-template-columns: auto auto;
        gap: 0.75rem;
        padding: 8px 0;
    }
    .search-box { display: none; }
    .logo { font-size: 16px; gap: 8px; }
    .logo-mark { width: 36px; height: 36px; font-size: 18px; }
    .logo-text small { font-size: 9px; }
    .header-actions { gap: 4px; }
    .icon-btn { width: 36px; height: 36px; font-size: 14px; }
    .header-cta-btn { padding: 8px 10px; font-size: 12px; }
    .header-cta-btn .cta-text { display: none; }

    /* Hero */
    .hero { padding: 2.5rem 0; }
    .hero-content h2 { font-size: 24px; }
    .hero-content p { font-size: 14px; }
    .hero-actions { flex-direction: column; gap: 8px; }
    .hero-actions .btn { width: 100%; text-align: center; }

    /* Sections */
    .section { padding: 2rem 0; }
    .section-header h2 { font-size: 20px; }

    /* Product grids */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-card { border-radius: var(--radius-sm); }
    .product-card .card-body { padding: 10px; }
    .product-card h3 { font-size: 13px; line-height: 1.3; }
    .product-card .brand-name { font-size: 11px; }
    .product-card .price { font-size: 15px; }
    .product-card .price-old { font-size: 12px; }
    .product-card .card-footer { padding: 8px 10px; }
    .product-card .btn { font-size: 12px; padding: 6px 10px; }

    /* Product detail */
    .product-detail h1 { font-size: 20px; }
    .product-gallery { max-height: 300px; }
    .product-price-options { grid-template-columns: 1fr; }
    .product-price-option-price .now { font-size: 22px; }

    /* Cart */
    .cart-item { grid-template-columns: 80px 1fr; gap: 0.75rem; padding: 0.75rem; }
    .cart-item img { width: 80px; height: 80px; }
    .cart-item h4 { font-size: 13px; }
    .cart-summary { position: static; }

    /* Checkout */
    .checkout-layout { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-developer { padding: 12px 0; margin-top: 1.25rem; }
    .footer-developer__inner { gap: 10px; }
    .footer-developer__text { font-size: 10px; letter-spacing: 0.12em; }
    .footer-developer__logo img { height: 24px; max-width: 150px; }

    /* Auth */
    .auth-wrapper { padding: 1.5rem 1rem; min-height: auto; }
    .auth-card { padding: 1.5rem; max-width: 100%; box-shadow: var(--shadow-md); }
    .auth-card h1 { font-size: 22px; }

    /* Forms general */
    .form-label { font-size: 13px; }
    .form-control { font-size: 14px; height: 42px; padding: 0 12px; }
    textarea.form-control { height: auto; padding: 10px 12px; }
    .form-group { margin-bottom: 0.75rem; }

    /* Tables in admin/front */
    .table th, .table td { padding: 10px 8px; font-size: 12px; }
    .table th { font-size: 10px; }
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* Admin panel mobile */
    .admin-topbar {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    .admin-topbar h1 { font-size: 15px; }
    .admin-content { padding: 0.75rem; }
    .admin-user { gap: 6px; flex-wrap: wrap; }
    .admin-user > div[style] { display: none; }
    .admin-user-avatar { width: 30px; height: 30px; font-size: 13px; }

    /* Admin stat cards */
    .stat-card { padding: 1rem; }
    .stat-card .stat-info strong { font-size: 20px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; }

    /* Card component */
    .card { border-radius: var(--radius-sm); }
    .card-header { padding: 0.75rem 1rem; }
    .card-header h3 { font-size: 15px; }
    .card-body { padding: 0.75rem 1rem; }

    /* Buttons compact */
    .btn { padding: 8px 14px; font-size: 13px; }
    .btn-sm { padding: 6px 10px; font-size: 11px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }

    /* Tabs */
    .tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tabs button { padding: 10px 14px; font-size: 12px; white-space: nowrap; }

    /* Breadcrumb */
    .breadcrumb { font-size: 12px; padding: 0.75rem 0; }

    /* Hesabım: taşmayı engelle, başlıkları küçült */
    .account-layout { overflow-x: clip; max-width: 100%; padding: 1rem 0; gap: 1rem; }
    .account-main h1 { font-size: 20px !important; line-height: 1.3; }
    .account-main .stat-card { padding: 1rem; }
    .account-main .stat-card .stat-info strong { font-size: 22px; }
    .account-main .table-responsive {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .account-main .table-responsive > .table {
        min-width: 520px;
        width: max-content;
    }
    .account-main .address-grid {
        grid-template-columns: 1fr;
    }

    /* Pagination */
    .pagination li a, .pagination li span { min-width: 32px; height: 32px; font-size: 12px; }

    /* Filter forms in admin */
    .filter-grid { grid-template-columns: 1fr !important; }

    /* Contact page */
    .contact-grid { grid-template-columns: 1fr; }

    /* Phone / WhatsApp / back-to-top */
    .phone-float { width: 48px; height: 48px; font-size: 20px; bottom: 72px; right: 16px; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 24px; bottom: 16px; right: 16px; }
    .back-to-top { bottom: 128px; right: 16px; width: 38px; height: 38px; }

    /* Alert */
    .alert { font-size: 13px; padding: 10px 14px; }
}

/* --- Small mobile (≤ 480px) --- */
@media (max-width: 480px) {
    body { font-size: 14px; }
    .container { padding: 0 0.75rem; }

    /* Single column product grid */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

    /* Dashboard stat cards: 1 col */
    .grid.grid-4 { grid-template-columns: 1fr; }

    /* Auth even tighter */
    .auth-card { padding: 1.25rem; border-radius: var(--radius-sm); }
    .auth-card h1 { font-size: 20px; }
    .logo-mark { width: 40px; height: 40px; }

    /* Cart item stack */
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item img { width: 70px; height: 70px; }

    /* Qty box */
    .qty-box { transform: scale(0.9); transform-origin: left center; }

    /* Admin */
    .admin-topbar { flex-wrap: wrap; }

    /* Header actions tighter */
    .header-actions { gap: 2px; }
    .icon-btn { width: 32px; height: 32px; font-size: 13px; }

    /* Mega panel mobile */
    .mega-grid { padding: 4px; }
    .mega-col { padding: 6px 8px; }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Lazy image fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s; }
img[loading="lazy"].loaded { opacity: 1; }

/* Phone Float */
.phone-float {
    position: fixed;
    bottom: 92px;
    right: 24px;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    font-size: 24px;
    transition: var(--transition);
}
.phone-float:hover { transform: scale(1.1) translateY(-2px); color: white; background: var(--primary-dark); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    font-size: 28px;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-2px); color: white; }

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); }
