/* ===== GENERAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    transition: all 0.3s ease;
}

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: #f5f5f5;
    padding: 12px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left span {
    margin-right: 30px;
    color: #666;
}

.header-top-right a {
    margin-left: 20px;
    color: #666;
    text-decoration: none;
}

.header-top-right a:hover {
    color: #0066cc;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: #0066cc;
    white-space: nowrap;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    background-color: transparent;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    border: none;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

.search-bar button:hover {
    background-color: #0052a3;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    position: relative;
    color: #333;
    font-size: 18px;
    text-decoration: none;
}

.icon-link:hover {
    color: #0066cc;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
}

/* ===== CATEGORY MENU ===== */
.category-menu {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.category-menu .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.category-item {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    border-right: 1px solid #eee;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: #0066cc;
    color: white;
}

/* ===== BANNER SECTION ===== */
.banner-section {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    padding: 40px 0;
    margin: 20px 0;
}

.banner-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #0066cc;
}

.slider-btn:hover {
    background-color: #0066cc;
    color: white;
    transform: scale(1.1);
}

.banner-slider {
    flex: 1;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 40px;
    padding: 30px;
}

.banner-text {
    color: white;
    flex: 1;
}

.banner-text h2 {
    font-size: 48px;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-price {
    font-size: 72px;
    margin: 10px 0;
    font-weight: bold;
    color: #ffd700;
}

.banner-desc {
    font-size: 20px;
    margin: 10px 0;
    font-weight: 600;
}

.banner-date {
    font-size: 14px;
    margin: 10px 0;
    opacity: 0.9;
}

.btn-banner {
    background-color: #ffd700;
    color: #333;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-banner:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== PRODUCTS SECTION ===== */
.products-section,
.combo-section {
    padding: 40px 0;
    background-color: #fff;
}

.combo-section {
    background-color: #fafafa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
    font-weight: bold;
}

.view-all {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-add-cart {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #0052a3;
}

.badge-new,
.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.badge-new {
    background-color: #ffc107;
    color: #333;
}

.badge-sale {
    background-color: #ff6b6b;
    color: white;
}

.product-info {
    padding: 15px;
}

.product-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-author {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #999;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.sale-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 14px;
}

.product-rating {
    font-size: 12px;
    color: #ffc107;
}

.product-rating i {
    margin-right: 2px;
}

.product-rating span {
    color: #999;
    margin-left: 5px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-column h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-column a:hover {
    color: #0066cc;
}

.footer-column p {
    margin: 8px 0;
    font-size: 14px;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    padding: 0 15px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .banner-text h2 {
        font-size: 36px;
    }

    .banner-price {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .nav-icons {
        order: 4;
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .category-menu {
        display: none;
    }

    .category-menu.active {
        display: block;
    }

    .banner-slider-container {
        gap: 10px;
        padding: 0 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .banner-content {
        padding: 15px;
    }

    .banner-text h2 {
        font-size: 28px;
    }

    .banner-price {
        font-size: 36px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .header-top-left span {
        margin-right: 15px;
        font-size: 11px;
    }

    .header-top-right a {
        margin-left: 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .product-image {
        height: 180px;
    }

    .banner-slider-container {
        flex-direction: column;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
    }

    .banner-slide {
        height: auto;
    }

    .banner-content {
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-price {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== POPUP STYLES ===== */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: popupSlide 0.3s ease-in-out;
}

@keyframes popupSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-auth {
    max-width: 450px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.popup-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #0066cc;
}

.popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.popup-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== CART POPUP ===== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cart-item-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 14px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.qty-btn {
    background-color: #f0f0f0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px;
    font-size: 12px;
}

.remove-item {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-item:hover {
    background-color: #ff5252;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.btn-checkout {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: #0052a3;
}

.btn-continue {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-continue:hover {
    background-color: #e8e8e8;
}

/* ===== AUTH POPUP ===== */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
}

.checkbox input {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox a {
    color: #0066cc;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0052a3;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.forgot-password a {
    color: #0066cc;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE POPUP ===== */
@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        max-height: 90vh;
    }

    .popup-auth {
        max-width: 100%;
    }

    .popup-body {
        max-height: calc(90vh - 140px);
    }
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #0066cc;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}
