:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --secondary: #0f172a;
    --accent: #ef4444;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s ease-in-out;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 99px;
    --border-dark: #374151;
    --success: #10B981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography Utilities */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--secondary);
}
@media (min-width: 768px) {
    .section-title { font-size: 2rem; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.section-padding { padding: 4rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
.grid-services { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-services { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: inline-block;
}
.btn-outline:hover { background: var(--white); color: var(--secondary); }

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}
.top-bar-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.top-bar a:hover { color: var(--primary); }
@media (min-width: 768px) {
    .top-bar-inner { flex-direction: row; }
}

/* Header */
.header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 768px) {
    .header-inner { flex-direction: row; justify-content: space-between; }
}

.logo-text { font-size: 1.75rem; font-weight: 800; color: var(--secondary); }
.logo-highlight { color: var(--primary); }

.search-bar { flex: 1; max-width: 600px; width: 100%; }
.search-wrapper {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}
.search-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1); }
.menu-btn {
    background: var(--bg-light);
    border: none;
    padding: 0 1rem;
    border-right: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
}
.search-wrapper input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    outline: none;
    font-family: inherit;
}
.search-btn {
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.search-btn:hover { color: var(--primary); }

.header-actions {
    display: flex;
    gap: 1.5rem;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}
.action-btn:hover { color: var(--primary); }
.cart-icon {
    position: relative;
    font-size: 1.25rem;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: var(--secondary);
}
@media (min-width: 768px) { .hero-slider-section { height: 420px; } }
@media (min-width: 1024px) { .hero-slider-section { height: 500px; } }

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.55) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.slider-dots {
    position: absolute;
    top: 2rem;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.current-slide {
    background: var(--primary);
    width: 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.6);
}

/* Custom Search Section */
.custom-search-section {
    position: relative;
    z-index: 20;
    margin-top: -3rem;
    padding: 0 1rem;
}

.custom-search-wrapper {
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--border-dark);
    position: relative;
}

.custom-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-field.custom-select-trigger:hover {
    color: var(--primary);
}

.field-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.text-field {
    flex: 2;
    cursor: text;
}

.text-field input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
}

.search-action {
    padding: 0 0.5rem;
}

.btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-hover);
}

/* Custom Popovers */
.custom-popover {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 3px solid var(--border-dark);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.custom-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popover-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.popover-header h4 {
    margin: 0;
    color: var(--secondary);
}

.brand-grid-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* More columns for smaller cells */
    gap: 0.5rem; /* Tighter gap */
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.brand-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem; /* Smaller padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.brand-item:hover, .brand-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    color: var(--primary);
}

.brand-item i {
    font-size: 1.5rem; /* Smaller icon */
    color: var(--text-muted);
}
.brand-item:hover i, .brand-item.selected i {
    color: var(--primary);
}
.brand-item span {
    font-size: 0.65rem; /* Smaller text */
    font-weight: 600;
}
.brand-item strong {
    font-size: 1.1rem; /* Smaller strong text */
}

/* Category Grid Popover */
.category-grid-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.category-pop-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.category-pop-item:hover, .category-pop-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    color: var(--primary);
    background: var(--bg-light);
}

.category-pop-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.category-pop-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .custom-search-wrapper {
        border-radius: var(--radius-lg);
        border-width: 3px;
    }
    .custom-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .divider {
        width: 100%;
        height: 1px;
    }
    .btn-search {
        border-radius: var(--radius-md);
        width: 100%;
    }
    .brand-grid-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Deals Section (Fırsat Ürünleri) */
.deals-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}
.deals-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.deal-product-card {
    min-width: 280px;
    background: var(--white);
    border-radius: 20px; /* Highly rounded, extremely soft corners */
    border: 1px solid var(--border);
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.deal-product-card:hover {
    box-shadow: 0 20px 30px -8px rgba(29, 78, 216, 0.12), 0 0 0 2px rgba(29, 78, 216, 0.2);
    transform: translateY(-8px);
}

.deal-product-img {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom: 1px solid var(--border);
}

.deal-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.deal-product-card:hover .deal-product-img img {
    transform: scale(1.08);
}

/* Badges */
.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 10px; /* Soft badge corners */
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

/* Image Hover Overlay */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.deal-product-card:hover .product-card-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 0.65rem 1.25rem;
    border-radius: 30px; /* Pill shaped, extremely soft */
    background: var(--white);
    color: var(--secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.deal-product-card:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Info Section */
.deal-product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-meta .brand-name {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stock-status i {
    font-size: 0.5rem;
}

.deal-product-info .product-title {
    font-size: 1.05rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    height: 3rem; /* Fix to 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ratings */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: -0.2rem;
    margin-bottom: 0.1rem;
}

.rating-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    display: flex;
    gap: 2px;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Price Container */
.product-footer-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: auto;
}

.product-footer-price .old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: -2px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-footer-price .new-price {
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 800;
}

.price-discount-tag {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Dedicated 'Sepete Ekle' button with extremely soft corners */
.deal-product-info .btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.85rem;
    border-radius: 14px; /* Soft rounded corners */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
}

.deal-product-info .btn-add-cart:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.deal-product-info .btn-add-cart:active {
    transform: translateY(0);
}

/* High contrast slider controls */
.slider-controls {
    display: flex;
    gap: 0.75rem;
}

.slider-controls .btn-outline {
    background: var(--white);
    border: 2px solid var(--secondary); /* High contrast border */
    color: var(--secondary); /* High contrast icon */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slider-controls .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.25);
}

/* FAQ Section (SSS) */
.faq-section {
    background: var(--white);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    background: var(--bg-light);
}

.faq-answer p {
    padding: 0 1.5rem;
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-answer p {
    padding: 0 1.5rem 1.5rem;
}

/* Services Cards */
.grid-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(29, 78, 216, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.service-info {
    z-index: 2;
    max-width: 65%; /* Leave room for right graphic */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.service-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.service-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-card:hover .service-cta {
    gap: 0.75rem;
}

.service-graphic {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.85;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.06));
}

.service-card:hover .service-graphic {
    transform: scale(1.08) translate(-5px, -5px);
    opacity: 1;
}

/* Categories */
.section-title { font-size: 2rem; text-align: center; margin-bottom: 3rem; color: var(--secondary); }
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.category-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.category-item .icon-box {
    width: 60px; height: 60px;
    background: rgba(29, 78, 216, 0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary);
    transition: var(--transition);
}
.category-item:hover .icon-box { background: var(--primary); color: var(--white); }
.category-item span { font-weight: 500; font-size: 0.875rem; }

/* Popular Parts */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.section-header .section-title { margin-bottom: 0; }
.slider-nav button {
    background: var(--white); border: 1px solid var(--border);
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; transition: var(--transition);
}
.slider-nav button:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.part-card {
    border-radius: var(--radius-lg); padding: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--white); position: relative; overflow: hidden;
    transition: var(--transition);
}
.part-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blue-card { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.red-card { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.dark-card { background: linear-gradient(135deg, #475569, #0f172a); }

.part-card .card-content { position: relative; z-index: 2; }
.part-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.part-card p { margin-bottom: 1.5rem; opacity: 0.9; }
.part-card img {
    position: absolute; right: -20px; bottom: -20px;
    width: 150px; height: 150px; object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}
.part-card:hover img { transform: scale(1.1) rotate(-5deg); }

/* Brands */
.ghost-title {
    font-size: 3rem; font-weight: 900; color: var(--border); opacity: 0.25;
    text-transform: uppercase; letter-spacing: 5px; margin-bottom: -30px;
}
@media (min-width: 768px) { .ghost-title { font-size: 4rem; } }
.brand-tabs {
    display: inline-flex; background: var(--white); padding: 0.5rem;
    border-radius: var(--radius-full); box-shadow: var(--shadow-sm);
    position: relative; z-index: 2;
}
.brand-tabs button {
    padding: 0.5rem 1.5rem; border: none; background: transparent;
    border-radius: var(--radius-full); font-weight: 600; cursor: pointer;
    transition: var(--transition); color: var(--text-muted);
}
.brand-tabs button.active { background: var(--primary); color: var(--white); }

.brand-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(6, 1fr); } }

.brand-logo {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; transition: var(--transition); color: var(--text-muted); cursor: pointer;
}
.brand-logo:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.brand-logo span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.brand-monogram {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem; font-weight: 800;
    color: var(--secondary);
    transition: var(--transition);
}
.brand-logo:hover .brand-monogram {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: var(--white);
}

.btn-more {
    background: transparent; border: 1px solid var(--border);
    padding: 0.5rem 1.5rem; border-radius: var(--radius-full);
    color: var(--text-main); font-weight: 500; cursor: pointer; transition: var(--transition);
}
.btn-more:hover { background: var(--bg-light); }

/* Promo Banner */
.promo-banner { padding: 2rem 0; }
.banner-inner {
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    background-size: cover; background-position: center; padding: 4rem 2rem;
    color: var(--white);
}
.banner-inner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 100%);
}
.banner-content { position: relative; z-index: 2; max-width: 500px; }
.banner-content .badge {
    background: var(--accent); color: var(--white); padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
    display: inline-block; margin-bottom: 1rem;
}
.banner-content h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.banner-content p { opacity: 0.9; font-size: 1.1rem; }

/* Footer */
.footer { background: var(--white); border-top: 1px solid var(--border); padding-top: 4rem; }
.footer-features { display: grid; gap: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-item i { font-size: 2rem; color: var(--primary); margin-top: 0.25rem; }
.feature-item h4 { margin-bottom: 0.25rem; color: var(--secondary); font-size: 1rem; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

/* FAQ Styling */
.faq-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.footer-col h3 { font-size: 1.1rem; color: var(--secondary); margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item i { color: var(--primary); font-size: 1.25rem; width: 24px; text-align: center; }
.contact-item span { display: block; font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 0.1rem; }
.contact-item strong { display: block; font-size: 0.95rem; color: var(--secondary); font-weight: 600; }

.social-links { display: flex; gap: 1rem; }
.social-icon {
    width: 36px; height: 36px; background: #f1f5f9; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition);
}
.social-icon:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-dark-bottom {
    background-color: #040A15; /* Dark blue/black */
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-dark-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.secure-payment {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.secure-payment > i {
    font-size: 1.25rem;
    color: #8c98a4;
}

.secure-payment span {
    color: #8c98a4;
}

.pay-icon-box {
    background: #fff;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pay-icon-box i {
    font-size: 1.5rem;
}

.ssl-secure {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ssl-secure i {
    font-size: 1.25rem;
}

.ssl-secure span {
    color: #8c98a4;
}

.footer-dark-copyright {
    text-align: center;
    color: #8c98a4;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-dark-inner {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Premium UI/UX Enhancements: Modals, Drawers & Interactive elements
   ========================================================================== */

/* Glassmorphism Modal Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Card */
.modal-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 
                0 0 40px 0 rgba(59, 130, 246, 0.05);
    width: 100%;
    max-width: 550px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.modal-tab {
    flex: 1;
    padding: 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--white);
}

/* Modal Body & Forms */
.modal-body {
    padding: 2.5rem;
}

.modal-panel {
    display: none;
}

.modal-panel.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-pass {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

/* Sliding Cart & Mobile Drawers */
.cart-drawer-backdrop,
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-drawer-backdrop.active,
.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer,
.mobile-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer {
    right: 0;
    transform: translateX(100%);
}

.mobile-drawer {
    left: 0;
    transform: translateX(-100%);
}

.cart-drawer-backdrop.active .cart-drawer {
    transform: translateX(0);
}

.mobile-drawer-backdrop.active .mobile-drawer {
    transform: translateX(0);
}

/* Drawer Headers */
.cart-drawer-header,
.mobile-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.cart-drawer-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.cart-drawer-close,
.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.cart-drawer-close:hover,
.mobile-drawer-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Drawer Body & Content */
.cart-drawer-body,
.mobile-drawer-body {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

/* Cart Items inside Drawer */
.cart-item-row {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.cart-item-row img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cart-item-remove:hover {
    color: var(--accent);
}

/* Mobile Menu Drawer Styling */
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-links li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.mobile-menu-links li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.mobile-menu-links li a i {
    width: 20px;
    color: var(--primary);
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.drawer-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Micro-interactions: Glow on hover for active features */
.service-card:hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

/* Smooth zoom anim */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Style for action-btn button to match previous design */
button.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
button.action-btn:hover {
    color: var(--primary);
}
#login-trigger i, #cart-trigger i {
    font-size: 1.25rem;
}
#cart-trigger {
    position: relative;
}
.cart-icon {
    position: relative;
}

/* ===== SR-ONLY (Screen Reader Only) ===== */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== SOCIAL MEDIA ICONS ===== */
.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: var(--white);
}
@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.55); }
    100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35); }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 10000;
    padding: 1rem 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}
.cookie-text i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}
.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cookie-accept {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}
.cookie-accept:hover {
    background: var(--primary-hover);
}
.cookie-settings {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}
.cookie-settings:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== LIVE SEARCH RESULTS DROPDOWNS ===== */
.search-bar {
    position: relative; /* Ensure dropdown aligns correctly */
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-results-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Specific Search Dropdown Adjustments */
.detailed-search-results {
    top: calc(100% + 15px);
    border: 3px solid var(--border-dark);
    box-shadow: var(--shadow-hover);
}

/* Dropdown Content Elements */
.search-results-header {
    padding: 0.75rem 1.25rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(29, 78, 216, 0.04);
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    padding: 0.25rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0; /* Enable text truncation */
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-result-oem {
    font-family: monospace;
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
}

.search-result-brand {
    font-weight: 600;
}

.search-result-price-box {
    text-align: right;
    flex-shrink: 0;
}

.search-result-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.search-result-stock {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

/* Empty or info states */
.search-no-results {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-no-results i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-muted);
}

/* List View Styles for Search Results */
.product-layout-container {
    transition: all 0.3s ease;
}

.product-layout-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-layout-container.list-view .deal-product-card {
    flex-direction: row;
    min-height: 200px;
    height: auto;
    align-items: stretch;
}

.product-layout-container.list-view .deal-product-img {
    width: 260px;
    height: auto;
    align-self: stretch;
    border-radius: 20px 0 0 20px;
    border-right: 1px solid var(--border);
    border-bottom: none;
    flex-shrink: 0;
}

.product-layout-container.list-view .deal-product-info {
    justify-content: center;
    gap: 0.5rem;
}

.product-layout-container.list-view .product-title {
    height: auto;
    -webkit-line-clamp: 1;
}

.product-layout-container.list-view .btn-add-cart {
    align-self: flex-start;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .product-layout-container.list-view .deal-product-card {
        flex-direction: column;
        height: auto;
    }
    .product-layout-container.list-view .deal-product-img {
        width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .product-layout-container.list-view .btn-add-cart {
        align-self: stretch;
    }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* ===== NAVBAR: Hide text labels on mobile ===== */
@media (max-width: 768px) {
    .header-actions .action-btn span {
        display: none;
    }
    .header-actions {
        gap: 1rem;
    }
    .header-actions .action-btn {
        font-size: 1.25rem;
    }
}

/* ===== PROFILE SIDEBAR LAYOUT (profil, siparislerim, adreslerim, siparis-detay) ===== */
@media (max-width: 768px) {
    .profile-page .container > div[style*="grid-template-columns: 260px"] {
        display: flex !important;
        flex-direction: column !important;
    }
    .profile-page aside {
        order: -1;
    }
    .profile-page aside nav {
        flex-direction: row !important;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .profile-page aside nav::-webkit-scrollbar {
        display: none;
    }
    .profile-page aside nav a {
        white-space: nowrap;
        border-left: none !important;
        border-bottom: 2px solid transparent !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        justify-content: center;
        text-align: center;
        flex-shrink: 0;
    }
    .profile-page aside nav a[style*="border-left: 3px solid var(--primary)"] {
        border-bottom-color: var(--primary) !important;
    }
    .profile-page aside > div:first-child {
        display: none;
    }
    /* Profil form grid */
    .profile-page form[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    .profile-page div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== CART PAGE ===== */
@media (max-width: 768px) {
    .cart-page .container > div[style*="grid-template-columns: 1fr 350px"] {
        grid-template-columns: 1fr !important;
    }
    /* Cart item rows: switch from 4-col grid to stacked */
    .cart-page .cart-item {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    /* Cart header: hide on mobile (we show info in items instead) */
    .cart-page div[style*="grid-template-columns: 4fr 2fr 1fr 1fr"][style*="background: var(--bg-light)"] {
        display: none !important;
    }
    /* Item details: full width */
    .cart-page .cart-item > div {
        text-align: left !important;
    }
    .cart-page .cart-item > div:nth-child(2) {
        justify-content: flex-start !important;
    }
    /* Price columns: display inline */
    .cart-page .cart-item > div:nth-child(3),
    .cart-page .cart-item > div:nth-child(4) {
        display: inline-block;
    }
    .cart-page .cart-item > div:last-child {
        font-size: 1.25rem !important;
    }
}

/* ===== PRODUCT DETAIL PAGE ===== */
@media (max-width: 768px) {
    .product-detail-section .grid-2-col,
    .product-detail-section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .product-detail-section .product-gallery .main-image,
    .product-detail-section div[style*="height: 400px"] {
        height: 280px !important;
    }
    /* Quick buy section responsive */
    .product-detail-section div[style*="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    /* Info badges row */
    .product-info-details > div[style*="gap: 2rem"] {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }
    /* Vendor table container */
    .vendor-list-section {
        padding: 1rem !important;
    }
    /* Related products */
    .related-products .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .related-products .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ===== SEARCH PAGE ===== */
@media (max-width: 768px) {
    .search-page .search-layout {
        grid-template-columns: 1fr !important;
    }
    .search-page .search-sidebar {
        order: 1;
    }
    .search-page .search-main {
        order: 0;
    }
    .search-page .search-stats {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ===== CHECKOUT PAGE ===== */
@media (max-width: 768px) {
    .checkout-layout > div {
        flex-direction: column !important;
    }
    .checkout-left,
    .checkout-right {
        flex: none !important;
        width: 100% !important;
    }
    .checkout-right {
        border-left: none !important;
        border-top: 1px solid var(--border) !important;
    }
    #payment-form {
        grid-template-columns: 1fr !important;
    }
    /* Credit card text scaling */
    .credit-card #displayNumber {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }
    .credit-card #displayName,
    .credit-card #displayExpiry {
        font-size: 0.85rem !important;
    }
}

/* ===== SERVICE CARDS (index.php) ===== */
@media (max-width: 768px) {
    .service-info {
        max-width: 100% !important;
    }
    .service-graphic {
        display: none;
    }
    .service-card {
        min-height: auto !important;
        padding: 1.5rem !important;
    }
}

/* ===== FOOTER IMPROVEMENTS ===== */
@media (max-width: 480px) {
    .footer-features.grid-4 {
        grid-template-columns: 1fr !important;
    }
    .footer-main.grid-4 {
        grid-template-columns: 1fr !important;
    }
    .secure-payment {
        flex-wrap: wrap;
    }
}

/* ===== PRE-PAYMENT (on-odeme.php) ===== */
@media (max-width: 480px) {
    .section-padding #amountInput,
    input#amountInput {
        font-size: 1.8rem !important;
        width: 150px !important;
    }
}
