/* -------------------------------------------------------------
 * Zirve Lastik B2C E-Commerce Stylesheet
 * Premium Modern E-Commerce Clean Theme (Hepsiburada Style)
 * ------------------------------------------------------------- */

/* Design Tokens & Theme Variables */
:root {
    --bg-dark: #ffffff; /* Clean white background */
    --bg-card: #ffffff;
    --border-light: #e6e6e6;
    --border-focus: #dc2626; /* Hepsiburada style red accent */
    --text-primary: #191919; /* Sharp dark text */
    --text-secondary: #5f5f5f;
    --text-muted: #9e9e9e;
    --primary-light: #ff3b30;
    --primary-dark: #dc2626;
    --accent: #b91c1c;
    --success: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Base Body Setup */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* E-Commerce Cards (Flat & Clean) */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s;
}
.glass-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header & Navigation Bar (Hepsiburada White Header) */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}
.navbar-brand {
    font-size: 20px;
    font-weight: 900;
}
.brand-title {
    color: var(--text-primary) !important;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    letter-spacing: 0px;
}
.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary) !important;
    transition: all 0.2s;
    padding: 6px 14px !important;
    border-radius: 4px;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-dark) !important;
    background: rgba(220, 38, 38, 0.05) !important;
}
.cart-trigger {
    border-color: var(--primary-dark) !important;
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    font-weight: 700;
    border-radius: 6px !important;
    transition: all 0.2s;
}
.cart-trigger:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

/* Custom UI Inputs & Buttons */
.form-control, .form-select {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: var(--text-primary);
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    color: var(--text-primary);
}
option {
    background-color: #ffffff;
    color: var(--text-primary);
}

/* Advanced Search Widget (Clean Flat Form) */
.search-widget {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    border-top: 4px solid var(--primary-dark) !important;
    border-radius: 8px !important;
}

/* Tire Cards in Catalog (Hepsiburada Product Cards) */
.tire-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-premium);
    transition: all 0.2s ease-in-out;
}
.tire-card:hover {
    border-color: #cccccc;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.tire-card-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fbfbfb;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #f2f2f2;
}
.tire-card-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.tire-card:hover .tire-card-image {
    transform: scale(1.04);
}
.tire-card-brand-logo {
    position: absolute;
    bottom: 8px;
    right: 8px;
    height: 20px;
    object-fit: contain;
    opacity: 0.9;
}
.season-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tire-card-title {
    font-size: 13.5px;
    line-height: 1.4;
    margin: 12px 0 6px 0;
    font-weight: 600;
    color: #333333;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.tire-card-title:hover {
    color: var(--primary-dark);
}
.price-tag {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

/* Styled buttons (Modern Flat Corners) */
.btn-primary-custom, .btn-success-custom {
    background: var(--primary-dark) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    transition: background-color 0.2s !important;
}
.btn-primary-custom:hover, .btn-success-custom:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
}

/* Product Detail Page Overrides */
.product-gallery-wrapper {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
}
.large-season-badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}

/* Overriding Dark badges to look like Clean Gray Badges */
.badge.bg-dark.border-secondary {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
}
.badge.bg-dark.border-secondary i {
    color: var(--primary-dark) !important;
}

/* Table Overrides for White Theme */
.table-dark {
    --bs-table-bg: #ffffff !important;
    --bs-table-color: #191919 !important;
    --bs-table-striped-bg: #f9f9f9 !important;
    --bs-table-hover-bg: #f1f1f1 !important;
    border-color: #e5e7eb !important;
}
.table-dark th {
    color: #555555 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #e5e7eb !important;
}
.table-dark td {
    color: #191919 !important;
}
.table-dark a {
    color: var(--primary-dark) !important;
}

/* Footer Section (Hepsiburada Dark Gray Footer) */
.footer {
    background: #232f3e;
    border-top: 1px solid var(--border-light);
    color: #dddddd;
    padding: 48px 0 24px 0;
}
.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.footer-links a, .footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-links a:hover, .footer-contact a:hover {
    color: #ffffff;
    padding-left: 2px;
}

/* Checkout PayTR Iframe Container */
.paytr-iframe-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-light);
}

/* Text overrides for readability */
.text-secondary {
    color: var(--text-secondary) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-light {
    color: var(--text-secondary) !important;
}
.breadcrumb-item.active {
    color: var(--text-primary) !important;
    font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted) !important;
}

/* Admin Sidebar Layout Adjustment */
.admin-sidebar {
    min-height: 100vh;
    background: #111827 !important;
    border-right: 1px solid #1f2937 !important;
}
.admin-sidebar .nav-link {
    color: #9ca3af !important;
}
.admin-sidebar .nav-link.active, .admin-sidebar .nav-link:hover {
    color: #ffffff !important;
    background: var(--primary-dark) !important;
    border: 1px solid var(--primary-dark) !important;
}

/* Mobile responsive fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 16px;
        border-radius: 8px;
        margin-top: 8px;
        border: 1px solid var(--border-light);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
}

/* Hepsiburada Header Styles */
.search-bar-wrapper .form-control {
    border-color: #cccccc;
    font-size: 14px;
}
.search-bar-wrapper .form-control:focus {
    border-color: var(--primary-dark);
}
.header-action-btn:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
}
.sub-nav-link {
    font-size: 13.5px;
    transition: color 0.15s ease-in-out;
}
.sub-nav-link:hover {
    color: var(--primary-dark) !important;
}

/* Sub-nav Multi-segment Brand Line */
.sub-nav-color-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #dc2626 0%, #dc2626 55%, #9ca3af 55%, #9ca3af 70%, #4b5563 70%, #4b5563 85%, #111827 85%, #111827 100%);
}

/* UI Polish: Logo Text */
.logo-text {
    font-size: 21px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}
@media (max-width: 576px) {
    .logo-text {
        font-size: 17px !important;
    }
}

/* UI Polish: Quick Category Navigation Shortcuts */
.quick-category-item {
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.quick-category-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.quick-category-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220,38,38,0.04) 0%, rgba(220,38,38,0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.quick-category-item:hover .quick-category-circle {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.12);
    border-color: var(--primary-dark);
}
.quick-category-item:hover .quick-category-circle::before {
    opacity: 1;
}
.quick-category-item:hover .quick-category-circle svg {
    transform: scale(1.1);
}
.quick-category-circle svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}
.quick-category-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    transition: color 0.2s ease;
    text-align: center;
    white-space: nowrap;
}
.quick-category-item:hover .quick-category-title {
    color: var(--primary-dark);
}

/* UI Polish: Carousel Controls & Overlap Prevention */
.carousel-container {
    max-width: 580px !important;
    margin-left: 0 !important;
    z-index: 2;
    position: relative;
}
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100% !important;
        padding: 24px !important;
    }
}
.carousel-control-prev, .carousel-control-next {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0.85;
}
.carousel-control-prev {
    left: 20px;
}
.carousel-control-next {
    right: 20px;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}
.carousel-item {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* UI Polish: Promo Banners Row */
.promo-banner-card {
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.promo-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}
.promo-banner-badge {
    position: absolute;
    top: 16px;
    left: 24px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.promo-banner-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-top: 14px;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.promo-banner-subtitle {
    font-size: 12.5px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.3;
    max-width: 90%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.95) !important;
}
.promo-banner-card .promo-icon-bg {
    position: absolute;
    right: 15px;
    bottom: -15px;
    font-size: 80px;
    opacity: 0.12;
    transform: rotate(-15deg);
    transition: transform 0.3s ease;
    color: #ffffff;
}
.promo-banner-card:hover .promo-icon-bg {
    transform: rotate(0deg) scale(1.1);
}
.banner-hover-zoom {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.banner-hover-zoom:hover img {
    transform: scale(1.04);
}

/* Admin Panel Specific Body Overrides (Cockpit View) */
body.admin-body {
    background-color: #0f172a !important; /* Premium dark background for admin panel */
    color: #e2e8f0 !important;
}
body.admin-body .form-control, body.admin-body .form-select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.admin-body .form-control:focus, body.admin-body .form-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}
body.admin-body .glass-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.admin-body .table-dark {
    --bs-table-bg: #1e293b !important;
    --bs-table-color: #e2e8f0 !important;
    --bs-table-striped-bg: #0f172a !important;
    --bs-table-hover-bg: #334155 !important;
    border-color: #334155 !important;
}
body.admin-body .table-dark th {
    color: #94a3b8 !important;
    border-bottom: 2px solid #334155 !important;
}
body.admin-body .table-dark td {
    color: #e2e8f0 !important;
}

/* UI Polish: Rectangular Category Grid */
.category-grid-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: 100%;
}
.category-rect-item {
    width: 100%;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.category-rect-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-rect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}
.category-rect-title {
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    padding: 0 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    line-height: 1.2;
}
.category-rect-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.18);
    border-color: var(--primary-dark);
}
.category-rect-item:hover img {
    transform: scale(1.12);
}
.category-rect-item:hover .category-rect-overlay {
    background: linear-gradient(to bottom, rgba(220, 38, 38, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%);
}

@media (max-width: 991px) {
    .category-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .category-rect-item {
        height: 60px;
    }
    .category-rect-title {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .category-rect-item {
        height: 56px;
    }
}

/* Scrollbar Hiding Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}
.whatsapp-float-btn:hover {
    color: #ffffff;
    background-color: #128c7e;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
}
@media (max-width: 768px) {
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
}

/* 4-Column Grid Layout Optimizations */
#catalog-grid.grid-4 .tire-card {
    padding: 16px;
}
#catalog-grid.grid-4 .tire-card-image-wrapper {
    height: 160px;
}
#catalog-grid.grid-4 .tire-card-title {
    font-size: 12.5px;
    min-height: 35px;
}
#catalog-grid.grid-4 .price-tag {
    font-size: 17px;
    font-weight: 800;
}
#catalog-grid.grid-4 .btn-add-to-cart {
    padding: 8px 12px !important;
    font-size: 12px !important;
}
#catalog-grid.grid-4 .badge {
    font-size: 10px !important;
    padding: 4px 6px !important;
}
#catalog-grid.grid-4 .mb-3 {
    margin-bottom: 0.5rem !important;
}
#catalog-grid.grid-4 .text-secondary.small,
#catalog-grid.grid-4 .text-secondary {
    font-size: 11px !important;
}


