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

body {
    background-color: var(--bg-body, #fff);
    color: var(--text-main, #333);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.shared-bg {
    background-color: var(--bg-body);
}

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

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

.promo-bar {
    background-color: #ffeb3b;
    color: #333;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.header {
    border-bottom: 1px solid #eaeaea;
    background-color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.header-left-group {
    display: flex;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 5px 20px;
    flex: 1;
    max-width: 450px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background-color: #fff;
    border-color: #ffeb3b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-container input {
    border: none;
    background: transparent;
    padding: 10px;
    width: 100%;
    outline: none;
    font-size: 15px;
    color: #333;
}

.search-container button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s;
}

.search-container button:hover {
    color: #000;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    color: #555;
    font-size: 18px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.header-actions .icon-link {
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.header-actions .icon-link i {
    font-size: 16px;
}

.wishlist-link:hover i {
  color: red;
  font-weight: 900;
}

.btn-primary.hero-btn-link {
    background-color: #fff;
    color: #000;
}

.btn-primary.hero-btn-link:hover {
    background-color: #ffeb3b;
    color: #000;
}

.hero-section {
    position: relative; 
    text-align: center; 
    color: white;
}

.hero-bg-image {
    width: 100%; 
    height: 500px; 
    object-fit: cover; 
    filter: brightness(0.7);
}

.hero-content {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem; 
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.2rem; 
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary {
    display: inline-block;
    background-color: #222; 
    color: #fff;
    padding: 16px 40px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #ffeb3b;
    color: #000;
    transform: translateY(-3px);
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #111;
}

.see-all {
    color: #8b0000;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all:hover {
    color: #000;
}

.products-section {
    padding: 80px 0;
    background-color: #fff;
}

.deals-section {
    background-color: #fdfaf5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;           
    flex-direction: column;  
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 5;
    color: #333;
}

.wishlist-btn:hover,
.wishlist-btn.liked {
    background-color: #fef1f1;
}

.wishlist-btn:hover i,
.wishlist-btn.liked i {
    color: #d32f2f;
}

.badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

.badge {
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.badge.discount {
    background: #d32f2f;
}

.product-info {
    padding: 20px;
    display: flex;          
    flex-direction: column; 
    flex-grow: 1;          
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
}

.stars {
    color: #ffc107;
    font-size: 12px;
    margin-bottom: 15px;
}

.stars .active-star {
    color: #f5a623 !important;
}

.stars .empty-star {
    color: #d1d5db !important;
}

.card-review-stat {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
}

.no-card-reviews {
    color: #888;
    font-size: 12.5px;
    font-style: italic;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;    
    padding-top: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
    font-weight: 400;
}

.add-to-cart-btn {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background-color: #ffeb3b;
    color: #000;
}

.categories-section {
    padding: 80px 0;
    background-color: #fff;
}

.categories-grid {
    display: flex;          
    flex-wrap: wrap;        
    justify-content: center;
    gap: 20px;
}

.category-item {
    width: calc(25% - 15px);
    text-align: center;
    border: 1px solid #eaeaea;
    border-radius: 8px; 
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: #ffeb3b; 
    box-shadow: 0 0 18px rgba(255, 235, 59, 0.4); 
    transform: translateY(-5px); 
}

.category-item img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease; 
}

.category-item:hover img {
    transform: scale(1.05); 
}

.category-item h3 {
    padding: 15px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.features {
    padding: 40px 0;
    border-top: 1px solid #eaeaea;
    background-color: #fafafa;
}

.features-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 28px;
    color: #222;
}

.feature-text {
    text-align: left;
}

.feature-text h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 2px;
    font-weight: 600;
}

.feature-text p {
    font-size: 13px;
    color: #777;
}

.fallback-notice-text {
    color: #666;
    font-size: 15px;
    grid-column: 1 / -1;
}

.footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 15px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: inline-block;
    color: #fff;
    margin-bottom: 15px;
}

.footer-links-wrapper {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #aaa;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.clickable-product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.clickable-product-card .add-to-cart-btn,
.clickable-product-card .wishlist-btn {
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #222222;
    transition: color 0.2s ease;
}

.header-actions .icon-link:hover {
    color: #000000;
}

.action-text-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.action-text {
    font-size: 15px;
    font-weight: 500;
    color: inherit;
    line-height: 1;
}

.count-pill-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background-color: #d93025; /* Red */
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 10;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .category-item {
        width: calc(33.333% - 14px); 
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .category-item {
        width: calc(50% - 10px); 
    }

    .features-container {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        width: 100%; 
    }

    .action-text {
        display: none;
    }

    .header-actions .icon-link {
        font-size: 18px;
    }
    .count-pill-badge {
        position: absolute;
        top: -6px;
        right: -8px;
    }
}