/* ============================================
   LabCal Katalog - Ana Stil Dosyası
   labcal.com.tr tasarımıyla uyumlu
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============== CSS VARIABLES ============== */
:root {
    --primary: #c53a32;
    --primary-dark: #96251e;
    --primary-light: #d65952;
    --primary-bg: #fff0f0;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============== RESET & BASE ============== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(197, 58, 50, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(197, 58, 50, 0.15);
}

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

/* ============== HEADER ============== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-top {
    background: linear-gradient(90deg, #1f0505 0%, #4a1313 50%, #7f1d1d 100%);
    color: var(--white);
    font-size: 0.875rem;
    height: 60px;
    position: relative;
    z-index: 1001;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-left a {
    color: #ffcdd2;
    font-weight: 700;
    text-decoration: underline;
    flex-shrink: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-right a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-right i {
    color: #ffcdd2;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.header-main {
    padding: 8px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
    z-index: 10;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
}

/* Navigasyon */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-700);
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: #c53a32;
    background: transparent;
}

.nav-link.nav-highlight {
    background: #fff0f0;
    color: #c53a32;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
}
.nav-link.nav-highlight:hover {
    background: #ffe5e5;
}
.nav-link.nav-highlight::after {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #c53a32;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    z-index: 1000;
    border: 1px solid var(--gray-100);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: #fff0f0;
    color: #c53a32;
    padding-left: 25px;
}

/* Hemen Ara Bölümü */
.header-contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5f5;
    padding: 5px 20px 5px 6px;
    border-radius: 50px;
    border: 1px solid #ffd1d1;
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.header-contact-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 58, 50, 0.15);
    border-color: #fca5a5;
}

.header-contact-icon {
    width: 44px;
    height: 44px;
    background: #c53a32;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.header-contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.header-contact-text .label {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 500;
}

.header-contact-text .number {
    font-size: 1.05rem;
    font-weight: 800;
    color: #c53a32;
}

/* Mobil Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: #c53a32;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 100;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .header-content {
        gap: 15px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: flex;
        order: 3;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 80px 30px;
        transition: 0.4s ease-in-out;
        z-index: 99;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .header-content {
        gap: 5px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-contact-box {
        padding: 4px 12px 4px 4px;
        gap: 8px;
        order: 2;
        min-width: 0;
        flex-shrink: 1;
    }

    .header-contact-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .logo {
        order: 1;
        margin-right: auto;
        margin-left: -17px;
    }
    
    .logo-img {
        height: 40px !important;
        width: auto !important;
        object-fit: contain;
    }
    
    .header-contact-text .label {
        display: block;
        font-size: 0.6rem;
    }
    
    .header-contact-text .number {
        font-size: 0.8rem;
        white-space: nowrap;
        letter-spacing: -0.2px;
    }

    .mobile-toggle {
        display: flex;
        order: 3;
        margin-left: 2px;
    }

    .header {
        position: sticky;
        z-index: 2001;
    }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile menu - legacy */
.menu-toggle {
    display: none !important;
}

/* ============== MOBİL MENÜ OVERLAY ============== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-menu-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 30px 30px;
    width: 85%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: menuSlideIn 0.35s ease;
}

@keyframes menuSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.mobile-menu-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--gray-500);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 6px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.mobile-menu-link:hover {
    background: var(--gray-50);
}

.mobile-menu-link.active {
    background: #fff1f1;
    color: #c53a32;
    font-weight: 600;
}

.mobile-menu-link.nav-highlight {
    background: #fff0f0;
    color: #c53a32;
    font-weight: 600;
}

.mobile-menu-link.nav-highlight:hover {
    background: #ffe5e5;
}

.mobile-menu-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    margin-right: 14px;
    flex-shrink: 0;
}

.mobile-menu-link.active .mobile-menu-dot {
    background: #c53a32;
}

/* Hamburger → X Animasyonu */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Masaüstünde mobil menü overlay gizle */
@media (min-width: 901px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ============== CONTAINER ============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--white);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #c53a32 !important;
    background: #c53a32 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(197, 58, 50, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-danger:hover {
    background-color: #b0332c !important;
    background: #b0332c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(197, 58, 50, 0.4) !important;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============== HERO SECTION ============== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ============== CATEGORIES SECTION ============== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

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

.category-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.category-card:hover .icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.category-card .count {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============== PRODUCTS GRID ============== */
.products-grid {
    display: grid;
    gap: 24px;
}

/* Default / Auto / 3-Cols */
.products-grid,
.products-grid.grid-cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 2 Columns */
.products-grid.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

/* 4 Columns */
.products-grid.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    .products-grid.grid-cols-3,
    .products-grid.grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .products-grid,
    .products-grid.grid-cols-2,
    .products-grid.grid-cols-3,
    .products-grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {

    .products-grid,
    .products-grid.grid-cols-2,
    .products-grid.grid-cols-3,
    .products-grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card .card-body {
        padding: 12px;
    }

    .product-card h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-card .price {
        font-size: 1.05rem;
    }

    .product-card .brand {
        font-size: 0.65rem;
    }

    .product-card .model {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .product-card .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card .image-wrapper {
    position: relative;
    padding-top: 75%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    overflow: hidden;
}

.product-card .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: var(--transition);
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: #e2e8f0;
    font-size: 3rem;
    transition: var(--transition);
}

.product-card:hover .no-image {
    background-color: #f1f5f9;
    color: #cbd5e1;
}

/* Slider Dots Effect */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover,
.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-card .model {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-600);
}

.product-card .model {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-600);
}

.product-card .price .currency {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============== PRODUCT DETAIL ============== */
.product-detail {
    padding: 40px 0 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray-300);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.detail-image {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    overflow: hidden;
}

.detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.detail-info .brand-model {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.detail-info .brand-model strong {
    color: var(--primary);
}

.detail-price {
    background: linear-gradient(135deg, var(--primary-bg), var(--white));
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(26, 86, 219, 0.1);
}

.detail-price .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.detail-price .amount .currency {
    font-size: 1.2rem;
    font-weight: 500;
}

.detail-price .note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.detail-specs {
    margin-bottom: 24px;
}

.detail-specs h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.spec-item .icon {
    color: var(--primary);
    font-size: 0.8rem;
}

.detail-sku {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

/* ============== QUOTE FORM ============== */
.quote-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    margin-top: 32px;
}

.quote-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============== ALERT / MESSAGES ============== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ============== SIDEBAR ============== */
.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 0 80px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-bg);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 2px;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.sidebar-nav .badge-count {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============== CONTACT PAGE ============== */
.contact-section {
    padding: 50px 0 60px;
    background: #f5f0eb;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 35px;
    align-items: start;
}

/* Form Kartı */
.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 45px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.contact-form-card h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-card h2 i {
    color: #c53a32;
}

.contact-form-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-card .form-group {
    margin-bottom: 0;
}

.contact-form-card label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-form-card input,
.contact-form-card .form-select,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--navy);
}

.contact-form-card input:focus,
.contact-form-card .form-select:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: #c53a32;
    box-shadow: 0 0 0 3px rgba(197, 58, 50, 0.1);
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: var(--gray-400);
}

.contact-form-card .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form-card textarea {
    min-height: 130px;
    resize: vertical;
    margin-bottom: 20px;
}

.btn-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c53a32, #e06050);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(197, 58, 50, 0.25);
}

.btn-contact-submit:hover {
    background: linear-gradient(135deg, #b33029, #d44940);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 58, 50, 0.35);
}

/* Sağ Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    background: #fdf8f8;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: #fff0f0;
    color: #c53a32;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-info-icon.email-icon {
    background: #fff0f0;
    color: #c53a32;
}

.contact-info-icon.clock-icon {
    background: #fff0f0;
    color: #c53a32;
}

.contact-info-detail h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-info-detail p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.contact-info-detail a {
    color: var(--gray-600);
    transition: var(--transition);
}

.contact-info-detail a:hover {
    color: #c53a32;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 14px;
    background: #c53a32;
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-map:hover {
    background: #b33029;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-map iframe {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .contact-form-card .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* ============== FOOTER ============== */
.footer {
    background: var(--navy);
    color: var(--gray-300);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============== WHATSAPP FLOAT ============== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============== ADMIN PANEL MODERN ============== */
.admin-body {
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Sidebar Styling */
.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-nav-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: #94a3b8;
    text-decoration: none;
}

.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-sidebar-link.active {
    background: #3b82f6;
    color: white;
}

/* Content Area */
.admin-main-wrapper {
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Header */
.admin-header {
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-nav-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.admin-nav-meta a {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.admin-nav-meta a:hover {
    color: #0f172a;
}

.admin-nav-meta a.logout-btn {
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fef2f2;
}

.admin-nav-meta a.logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.admin-main {
    flex: 1;
    padding: 32px;
}

/* Admin Card System */
.admin-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.admin-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.admin-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.admin-card-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* Statistics Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-primary .admin-stat-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.status-warning .admin-stat-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.status-success .admin-stat-icon {
    background: #ecfdf5;
    color: #10b981;
}

.admin-stat-content .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.admin-stat-content .label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* Modern Admin Table */
.modern-table-wrapper {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
}

.modern-table td {
    padding: 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.modern-table tr:hover {
    background: #f8fafc;
}

.modern-table tr.unread {
    background: #f0f9ff;
}

.modern-table tr.unread td {
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-switch.active {
    background: #10b981;
}

.toggle-switch .indicator {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle-switch.active .indicator {
    left: 22px;
}

/* Refactored admin layout rules are placed above */

/* Form Styling Enhancements */
.admin-form-section {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-form-section:last-child {
    border-bottom: none;
}

.admin-form-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* ============== NO IMAGE PLACEHOLDER ============== */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 3rem;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ============== SPEC LIST ============== */
.detail-specs h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.88rem;
    color: #334155;
}

.spec-item .icon {
    color: #3b82f6;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============== GLOBAL TOUCH & MOBILE ENHANCEMENTS ============== */
/* iOS zoom prevention on input focus */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Touch-friendly targets */
button,
.btn,
a.btn,
.toggle-switch,
.slider-dot,
.menu-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling on mobile */
.modern-table-wrapper,
.admin-card-body {
    -webkit-overflow-scrolling: touch;
}

/* ============== RESPONSIVE: 1024px (Tablet Landscape) ============== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .hero-stats {
        gap: 24px;
    }

    /* Admin tablet */
    .admin-sidebar {
        width: 220px;
    }

    .admin-main-wrapper {
        margin-left: 220px;
    }

    .admin-main {
        padding: 24px;
    }
}

/* ============== RESPONSIVE: 768px (Tablet Portrait & Large Phones) ============== */
@media (max-width: 768px) {

    /* --- Container --- */
    .container {
        padding: 0 16px;
    }

    .sidebar {
        display: none;
    }

    /* --- Top Bar --- */
    .header-top {
        height: 44px;
        font-size: 0.8rem;
    }

    .topbar-right {
        display: none;
    }

    .topbar-left {
        width: 100%;
        justify-content: flex-start;
    }

    /* --- Header --- */
    .header-main .container {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 12px 0;
        border-top: 1px solid var(--gray-200);
        order: 3;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex !important;
        order: 2;
    }

    .logo {
        order: 1;
        font-size: 1.2rem;
    }

    .header-cta {
        order: 2;
    }

    .mobile-actions {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .header-phone-btn {
        padding: 6px;
        font-size: 0.8rem;
        width: 90px;
        height: 38px;
        justify-content: center;
        box-sizing: border-box;
    }

    .menu-toggle {
        display: flex !important;
        order: 2;
        width: 90px;
        height: 38px;
        justify-content: center;
        box-sizing: border-box;
    }

    .header-phone-btn small {
        display: none;
    }

    .header-phone-btn span {
        font-size: 0.8rem;
    }

    /* --- Hero --- */
    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 32px;
    }

    .hero-stat .number {
        font-size: 1.8rem;
    }

    /* --- Section --- */
    .section {
        padding: 48px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* --- Products Grid --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .card-body {
        padding: 12px;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .product-card .brand {
        font-size: 0.7rem;
    }

    .product-card .price {
        font-size: 1rem;
    }

    .product-card .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* --- Categories Grid --- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-card .icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .category-card h3 {
        font-size: 0.85rem;
    }

    /* --- Product Detail --- */
    .product-detail {
        padding: 24px 0 48px;
    }

    .detail-image img,
    #mainImage {
        max-height: 280px !important;
        height: 280px !important;
    }

    .detail-info h1 {
        font-size: 1.4rem;
    }

    .detail-price .amount {
        font-size: 1.6rem;
    }

    .quote-section {
        padding: 20px;
        margin-top: 24px;
    }

    .quote-section h2 {
        font-size: 1.1rem;
    }

    /* --- Contact Page --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-card {
        padding: 28px;
    }

    .contact-form-card {
        padding: 24px;
    }

    /* --- Forms --- */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        padding: 12px 14px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* --- Footer --- */
    .footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer h4 {
        margin-bottom: 12px;
    }

    .footer-bottom {
        padding: 16px 0;
        font-size: 0.75rem;
    }

    /* --- Breadcrumb --- */
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    /* --- Alerts --- */
    .alert {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    /* --- WhatsApp Float --- */
    .whatsapp-float {
        bottom: 20px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* ===== ADMIN PANEL MOBILE ===== */
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-sidebar.open {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 260px;
        height: calc(100vh - 64px);
        z-index: 999;
        overflow-y: auto;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    }

    .admin-main {
        padding: 16px;
    }

    .admin-main>div:first-child h1 {
        font-size: 1.2rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-stat-card {
        padding: 16px;
    }

    .admin-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .admin-stat-content .value {
        font-size: 1.4rem;
    }

    /* Admin dashboard 2-column to 1-column */
    .admin-main>div[style*="grid-template-columns: 2fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .admin-card-header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

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

    .admin-form-section {
        padding: 16px;
    }

    .admin-card-footer {
        padding: 12px 16px;
    }

    .modern-table th,
    .modern-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Admin header mobile */
    .admin-header .container {
        padding: 0 16px;
    }

    .admin-logo {
        font-size: 1rem;
    }

    .admin-nav-meta {
        gap: 12px;
    }

    .admin-nav-meta a span,
    .admin-nav-meta a:first-child {
        display: none;
    }

    .admin-nav-meta a:last-child {
        display: flex;
    }

    .admin-sidebar-toggle {
        display: flex;
    }
}

/* ============== RESPONSIVE: 480px (Small Phones) ============== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* --- Hero --- */
    .hero {
        padding: 36px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }

    .hero-stat .label {
        font-size: 0.75rem;
    }

    /* --- Section --- */
    .section {
        padding: 36px 0;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    /* --- Product Grid: force 2 columns --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card .card-body {
        padding: 10px;
    }

    .product-card h3 {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .product-card .price {
        font-size: 0.9rem;
    }

    .product-card .image-wrapper {
        padding-top: 80%;
    }

    .product-card .badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* --- Categories Grid --- */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .category-card {
        padding: 16px 8px;
    }

    .category-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }

    /* --- Detail --- */
    .detail-image img,
    #mainImage {
        max-height: 220px !important;
        height: 220px !important;
    }

    .detail-info h1 {
        font-size: 1.2rem;
    }

    .detail-price {
        padding: 16px;
    }

    .detail-price .amount {
        font-size: 1.4rem;
    }

    .spec-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .quote-section {
        padding: 16px;
        border-radius: 8px;
    }

    .quote-section h2 {
        font-size: 1rem;
    }

    /* --- Contact ---*/
    .contact-info-card {
        padding: 20px;
        border-radius: 12px;
    }

    .contact-info-card h2 {
        font-size: 1.2rem;
    }

    .contact-form-card {
        padding: 20px;
    }

    .contact-form-card h2 {
        font-size: 1.2rem;
    }

    /* --- Buttons --- */
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 32px 0 0;
    }

    .footer-grid {
        gap: 20px;
        padding-bottom: 24px;
    }

    .footer-about p {
        font-size: 0.8rem;
    }

    /* --- Topbar --- */
    .header-top {
        height: 36px;
        font-size: 0.75rem;
    }

    .typewrite {
        font-size: 0.75rem;
    }

    /* --- Header --- */
    .header-main {
        padding: 8px 0;
    }

    .logo img {
        height: 32px !important;
    }

    .header-phone-btn {
        padding: 6px 10px;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        color: #334155 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .header-phone-btn .phone-icon-box {
        background: transparent !important;
        color: #334155 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .header-phone-btn i {
        font-size: 1rem !important;
    }

    .header-phone-btn span {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }

    /* --- Admin --- */
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .admin-main-wrapper {
        margin-left: 0;
    }

    .admin-header .admin-sidebar-toggle {
        display: block !important;
    }

    .admin-header {
        padding: 0 16px;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-stat-card {
        padding: 14px;
        gap: 12px;
    }

    .admin-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .admin-stat-content .value {
        font-size: 1.2rem;
    }

    .admin-stat-content .label {
        font-size: 0.75rem;
    }

    .admin-form-section {
        padding: 12px;
    }

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

    .modern-table th,
    .modern-table td {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* ============== RESPONSIVE: 360px (Very Small Phones) ============== */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card .image-wrapper {
        padding-top: 65%;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-info h1 {
        font-size: 1.1rem;
    }

    .detail-price .amount {
        font-size: 1.2rem;
    }

    .quote-section h2 {
        font-size: 0.95rem;
    }

    .footer h4 {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .admin-header .container {
        padding: 0 8px;
    }

    .admin-logo {
        font-size: 0.9rem;
        gap: 6px;
    }
}

/* ============== LANDSCAPE PHONE FIX ============== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 24px 0;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero-stats {
        margin-top: 16px;
    }

    .login-page {
        padding: 12px;
    }

    .login-card {
        padding: 24px;
    }
}

/* ============== FOOTER ACCORDION (MOBILE ONLY) ============== */
.toggle-icon {
    display: none;
}

.footer-collapsible {
    max-height: none;
}

@media (max-width: 768px) {
    .footer-grid {
        gap: 0;
    }

    .footer-about {
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0 !important;
        padding: 18px 0;
        cursor: pointer;
        user-select: none;
    }

    .toggle-icon {
        display: block;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
        opacity: 0.7;
    }

    .footer-collapsible {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .footer-col.active .footer-collapsible {
        padding-bottom: 16px;
    }

    .logo img,
    .main-logo {
        height: 70px !important;
        margin-left: 20px;
        /* Adjusting left alignment to push logo right */
    }
}

/* ============== CUSTOM BUTTONS & PAGINATION ============== */
.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: var(--white);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.page-item .page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}