:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C61;
    --secondary-color: #2C3E50;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --success: #28A745;
    --danger: #DC3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

/* Header Styles */
.topbar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 8px 40px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    width: 250px;
    outline: none;
    transition: all 0.3s;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s;
}

/* Search bar icon mode for screens less than 950px */
@media (max-width: 949px) {
    .search-bar input {
        width: 0;
        padding: 0;
        border: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .search-bar button {
        position: static;
        transform: none;
        padding: 8px;
        font-size: 18px;
    }
    
    .search-bar:hover input,
    .search-bar:focus-within input {
        width: 200px;
        padding: 8px 40px 8px 15px;
        border: 1px solid var(--border-color);
        opacity: 1;
        visibility: visible;
    }
    
    .search-bar:hover button,
    .search-bar:focus-within button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px 10px;
        font-size: inherit;
    }
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile Menu */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mobile-header .icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-header .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.hamburger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav {
    list-style: none;
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    display: block;
    padding: 10px;
    transition: background-color 0.3s;
}

.mobile-nav a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* Slider */
.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    animation: slideZoom 20s infinite;
}

@keyframes slideZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.slide.active {
    display: block;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 650px;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.slide-content h1 {
    font-size: 60px;
    margin-bottom: 25px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.6);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 35px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.6;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background-color: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Categories Section */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    color: var(--white);
}

.category-name {
    font-size: 24px;
    font-weight: bold;
}

/* Features Section */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tablet view - 2 products per row */
@media (max-width: 950px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* Mobile view - 1 product per row */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

.product-card {
    position: relative;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.badge-sale {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 5;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 18px;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-name a {
    text-decoration: none;
    color: inherit;
}

.product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #FFC107;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 3px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-old {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: none;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-btn:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .topbar {
        display: none;
    }
    
    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 20px;
    }
    
    .slide-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        height: 180px;
    }
    
    .category-name {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-item h3 {
        font-size: 18px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .price-current {
        font-size: 20px;
    }
    
    .price-old {
        font-size: 16px;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }
    
    .slide-content h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-card {
        height: 300px;
    }
    
    .category-name {
        font-size: 16px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .price-current {
        font-size: 18px;
    }
    
    .product-actions {
        gap: 10px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
