* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

#mainimg {
    border-radius: 20px;
    width: 100%;
    max-width: 1450px;
    height: auto;
    margin-left: 35px;
    box-shadow: #333 5px 5px 20px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

header {
    background-color: #0071ce;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-bar__items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: white;
}

.nav-bar__logo img {
    height: 40px;
}

.nav-bar__logo-mobile {
    display: none;
}

.nav-bar__search-input {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.nav-bar__search-input input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
}

.nav-bar__search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.nav-bar__items li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-bar__items li div p {
    line-height: 1.2;
}

.nav-bar__p--small {
    font-size: 12px;
}

.font-normal {
    font-weight: normal;
}

.nav-bar__cart-list {
    position: relative;
}

.nav-bar__cart-list span {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffc220;
    color: #333;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.nav-bar__divider-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}

.nav-bar__items-2 {
    justify-content: space-between;
}

.nav-bar__location-list,
.nav-bar__category-list {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-bar__category-list li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-bar__category-list li a:hover {
    text-decoration: underline;
}

.main-content {
    padding: 40px 0;
    min-height: 65vh;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #0071ce;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 60px;
    color: #0071ce;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 15px 0 10px;
    color: #0071ce;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.product-section {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    color: #0071ce;
    font-weight: 600;
}

.view-all {
    color: #0071ce;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

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

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

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

#pimage {
    width: 275px;
    height: 235px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;

    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #0071ce;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background-color: #e60000;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc220;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #0071ce;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #005da6;
}

footer {
    background-color: #f5f5f5;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.footer__div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer__div a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer__div a:hover {
    text-decoration: underline;
}

footer p {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: #0071ce;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #005da6;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

@media (max-width: 768px) {
    .nav-bar__logo {
        display: none;
    }

    .nav-bar__logo-mobile {
        display: block;
    }

    .nav-bar__logo-mobile img {
        height: 40px;
    }

    .d-md-none {
        display: none;
    }

    .nav-bar__search-input {
        margin: 0 10px;
    }

    .home-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .d-sm-none {
        display: none;
    }

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