* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #0f766e;
    --accent-color: #f97316;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============ NAVBAR ============ */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    min-width: fit-content;
}

.logo i {
    font-size: 2rem;
}

.search-bar {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wishlist-btn,
.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.wishlist-btn:hover,
.cart-btn:hover {
    color: var(--accent-color);
}

.wishlist-count,
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.hero {
    background: url('images/Baner.webp') center center/cover no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.6s ease;
}
.hero-content {
    background: rgba(0,0,0,0.4);
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ MAIN CONTAINER ============ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* ============ FILTERS SIDEBAR ============ */
.filters-sidebar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filters-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-input {
    width: 100%;
    height: 6px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.price-display {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.reset-filters {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-controls label {
    font-weight: 500;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.listProduct {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.listProduct .item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.listProduct .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.listProduct .item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.listProduct .item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listProduct .item h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    flex: 1;
}

.listProduct .item .description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    flex: 1;
}

.listProduct .item .price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.listProduct .item button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.listProduct .item button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.02);
}

.listProduct .item button:active {
    transform: scale(0.98);
}

.no-products {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: 12px;
    color: var(--text-light);
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products p {
    font-size: 1.1rem;
}

/* ============ CART SIDEBAR ============ */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    max-width: 100vw;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listCart {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.listCart .item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: start;
}

.listCart .item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--light-bg);
}

.listCart .item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.listCart .item .name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.listCart .item .price {
    color: var(--text-light);
    font-size: 0.85rem;
}

.listCart .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.listCart .quantity-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.listCart .quantity-controls button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.listCart .quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.listCart .remove-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.btn-checkout,
.btn-continue {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-checkout {
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 0.75rem;
}

.btn-checkout:hover {
    background-color: var(--secondary-color);
}

.btn-continue {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-continue:hover {
    background-color: var(--light-bg);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ============ CHECKOUT PAGE ============ */
.checkoutLayout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.returnCart {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.returnCart h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.returnCart a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.returnCart a:hover {
    color: var(--secondary-color);
}

.returnCart .list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.returnCart .item {
    display: grid;
    grid-template-columns: 100px 1fr 80px 120px;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
}

.returnCart .item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--light-bg);
}

.returnCart .info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.returnCart .name {
    font-weight: 600;
    color: var(--text-dark);
}

.returnCart .price {
    font-size: 0.9rem;
    color: var(--text-light);
}

.returnCart .quantity {
    text-align: center;
    font-weight: 600;
}

.returnCart .returnPrice {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.checkoutLayout .right {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 2rem;
    color: white;
}

.checkoutLayout .right h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form .group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form .group:nth-child(1),
.form .group:nth-child(2),
.form .group:nth-child(3) {
    grid-column: 1 / -1;
}

.form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form input,
.form select {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form input:focus,
.form select:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.return {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.return .row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.return .row:last-child {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: bold;
}

.buttonCheckout {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttonCheckout:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}

/* ============ RESPONSIVENESS ============ */
/* ============ FOOTER ============ */
.footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
    font-size: 1rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    color: #fff;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer-social a:hover {
    opacity: 1;
}
.footer-copy {
    font-size: 0.95rem;
    opacity: 0.7;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-container {
        gap: 1rem;
    }
    .footer-links {
        gap: 1rem;
        font-size: 0.95rem;
    }
    .footer-brand {
        font-size: 1.1rem;
    }
    .footer-social {
        font-size: 1rem;
    }
}
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: relative;
        top: auto;
    }

    .listProduct {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .checkoutLayout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .listProduct {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .listProduct .item img {
        height: 200px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .returnCart .item {
        grid-template-columns: 80px 1fr;
    }

    .returnCart .quantity,
    .returnCart .returnPrice {
        display: none;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .form .group:nth-child(1),
    .form .group:nth-child(2),
    .form .group:nth-child(3) {
        grid-column: 1;
    }
}

/* ============ SLIDER ============ */
.hero-slider {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    overflow: hidden;
    margin-bottom: 2rem;
}
.slider-container {
    position: relative;
    width: 100vw;
    max-width: 1400px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.slider-img {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.slider-img.active {
    opacity: 1;
    z-index: 2;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.slider-btn.left { left: 16px; }
.slider-btn.right { right: 16px; }
.slider-btn:hover { background: var(--primary-color); }
.slider-caption {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: rgba(0,0,0,0.4);
    padding: 32px 48px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.slider-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.slider-caption p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}
.slider-btn-main {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}
.slider-btn-main:hover { background: #ea580c; }

@media (max-width: 768px) {
    .slider-container { height: 220px; }
    .slider-caption { padding: 20px 10px; }
    .slider-caption h1 { font-size: 1.5rem; }
    .slider-caption p { font-size: 1rem; }
}
