* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF9933;
    --secondary: #232F3E;
    --accent: #FF6B35;
    --light: #F3F3F3;
    --white: #FFFFFF;
    --text: #0F1111;
    --border: #D5D9D9;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
}

/* Header */
.header {
    background: #131921;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 800px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
}

.search-bar button {
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: 0 4px 4px 0;
    color: var(--secondary);
    cursor: pointer;
    font-size: 18px;
}

.search-bar button:hover {
    background: #FF8C1A;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-btn {
    background: transparent;
    border: 1px solid #3a4553;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    position: relative;
}

.header-btn:hover {
    border-color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation */
.main-nav {
    background: #232F3E;
    padding: 12px 0;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    border-top: 1px solid #3a4553;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 153, 51, 0.2);
    color: var(--primary);
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    overflow: hidden;
    background: var(--light);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Featured Section */
.featured-section {
    padding: 40px 0;
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.featured-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.featured-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.featured-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.featured-card p {
    color: #565959;
    font-size: 14px;
    margin-bottom: 15px;
}

.see-more {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.see-more:hover {
    background: var(--light);
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background: var(--light);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: white;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #B12704;
}

.original-price {
    font-size: 14px;
    color: #565959;
    text-decoration: line-through;
}

.discount {
    background: #CC0C39;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 13px;
}

.stars {
    color: #FFA41C;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: #F7CA00;
}

/* Footer */
.footer {
    background: #232F3E;
    color: white;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 16px;
}

.footer-col p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 153, 51, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a4553;
    opacity: 0.8;
    font-size: 13px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.cart-header h3 {
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #565959;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: #565959;
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    color: #B12704;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.remove-item {
    background: #CC0C39;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #F7CA00;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}