/* Reset və əsas stillər */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 130px;
}

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

/* Top Header */
.top-header {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    margin: 0;
    line-height: 1;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo h1 {
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 0;
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 50px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-result-item:hover {
    background: #f8f9fa;
}

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

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.25rem;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.search-result-brand {
    font-size: 0.85rem;
    color: #881b34;
}

.search-result-price {
    font-weight: 600;
    color: #881b34;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #999;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
    font-family: 'Lexend', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Style for search input clear button (X) */
.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23881b34' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-input::-webkit-search-cancel-button:hover {
    transform: scale(1.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d1629' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    color: #333;
}

.search-btn:hover {
    background: #f5f5f5;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-link {
    position: relative;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.icon-link:hover {
    color: #881b34;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #881b34;
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-count.active {
    display: flex;
}

/* Cart Dropdown */
.cart-container {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.cart-dropdown.active {
    display: flex;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    color: #881b34;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 300px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 2rem 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 0.25rem;
}

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

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.cart-item-price {
    color: #881b34;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #881b34;
    color: white;
    border-color: #881b34;
}

.cart-item-quantity {
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    font-size: 1.2rem;
}

.remove-item:hover {
    color: #881b34;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.cart-total span:last-child {
    color: #881b34;
}

.btn-checkout {
    width: 100%;
    padding: 0.75rem;
    background: #881b34;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #6d1629;
}

/* Navigation Bar */
.navbar {
    background: #881b34;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 0;
    line-height: 1;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(0,0,0,0.1);
}

.catalog-btn {
    background: rgba(0,0,0,0.15);
    font-weight: 600;
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 0;
    margin: 0;
    text-align: center;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Sections */
section {
    padding: 3rem 0;
    scroll-margin-top: 150px;
    margin: 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000;
}

/* Brands Slider */
.container-full {
    width: 100%;
    max-width: 100%;
}

.brands-slider-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    background: #fff;
}

.brands-slider-row {
    display: flex;
    margin-bottom: 2rem;
}

.brands-slider-row:last-child {
    margin-bottom: 0;
}

.brands-slider-track {
    display: flex;
    gap: 3rem;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

.brands-slider-track.reverse {
    animation: scroll-right 30s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .brand-item {
        width: 140px;
        height: 80px;
    }
    
    .brands-slider-track {
        gap: 2rem;
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    background: #881b34;
    color: white;
    transform: translateY(-5px);
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

/* Products Slider */
.products-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    margin: 0 -20px;
}

.products-slider {
    display: flex;
    gap: 3rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #881b34;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: #6d1629;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
    stroke-width: 3;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.products-slider .product-card {
    min-width: calc(33.333% - 1.33rem);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .products-slider .product-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .products-slider-container {
        padding: 0 50px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .products-slider .product-card {
        min-width: 100%;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}

.product-card h3 {
    padding: 1rem;
    font-size: 1.1rem;
}

.product-card .brand {
    padding: 0 1rem;
    color: #777;
    font-size: 0.9rem;
}

.product-card .price {
    padding: 0 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #881b34;
    margin: 0.5rem 0;
}

.btn-primary {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.75rem;
    background: #881b34;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #6d1629;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.about-section p {
    max-width: 1000px;
    margin: 1rem auto;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-section p strong {
    font-weight: 600;
}

/* Contact Section */
.contact-info {
    text-align: center;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.contact-item svg {
    color: #881b34;
    flex-shrink: 0;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #881b34;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-contact li:hover {
    color: #fff;
}

.footer-contact li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact li a:hover {
    color: #881b34;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #881b34;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #881b34;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .top-header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    
    .navbar-content {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button svg {
        width: 26px;
        height: 26px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
