/* Temu-Style CSS for Muftee Gadget Homepage */

:root {
    --temu-orange: #3f3091;
    --temu-dark-orange: #6c67af;
    --temu-yellow: #bbcdee;
    --temu-red: #FF4444;
    --temu-green: #4CAF50;
    --temu-blue: #2196F3;
    --temu-dark: #1a1a1a;
    --temu-gray: #757575;
    --temu-light-gray: #f5f5f5;
}

.temu-body {
    background: #f8f9fa;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, var(--temu-orange) 0%, var(--temu-dark-orange) 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.95rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Temu Header */
.temu-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-main {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 15px 0;
}

.temu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--temu-orange);
    transition: transform 0.3s;
}

.temu-logo:hover {
    transform: scale(1.05);
}

.temu-logo i {
    font-size: 2rem;
}

/* Search Section */
.temu-search {
    display: flex;
    background: var(--temu-light-gray);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.temu-search:focus-within {
    border-color: var(--temu-orange);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    padding: 12px 30px;
    background: var(--temu-orange);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--temu-dark-orange);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 25px;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--temu-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    position: relative;
}

.header-link:hover {
    color: var(--temu-orange);
}

.header-link i {
    font-size: 1.5rem;
}

.temu-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--temu-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Hero Banner */
.hero-banner-section {
    background: linear-gradient(135deg, #3f3091 0%, #545d85 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.hero-feature i {
    font-size: 1.5rem;
}

.temu-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: white;
    color: var(--temu-orange);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.temu-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 3rem;
    color: var(--temu-orange);
}

.floating-card span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--temu-dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header-temu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header-temu h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--temu-dark);
}

.section-subtitle {
    color: var(--temu-gray);
    font-size: 1rem;
    margin-top: 5px;
}

.view-all-link {
    color: var(--temu-orange);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.view-all-link:hover {
    gap: 12px;
}

/* Categories Section */
.categories-showcase {
    padding: 50px 0;
    background: white;
}

.categories-grid-temu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card-temu {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--temu-dark);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card-temu:hover {
    transform: translateY(-5px);
    border-color: var(--temu-orange);
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.2);
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--temu-orange) 0%, var(--temu-dark-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s;
}

.category-card-temu:hover .category-icon-wrapper {
    transform: rotate(360deg);
}

.category-card-temu h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.category-card-temu p {
    font-size: 0.85rem;
    color: var(--temu-gray);
    margin-bottom: 10px;
}

.category-arrow {
    color: var(--temu-orange);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card-temu:hover .category-arrow {
    opacity: 1;
}

/* Flash Deals Section */
.flash-deals-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #e0e2ff 0%, #b2beff 100%);
}

.flash-header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.flash-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flash-title i {
    color: var(--temu-orange);
    font-size: 2rem;
    animation: pulse 1s infinite;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.countdown-label {
    font-weight: 600;
    color: var(--temu-gray);
}

.countdown-timer {
    background: var(--temu-red);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Products Scroll */
.products-scroll-container {
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.products-scroll {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

/* Temu Product Card */
.temu-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-width: 250px;
    flex-shrink: 0;
}

.temu-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--temu-orange);
}

.product-image-temu {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-temu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.temu-product-card:hover .product-image-temu img {
    transform: scale(1.1);
}

/* Badges */
.flash-badge,
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.flash-badge {
    background: linear-gradient(135deg, var(--temu-red) 0%, #ff6666 100%);
    animation: pulse 1.5s infinite;
}

.new-badge {
    background: linear-gradient(135deg, var(--temu-green) 0%, #66bb6a 100%);
}

.wishlist-btn,
.quick-add-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--temu-orange);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.3s;
}

.wishlist-btn {
    top: 10px;
    right: 10px;
}

.quick-add-btn {
    bottom: 10px;
    right: 10px;
}

.temu-product-card:hover .wishlist-btn,
.temu-product-card:hover .quick-add-btn {
    opacity: 1;
}

.wishlist-btn:hover,
.quick-add-btn:hover {
    background: var(--temu-orange);
    color: white;
    transform: scale(1.1);
}

/* Product Info */
.product-info-temu {
    padding: 15px;
}

.product-category-temu {
    display: inline-block;
    padding: 4px 10px;
    background: var(--temu-light-gray);
    color: var(--temu-gray);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name-temu {
    font-size: 1rem;
    font-weight: 600;
    color: var(--temu-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 10px;
}

.product-rating i {
    color: var(--temu-yellow);
    font-size: 0.85rem;
}

.product-rating span {
    margin-left: 5px;
    color: var(--temu-gray);
    font-size: 0.85rem;
}

.product-price-temu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--temu-red);
}

.original-price {
    font-size: 1rem;
    color: var(--temu-gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--temu-red);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.stock-warning {
    color: var(--temu-red);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Products Grid */
.featured-section,
.new-arrivals-section {
    padding: 50px 0;
}

.new-arrivals-section {
    background: #f8f9fa;
}

.temu-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--temu-orange) 0%, var(--temu-dark-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--temu-dark);
}

.benefit-card p {
    color: var(--temu-gray);
}

/* Footer */
.temu-footer {
    background: var(--temu-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content-temu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.social-links-temu {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links-temu a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links-temu a:hover {
    background: var(--temu-orange);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--temu-orange);
}

.contact-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--temu-orange);
}

.footer-bottom-temu {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .header-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .temu-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-bottom-temu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .header-actions {
        justify-content: space-around;
        width: 100%;
    }
    
    .temu-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}