/* ============================================
   MAIN STYLES - SunnoBazar
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
}

.logo-text {
    color: #1a1a2e;
}

.logo-accent {
    color: #e89314;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #e89314;
}

.nav-menu .current-menu-item a {
    color: #e89314;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #1a1a2e;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #e89314;
    color: #fff;
}

.cart-btn .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e89314;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a2e;
    cursor: pointer;
    padding: 5px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider-section {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slider-container {
    position: relative;
}

.hero-slider {
    position: relative;
    height: 450px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 250px;
    }
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide-item.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px;
}

.slide-text {
    max-width: 550px;
    color: #fff;
}

.slide-subtitle {
    display: inline-block;
    background: #e89314;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.slide-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 22px;
    }
    .slide-text {
        max-width: 100%;
    }
    .slide-content {
        padding: 20px;
    }
}

.slide-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.slide-cta {
    display: inline-block;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.slider-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: #e89314;
    border-color: #e89314;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots button.active {
    background: #e89314;
    border-color: #e89314;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.view-all {
    color: #e89314;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.view-all:hover {
    color: #c77a0e;
    transform: translateX(3px);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(232, 147, 20, 0.15);
}

.category-image {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
}

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

.category-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.category-count {
    font-size: 12px;
    color: #888;
}

.no-categories {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 30px 0;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.product-image .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger {
    background: #dc3545;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #1a1a2e;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

.badge-primary {
    background: #e89314;
    color: #fff;
}

.flash-badge {
    background: #dc3545;
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #dc3545;
}

.wishlist-btn:hover {
    background: #dc3545;
    color: #fff;
}

.wishlist-btn.active {
    background: #dc3545;
    color: #fff;
}

.product-details {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-name a {
    color: #1a1a2e;
    text-decoration: none;
}

.product-name a:hover {
    color: #e89314;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.product-rating .stars {
    color: #f59e0b;
    font-size: 13px;
}

.rating-count {
    font-size: 12px;
    color: #888;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #e89314;
}

.original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.product-stock {
    font-size: 12px;
    margin-bottom: 10px;
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #e89314;
    color: #fff;
}

.btn-primary:hover {
    background: #c77a0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 147, 20, 0.3);
}

.btn-block {
    width: 100%;
}

.add-to-cart {
    font-size: 13px;
    padding: 8px 15px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 30px 0;
}

/* ============================================
   FLASH SALE
   ============================================ */
.flash-sale-section {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 12px;
}

.flash-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1a1a2e;
    padding: 6px 15px;
    border-radius: 8px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.timer-label {
    font-size: 8px;
    text-transform: uppercase;
    color: #888;
}

.timer-separator {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.flash-progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e89314, #dc3545);
    border-radius: 50px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    display: block;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: #1a1a2e;
    padding: 50px 0;
    border-radius: 12px;
    margin-bottom: 30px;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: #888;
    font-size: 15px;
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
}

.newsletter-email {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-email:focus {
    border-color: #e89314;
}

.newsletter-response {
    margin-top: 10px;
    font-size: 14px;
}

.newsletter-response.success {
    color: #28a745;
}

.newsletter-response.error {
    color: #dc3545;
}

@media (max-width: 480px) {
    .newsletter-input-group {
        flex-direction: column;
    }
    .newsletter-content h2 {
        font-size: 22px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .header-nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        padding: 80px 30px 30px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .header-nav.active .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .header-nav.active .nav-menu a {
        font-size: 18px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .mobile-toggle.active {
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1000;
        color: #1a1a2e;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .products-grid {
        gap: 12px;
    }
    
    .flash-sale-section {
        padding: 25px 0;
    }
    
    .flash-timer .timer-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 17px;
    }
    
    .products-grid {
        gap: 8px;
    }
    
    .product-details {
        padding: 10px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .add-to-cart {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .category-image {
        width: 50px;
        height: 50px;
    }
    
    .category-name {
        font-size: 12px;
    }
}