/* =====================================================
   Tayzshop — Özel Tasarım Sistemi
   Bootstrap 5 üzerine modern, premium e-ticaret teması
   ===================================================== */

/* ---- CSS Değişkenleri (Design Tokens) ---- */
:root {
    --ts-primary: #7C3AED;           /* Electric Purple */
    --ts-primary-dark: #6D28D9;
    --ts-primary-light: #A78BFA;
    --ts-primary-glow: rgba(124, 58, 237, 0.1);
    --ts-accent: #FF8A65;            /* Soft Peach */
    --ts-success: #34d399;           /* Soft pastel mint */
    --ts-danger: #f87171;            /* Soft pastel red */
    --ts-warning: #fbbf24;           /* Soft pastel yellow */

    --ts-bg-dark: #FAF6F0;           /* Soft warm beige background */
    --ts-bg-card: #ffffff;           /* Clean white cards */
    --ts-bg-card-hover: #F3ECE2;
    --ts-bg-elevated: #ffffff;       /* White elevated elements */
    --ts-bg-input: #FDFBF8;          /* Light beige input backgrounds */
    --ts-border: #E8E2D5;            /* Soft warm borders */
    --ts-border-light: #D5CCBA;

    --ts-text: #5C5446;              /* Warm charcoal text */
    --ts-text-muted: #807664;        /* Muted warm slate text */
    --ts-text-heading: #2D2517;      /* Dark warm heading */

    --ts-radius-sm: 8px;
    --ts-radius: 12px;
    --ts-radius-lg: 16px;
    --ts-radius-xl: 24px;

    --ts-shadow: 0 4px 20px rgba(45, 37, 23, 0.04);
    --ts-shadow-lg: 0 10px 30px rgba(45, 37, 23, 0.06);
    --ts-shadow-glow: 0 0 20px var(--ts-primary-glow);

    --ts-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ts-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --sidebar-width: 260px;
}

/* ---- Genel (Reset & Base) ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ts-font);
    background-color: var(--ts-bg-dark);
    color: var(--ts-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ts-primary-light);
    text-decoration: none;
    transition: var(--ts-transition);
}
a:hover {
    color: var(--ts-primary);
}

::selection {
    background: var(--ts-primary);
    color: white;
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--ts-primary);
    padding: 6px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}
.top-bar small {
    color: rgba(255, 255, 255, 0.9) !important;
}
.top-bar i {
    color: rgba(255, 255, 255, 0.95);
}

/* ---- Navigasyon ---- */
.navbar-main {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--ts-border);
    padding: 12px 0;
    transition: var(--ts-transition);
    z-index: 1040;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
    border-radius: var(--ts-radius-sm);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--ts-shadow-glow);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ts-text-heading);
    letter-spacing: -0.5px;
}

.navbar-main .nav-link {
    color: var(--ts-text-muted);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--ts-radius-sm);
    transition: var(--ts-transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--ts-primary-dark);
    background: var(--ts-primary-glow);
}

.btn-cart {
    background: var(--ts-bg-card);
    color: var(--ts-text);
    border: 1px solid var(--ts-border-light);
    border-radius: var(--ts-radius-sm);
    padding: 8px 14px;
    transition: var(--ts-transition);
}
.btn-cart:hover {
    background: var(--ts-bg-card-hover);
    color: var(--ts-primary-dark);
    border-color: var(--ts-primary);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--ts-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-user {
    color: var(--ts-text-muted);
    border: 1px solid var(--ts-border-light);
    border-radius: var(--ts-radius-sm);
    padding: 6px 14px;
    font-size: 0.9rem;
    transition: var(--ts-transition);
}
.btn-user:hover {
    color: var(--ts-primary-dark);
    border-color: var(--ts-primary);
}

.btn-login {
    background: var(--ts-primary);
    color: white;
    border-radius: var(--ts-radius-sm);
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    transition: var(--ts-transition);
}
.btn-login:hover {
    background: var(--ts-primary-dark);
    color: white;
    box-shadow: var(--ts-shadow-glow);
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: var(--ts-border-light);
    color: var(--ts-text);
}

/* ---- Hero Section ---- */
.hero-section {
    padding: 20px 0 15px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, var(--ts-primary-glow) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--ts-primary-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--ts-text-heading);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ts-primary-light), var(--ts-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--ts-text-muted);
    max-width: 520px;
    line-height: 1.5;
}

.hero-visual {
    position: relative;
    height: 220px;
}

.hero-card {
    position: absolute;
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border-light);
    border-radius: var(--ts-radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ts-text-heading);
    box-shadow: var(--ts-shadow);
    animation: float 6s ease-in-out infinite;
    top: 10px;
    right: 20px;
    font-size: 0.9rem;
}
.hero-card i { font-size: 1.3rem; color: var(--ts-primary-light); }
.hero-card-2 { top: 75px; right: 60px; animation-delay: 2s; }
.hero-card-2 i { color: var(--ts-success); }
.hero-card-3 { top: 140px; right: 10px; animation-delay: 4s; }
.hero-card-3 i { color: var(--ts-accent); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Butonlar ---- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
    color: white;
    border: none;
    border-radius: var(--ts-radius-sm);
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--ts-transition);
}
.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--ts-accent), var(--ts-primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.4);
    transform: translateY(-2px);
}

.btn-outline-custom {
    color: var(--ts-text);
    border: 1px solid var(--ts-border-light);
    border-radius: var(--ts-radius-sm);
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--ts-transition);
}
.btn-outline-custom:hover {
    border-color: var(--ts-primary);
    color: var(--ts-primary-light);
    background: rgba(99, 102, 241, 0.05);
}

/* ---- Avantajlar ---- */
.advantages-strip {
    padding: 24px 0;
    border-top: 1px solid var(--ts-border);
    border-bottom: 1px solid var(--ts-border);
    background: rgba(95, 90, 246, 0.03);
}

.advantage-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
}
.advantage-item i {
    font-size: 1.6rem;
    color: var(--ts-primary-light);
}
.advantage-item strong { font-size: 0.85rem; display: block; }
.advantage-item small { font-size: 0.75rem; color: var(--ts-text-muted); }

/* ---- Bölüm Başlıkları ---- */
.section-badge {
    display: inline-block;
    background: rgba(255, 138, 101, 0.15);
    color: #E64A19;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ts-text-heading);
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--ts-text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- Ürün Kartları ---- */
.product-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    overflow: hidden;
    transition: var(--ts-transition);
}
.product-card:hover {
    border-color: var(--ts-accent);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(255, 138, 101, 0.15);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--ts-bg-input);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--ts-accent), #FF7043);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 138, 101, 0.3);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--ts-transition);
}
.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 18px;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-name a {
    color: var(--ts-text-heading);
}
.product-name a:hover {
    color: var(--ts-primary-light);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FF7043;
    margin-bottom: 6px;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--ts-primary-dark), var(--ts-accent));
    margin-top: 40px;
}

/* ---- Ürün Detay ---- */
.product-gallery .main-image-wrap {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-gallery .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.thumbnail-item {
    width: 72px;
    height: 72px;
    border: 2px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--ts-transition);
    flex-shrink: 0;
}
.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--ts-primary);
    box-shadow: 0 0 10px var(--ts-primary-glow);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ts-text-heading);
    margin-bottom: 8px;
}

.product-category-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--ts-primary-light);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: #FF7043;
}
.price-hint {
    color: var(--ts-text-muted);
    font-size: 0.85rem;
}

.tiered-pricing-card {
    background: var(--ts-bg-elevated);
    border: 1px solid var(--ts-border-light);
    border-radius: var(--ts-radius);
    padding: 20px;
}
.tiered-pricing-card .table {
    color: var(--ts-text);
    border-color: var(--ts-border);
}
.tiered-pricing-card .table thead th {
    background: rgba(99, 102, 241, 0.15);
    color: var(--ts-text-heading);
    border-color: var(--ts-border);
    font-weight: 600;
    font-size: 0.85rem;
}
.tiered-pricing-card .table td {
    border-color: var(--ts-border);
}
.tiered-pricing-card .table-primary {
    background: rgba(99, 102, 241, 0.1) !important;
}

.quantity-input-group {
    width: 160px;
}

.product-description-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    padding: 32px;
}

/* ---- Sepet ---- */
.cart-items-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ts-border);
    transition: var(--ts-transition);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--ts-bg-card-hover); }

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--ts-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ts-bg-input);
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-summary-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    padding: 24px;
    position: sticky;
    top: 80px;
}

/* ---- Giriş Sayfası ---- */
.login-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    padding: 40px;
    box-shadow: var(--ts-shadow-lg);
}

.login-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
}
.login-icon i { font-size: 2rem; color: white; }

/* ---- Footer ---- */
.site-footer {
    background: var(--ts-bg-elevated);
    padding: 50px 0 30px;
    border-top: 1px solid var(--ts-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon { font-size: 1rem; }

.footer-title {
    font-weight: 700;
    color: var(--ts-text-heading);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--ts-text-muted);
}
.footer-links a {
    color: var(--ts-text-muted);
    transition: var(--ts-transition);
}
.footer-links a:hover {
    color: var(--ts-primary-dark);
    padding-left: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ts-border-light);
    border-radius: 50%;
    color: var(--ts-text-muted);
    transition: var(--ts-transition);
}
.social-link:hover {
    color: var(--ts-primary-dark);
    border-color: var(--ts-primary);
    background: rgba(95, 90, 246, 0.08);
}

/* =====================================================
   ADMIN PANELİ TASARIMI
   ===================================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--ts-bg-elevated);
    border-right: 1px solid var(--ts-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    transition: var(--ts-transition);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--ts-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
    border-radius: 8px;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}

.brand-text-sm {
    color: var(--ts-text-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ts-border);
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    background: var(--ts-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--ts-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--ts-transition);
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-link:hover {
    color: white;
    background: rgba(99, 102, 241, 0.08);
}
.sidebar-nav .nav-link.active {
    color: var(--ts-primary-light);
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--ts-primary);
}
.sidebar-nav .nav-link i { font-size: 1.1rem; width: 22px; text-align: center; }

.sidebar-section-title {
    padding: 16px 20px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ts-text-muted);
    list-style: none;
}

.sidebar-footer {
    border-top: 1px solid var(--ts-border);
    padding: 8px 0;
}
.sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--ts-text-muted);
    font-size: 0.9rem;
    transition: var(--ts-transition);
}
.sidebar-footer .nav-link:hover { color: var(--ts-primary-dark); }

.sidebar-close {
    background: none;
    border: none;
    color: var(--ts-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---- Admin Content Area ---- */
.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.admin-topbar {
    background: var(--ts-bg-elevated);
    border-bottom: 1px solid var(--ts-border);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-role-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--ts-primary-light);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---- Stat Kartları ---- */
.stat-card {
    border-radius: var(--ts-radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--ts-transition);
}
.stat-card:hover { transform: translateY(-4px); }

.stat-card-primary {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05));
    border: 1px solid rgba(99,102,241,0.2);
}
.stat-card-warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.2);
}
.stat-card-success {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border: 1px solid rgba(16,185,129,0.2);
}

.stat-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--ts-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-card-primary .stat-icon { background: rgba(99,102,241,0.2); color: var(--ts-primary-light); }
.stat-card-warning .stat-icon { background: rgba(245,158,11,0.2); color: var(--ts-warning); }
.stat-card-success .stat-icon { background: rgba(16,185,129,0.2); color: var(--ts-success); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ts-text-heading);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--ts-text-muted);
    margin-top: 4px;
}

/* ---- Admin Kartlar ---- */
.admin-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ts-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--ts-text-heading);
}

.admin-card-body {
    padding: 20px;
}

/* ---- Admin Tablo ---- */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(99, 102, 241, 0.05);
    color: var(--ts-text);
    border-color: var(--ts-border);
}
.table-dark th {
    background: rgba(0, 0, 0, 0.02);
    color: var(--ts-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-color: var(--ts-border);
}
.table-dark td {
    border-color: var(--ts-border);
    vertical-align: middle;
    color: var(--ts-text) !important;
}

/* ---- Admin List Item ---- */
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ts-border);
}
.admin-list-item:last-child { border-bottom: none; }

.admin-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--ts-radius-sm);
    overflow: hidden;
    background: var(--ts-bg-input);
    flex-shrink: 0;
}
.admin-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Form Özelleştirmeleri ---- */
.form-control.bg-dark,
.form-select.bg-dark {
    background-color: var(--ts-bg-input) !important;
    border-color: var(--ts-border-light) !important;
    color: var(--ts-text) !important;
}
.form-control.bg-dark:focus,
.form-select.bg-dark:focus {
    border-color: var(--ts-primary) !important;
    box-shadow: 0 0 0 3px var(--ts-primary-glow) !important;
}

.form-control.bg-dark::placeholder {
    color: var(--ts-text-muted);
}

.form-label {
    color: var(--ts-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 50px 0 40px;
    }
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    .cart-item-total {
        text-align: center !important;
    }
}

/* ---- Sayfalama Özelleştirme ---- */
.pagination .page-link {
    background: var(--ts-bg-card);
    border-color: var(--ts-border);
    color: var(--ts-text-muted);
    transition: var(--ts-transition);
}
.pagination .page-link:hover {
    background: var(--ts-bg-card-hover);
    border-color: var(--ts-primary);
    color: var(--ts-primary-dark);
}
.pagination .active .page-link {
    background: var(--ts-primary);
    border-color: var(--ts-primary);
    color: white;
}

/* ---- Bootstrap Alert Tema ---- */
.alert {
    border-radius: var(--ts-radius-sm);
    border: none;
}

/* ---- Badge Özelleştirme ---- */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
}

/* ---- Dropdown Tema ---- */
.dropdown-menu {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    box-shadow: var(--ts-shadow-lg);
}
.dropdown-item {
    color: var(--ts-text);
    padding: 8px 16px;
    transition: var(--ts-transition);
}
.dropdown-item:hover {
    background: rgba(95, 90, 246, 0.08);
    color: var(--ts-primary-dark);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: transparent;
    padding: 0;
}
.breadcrumb-item a { color: var(--ts-text-muted); }
.breadcrumb-item.active { color: var(--ts-text-heading); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ts-text-muted); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ts-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--ts-border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ts-primary); }

/* ---- Input Group Tema ---- */
.input-group-text {
    background: var(--ts-bg-input);
    border-color: var(--ts-border-light);
    color: var(--ts-text-muted);
}

/* ---- No-Image Placeholder ---- */
.admin-product-thumb img[src=""],
.admin-product-thumb img:not([src]) {
    display: none;
}
.admin-product-thumb:empty::after,
.admin-product-thumb img[src=""]::after {
    content: '📦';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.2rem;
}

/* ---- Smooth Entrance Animations ---- */
.product-card,
.stat-card,
.admin-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Kategori Filtre Sidebar ---- */
.category-sidebar {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    padding: 24px;
    position: sticky;
    top: 85px;
    box-shadow: var(--ts-shadow);
}
.category-sidebar h6 {
    font-weight: 700;
    color: var(--ts-text-heading);
    border-bottom: 2px solid var(--ts-primary-glow);
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-sidebar a {
    font-size: 0.9rem;
    padding: 4px 0;
    display: block;
    color: var(--ts-text);
    transition: var(--ts-transition);
}
.category-sidebar a:hover {
    color: var(--ts-primary) !important;
    padding-left: 4px;
}
.category-sidebar .active-cat-link {
    color: white !important;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-accent));
    border-left: none;
    padding: 6px 12px;
    border-radius: var(--ts-radius-sm);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.filter-light {
    filter: brightness(0) invert(1);
}

/* ---- KVKK Çerez Banner Stilleri ---- */
.cookie-consent-banner {
    position: fixed;
    bottom: -250px; /* Hidden initially, slides up */
    left: 24px;
    right: 24px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    box-shadow: 0 10px 40px rgba(45, 37, 23, 0.12);
    padding: 24px;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.show {
    bottom: 24px;
}

.cookie-consent-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ts-text-heading);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-title i {
    color: var(--ts-primary);
    font-size: 1.2rem;
}

.cookie-consent-text {
    font-size: 0.85rem;
    color: var(--ts-text);
    line-height: 1.5;
    margin-bottom: 16px;
}

.cookie-consent-text a {
    color: var(--ts-primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent-btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--ts-radius-sm);
    transition: var(--ts-transition);
}

.cookie-consent-btn-accept {
    background: var(--ts-primary);
    color: white;
    border: 1px solid var(--ts-primary);
}

.cookie-consent-btn-accept:hover {
    background: var(--ts-primary-dark);
    border-color: var(--ts-primary-dark);
}

.cookie-consent-btn-reject {
    background: transparent;
    color: var(--ts-text-muted);
    border: 1px solid var(--ts-border-light);
}

.cookie-consent-btn-reject:hover {
    background: var(--ts-bg-card-hover);
    color: var(--ts-text);
}

@media (max-width: 575.98px) {
    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: -300px;
        padding: 16px;
    }
    .cookie-consent-banner.show {
        bottom: 12px;
    }
    .cookie-consent-buttons {
        flex-direction: column-reverse;
    }
    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }
}


/* ---- Sarı Siyah Tema ---- */
body.theme-yellow-black {
    --ts-primary: #FFB300;
    --ts-primary-dark: #FF8F00;
    --ts-primary-light: #FFCA28;
    --ts-primary-glow: rgba(255, 179, 0, 0.15);
    --ts-accent: #212121;
    --ts-success: #10B981;
    --ts-danger: #EF4444;
    --ts-warning: #F59E0B;

    --ts-bg-dark: #FDFBF7;
    --ts-bg-card: #ffffff;
    --ts-bg-card-hover: #FFF9E6;
    --ts-bg-elevated: #ffffff;
    --ts-bg-input: #FAF8F2;
    --ts-border: #E8E4D9;
    --ts-border-light: #D5D1C4;

    --ts-text: #333333;
    --ts-text-muted: #666666;
    --ts-text-heading: #111111;
}
