/*====================================
 * ParçaTıkla Design System & Core Styles
 *====================================*/

:root {
    /* Brand Colors */
    --primary: #f39c12;
    /* Energetic Orange */
    --primary-dark: #e67e22;
    --primary-light: #fdf5e7;

    /* Text & Neutral Colors */
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #bdc3c7;

    /* Backgrounds */
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1e272e;

    /* Status Colors */
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --info: #3498db;

    /* Variables */
    --border-color: #e2e8f0;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s ease;

    /* Container Width */
    --container-width: 1300px;
    --spacing-section: 60px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-header: #1e1e1e;
    --bg-light: #2c2c2c;
    --text-main: #f5f6fa;
    --text-muted: #a4b0be;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/*====================================
 * Reset & Base
 *====================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    height: 3px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--primary) 0%, transparent 100%);
    opacity: 0.2;
}

/*====================================
 * Top Bar & Header
 *====================================*/
.top-bar {
    background-color: var(--bg-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top Promo Ticker (3D Rotate) */
.ticker-wrapper {
    perspective: 1000px;
    height: 24px;
    width: 330px;
    /* Space for the longest Turkish phrase */
    position: relative;
    overflow: visible;
}

.ticker-cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateZ(-12px);
    animation: rotateCube 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    backface-visibility: hidden;
    color: #fff;
}

.ticker-face i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 1.1em;
}

/* 4 Faces of the cube */
.ticker-face:nth-child(1) {
    transform: rotateX(0deg) translateZ(12px);
}

.ticker-face:nth-child(2) {
    transform: rotateX(-90deg) translateZ(12px);
}

.ticker-face:nth-child(3) {
    transform: rotateX(-180deg) translateZ(12px);
}

.ticker-face:nth-child(4) {
    transform: rotateX(-270deg) translateZ(12px);
}

@keyframes rotateCube {

    0%,
    20% {
        transform: translateZ(-12px) rotateX(0deg);
    }

    25%,
    45% {
        transform: translateZ(-12px) rotateX(90deg);
    }

    50%,
    70% {
        transform: translateZ(-12px) rotateX(180deg);
    }

    75%,
    95% {
        transform: translateZ(-12px) rotateX(270deg);
    }

    100% {
        transform: translateZ(-12px) rotateX(360deg);
    }
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a:hover {
    color: var(--primary);
}

/* Main Header */
.main-header {
    background-color: var(--bg-header);
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.logo-text .highlight {
    color: var(--primary);
}

/* Search Box */
.search-container {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-location {
    padding: 0 15px;
    background: var(--bg-light);
    color: var(--text-muted);
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
}

.btn-location:hover {
    color: var(--primary);
    background: #e9ecef;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-main);
}

.search-input:focus {
    outline: none;
}

.btn-search {
    background-color: var(--primary);
    color: #fff;
    padding: 0 25px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: var(--primary-dark);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 4px;
    display: none;
    z-index: 101;
    overflow: hidden;
}

.search-suggestions.show {
    display: block;
}

.suggestion-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.suggestion-list li a {
    display: block;
    padding: 10px 14px;
    color: var(--text-main);
    transition: background 0.2s ease, color 0.2s ease;
}

.suggestion-list li a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.suggestion-title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.suggestion-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.suggestion-list .empty {
    padding: 12px 14px;
    color: var(--text-muted);
}

.suggestion-all {
    display: block;
    padding: 12px 14px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.suggestion-all:hover {
    background: var(--primary-light);
}

/* Header Utilities */
.header-utils {
    display: flex;
    align-items: center;
    gap: 20px;
}

.util-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.util-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.util-btn i {
    font-size: 1.3rem;
}

.cart-btn {
    position: relative;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 15px;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.cart-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: 20px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.cart-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.cart-total {
    font-weight: 700;
    font-size: 0.95rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/*====================================
 * Navigation
 *====================================*/
.main-nav {
    background-color: var(--bg-card);
    line-height: 1;
}

.nav-inner {
    display: flex;
    align-items: center;
}

.categories-btn {
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-links {
    display: flex;
    gap: 5px;
    padding-left: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.brand-links::-webkit-scrollbar {
    display: none;
}

.brand-links li a {
    padding: 15px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 3px solid transparent;
}

.brand-links li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--bg-light);
}

/* Auth Pages */
.auth-wrapper {
    padding: 60px 0 90px;
    background: linear-gradient(135deg, #fdf4e3 0%, #ffffff 100%);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}

.auth-hero {
    background: #fff;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.auth-hero h1 {
    margin: 10px 0;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    gap: 8px;
}

.auth-benefits li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-main);
}

.auth-benefits i {
    color: var(--primary);
}

.auth-demo {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.auth-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.auth-tabs .tab-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.auth-tabs .tab-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5e6;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.auth-form input {
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Account Page */
.account-wrapper {
    padding: 50px 0 80px;
    background: #f7f9fb;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.account-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.account-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    border: 1px solid var(--border-color);
}

.account-card.highlight {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted);
    margin: 4px 0 0;
    font-size: 0.95rem;
}

.status-chip {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-chip.neutral {
    background: #eef2f7;
    color: #475467;
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.summary-tile {
    background: #fff9f1;
    border: 1px solid #ffe9c7;
    border-radius: var(--border-radius);
    padding: 12px;
}

.summary-tile .tile-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-tile .chip-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-tile .tile-value {
    font-size: 1.2rem;
    font-weight: 800;
}

.order-id {
    font-weight: 700;
}

.order-date, .order-items {
    color: var(--text-muted);
}

.order-total {
    font-weight: 800;
    margin-top: 6px;
}

.pref-list {
    display: grid;
    gap: 12px;
}

.toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

.toggle input {
    display: none;
}

.toggle-slider {
    width: 42px;
    height: 24px;
    background: #d5d9e0;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::after {
    transform: translateX(18px);
}

.pdp-faq {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.faq-item {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.faq-answer {
    margin-top: 4px;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.price-breakdown {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.fitment-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Mega Menu Dropdown */
.categories-menu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid var(--border-color);
    border-top: none;
}

.categories-menu:hover .mega-menu,
.categories-menu.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-categories {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.mega-categories li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mega-categories li a i:first-child {
    width: 24px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-right: 10px;
    text-align: center;
}

.mega-categories li a i:last-child {
    margin-left: auto;
    font-size: 0.8rem;
    color: #a0aec0;
    transition: transform 0.2s ease;
}

.mega-categories li a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
    border-left-color: var(--primary);
}

.mega-categories li a:hover i:last-child {
    transform: translateX(4px);
    color: var(--primary);
}

/* Mega Menu Subcategories */
.mega-categories li.has-submenu {
    position: relative;
}

.mega-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    background-color: #fff;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    border: 1px solid var(--border-color);
    border-left: none;
    min-height: 100%;
}

.mega-categories li.has-submenu:hover .mega-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mega-submenu ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.mega-submenu li a {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-left: none;
    display: flex;
    align-items: center;
}

.mega-submenu li a:hover {
    color: var(--primary);
    background-color: transparent;
    padding-left: 25px;
}

.mega-submenu li a i {
    width: auto;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mega-submenu li a:hover i {
    color: var(--primary);
}

/*====================================
 * Hero Section
 *====================================*/
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark), #2c3e50);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Google Social Proof Widget */
.google-proof-widget {
    position: absolute;
    top: -30px;
    right: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    color: #2c3e50;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.google-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g-logo {
    width: 24px;
    height: 24px;
}

.g-stars {
    color: #fbbc04;
    /* Google Star Yellow */
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.g-text {
    font-size: 0.95rem;
}

.g-text strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.g-reviews a {
    color: #1a73e8;
    /* Google Blue */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.g-reviews a:hover {
    text-decoration-color: #1a73e8;
}

.hero-content>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Search Widget (VIN & Model) */
.advanced-search-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-light);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    padding: 25px;
    color: var(--text-main);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.inline-form {
    display: flex;
    gap: 15px;
}

.inline-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-body);
}

.inline-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-form select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-body);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.grid-form select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--bg-light);
}

.grid-form select:focus {
    border-color: var(--primary);
    outline: none;
}

.grid-form .btn-primary {
    grid-column: span 2;
}

/*====================================
 * Categories Grid
 *====================================*/
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #fff;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/*====================================
 * Featured Products Grid
 *====================================*/
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
    transform: translateY(-4px);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    color: #fff;
}

.badge-sale {
    background-color: var(--danger);
}

.badge-shipping {
    background-color: var(--success);
}

.badge-fast {
    background-color: var(--warning);
    color: #000;
}

.product-image {
    width: 100%;
    height: 220px;
    padding: 20px;
    background: #fff;
    /* keep white to show product clearly */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.main-image {
    position: relative;
}

.main-image img {
    cursor: pointer;
}

.image-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.image-zoom-icon i {
    color: #fff;
    font-size: 1.8rem;
    background: rgba(0,0,0,0.55);
    padding: 10px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.product-image:hover .image-zoom-icon,
.main-image:hover .image-zoom-icon {
    opacity: 1;
    transform: scale(1.02);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 1200px);
    max-height: 90vh;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.lightbox-close:hover {
    transform: scale(1.05);
    background: rgba(0,0,0,0.9);
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brandtext {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-title a {
    color: var(--text-main);
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--primary);
}

.product-title-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: var(--primary);
}

.rating {
    color: #f39c12;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.rating-count {
    color: var(--text-muted);
    margin-left: 5px;
}

.price-container {
    margin-bottom: 20px;
}

.price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.price-eft {
    font-size: 0.85rem;
    color: var(--success);
    margin-top: 2px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.product-card:hover .btn-add-to-cart,
.btn-add-to-cart:hover {
    background: var(--primary);
    color: #fff;
}

/*====================================
 * Trust Features
 *====================================*/
.trust-features {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.trust-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.trust-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/*====================================
 * Footer
 *====================================*/
.main-footer {
    background: var(--bg-dark);
    color: #fff;
    padding-top: 70px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: none !important;
}

.footer-logo .highlight {
    color: var(--primary);
}

.footer-desc {
    color: #a4b0be;
    margin-bottom: 25px;
    padding-right: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #a4b0be;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-contact strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
}

.footer-contact span {
    color: #a4b0be;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a4b0be;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 2rem;
}

/*====================================
 * Slide-out Cart
 *====================================*/
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 1310;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cart-close-btn:hover {
    color: var(--danger);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: fit-content;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border-color);
}

.cart-item-qty input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/*====================================
 * Category Page Styles
 *====================================*/
.breadcrumb-area {
    background-color: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-divider {
    color: var(--border-color);
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 500;
}

.category-page-section {
    padding: 40px 0;
}

.category-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.category-sidebar {
    width: 25%;
    flex-shrink: 0;
}

.category-content {
    width: 75%;
}

.filter-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--primary);
    font-weight: 500;
}

.check-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
}

.check-list input {
    accent-color: var(--primary);
}

.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-filter-apply {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.category-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #fff;
    font-family: inherit;
    color: var(--text-main);
}

.categories-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-main);
    font-weight: 600;
    background: #fff;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-dots {
    color: var(--text-muted);
}

/*====================================
 * Product Detail Page Styles
 *====================================*/
.product-page-section {
    padding: 30px 0 60px;
}

.product-overview {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    width: 45%;
    flex-shrink: 0;
}

.main-image {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.main-image img {
    max-height: 100%;
    object-fit: contain;
}

.badge-absolute {
    position: absolute;
    top: 15px;
    left: 15px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 5px;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-list img.active-thumb,
.thumbnail-list img:hover {
    border-color: var(--primary);
}

.product-info-panel {
    width: 55%;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.meta-divider {
    color: var(--border-color);
}

.stock-status.in-stock {
    color: var(--success);
    font-weight: 600;
}

.product-price-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
    margin-bottom: 25px;
}

.fitment-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.fitment-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fitment-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.fitment-fields select,
.fitment-fields input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #fff;
    font-family: inherit;
}

.fitment-check {
    width: 100%;
    padding: 12px;
    font-weight: 700;
}

.fitment-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.huge-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--danger);
}

.highlight-eft {
    font-size: 1.1rem;
    color: var(--text-main);
}

.price-breakdown {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-breakdown i {
    color: var(--primary);
    margin-right: 8px;
}

.product-short-desc {
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #fff;
    overflow: hidden;
}

.qty-selector .qty-btn {
    width: 40px;
    height: 50px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

.qty-selector .qty-btn:hover {
    background: var(--bg-light);
}

.qty-selector input {
    width: 50px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.add-to-cart-action {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-features-list i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Tabs */
.product-tabs-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.tab-btn-detail {
    padding: 15px 25px;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn-detail:hover {
    color: var(--primary);
}

.tab-btn-detail.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.product-tabs-content {
    padding: 30px;
}

.tab-pane-detail {
    display: none;
    line-height: 1.6;
    color: var(--text-muted);
}

.tab-pane-detail.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-pane-detail h3 {
    color: var(--text-main);
    margin-bottom: 15px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}

.spec-table th {
    background: var(--bg-light);
    width: 200px;
    text-align: left;
    color: var(--text-main);
}

.compat-list {
    padding-left: 20px;
}

.compat-list li {
    margin-bottom: 8px;
}

/*====================================
 * Floating WhatsApp
 *====================================*/
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

.floating-whatsapp i {
    font-size: 1.4rem;
}

.floating-whatsapp::after {
    content: "WhatsApp Destek";
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

/* Chatbot */
.chatbot-wrapper {
    position: fixed;
    bottom: 90px;
    right: 95px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1100;
}

.chatbot-bubble {
    display: none;
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 12px 14px;
    max-width: 260px;
    font-weight: 600;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease;
}

.chatbot-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), #f39c12);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.chatbot-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.chatbot-panel {
    display: none;
    width: min(340px, 90vw);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.chatbot-title { font-weight: 800; }
.chatbot-subtitle { color: var(--text-muted); font-size: 0.9rem; }

.chatbot-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
}

.chatbot-messages {
    max-height: 360px;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    gap: 8px;
    background: #fbfbfb;
}

.chatbot-message {
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.chatbot-message.bot {
    background: #fff;
    border: 1px solid var(--border-color);
}

.chatbot-message.user {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
}

.chatbot-message.typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.chatbot-message.typing .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: blink 1.2s infinite ease-in-out;
}

.chatbot-message.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chatbot-message.typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.chatbot-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.chatbot-input button {
    border: none;
    background: var(--primary);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .chatbot-wrapper { right: 12px; bottom: 100px; }
}

.scroll-top-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 14px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/*====================================
 * Responsive Design
 *====================================*/
@media (max-width: 1024px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        order: -1;
    }

    .logo {
        margin-right: 0;
    }

    .logo-img {
        max-height: 35px !important;
    }

    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Menu Subcategory Support */
    .mega-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        background-color: #f8f9fa;
        min-height: auto;
    }

    .mega-categories li.has-submenu.mobile-open .mega-submenu {
        display: block;
    }

    .mega-categories li.has-submenu:hover .mega-submenu {
        /* Prevent hover from triggering on mobile */
        transform: none;
    }

    .category-layout {
        flex-direction: column;
    }

    .category-sidebar,
    .category-content {
        width: 100%;
    }

    .product-overview {
        flex-direction: column;
    }

    .product-gallery,
    .product-info-panel {
        width: 100%;
    }

    .delivery-main {
        align-items: flex-start;
    }
}


/* ==========================================================================
   NOTIFICATIONS (Sales & Toasts)
   ========================================================================== */

/* Toast Container (Bottom Left) */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sales Modal */
.sales-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}

.sales-modal.show { display: flex; }

.sales-modal-content {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sales-modal-body {
    padding: 24px;
    display: grid;
    gap: 12px;
}

.sales-badge {
    display: inline-block;
    padding: 6px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.sales-modal h3 {
    margin: 0;
    font-size: 1.6rem;
}

.sales-modal p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.sales-cta { display: grid; gap: 6px; }

.sales-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.toast {
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .toast {
    background: var(--dark-surface);
    color: var(--dark-text);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 24px;
    color: var(--primary);
}

.toast-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.dark-mode .toast-content p {
    color: var(--dark-text-muted);
}

/* Sales Notification (Bottom Left) */
.sales-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--primary);

    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    max-width: 350px;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s ease;
}

body.dark-mode .sales-notification {
    background: var(--dark-surface);
    color: var(--dark-text);
}

.sales-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.sales-notification img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    padding: 5px;
}

body.dark-mode .sales-notification img {
    background: #fff;
}

.sales-content {
    flex: 1;
}

.sales-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.sales-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

body.dark-mode .sales-time {
    color: var(--dark-text-muted);
}

.sales-buyer {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* ==========================================================================
   TYPING EFFECT
   ========================================================================== */
.hero-typing-title {
    min-height: 85px;
    white-space: nowrap;
    overflow: hidden;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    vertical-align: bottom;
    margin-left: 4px;
    animation: blink 0.75s step-end infinite;
    background-color: var(--primary);
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Garaj Container */
.garaj-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .garaj-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .inline-form {
        flex-direction: column;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .grid-form .btn-primary {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .product-tabs-header {
        flex-direction: column;
    }

    .tab-btn-detail {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        border-top: 1px solid var(--border-color);
    }

    .tab-btn-detail.active {
        border-bottom-color: transparent;
        border-left-color: var(--primary);
    }
}

@media (max-width: 768px) {
    /* ----- HEADER RESTORE ----- */
    .top-bar { display: none; }
    .mobile-menu-toggle { display: block; }

    .main-header { padding: 15px 0; }

    .header-inner {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .logo { margin-right: auto; }
    .logo-img { max-height: 28px !important; }

    .header-utils { gap: 12px; }
    .header-utils .util-text, .header-utils .cart-info, .dark-mode-toggle { display: none; }

    .search-container {
        width: 100%;
        min-width: 100%;
        order: 3;
        margin-top: 0;
        padding: 0;
    }

    .main-nav { background: #fff; border-bottom: 2px solid var(--border-color); width: 100%; position: relative; }
    .main-nav .container.nav-inner { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; display: block !important; position: relative; }
    
    .brand-links {
        padding: 0 !important; margin: 0 !important; width: 100%; gap: 0; overflow-x: auto;
        display: flex; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory;
    }
    .brand-links::-webkit-scrollbar { display: none; }
    .brand-links li { scroll-snap-align: start; }
    .brand-links li a { padding: 12px 15px; white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; border-bottom: 3px solid transparent; color: var(--text-main); }
    .brand-links li:first-child a { padding-left: 12px; }
    
    .nav-inner::after {
        content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
        color: var(--primary); font-size: 0.9rem; pointer-events: none; animation: hintScrollRight 2s infinite; z-index: 10; text-shadow: 0 0 10px #fff;
    }

    #megaMenuBtn { display: none; }
    .categories-menu.active .mega-menu { opacity: 1; visibility: visible; transform: translateX(0); }
    .mega-menu { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; z-index: 2000; transform: translateX(-100%); border-radius: 0; overflow-y: auto; transition: transform 0.3s ease; background: #fff; }
    .menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
    .menu-overlay.active { display: block; }

    /* ----- GRIDS RESTORE ----- */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .products-grid { grid-template-columns: 1fr; }
    .advanced-search-box { margin-top: 25px; }
}
