:root {
    /* Esular Brand Colors (vitrin landing.css ile uyumlu: turuncu = birincil marka, yeşil = accent) */
    --primary: #f24726;
    --primary-dark: #d93d1f;
    --primary-light: #ff6b4a;
    --secondary: #6ABDE6;
    --secondary-dark: #4fa8d4;
    --secondary-light: #8fd0ef;

    /* Tertiary - Corporate Dark (Kurumsal) */
    --tertiary: #2b2a35;
    --tertiary-dark: #1a1a1a;
    --tertiary-light: #41404e;

    /* Functional Colors */
    --success: #129951;
    --info: #6ABDE6;
    --warning: #fcb900;
    --danger: #ff2e2e;

    /* Neutral Colors */
    --dark: #1a1a1a;
    --gray: #706e81;
    --gray-light: #a8a7b5;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(242, 71, 38, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: #FAFAFA;
    color: var(--dark);
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
}

.search-bar {
    max-width: 500px;
    position: relative;
}

.search-bar input {
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 45px 10px 20px;
    width: 100%;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-action-btn {
    background: transparent;
    border: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.3s;
    position: relative;
    text-decoration: none;
    font-size: 0.9rem;
}

.header-action-btn:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.cart-count,
.compare-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Category Navigation */
.category-nav {
    background: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.category-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    /* çirkin OS scrollbar'ı gizle — kaydırma dokunma/tekerle sürer */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-nav-list::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* taşma varken kenarlarda solma — devamı olduğunu hissettirir (JS sınıfları toggle eder) */
.category-nav-list.cnav-more-right {
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
    mask-image: linear-gradient(to right, #000 90%, transparent);
}

.category-nav-list.cnav-more-left {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%);
    mask-image: linear-gradient(to right, transparent, #000 10%);
}

.category-nav-list.cnav-more-left.cnav-more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.category-nav-list li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.category-nav-list li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-badge {
    background: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    background: url('/uploads/blog/kablosuz-akilli-vana-kontrol-unitesi-esular-1.png') no-repeat center;
    background-size: contain;
}

.btn-hero {
    background: white;
    color: var(--primary);
    padding: 12px 35px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary);
}

/* Feature Boxes */
.features-strip {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h6 {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

.feature-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray);
}

/* Product Grid */
.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.section-title span {
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.view-all-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.view-all-btn:hover {
    gap: 10px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.product-image-wrapper {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-new {
    background: var(--info);
}

.badge-sale {
    background: var(--danger);
}

.badge-hot {
    background: var(--secondary);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark);
}

.product-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFC107;
    font-size: 0.875rem;
}

.rating-count {
    color: var(--gray);
    font-size: 0.875rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-discount {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon {
    color: white;
    font-size: 2rem;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-count {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 60px;
    color: white;
    text-align: center;
    margin: 60px 0;
}

.promo-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.promo-banner p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Newsletter */
.newsletter-section {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    margin-top: 80px;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-about p {
    color: #B0B0B0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

.footer-links h5 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #B0B0B0;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: var(--primary);
}

.payment-badge i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Navbar Responsive */
@media (max-width: 991px) {
    .header-actions {
        gap: 8px;
    }

    .header-action-btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .header-action-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    /* Kompakt mobil başlık: [logo | ikonlar] tek satır, arama altta (b2c-design.css ile birlikte çalışır) */
    .navbar .row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .header-actions {
        justify-content: flex-end !important;
        width: auto;
        gap: 6px;
    }
}

/* ===== Bootstrap Button Overrides - Esular Theme ===== */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 8px 25px rgba(242, 71, 38, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    box-shadow: 0 8px 25px rgba(106, 189, 230, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #0d7a40 !important;
    border-color: #0d7a40 !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    border-width: 2px;
    transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--secondary-dark) !important;
    border-color: var(--secondary) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    border-width: 2px;
    transition: var(--transition);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-warning {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
    color: var(--dark) !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* Link and Badge Colors */
a {
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

/* Form Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(242, 71, 38, 0.15) !important;
}

/* Card Hover Effects */
.card {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Pagination */
.page-link {
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(242, 71, 38, 0.1);
}

/* Tertiary Button - Corporate Dark */
.btn-tertiary,
.btn-dark {
    background-color: var(--tertiary) !important;
    border-color: var(--tertiary) !important;
    color: white !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-tertiary:hover,
.btn-tertiary:focus,
.btn-tertiary:active,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    background-color: var(--tertiary-dark) !important;
    border-color: var(--tertiary-dark) !important;
    box-shadow: 0 8px 25px rgba(43, 42, 53, 0.3);
    transform: translateY(-2px);
}

.btn-outline-dark {
    color: var(--tertiary) !important;
    border-color: var(--tertiary) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: var(--border-radius);
    border-width: 2px;
    transition: var(--transition);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
    background-color: var(--tertiary) !important;
    border-color: var(--tertiary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.badge.bg-dark {
    background-color: var(--tertiary) !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366 !important;
    color: white !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    color: white !important;
    line-height: 60px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =====================================================
   SKELETON LOADING SYSTEM
   ===================================================== */

/* Skeleton Base Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Variants */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text-sm {
    height: 0.75em;
    width: 60%;
}

.skeleton-text-lg {
    height: 1.5em;
}

.skeleton-title {
    height: 1.25em;
    width: 70%;
    margin-bottom: 0.75em;
}

.skeleton-price {
    height: 1.5em;
    width: 40%;
}

.skeleton-badge {
    height: 1.5em;
    width: 60px;
    border-radius: 4px;
}

.skeleton-btn {
    height: 40px;
    border-radius: var(--border-radius);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-img {
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    border-radius: var(--border-radius);
}

.skeleton-img-rect {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    border-radius: var(--border-radius);
}

/* Skeleton Product Card */
.skeleton-product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.skeleton-product-card .skeleton-img {
    margin-bottom: 15px;
}

.skeleton-product-card .skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton Product Card Large */
.skeleton-product-card-large {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.skeleton-product-card-large .skeleton-img-wrapper {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-product-card-large .skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Skeleton Cart Item */
.skeleton-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.skeleton-cart-item .skeleton-cart-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-cart-item .skeleton-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton Table Row */
.skeleton-table-row {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.skeleton-table-row .skeleton-cell {
    flex: 1;
    height: 1em;
}

.skeleton-table-row .skeleton-cell-sm {
    flex: 0.5;
}

.skeleton-table-row .skeleton-cell-lg {
    flex: 2;
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Skeleton List */
.skeleton-list {
    display: flex;
    flex-direction: column;
}

/* Skeleton Category Card */
.skeleton-category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.skeleton-category-card .skeleton-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Skeleton Category Box - Ana sayfa kategorileri için */
.skeleton-category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: 140px;
}

.skeleton-category-box .skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.skeleton-category-box .skeleton-cat-name {
    width: 70%;
    height: 13px;
    margin-bottom: 8px;
}

.skeleton-category-box .skeleton-cat-count {
    width: 30px;
    height: 11px;
}

/* Skeleton Banner */
.skeleton-banner {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .skeleton-banner {
        height: 200px;
    }
}

/* Skeleton Stats Card */
.skeleton-stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.skeleton-stats-card .skeleton-stat-value {
    height: 2em;
    width: 50%;
    margin-bottom: 8px;
}

.skeleton-stats-card .skeleton-stat-label {
    height: 1em;
    width: 70%;
}

/* Hide skeleton when content loaded */
.skeleton-container[data-loaded="true"] .skeleton-wrapper {
    display: none;
}

.skeleton-container[data-loaded="false"] .content-wrapper {
    display: none;
}

/* Pulse animation variant */
.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Fade in animation for content reveal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}
/* ============================ Hero Slider (DB-tabanlı) ============================ */
.es-hero-slider .es-hero-slide {
    display: none;
}

.es-hero-slider .es-hero-slide.active {
    display: block;
    animation: esHeroFade .45s ease;
}

@keyframes esHeroFade {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
}

.es-hero-slide-title {
    font-weight: 700;
    margin-bottom: .5rem;
}

/* Oklar + noktalar tek kontrol şeridinde, içeriğin ALTINDA — metin üstüne binmez */
.es-hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    position: relative;
    z-index: 5;
}

.es-hero-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    transition: all .2s;
    padding: 0;
}

.es-hero-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.es-hero-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.es-hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d8dbe0;
    cursor: pointer;
    padding: 0;
    transition: all .2s;
}

.es-hero-dots button.active {
    background: var(--primary);
    width: 26px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .es-hero-slider .es-hero-slide.active { animation: none; }
}
