:root {
    --primary:    #ff6700;
    --primary-dk: #e05c00;
    --primary-lt: #fff3eb;
    --nav-bg:     #09002b;
    --bg:         #f5f5f5;
    --bg2:        #ffffff;
    --bg3:        #f0f2f5;
    --border:     #e8e8e8;
    --text:       #444444;
    --muted:      #888888;
    --radius:     5px;
    --shadow:     0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 28px rgba(0,0,0,.13);
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

/* ─── Header Top ─── */
.header-top {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 6px 0;
    font-size: 13px;
    color: #444;
}
.header-top a { color: #444; text-decoration: none; margin-left: 18px; }
.header-top a:hover { color: var(--primary); }
.header-top-phone { font-weight: 600; color: var(--primary) !important; }

/* ─── Header Main ─── */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 1000;
    position: sticky;
    top: 0;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    color: #09002b;
    letter-spacing: -0.5px;
}

/* ─── Search ─── */
.search-form { position: relative; }
.search-input {
    background: #fff;
    border: 2px solid #e8e8e8 !important;
    border-radius: var(--radius) !important;
    color: var(--text);
    padding: 11px 60px 11px 16px;
    font-size: 14px;
    height: 48px;
}
.search-input:focus {
    background: #fff;
    border-color: var(--primary) !important;
    color: var(--text);
    box-shadow: none;
}
.search-input::placeholder { color: #aaa; }
.search-btn {
    position: absolute;
    right: 0; top: 0;
    height: 48px; width: 56px;
    background: var(--primary);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}
.search-btn:hover { background: var(--primary-dk); }

/* ─── Header icons ─── */
.header-icon {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    color: #444; text-decoration: none;
    font-size: 13px; transition: color .2s; position: relative;
    gap: 2px;
}
.header-icon i { font-size: 1.35rem; }
.header-icon:hover { color: var(--primary); }
.header-icon span { font-size: 11px; font-weight: 500; }
.cart-badge {
    position: absolute; top: -2px; right: -8px;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* ─── Header Bottom (Category Nav) ─── */
.header-bottom {
    background: var(--nav-bg);
    padding: 0;
}
.header-bottom .container-xl { display: flex; align-items: center; overflow-x: auto; }
.header-bottom::-webkit-scrollbar { height: 3px; }
.header-bottom::-webkit-scrollbar-thumb { background: #000; }
.category-nav-link {
    display: inline-block;
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s, background .2s;
    border-bottom: 3px solid transparent;
}
.category-nav-link:hover,
.category-nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.category-nav-link.all-link {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
}
.category-nav-link.all-link:hover { background: var(--primary-dk); color: #fff; border-bottom-color: transparent; }

/* ─── Flash mesajlar ─── */
.flash-container { padding: 12px 0 0; }

/* ─── Slider ─── */
.slider-img { height: 420px; object-fit: cover; }
@media(max-width:768px) { .slider-img { height: 200px; } }
.carousel-caption { text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ─── Trust bar ─── */
.trust-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.trust-item {
    border-right: 1px solid var(--border);
    padding: 18px 24px;
    text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 1.8rem; color: var(--primary); display: block; margin-bottom: 6px; }
.trust-label { font-weight: 600; font-size: 13px; color: var(--text); }
.trust-sub { color: var(--muted); font-size: 11px; }

/* ─── Section title ─── */
.section-title {
    font-size: 1.2rem; font-weight: 700;
    position: relative; padding-left: 14px; color: var(--text);
    margin-bottom: 0;
}
.section-title::before {
    content: ''; position: absolute;
    left: 0; top: 3px; bottom: 3px;
    width: 4px; background: var(--primary); border-radius: 2px;
}

/* ─── Category card ─── */
.category-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 8px;
    transition: all .2s;
    color: var(--text);
    box-shadow: var(--shadow);
    text-align: center;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--primary); }
.category-img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; border: 2px solid #efefef; margin-bottom: 10px; }
.category-icon-box { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; line-height: 90px; width: 90px; height: 90px; border-radius: 50%; border: 2px solid #efefef; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.category-name { font-size: 13px; font-weight: 500; color: var(--text); text-transform: uppercase; }
.category-card:hover .category-name { color: var(--primary); }

/* ─── Product card ─── */
.product-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
    height: 100%;
    box-shadow: var(--shadow);
}
.product-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-img-wrap { overflow: hidden; background: #fff; position: relative; border-bottom: 1px solid var(--border); }
.product-img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img { transform: scale(1.04); }

.badge-discount {
    position: absolute; top: 8px; right: 8px;
    background: #e53e3e; color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px;
}
.badge-new {
    position: absolute; top: 8px; left: 8px;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px;
}

.product-body { padding: 12px; }
.product-brand { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: 13px; font-weight: 500; margin: 0 0 8px; line-height: 1.4; height: 37px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-name a { color: var(--text); text-decoration: none; }
.product-name a:hover { color: var(--primary); }
.product-cat { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 12px; margin-right: 6px; }
.price-new { color: var(--primary); font-weight: 700; font-size: 17px; }
.btn-sepet-card {
    display: block; width: 100%; height: 42px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 0 0 var(--radius) var(--radius);
    font-size: 13px; font-weight: 700; letter-spacing: .3px;
    cursor: pointer; transition: background .2s;
    text-transform: uppercase;
}
.btn-sepet-card:hover { background: var(--primary-dk); }

/* ─── Product detail ─── */
.product-title { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.product-brand-lg { color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.price-old-lg { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; margin-right: 8px; }
.price-new-lg { color: var(--primary); font-weight: 800; font-size: 2rem; }
.kargo-info { background: var(--primary-lt); border: 1px solid #fbd5c5; border-radius: var(--radius); }
.kargo-info .bi { color: var(--primary); }
.thumb-img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid var(--border); }
.thumb-img:hover, .thumb-img.active { border-color: var(--primary); }

/* ─── Varyant seçici ─── */
.varyant-label input[type=radio] { display: none; }
.varyant-btn {
    display: inline-block; padding: 7px 16px; border-radius: 4px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    border: 2px solid var(--border); background: var(--bg3);
    color: var(--text); transition: all .2s; user-select: none;
}
.varyant-btn:hover { border-color: var(--primary); color: var(--primary); }
.varyant-btn.disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.varyant-label input[type=radio]:checked + .varyant-btn {
    border-color: var(--primary); background: var(--primary-lt); color: var(--primary); font-weight: 700;
}

/* ─── Mini banner ─── */
.mini-banner { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mini-banner img { height: 180px; object-fit: cover; transition: transform .3s; }
.mini-banner:hover img { transform: scale(1.04); }
.mini-banner-text {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff; font-weight: 700;
}

/* ─── Filter box ─── */
.filter-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.filter-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 13px; border-bottom: 1px solid var(--border); }
.filter-list li:last-child a { border-bottom: none; }
.filter-list li a:hover, .filter-list li a.active { color: var(--primary); font-weight: 600; }

/* ─── Page title ─── */
.page-title { font-size: 1.4rem; font-weight: 700; color: var(--text); }

/* ─── Cart ─── */
.cart-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.cart-item-name { font-weight: 600; font-size: 14px; color: var(--text); }
.cart-item-price { color: var(--muted); font-size: 13px; }
.cart-item-total { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ─── Order summary ─── */
.order-summary {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky; top: 80px;
}
.order-summary-box {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
}

/* ─── Checkout ─── */
.checkout-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.payment-option input[type=radio] { display: none; }
.payment-box {
    background: var(--bg3); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 16px; cursor: pointer; transition: border-color .2s;
}
.payment-option input:checked + .payment-box { border-color: var(--primary); background: var(--primary-lt); }

/* ─── Auth box ─── */
.auth-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 440px;
    box-shadow: var(--shadow-hover);
}

/* ─── Account sidebar ─── */
.account-sidebar {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.account-nav-item {
    display: block; padding: 13px 20px;
    color: var(--muted); text-decoration: none;
    border-bottom: 1px solid var(--border); transition: all .2s;
}
.account-nav-item:hover { color: var(--text); background: var(--bg3); }
.account-nav-item.active { color: var(--primary); background: var(--primary-lt); font-weight: 600; border-left: 3px solid var(--primary); }

/* ─── Footer ─── */
.site-footer { background: #fff; border-top: 3px solid var(--primary); margin-top: 60px; }
.footer-heading { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links li a:hover { color: var(--primary); }
.footer-social { color: var(--muted); font-size: 1.4rem; transition: color .2s; }
.footer-social:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .text-muted { color: var(--muted) !important; }
.badge-trust {
    display: inline-flex; align-items: center;
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 20px; padding: 4px 12px; font-size: 12px; color: var(--text);
}

/* ─── WhatsApp ─── */
.whatsapp-btn {
    position: fixed; bottom: 28px; right: 28px;
    background: #25d366; color: #fff;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.45); z-index: 999; transition: transform .2s;
}
.whatsapp-btn:hover { transform: scale(1.1); color: #fff; }

/* ─── Bootstrap overrides ─── */
.form-control, .form-select {
    background: var(--bg2); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius);
}
.form-control:focus, .form-select:focus {
    background: var(--bg2); border-color: var(--primary);
    color: var(--text); box-shadow: 0 0 0 3px rgba(255,103,0,.12);
}
.form-control::placeholder { color: #aaa; }
.form-label { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 4px; }

.btn-primary { background: var(--primary); border-color: var(--primary); font-weight: 600; color: #fff; }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: #fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline-secondary { color: var(--muted); border-color: var(--border); }
.btn-outline-secondary:hover { background: var(--bg3); color: var(--text); border-color: var(--border); }
.btn-sepet { font-weight: 700; letter-spacing: .2px; }

.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.table-hover tbody tr:hover { --bs-table-hover-bg: var(--bg3); }

.breadcrumb { background: none; padding: 0; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

.nav-tabs { border-color: var(--border); }
.nav-tabs .nav-link { color: var(--muted); border-color: transparent; }
.nav-tabs .nav-link.active {
    background: var(--bg2); color: var(--primary);
    border-color: var(--border); border-bottom-color: var(--bg2); font-weight: 600;
}
.nav-tabs .nav-link:hover { color: var(--text); border-color: transparent; }

.pagination .page-link { background: var(--bg2); border-color: var(--border); color: var(--muted); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

.alert-success { --bs-alert-bg: #f0fdf4; --bs-alert-color: #15803d; --bs-alert-border-color: #bbf7d0; }
.alert-danger  { --bs-alert-bg: #fef2f2; --bs-alert-color: #dc2626; --bs-alert-border-color: #fecaca; }

.border { border-color: var(--border) !important; }

.empty-state { color: var(--muted); }
.adet-selector input { background: var(--bg2); border-color: var(--border); color: var(--text); }
.tab-content { background: var(--bg2); border: 1px solid var(--border); border-top: none; }
.page-content p { color: var(--muted); line-height: 1.8; }

.yorum-item { border-color: var(--border) !important; }
.section-divider { height: 4px; background: linear-gradient(90deg, var(--primary), #ff9f7a); border-radius: 2px; margin: 32px 0; }

/* ─── Hero section ─── */
.hero-section {
    background: linear-gradient(135deg, #09002b 0%, #1a0050 60%, #09002b 100%);
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-title { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.hero-badge {
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.2); border-radius: 20px;
    padding: 5px 14px; font-size: 13px;
}
@media(max-width:768px) { .hero-title { font-size: 1.7rem; } }

/* ─── Mobile ─── */
@media(max-width:991px) {
    .main-header { position: sticky; top: 0; z-index: 1000; }
    .header-top { display: none; }
    .logo-text { font-size: 1.3rem; }
}
