:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --tertiary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-gray: #f9fafb;
    --border-gray: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

header {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.language-switcher {
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    right: 0;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg-gray);
    opacity: 1;
}

.cart-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--secondary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--tertiary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section and Slider */
.hero {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Slider Navigation */
.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-nav-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Arrow Navigation */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 2rem;
}

.hero-arrow-next {
    right: 2rem;
}

/* Fallback static hero when slider is disabled */
.hero-static {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(16,185,129,0.1));
    padding: 4rem 0;
    text-align: center;
}

.hero-static h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-static p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-content .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-arrow-prev {
        left: 1rem;
    }
    
    .hero-arrow-next {
        right: 1rem;
    }
    
    .hero-nav {
        bottom: 1rem;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: var(--tertiary-color);
    color: var(--white);
}

.btn-tertiary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Regular Product Grid for Products Page */
.grid-products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Carousel Grid */
.grid-4 {
    position: relative;
    padding: 0 30px;
    margin: 0 -30px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.product-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    width: max-content;
}

.product-carousel .card {
    flex: 0 0 auto;
    width: calc((100vw - 140px) / 5 - 1.5rem);
    max-width: 280px;
    min-width: 200px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* Responsive adjustments for carousel */
@media (max-width: 1200px) {
    .product-carousel .card {
        width: calc((100vw - 140px) / 4 - 1.5rem);
    }
}

@media (max-width: 1000px) {
    .product-carousel .card {
        width: calc((100vw - 140px) / 3 - 1.5rem);
    }
}

@media (max-width: 700px) {
    .product-carousel .card {
        width: calc((100vw - 140px) / 2 - 1.5rem);
        min-width: 180px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 3px;
    }
    
    .carousel-next {
        right: 3px;
    }
}

@media (max-width: 450px) {
    .product-carousel .card {
        width: calc(100vw - 160px);
        min-width: 220px;
    }
    
    .grid-4 {
        padding: 0 25px;
        margin: 0 -25px;
    }
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

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

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    overflow: hidden;
}

.card .price {
    margin-bottom: 0.75rem;
    margin-top: auto;
}

.card .btn {
    margin-top: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filters {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.basket-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.basket-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Product Detail Page Styles */
.breadcrumb-nav {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image-section {
    position: relative;
}

.product-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-category {
    margin-top: 0.5rem;
}

.category-badge {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.product-price-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.currency {
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.stock-status {
    font-size: 0.95rem;
    font-weight: 500;
}

.stock-available {
    color: var(--tertiary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-unavailable {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-icon {
    font-weight: bold;
}

.add-to-cart-form {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    background: var(--bg-gray);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}

.qty-btn:hover {
    background: var(--border-gray);
}

.quantity-input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    background: var(--white);
    outline: none;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-icon {
    font-size: 1.2rem;
}

.out-of-stock-message {
    padding: 1.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
}

.product-features {
    padding: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feature-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.product-description-section {
    margin-top: 2rem;
}

.description-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-gray);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.description-content p {
    margin-bottom: 1rem;
}

.specifications-content {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.specs-table tr {
    border-bottom: 1px solid var(--border-gray);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--text-dark);
    width: 40%;
}

.spec-value {
    padding: 0.75rem 0;
    color: var(--text-light);
}

.reviews-content {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    background: var(--bg-gray);
    border-radius: 8px;
}

/* Responsive Design for Product Detail Page */
@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .price-display {
        font-size: 1.75rem;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .description-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .description-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        min-width: 120px;
    }
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-gray);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-summary {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 12px;
}

.order-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    padding-top: 1rem;
    border-top: 2px solid var(--border-gray);
}

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link-vertical {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #d1d5db;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.social-link-vertical:hover {
    background: var(--secondary-color);
    transform: translateX(4px);
    color: var(--white);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Legacy social link support */
.social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .basket-item {
        flex-direction: column;
        text-align: center;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-gray);
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 4px;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Horizontal Categories Bar */
.categories-bar {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
}

.categories-horizontal {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-gray) transparent;
    justify-content: flex-start;
    align-items: flex-start;
}

.categories-horizontal::-webkit-scrollbar {
    height: 6px;
}

.categories-horizontal::-webkit-scrollbar-track {
    background: transparent;
}

.categories-horizontal::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 3px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    min-width: 120px;
    max-width: 140px;
    width: auto;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--white);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.category-item:hover {
    background: var(--bg-gray);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    color: var(--white);
    flex-shrink: 0;
}

.category-icon svg {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
}

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

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Responsive categories */
@media (max-width: 768px) {
    .categories-horizontal {
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    
    .category-item {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
}