:root {
    --primary-color: #ffd400;
    --secondary-color: #2f80ed;
    --text-color: #333;
    --bg-color: #f3f3f3;
    --white: #fff;
    --black: #000;
    --red: #d0021c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 10px 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 40px;
}

.search-box {
    flex-grow: 1;
    position: relative;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    outline: none;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.action-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

/* Navigation */
.nav-main {
    background-color: var(--black);
    color: var(--white);
}

.nav-list {
    display: flex;
    justify-content: space-between;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 400;
}

.nav-list li a:hover {
    background-color: #333;
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

/* Product Card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-name {
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    overflow: hidden;
}

.product-price {
    color: var(--red);
    font-weight: bold;
    font-size: 16px;
}

.product-old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 13px;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
}

.suggestion-item:hover {
    background: #f1f1f1;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
}

.suggestion-item .info .name {
    font-size: 14px;
    font-weight: bold;
    display: block;
}

.suggestion-item .info .price {
    font-size: 12px;
    color: var(--red);
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-error {
    border-left: 4px solid #F44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #999;
    z-index: 5;
}

.wishlist-btn.active {
    color: #d0021c;
}

/* Load More Button */
.btn-load-more {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    background: #fff;
    color: var(--secondary-color);
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-load-more:hover {
    background: var(--secondary-color);
    color: #fff;
}