:root {
    --primary-color: #2563eb; /* Professional blue */
    --secondary-color: #1e293b; /* Dark slate */
    --accent-color: #dc2626; /* Professional red for accents */
    --light-color: #f8fafc; /* Very light gray */
    --dark-color: #0f172a; /* Almost black */
    --success-color: #16a34a; /* Professional green */
    --warning-color: #f59e0b; /* Professional amber */
    --danger-color: #dc2626; /* Professional red */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--white);
    color: var(--gray-800);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--gray-100);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #1d4ed8;
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icons a {
    color: var(--gray-600);
    margin-left: 20px;
    font-size: 18px;
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-icons a:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
}

/* Navigation Menu */
nav {
    background-color: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: var(--gray-700);
    padding: 15px 20px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--primary-color);
    background-color: var(--gray-100);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 100;
    border: 1px solid var(--gray-200);
}

.dropdown a {
    color: var(--gray-700);
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown a:hover {
    background-color: var(--gray-100);
}

.nav-menu li:hover .dropdown {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/banners/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--gray-900);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--gray-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Product Section */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    overflow: hidden;
    background-color: var(--gray-100);
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    height: 54px;
    overflow: hidden;
    font-weight: 600;
    color: var(--gray-900);
}

.product-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.product-rating {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.add-to-cart:hover {
    background-color: #1d4ed8;
}

.view-details {
    background-color: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.view-details:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--gray-900);
    font-weight: 600;
}

.feature p {
    color: var(--gray-600);
}

/* Footer */
footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--white);
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    color: var(--gray-400);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    font-size: 14px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gray-200);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: var(--gray-900);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close-cart:hover {
    opacity: 0.8;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid var(--gray-200);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--gray-900);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.cart-item-quantity button {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cart-item-quantity button:hover {
    background-color: var(--gray-200);
}

.cart-item-quantity span {
    margin: 0 10px;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    margin-left: 10px;
    transition: opacity 0.2s;
}

.remove-item:hover {
    opacity: 0.8;
}

.cart-summary {
    padding: 20px;
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.cart-summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px solid var(--gray-300);
    padding-top: 10px;
    color: var(--gray-900);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
    font-weight: 600;
}

.checkout-btn:hover {
    background-color: #1d4ed8;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-500);
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--gray-300);
}

/* Product Detail Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
    z-index: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--gray-700);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.product-detail-image {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
}

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

.product-detail-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--gray-900);
    font-weight: 700;
}

.product-detail-category {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-rating {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.product-detail-description {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--gray-600);
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.product-detail-quantity button {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-detail-quantity button:hover {
    background-color: var(--gray-200);
}

.product-detail-quantity input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--gray-300);
    margin: 0 10px;
    border-radius: 6px;
    background-color: var(--white);
}

.product-detail-actions {
    display: flex;
    gap: 15px;
}

.add-to-cart-detail {
    flex-grow: 1;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
}

.add-to-cart-detail:hover {
    background-color: #1d4ed8;
}

.add-to-wishlist {
    padding: 12px;
    background-color: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.add-to-wishlist:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1003;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .search-bar {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--gray-200);
        border-radius: 0;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .btn, .btn-outline {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}