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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar {
    background-color: #003366;
    padding: 10px 0;
    font-size: 14px;
    color: #ffffff;
    border-bottom: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-content span {
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.top-bar-content span:hover {
    color: #ffcc00;
}

#top-address {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

#top-address:hover {
    color: #ffcc00;
}

#top-phone {
    font-weight: 700;
    color: #ffcc00;
}

.main-header {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

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

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

.logo img {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}

.search-box {
    display: flex;
    width: 50%;
    max-width: 500px;
    min-width: 260px;
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.search-box button {
    background-color: #ffcc00;
    color: #003366;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e6b800;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.icon-item strong {
    display: block;
    font-size: 14px;
    color: white;
}

.icon-item span {
    font-size: 12px;
    color: #d9d9d9;
}

.login-link {
    text-decoration: none;
    color: white;
}

.cart-box {
    position: relative;
    font-size: 28px;
    cursor: pointer;
}

.cart-box a {
    color: white;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ffcc00;
    color: #003366;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.slider-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 5%;
    color: white;
    background: rgba(0, 51, 102, 0.85);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 2;
    max-width: 80%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slide-content h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
}

.hero {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    margin-top: -40px;
}

.hero-inner {
    background: rgba(0, 51, 102, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 25px 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    color: #f1f1f1;
}

.showcase-section {
    padding: 10px 0 30px;
}

.mini-slider-block {
    margin-bottom: 35px;
}

.mini-slider-title {
    text-align: center;
    font-size: 28px;
    color: #003366;
    margin-bottom: 18px;
    font-weight: 700;
}

.mini-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 18px 0;
}

.mini-slider-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: scrollLeft 24s linear infinite;
}

.mini-slider-track.reverse {
    animation: scrollRight 24s linear infinite;
}

.mini-slider-track img {
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    background: #f3f3f3;
}

.mini-slider:hover .mini-slider-track {
    animation-play-state: paused;
}

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

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

.categories-container {
    padding: 50px 5%;
    text-align: center;
}

.section-title {
    margin-bottom: 30px;
    color: #003366;
    font-size: 28px;
}

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

.category-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #003366;
}

.category-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-item h3 {
    color: #333;
    margin-bottom: 10px;
}

.category-item p {
    color: #777;
    font-size: 14px;
}

@media (max-width: 992px) {
    .header-content {
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .header-icons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 12px;
        padding: 12px 0;
    }

    .logo img {
        width: 140px;
    }

    .slider-container {
        height: 260px;
    }

    .slide-content {
        bottom: 20px;
        left: 15px;
        right: 15px;
        max-width: unset;
        padding: 12px 16px;
    }

    .slide-content h2 {
        font-size: 18px;
    }

    .hero {
        padding: 35px 15px;
        margin-top: -20px;
    }

    .hero-inner {
        padding: 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .mini-slider-title {
        font-size: 22px;
    }

    .category-item {
        padding: 24px 18px;
    }
}