:root {
    --primary-color: #b200e3;
    --secondary-color: #f5f5f7;
    --text-color: #1d1d1f;
    --light-text-color: #86868b;
    --border-color: #d2d2d7;
    --white-color: #ffffff;
    --black-color: #000000;
    --gradient-light: linear-gradient(135deg, #f5f7fa, #e9edf2);
    --font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--text-color); background-color: var(--white-color); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); border: none; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.btn-primary:hover { background-color: #301031; }

/* Header */
.header { background-color: var(--white-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-top { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.header-top-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo i { font-size: 2rem; }
.header-search-container { flex-grow: 1; margin: 0 2rem; }
.search-box { display: flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; max-width: 400px; margin: 0 auto; }
.search-box input { border: none; padding: 0.75rem; outline: none; width: 100%; }
.search-box button { background: none; border: none; padding: 0 1rem; cursor: pointer; color: var(--light-text-color); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.action-item { position: relative; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; background: none; border: none; cursor: pointer; }
.action-item i { font-size: 1.5rem; color: var(--light-text-color); }
.action-item .badge { position: absolute; top: -8px; right: -12px; background-color: var(--primary-color); color: var(--white-color); font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.mobile-menu-toggle { display: none; }
.header-bottom { padding: 0.5rem 0; }
.header-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav-link.active, .nav-link:hover { color: var(--primary-color); }
.header-bottom-right { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--light-text-color); }
.header-bottom-right span { display: flex; align-items: center; gap: 5px; }

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background-color: var(--white-color); z-index: 102; transition: right 0.3s ease-in-out; padding: 1rem; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.mobile-nav-close { background: none; border: none; font-size: 2rem; cursor: pointer; }
.mobile-nav-list { margin-top: 1rem; }
.mobile-nav-list li a { display: block; padding: 1rem 0; font-weight: 500; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 101; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* Video Hero Section */
.video-hero-section { position: relative; height: 80vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 2; }
.video-hero-content { position: relative; z-index: 3; text-align: center; color: var(--white-color); }
.video-hero-title { font-size: 3.5rem; font-weight: 700; }
.video-hero-subtitle { font-size: 1.2rem; margin: 1rem 0 2rem; }

/* Image Hero Section */
.hero-section { padding: 2rem 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.hero-main { position: relative; border-radius: 1rem; overflow: hidden; background-color: #f5f5f7; }
.hero-slider { position: relative; width: 100%; height: 500px; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: right; padding-right: 0%; }
.hero-slide-content { position: absolute; top: 50%; left: 5%; transform: translateY(-50%); }
.hero-slide-content .subtitle { font-weight: 500; color: var(--light-text-color); }
.hero-slide-content .title { font-size: 3rem; font-weight: 700; margin: 0.5rem 0; }
.slider-nav { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; background-color: rgba(255,255,255,0.8); padding: 0.5rem 1rem; border-radius: 2rem; }
.slider-nav button { background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; }
.dots { display: flex; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(0,0,0,0.2); cursor: pointer; }
.dot.active { background-color: var(--text-color); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.side-banner { background-size: cover; background-position: center; position: relative; color: var(--white-color); display: flex; align-items: flex-end; padding: 2rem; text-decoration: none; }
.side-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); z-index: 0; }
.side-banner .banner-content { position: relative; z-index: 1; transform: none; top: auto; left: auto; }
.side-banner .banner-content span { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.banner-1 { background-color: #6e48aa; }
.banner-2 { background-color: #1d1d1f; }

/* Categories Section */
.categories-section { padding: 3rem 0; background-color: #f9f9f9; }
.categories-slider { background: var(--gradient-light); border-radius: 1rem; padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
.categories-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; overflow: visible; }
.categories-wrapper::-webkit-scrollbar { display: none; }
.category-item-new { text-align: center; background-color: var(--white-color); border-radius: 1rem; padding: 1rem; transition: transform 0.3s, box-shadow 0.3s; }
.category-item-new:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.category-item-image-wrapper { background-color: #f5f5f7; border-radius: 0.5rem; margin-bottom: 1rem; padding: 1rem; }
.category-item-new img { width: 100%; height: 100px; object-fit: contain; }
.category-item-new p { font-weight: 600; }

/* Features Section */
.features-section { padding: 3rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-item i { font-size: 2.5rem; color: var(--primary-color); }
.feature-item h4 { font-size: 1rem; font-weight: 600; }
.feature-item p { font-size: 0.9rem; color: var(--light-text-color); }

/* Product Grid Section */
.product-grid-section { padding: 3rem 0; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card { background-color: var(--white-color); border: 1px solid var(--border-color); border-radius: 1rem; overflow: hidden; transition: box-shadow 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.product-card-image-container { position: relative; background-color: #f5f5f7; padding: 1rem; }
.product-image { width: 100%; height: 200px; object-fit: contain; transition: transform 0.3s ease; }
.product-card:hover .product-image { transform: scale(1.05); }
.wishlist-btn { position: absolute; top: 1rem; right: 1rem; background: var(--white-color); border: 1px solid var(--border-color); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.wishlist-btn .bxs-heart { color: red; }
.product-card-content { padding: 1rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-card-content .product-category { font-size: 0.8rem; color: var(--light-text-color); }
.product-card-content .product-name { font-size: 1rem; font-weight: 600; margin: 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-content .product-price { margin: 0.5rem 0; }
.product-price .current-price { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-right: 0.5rem; }
.product-price .original-price { font-size: 0.9rem; color: var(--light-text-color); text-decoration: line-through; }
.product-stock-status { font-size: 0.8rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 4px; display: inline-block; }
.stock-status.in-stock { color: #2e7d32; background-color: #e8f5e9; }
.stock-status.low-stock { color: #f57c00; background-color: #fff3e0; }
.stock-status.out-of-stock { color: #d32f2f; background-color: #ffebee; }

/* Product Detail Page */
.page-header { background: var(--gradient-light); padding: 3rem 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; }
.page-header-nav { padding: 1rem 0; background-color: #f9f9f9; font-size: 0.9rem; }
.page-header-nav a { color: var(--primary-color); }
.product-detail-section { padding: 3rem 0; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.product-gallery .main-image-container { border: 1px solid var(--border-color); border-radius: 1rem; overflow: hidden; margin-bottom: 1rem; }
.thumbnail-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.thumbnail-image { border: 2px solid var(--border-color); border-radius: 0.5rem; cursor: pointer; transition: border-color 0.3s; }
.thumbnail-image.active { border-color: var(--primary-color); }
.product-detail-image img { width: 100%; border-radius: 1rem; background-color: #f5f5f7; }
.product-title { font-size: 2rem; font-weight: 600; margin: 0.5rem 0; }
.product-detail-info .product-title { font-size: 2rem; font-weight: 600; }
.product-meta { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0; }
.product-meta .rating { display: flex; align-items: center; gap: 0.25rem; }
.product-meta .rating .bxs-star { color: #fbc02d; }
.product-price-detail { margin: 1rem 0; }
.product-price-detail .current-price { font-size: 2rem; font-weight: 700; color: var(--primary-color); }
.product-price-detail .original-price { font-size: 1.2rem; color: var(--light-text-color); text-decoration: line-through; margin-left: 1rem; }
.product-options { margin: 1.5rem 0; }
.option-group { display: flex; align-items: center; gap: 1rem; }
.option-group label { font-weight: 600; }
.color-swatches { display: flex; gap: 0.5rem; }
.color-swatch { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-color); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--primary-color); }
.product-actions-detail { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; }
.quantity-selector button { background: none; border: none; width: 40px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.quantity-selector input { width: 50px; height: 48px; text-align: center; border: none; outline: none; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-detail-btn { flex-grow: 1; padding: 0.9rem 2rem; }
.wishlist-btn-detail { width: 50px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; background: none; font-size: 1.5rem; cursor: pointer; }
.product-sub-info { font-size: 0.9rem; color: var(--light-text-color); }
.product-info-tabs { margin-top: 3rem; }
.tab-headers { border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.tab-header { background: none; border: none; padding: 0.5rem 1rem 1rem; font-size: 1.1rem; cursor: pointer; position: relative; color: var(--light-text-color); }
.tab-header.active { color: var(--text-color); font-weight: 600; }
.tab-header.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content ul { list-style: none; }
.tab-content ul li { display: flex; justify-content: space-between; padding: 0.75rem; }
.tab-content ul li:nth-child(odd) { background-color: #f9f9f9; }
.related-products-section { padding: 3rem 0; background-color: #f9f9f9; }

/* Cart & Checkout */
.cart-section, .checkout-section { padding: 3rem 0; }
.cart-item { display: grid; grid-template-columns: 100px 1fr 150px 100px 50px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.cart-item-image { width: 80px; height: 80px; object-fit: contain; background-color: #f5f5f7; border-radius: 8px; }
.cart-item-quantity { display: flex; align-items: center; }
.cart-item-quantity .quantity-btn { width: 30px; height: 30px; border: 1px solid var(--border-color); background: none; cursor: pointer; }
.cart-item-quantity span { padding: 0 1rem; }
.remove-item-btn { background: none; border: none; font-size: 1.5rem; color: var(--light-text-color); cursor: pointer; }
.cart-summary { margin-top: 2rem; padding: 2rem; background-color: #f5f5f7; border-radius: 1rem; text-align: right; }
.cart-summary h3 { text-align: left; margin-bottom: 1rem; }
.cart-summary p { margin-bottom: 1.5rem; font-size: 1.2rem; }
.checkout-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; }
.order-summary { padding: 2rem; background-color: #f5f5f7; border-radius: 1rem; }
.order-summary h3 { margin-bottom: 1rem; }
.order-summary ul li { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.full-width { width: 100%; margin-top: 1rem; }
.secure-note { text-align: center; font-size: 0.9rem; color: var(--light-text-color); margin-top: 1rem; }

/* Other Pages */
.about-section, .contact-section { padding: 3rem 0; }
.about-section p, .contact-info p { line-height: 1.8; margin-bottom: 1rem; }
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.contact-info p { display: flex; align-items: center; gap: 1rem; }
.contact-info i { font-size: 1.5rem; }
.form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; resize: vertical; }

/* Footer */
.footer { background-color: #f5f5f7; padding: 3rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-text { font-size: 0.9rem; color: var(--light-text-color); line-height: 1.6; }
.footer-title { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { font-size: 0.9rem; color: var(--light-text-color); }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { width: 100%; border: 1px solid var(--border-color); padding: 0.5rem; border-radius: 8px 0 0 8px; }
.newsletter-form button { background-color: var(--primary-color); color: var(--white-color); border: none; padding: 0 1rem; border-radius: 0 8px 8px 0; cursor: pointer; }
.footer-bottom { text-align: center; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--light-text-color); }

/* Responsive */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
}

@media (max-width: 1024px) {
    .header-search-container { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .product-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-bottom { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-side { grid-template-columns: 1fr; }
    .video-hero-title { font-size: 2.5rem; }
    .shop-layout, .checkout-layout, .contact-layout { grid-template-columns: 2fr; }
    .shop-filters { margin-bottom: 2rem; }
    .cart-item { grid-template-columns: 80px 1fr 80px; grid-template-rows: auto auto; }
    .cart-item-details { grid-column: 2 / 4; }
    .cart-item-quantity { grid-row: 2; grid-column: 1 / 2; }
    .cart-item-total { grid-row: 2; grid-column: 2 / 3; text-align: center; }
    .remove-item-btn { grid-row: 2; grid-column: 3 / 4; text-align: right; }
}

@media (max-width: 576px) {
    .hero-slide-content .title { font-size: 2rem; }

    .categories-slider {
        padding: 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
:root {
--primary-color: #0071e3;
--secondary-color: #f5f5f7;
--text-color: #1d1d1f;
--light-text-color: #86868b;
--border-color: #e5e5e5;
--white-color: #ffffff;
--black-color: #000000;
--gradient-light: linear-gradient(135deg, #f5f7fa, #e9edf2);
--font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--text-color); background-color: var(--white-color); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); border: none; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.btn-primary:hover { background-color: #005cb9; }
.btn-primary:disabled { background-color: var(--light-text-color); cursor: not-allowed; }

/* Header */
.header { background-color: var(--white-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-top { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.header-top-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo i { font-size: 2rem; }
.header-search-container { flex-grow: 1; margin: 0 2rem; }
.search-box { display: flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; max-width: 400px; margin: 0 auto; }
.search-box input { border: none; padding: 0.75rem; outline: none; width: 100%; }
.search-box button { background: none; border: none; padding: 0 1rem; cursor: pointer; color: var(--light-text-color); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.action-item { position: relative; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; background: none; border: none; cursor: pointer; }
.action-item i { font-size: 1.5rem; color: var(--light-text-color); }
.action-item .badge { position: absolute; top: -8px; right: -12px; background-color: var(--primary-color); color: var(--white-color); font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.mobile-menu-toggle { display: none; }
.header-bottom { padding: 0.5rem 0; }
.header-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav-link.active, .nav-link:hover { color: var(--primary-color); }
.header-bottom-right { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--light-text-color); }
.header-bottom-right span { display: flex; align-items: center; gap: 5px; }

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background-color: var(--white-color); z-index: 102; transition: right 0.3s ease-in-out; padding: 1rem; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.mobile-nav-close { background: none; border: none; font-size: 2rem; cursor: pointer; }
.mobile-nav-list { margin-top: 1rem; }
.mobile-nav-list li a { display: block; padding: 1rem 0; font-weight: 500; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 101; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* Video Hero Section */
.video-hero-section { position: relative; height: 80vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 2; }
.video-hero-content { position: relative; z-index: 3; text-align: center; color: var(--white-color); }
.video-hero-title { font-size: 3.5rem; font-weight: 700; }
.video-hero-subtitle { font-size: 1.2rem; margin: 1rem 0 2rem; }

/* Image Hero Section */
.hero-section { padding: 2rem 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.hero-main { position: relative; border-radius: 1rem; overflow: hidden; background-color: #f5f5f7; }
.hero-slider { position: relative; width: 100%; height: 500px; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-content { position: absolute; top: 50%; left: 5%; transform: translateY(-50%); }
.hero-slide-content .subtitle { font-weight: 500; color: var(--light-text-color); }
.hero-slide-content .title { font-size: 3rem; font-weight: 700; margin: 0.5rem 0; }
.slider-nav { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; background-color: rgba(255,255,255,0.8); padding: 0.5rem 1rem; border-radius: 2rem; }
.slider-nav button { background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; }
.dots { display: flex; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(0,0,0,0.2); cursor: pointer; }
.dot.active { background-color: var(--text-color); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.side-banner { background-size: cover; background-position: center; position: relative; color: var(--white-color); display: flex; align-items: flex-end; padding: 2rem; text-decoration: none; border-radius: 1rem; overflow: hidden; }
.side-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); z-index: 0; }
.side-banner .banner-content { position: relative; z-index: 1; transform: none; top: auto; left: auto; }
.side-banner .banner-content span { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* Categories Section */
.categories-section { padding: 3rem 0; }
.categories-wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}

.category-card {
position: relative;
display: block;
height: 280px;
border-radius: 1rem;
overflow: hidden;
background-size: cover;
background-position: center;
transition: transform 0.4s ease, box-shadow 0.4s ease;
text-decoration: none;
}

.category-card:hover {
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-card-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
transition: background 0.4s ease;
}

.category-card:hover .category-card-overlay {
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%);
}

.category-card-title {
position: absolute;
bottom: 1.5rem;
left: 1.5rem;
right: 1.5rem;
color: var(--white-color);
font-size: 1.25rem;
font-weight: 600;
text-align: left;
transition: transform 0.4s ease;
z-index: 2;
}

.category-card:hover .category-card-title {
transform: translateY(-10px);
}

/* Features Section */
.features-section { padding: 3rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-item i { font-size: 2.5rem; color: var(--primary-color); }
.feature-item h4 { font-size: 1rem; font-weight: 600; }
.feature-item p { font-size: 0.9rem; color: var(--light-text-color); }

/* Product Grid Section */
.product-grid-section { padding: 3rem 0; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card-new { background-color: var(--white-color); border-radius: 1rem; overflow: hidden; transition: box-shadow 0.3s ease; border: 1px solid transparent; }
.product-card-new:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--border-color); }
.product-card-image-container { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card-new:hover .product-image { transform: scale(1.1); }
.product-card-tags { position: absolute; top: 1rem; left: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tag { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 4px; color: var(--white-color); }
.condition-tag { background-color: var(--primary-color); }
.discount-tag { background-color: #d32f2f; }
.product-card-actions {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 0.5rem;
opacity: 0;
transition: opacity 0.3s ease;
justify-content: center; /* Add this line */
}
.product-card-new:hover .product-card-actions { opacity: 1; }
.action-btn { background-color: rgba(255, 255, 255, 0.9); border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; transition: background-color 0.3s; }
.action-btn:hover { background-color: var(--primary-color); color: var(--white-color); }
.action-btn .bxs-heart { color: red; }
.product-card-content {
padding: 1rem;
text-align: center;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.product-card-content .product-category { font-size: 0.8rem; color: var(--light-text-color); }
.product-card-content .product-name { font-size: 1rem; font-weight: 600; margin: 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-content .product-price { margin: 0.5rem 0; }
.product-price .current-price { font-size: 1.2rem; font-weight: 700; color: var(--text-color); margin-right: 0.5rem; }
.product-price .original-price { font-size: 0.9rem; color: var(--light-text-color); text-decoration: line-through; }
.product-stock-status {
font-size: 0.8rem;
font-weight: 500;
padding: 0.25rem 0.5rem;
border-radius: 4px;
display: inline-block;
margin-top: 0.5rem;
margin-bottom: 1rem; /* Add this line */
}
.stock-status.in-stock, .product-stock-status.in-stock { color: #2e7d32; background-color: #e8f5e9; }
.stock-status.low-stock, .product-stock-status.low-stock { color: #f57c00; background-color: #fff3e0; }
.stock-status.out-of-stock, .product-stock-status.out-of-stock { color: #d32f2f; background-color: #ffebee; }

/* Page Header */
.page-header { background: var(--gradient-light); padding: 3rem 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; }
.page-header-nav { padding: 1rem 0; background-color: #f9f9f9; font-size: 0.9rem; }
.page-header-nav a { color: var(--primary-color); }

/* Shop Page */
.shop-section { padding: 3rem 0; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; }
.shop-filters h3 { margin-bottom: 1rem; }
.shop-filters ul { list-style: none; margin-bottom: 2rem; }
.shop-filters ul li button { background: none; border: none; padding: 0.5rem 0; cursor: pointer; width: 100%; text-align: left; font-size: 1rem; }
.shop-filters ul li button.active { color: var(--primary-color); font-weight: 600; }
.shop-filters select { width: 100%; padding: 0.5rem; border-radius: 8px; border: 1px solid var(--border-color); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* Product Detail Page */
.product-detail-section { padding: 3rem 0; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.product-gallery .main-image-container { border: 1px solid var(--border-color); border-radius: 1rem; overflow: hidden; margin-bottom: 1rem; }
.thumbnail-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.thumbnail-image { border: 2px solid var(--border-color); border-radius: 0.5rem; cursor: pointer; transition: border-color 0.3s; }
.thumbnail-image.active { border-color: var(--primary-color); }
.product-detail-info .product-title { font-size: 2rem; font-weight: 600; }
.product-meta { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0; }
.product-meta .rating { display: flex; align-items: center; gap: 0.25rem; }
.product-meta .rating .bxs-star { color: #fbc02d; }
.product-price-detail { margin: 1rem 0; }
.product-price-detail .current-price { font-size: 2rem; font-weight: 700; color: var(--text-color); }
.product-price-detail .original-price { font-size: 1.2rem; color: var(--light-text-color); text-decoration: line-through; margin-left: 1rem; }
.product-options { margin: 1.5rem 0; }
.option-group { display: flex; align-items: center; gap: 1rem; }
.option-group label { font-weight: 600; }
.color-swatches { display: flex; gap: 0.5rem; }
.color-swatch { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-color); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--primary-color); }
.product-actions-detail { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; }
.quantity-selector button { background: none; border: none; width: 40px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.quantity-selector input { width: 50px; height: 48px; text-align: center; border: none; outline: none; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-detail-btn { flex-grow: 1; padding: 0.9rem 2rem; }
.wishlist-btn-detail { width: 50px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; background: none; font-size: 1.5rem; cursor: pointer; }
.product-sub-info { font-size: 0.9rem; color: var(--light-text-color); }
.product-info-tabs { margin-top: 3rem; }
.tab-headers { border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.tab-header { background: none; border: none; padding: 0.5rem 1rem 1rem; font-size: 1.1rem; cursor: pointer; position: relative; color: var(--light-text-color); }
.tab-header.active { color: var(--text-color); font-weight: 600; }
.tab-header.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content ul { list-style: none; }
.tab-content ul li { display: flex; justify-content: space-between; padding: 0.75rem; }
.tab-content ul li:nth-child(odd) { background-color: #f9f9f9; }
.related-products-section { padding: 3rem 0; background-color: #f9f9f9; }

/* Cart & Checkout */
.cart-section, .checkout-section { padding: 3rem 0; }
.cart-item { display: grid; grid-template-columns: 100px 1fr 150px 100px 50px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.cart-item-image { width: 80px; height: 80px; object-fit: contain; background-color: #f5f5f7; border-radius: 8px; }
.cart-item-quantity { display: flex; align-items: center; }
.cart-item-quantity .quantity-btn { width: 30px; height: 30px; border: 1px solid var(--border-color); background: none; cursor: pointer; }
.cart-item-quantity span { padding: 0 1rem; }
.remove-item-btn { background: none; border: none; font-size: 1.5rem; color: var(--light-text-color); cursor: pointer; }
.cart-summary { margin-top: 2rem; padding: 2rem; background-color: #f5f5f7; border-radius: 1rem; text-align: right; }
.cart-summary h3 { text-align: left; margin-bottom: 1rem; }
.cart-summary p { margin-bottom: 1.5rem; font-size: 1.2rem; }
.checkout-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; }
.order-summary { padding: 2rem; background-color: #f5f5f7; border-radius: 1rem; }
.order-summary h3 { margin-bottom: 1rem; }
.order-summary ul li { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.full-width { width: 100%; margin-top: 1rem; }
.secure-note { text-align: center; font-size: 0.9rem; color: var(--light-text-color); margin-top: 1rem; }

/* Other Pages */
.about-section, .contact-section { padding: 3rem 0; }
.about-section p, .contact-info p { line-height: 1.8; margin-bottom: 1rem; }
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.contact-info p { display: flex; align-items: center; gap: 1rem; }
.contact-info i { font-size: 1.5rem; }
.form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; resize: vertical; }

/* Footer */
.footer { background-color: #f5f5f7; padding: 3rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-text { font-size: 0.9rem; color: var(--light-text-color); line-height: 1.6; }
.footer-title { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { font-size: 0.9rem; color: var(--light-text-color); }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { width: 100%; border: 1px solid var(--border-color); padding: 0.5rem; border-radius: 8px 0 0 8px; }
.newsletter-form button { background-color: var(--primary-color); color: var(--white-color); border: none; padding: 0 1rem; border-radius: 0 8px 8px 0; cursor: pointer; }
.footer-bottom { text-align: center; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--light-text-color); }

/* Responsive */
@media (max-width: 1200px) {
.container { max-width: 960px; }
}

@media (max-width: 1024px) {
.header-search-container { display: none; }
.hero-grid { grid-template-columns: 1fr; }
.hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.product-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
.header-bottom { display: none; }
.mobile-menu-toggle { display: block; }
.hero-side { grid-template-columns: 1fr; }
.video-hero-title { font-size: 2.5rem; }
.shop-layout { grid-template-columns: 1fr; }
.shop-filters { margin-bottom: 2rem; }
.cart-item { grid-template-columns: 50px 1fr 50px; grid-template-rows: auto auto; }
.cart-item-details { grid-column: 2 / 4; }
.cart-item-quantity { grid-row: 2; grid-column: 1 / 2; }
.cart-item-total { grid-row: 2; grid-column: 2 / 3; text-align: center; }
.remove-item-btn { grid-row: 2; grid-column: 3 / 4; text-align: right; }
.checkout-layout, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
.hero-slide-content .title { font-size: 2rem; }
.product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
.product-detail-layout { gap: 1.5rem; }
.product-title { font-size: 1.5rem; }
.product-price-detail .current-price { font-size: 1.5rem; }
.product-actions-detail { flex-direction: column; align-items: stretch; }
}


.product-card-cart-btn {
width: 100%;
padding: 0.6rem 1rem;
font-size: 0.9rem;
margin-top: auto; /* Pushes button to the bottom */
}
:root {
--primary-color: #572872;
--secondary-color: #f5f5f7;
--text-color: #1d1d1f;
--light-text-color: #86868b;
--border-color: #e5e5e5;
--white-color: #ffffff;
--black-color: #000000;
--gradient-light: linear-gradient(135deg, #f5f7fa, #e9edf2);
--font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--text-color); background-color: var(--white-color); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); border: none; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.btn-primary:hover { background-color: #005cb9; }
.btn-primary:disabled { background-color: var(--light-text-color); cursor: not-allowed; }

/* Header */
.header { background-color: var(--white-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-top { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.header-top-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo i { font-size: 2rem; }
.header-search-container { flex-grow: 1; margin: 0 2rem; }
.search-box { display: flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; max-width: 400px; margin: 0 auto; }
.search-box input { border: none; padding: 0.75rem; outline: none; width: 100%; }
.search-box button { background: none; border: none; padding: 0 1rem; cursor: pointer; color: var(--light-text-color); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.action-item { position: relative; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; background: none; border: none; cursor: pointer; }
.action-item i { font-size: 1.5rem; color: var(--light-text-color); }
.action-item .badge { position: absolute; top: -8px; right: -12px; background-color: var(--primary-color); color: var(--white-color); font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.mobile-menu-toggle { display: none; }
.header-bottom { padding: 0.5rem 0; }
.header-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav-link.active, .nav-link:hover { color: var(--primary-color); }
.header-bottom-right { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--light-text-color); }
.header-bottom-right span { display: flex; align-items: center; gap: 5px; }

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background-color: var(--white-color); z-index: 102; transition: right 0.3s ease-in-out; padding: 1rem; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.mobile-nav-close { background: none; border: none; font-size: 2rem; cursor: pointer; }
.mobile-nav-list { margin-top: 1rem; }
.mobile-nav-list li a { display: block; padding: 1rem 0; font-weight: 500; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 101; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* Video Hero Section */
.video-hero-section { position: relative; height: 80vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 2; }
.video-hero-content { position: relative; z-index: 3; text-align: center; color: var(--white-color); }
.video-hero-title { font-size: 3.5rem; font-weight: 700; }
.video-hero-subtitle { font-size: 1.2rem; margin: 1rem 0 2rem; }

/* Image Hero Section */
.hero-section { padding: 2rem 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.hero-main { position: relative; border-radius: 1rem; overflow: hidden; background-color: #f5f5f7; }
.hero-slider { position: relative; width: 100%; height: 500px; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-content { position: absolute; top: 50%; left: 5%; transform: translateY(-50%); }
.hero-slide-content .subtitle { font-weight: 500; color: var(--light-text-color); }
.hero-slide-content .title { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }
.slider-nav { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; background-color: rgba(255,255,255,0.8); padding: 0.5rem 1rem; border-radius: 2rem; }
.slider-nav button { background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; }
.dots { display: flex; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(0,0,0,0.2); cursor: pointer; }
.dot.active { background-color: var(--text-color); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.side-banner { background-size: cover; background-position: center; position: relative; color: var(--white-color); display: flex; align-items: flex-end; padding: 2rem; text-decoration: none; border-radius: 1rem; overflow: hidden; }
.side-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); z-index: 0; }
.side-banner .banner-content { position: relative; z-index: 1; transform: none; top: auto; left: auto; }
.side-banner .banner-content span { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* Categories Section */
.categories-section { padding: 3rem 0; }
.categories-wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}

.category-card {
position: relative;
display: block;
height: 280px;
border-radius: 1rem;
overflow: hidden;
background-size: cover;
background-position: center;
transition: transform 0.4s ease, box-shadow 0.4s ease;
text-decoration: none;
}

.category-card:hover {
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-card-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
transition: background 0.4s ease;
}

.category-card:hover .category-card-overlay {
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%);
}

.category-card-title {
position: absolute;
bottom: 1.5rem;
left: 1.5rem;
right: 1.5rem;
color: var(--white-color);
font-size: 1.25rem;
font-weight: 600;
text-align: left;
transition: transform 0.4s ease;
z-index: 2;
}

.category-card:hover .category-card-title {
transform: translateY(-10px);
}

/* Features Section */
.features-section { padding: 3rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-item i { font-size: 2.5rem; color: var(--primary-color); }
.feature-item h4 { font-size: 1rem; font-weight: 600; }
.feature-item p { font-size: 0.9rem; color: var(--light-text-color); }

/* Product Grid Section */
.product-grid-section { padding: 3rem 0; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card-new { background-color: var(--white-color); border-radius: 1rem; overflow: hidden; transition: box-shadow 0.3s ease; border: 1px solid transparent; }
.product-card-new:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--border-color); }
.product-card-image-container { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card-new:hover .product-image { transform: scale(1.1); }
.product-card-tags { position: absolute; top: 1rem; left: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tag { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 4px; color: var(--white-color); }
.condition-tag { background-color: var(--primary-color); }
.discount-tag { background-color: #d32f2f; }
.product-card-actions {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 0.5rem;
opacity: 0;
transition: opacity 0.3s ease;
justify-content: center;
width: 100%;
padding: 0 1rem;
}
.product-card-new:hover .product-card-actions { opacity: 1; }
.action-btn { background-color: rgba(255, 255, 255, 0.9); border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; transition: background-color 0.3s; }
.action-btn:hover { background-color: var(--primary-color); color: var(--white-color); }
.action-btn .bxs-heart { color: red; }
.product-card-content {
padding: 1rem;
text-align: center;
}
.product-card-content .product-category { font-size: 0.8rem; color: var(--light-text-color); }
.product-card-content .product-name { font-size: 1rem; font-weight: 600; margin: 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-content .product-price { margin: 0.5rem 0; }
.product-price .current-price { font-size: 1.2rem; font-weight: 700; color: var(--text-color); margin-right: 0.5rem; }
.product-price .original-price { font-size: 0.9rem; color: var(--light-text-color); text-decoration: line-through; }
.product-stock-status {
font-size: 0.8rem;
font-weight: 500;
padding: 0.25rem 0.5rem;
border-radius: 4px;
display: inline-block;
margin-top: 0.5rem;
}
.stock-status.in-stock, .product-stock-status.in-stock { color: #2e7d32; background-color: #e8f5e9; }
.stock-status.low-stock, .product-stock-status.low-stock { color: #f57c00; background-color: #fff3e0; }
.stock-status.out-of-stock, .product-stock-status.out-of-stock { color: #d32f2f; background-color: #ffebee; }

/* Page Header */
.page-header { background: var(--gradient-light); padding: 3rem 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; }
.page-header-nav { padding: 1rem 0; background-color: #f9f9f9; font-size: 0.9rem; }
.page-header-nav a { color: var(--primary-color); }

/* Shop Page */
.shop-section { padding: 3rem 0; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; }
.shop-filters h3 { margin-bottom: 1rem; }
.shop-filters ul { list-style: none; margin-bottom: 2rem; }
.shop-filters ul li button { background: none; border: none; padding: 0.5rem 0; cursor: pointer; width: 100%; text-align: left; font-size: 1rem; }
.shop-filters ul li button.active { color: var(--primary-color); font-weight: 600; }
.shop-filters select { width: 100%; padding: 0.5rem; border-radius: 8px; border: 1px solid var(--border-color); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* Product Detail Page */
.product-detail-section { padding: 3rem 0; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.product-gallery .main-image-container { border: 1px solid var(--border-color); border-radius: 1rem; overflow: hidden; margin-bottom: 1rem; }
.thumbnail-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.thumbnail-image { border: 2px solid var(--border-color); border-radius: 0.5rem; cursor: pointer; transition: border-color 0.3s; }
.thumbnail-image.active { border-color: var(--primary-color); }
.product-detail-info .product-title { font-size: 2rem; font-weight: 600; }
.product-meta { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0; }
.product-meta .rating { display: flex; align-items: center; gap: 0.25rem; }
.product-meta .rating .bxs-star { color: #fbc02d; }
.product-price-detail { margin: 1rem 0; }
.product-price-detail .current-price { font-size: 2rem; font-weight: 700; color: var(--text-color); }
.product-price-detail .original-price { font-size: 1.2rem; color: var(--light-text-color); text-decoration: line-through; margin-left: 1rem; }
.product-options { margin: 1.5rem 0; }
.option-group { display: flex; align-items: center; gap: 1rem; }
.option-group label { font-weight: 600; }
.color-swatches { display: flex; gap: 0.5rem; }
.color-swatch { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-color); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--primary-color); }
.product-actions-detail { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; }
.quantity-selector button { background: none; border: none; width: 40px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.quantity-selector input { width: 50px; height: 48px; text-align: center; border: none; outline: none; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-detail-btn { flex-grow: 1; padding: 0.9rem 2rem; }
.wishlist-btn-detail { width: 50px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; background: none; font-size: 1.5rem; cursor: pointer; }
.product-sub-info { font-size: 0.9rem; color: var(--light-text-color); }
.product-info-tabs { margin-top: 3rem; }
.tab-headers { border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.tab-header { background: none; border: none; padding: 0.5rem 1rem 1rem; font-size: 1.1rem; cursor: pointer; position: relative; color: var(--light-text-color); }
.tab-header.active { color: var(--text-color); font-weight: 600; }
.tab-header.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content ul { list-style: none; }
.tab-content ul li { display: flex; justify-content: space-between; padding: 0.75rem; }
.tab-content ul li:nth-child(odd) { background-color: #f9f9f9; }
.related-products-section { padding: 3rem 0; background-color: #f9f9f9; }

/* Cart & Checkout */
.cart-section, .checkout-section { padding: 3rem 0; }
.cart-item { display: grid; grid-template-columns: 100px 1fr 150px 100px 50px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.cart-item-image { width: 80px; height: 80px; object-fit: contain; background-color: #f5f5f7; border-radius: 8px; }
.cart-item-quantity { display: flex; align-items: center; }
.cart-item-quantity .quantity-btn { width: 30px; height: 30px; border: 1px solid var(--border-color); background: none; cursor: pointer; }
.cart-item-quantity span { padding: 0 1rem; }
.remove-item-btn { background: none; border: none; font-size: 1.5rem; color: var(--light-text-color); cursor: pointer; }
.cart-summary { margin-top: 2rem; padding: 2rem; background-color: #f5f5f7; border-radius: 1rem; text-align: right; }
.cart-summary h3 { text-align: left; margin-bottom: 1rem; }
.cart-summary p { margin-bottom: 1.5rem; font-size: 1.2rem; }
.checkout-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; }
.order-summary { padding: 2rem; background-color: #f5f5f7; border-radius: 1rem; }
.order-summary h3 { margin-bottom: 1rem; }
.order-summary ul li { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.full-width { width: 100%; margin-top: 1rem; }
.secure-note { text-align: center; font-size: 0.9rem; color: var(--light-text-color); margin-top: 1rem; }

/* Other Pages */
.about-section, .contact-section { padding: 3rem 0; }
.about-section p, .contact-info p { line-height: 1.8; margin-bottom: 1rem; }
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.contact-info p { display: flex; align-items: center; gap: 1rem; }
.contact-info i { font-size: 1.5rem; }
.form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; resize: vertical; }

/* Footer */
.footer { background-color: #f5f5f7; padding: 3rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-text { font-size: 0.9rem; color: var(--light-text-color); line-height: 1.6; }
.footer-title { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { font-size: 0.9rem; color: var(--light-text-color); }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { width: 100%; border: 1px solid var(--border-color); padding: 0.5rem; border-radius: 8px 0 0 8px; }
.newsletter-form button { background-color: var(--primary-color); color: var(--white-color); border: none; padding: 0 1rem; border-radius: 0 8px 8px 0; cursor: pointer; }
.footer-bottom { text-align: center; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--light-text-color); }

/* Responsive */
@media (max-width: 1200px) {
.container { max-width: 960px; }
}

@media (max-width: 1024px) {
.header-search-container { display: none; }
.hero-grid { grid-template-columns: 2fr 1fr; } /* Keep grid on tablet */
.product-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
.header-bottom { display: none; }
.mobile-menu-toggle { display: block; }
.hero-grid { grid-template-columns: 2fr 1fr; } /* Keep grid on mobile */
.hero-side { grid-template-rows: 1fr 1fr; }
.hero-slider { position: relative; width: 100%; height: 330px; }
.banner-content h3{ font-size: x-small;}
.hero-slide-content .title { display:none }
.video-hero-section h2{height: 500px}
.video-hero-title { font-size: 1rem; }
.shop-layout { grid-template-columns: 1fr; }
.shop-filters { margin-bottom: 2rem; }
.cart-item { grid-template-columns: 80px 1fr 80px; grid-template-rows: auto auto; }
.cart-item-details { grid-column: 2 / 4; }
.cart-item-quantity { grid-row: 2; grid-column: 1 / 2; }
.cart-item-total { grid-row: 2; grid-column: 2 / 3; text-align: center; }
.remove-item-btn { grid-row: 2; grid-column: 3 / 4; text-align: right; }
.checkout-layout, .contact-layout { grid-template-columns: 1fr; }
.categories-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.category-card {
    height: 120px;
}
}

@media (max-width: 576px) {
.hero-grid { grid-template-columns: 2fr 1fr; } /* Keep grid on small mobile */
.hero-slide-content .title { font-size: 2rem; }
.product-grid, .shop-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
}
.product-detail-layout { gap: 1.5rem; }
.product-title { font-size: 1.5rem; }
.product-price-detail .current-price { font-size: 1.5rem; }
.product-actions-detail { flex-direction: column; align-items: stretch; }
}

.action-btn.view-btn {
    color: var(--text-color);
}
.action-btn.view-btn:hover {
    color: var(--white-color);
}



/* Repair Section */
.repair-section {
  padding: 4rem 0;
  background-color: var(--white-color);
}
.repair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.repair-content .repair-subtitle {
  color: var(--light-text-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.repair-content .repair-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.repair-content p {
  line-height: 1.7;
  margin-bottom: 2rem;
}
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.service-list i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
.repair-image img {
  max-width: 100%;
  height: auto;
}




/* Repair Slider Styles */
        .repair-slider-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #58a6b8 0%, #764ba2 100%);
            position: relative;
            overflow: hidden;
        }

        .repair-slider-container {
            max-width: 1700px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: 20px;
        }

        .section-header h2 {
            font-size: 3rem;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .section-header p {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.9);
            max-width: 600px;
            margin: 0 auto;
        }

        .repair-slider {
            position: relative;
            height: 500px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .slider-track {
            display: flex;
            height: 100%;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
        }

        .slide-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            max-width: 600px;
            padding: 0 20px;
        }

        .slide-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(50px);
            animation: slideInUp 1s ease-out 0.3s forwards;
        }

        .slide-subtitle {
            font-size: 1.3rem;
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(30px);
            animation: slideInUp 1s ease-out 0.6s forwards;
        }

        .slide-cta {
            display: inline-block;
            padding: 15px 35px;
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
            animation: slideInUp 1s ease-out 0.9s forwards;
            box-shadow: 0 10px 20px rgba(255,107,107,0.3);
        }

        .slide-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(255,107,107,0.4);
        }

        .slider-controls {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 3;
        }

        .slider-btn {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .slider-btn:hover {
            background: rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.5);
            transform: scale(1.1);
        }

        .slider-btn i {
            font-size: 1.5rem;
        }

        .prev-btn {
            left: 30px;
        }

        .next-btn {
            right: 30px;
        }

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

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: white;
            transform: scale(1.3);
        }

        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .floating-icon {
            position: absolute;
            color: rgba(255,255,255,0.1);
            font-size: 2rem;
            animation: float 6s ease-in-out infinite;
        }

        .floating-icon:nth-child(1) {
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .floating-icon:nth-child(2) {
            top: 60%;
            right: 15%;
            animation-delay: 2s;
        }

        .floating-icon:nth-child(3) {
            bottom: 30%;
            left: 20%;
            animation-delay: 4s;
        }

        @keyframes slideInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(10deg);
            }
        }

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

        /* Responsive Design */
        @media (max-width: 768px) {
            .repair-slider-section {
                padding: 60px 0;
            }

            .section-header h2 {
                font-size: 2.5rem;
            }

            .repair-slider {
                height: 400px;
            }

            .slide-title {
                font-size: 2.5rem;
            }

            .slide-subtitle {
                font-size: 1.1rem;
            }

            .slider-btn {
                width: 50px;
                height: 50px;
            }

            .prev-btn {
                left: 15px;
            }

            .next-btn {
                right: 15px;
            }
        }

        /* Slide-specific animations */
        .slide.active .slide-title {
            animation: slideInUp 1s ease-out 0.3s forwards;
        }

        .slide.active .slide-subtitle {
            animation: slideInUp 1s ease-out 0.6s forwards;
        }

        .slide.active .slide-cta {
            animation: slideInUp 1s ease-out 0.9s forwards;
        }

        .slide:not(.active) .slide-title,
        .slide:not(.active) .slide-subtitle,
        .slide:not(.active) .slide-cta {
            opacity: 0;
            transform: translateY(50px);
        }



        /* Visual Enhancements for Pinapple Fix */

/* Enhanced Search Functionality */
.search-results-section {
  padding: 60px 0;
  background: #f8f9fa;
  border-top: 1px solid #e1e5e9;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.search-header h2 {
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.clear-search-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-search-btn:hover {
  background: linear-gradient(135deg, #c82333, #dc3545);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Enhanced Product Grid Section */
.section-header-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.refresh-products-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.refresh-products-btn:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.refresh-products-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.refresh-products-btn:hover i {
  transform: rotate(180deg);
}

/* Enhanced Search Box */
.header-search-container {
  position: relative;
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-50%) scale(1.05);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results.show {
  display: block;
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations to elements */
.product-card-new {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.product-card-new:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card-new:nth-child(2) {
  animation-delay: 0.2s;
}
.product-card-new:nth-child(3) {
  animation-delay: 0.3s;
}
.product-card-new:nth-child(4) {
  animation-delay: 0.4s;
}
.product-card-new:nth-child(5) {
  animation-delay: 0.5s;
}
.product-card-new:nth-child(6) {
  animation-delay: 0.6s;
}

.category-card {
  animation: slideInUp 0.6s ease forwards;
  opacity: 0;
}

.category-card:nth-child(1) {
  animation-delay: 0.2s;
}
.category-card:nth-child(2) {
  animation-delay: 0.4s;
}
.category-card:nth-child(3) {
  animation-delay: 0.6s;
}
.category-card:nth-child(4) {
  animation-delay: 0.8s;
}

.feature-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.feature-item:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-item:nth-child(2) {
  animation-delay: 0.3s;
}
.feature-item:nth-child(3) {
  animation-delay: 0.5s;
}
.feature-item:nth-child(4) {
  animation-delay: 0.7s;
}

/* Enhanced Hover Effects */
.product-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover {
  transform: scale(1.05);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  transition: all 0.3s ease;
}

.feature-item:hover i {
  animation: pulse 1s infinite;
  color: #667eea;
}

/* Enhanced Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced Buttons */
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Enhanced Search Filters */
.search-filters {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
}

.search-filters h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.active-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
}

.active-search span {
  color: #555;
  font-size: 0.9rem;
}

.clear-search-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-search-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

/* Enhanced No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}

.no-results::before {
  content: "🔍";
  display: block;
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .header-search-container {
    margin: 0 20px;
    max-width: none;
  }

  .section-header-with-actions {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .search-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .refresh-products-btn,
  .clear-search-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .product-card-new {
    animation-delay: 0s !important;
  }
}

@media (max-width: 480px) {
  .search-box input {
    padding: 10px 45px 10px 15px;
    font-size: 0.9rem;
  }

  .search-box button {
    width: 35px;
    height: 35px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .refresh-products-btn,
  .clear-search-btn {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
}

/* Enhanced Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.search-box input:focus,
.refresh-products-btn:focus,
.clear-search-btn:focus,
.btn-primary:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Enhanced Selection */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: #333;
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.2);
  color: #333;
}

/* Repair Banner Styles */
.repair-banner-section {
  margin: 60px 0;
  position: relative;
}

.repair-banner-slider {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.repair-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.repair-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.repair-slide.prev {
  transform: translateX(-100%);
}

.repair-slide-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 0 20px;
  animation: slideUp 0.8s ease-out 0.3s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.repair-slide-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.repair-slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.btn-repair {
  display: inline-block;
  background: linear-gradient(135deg, #007aff, #0056cc);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
  border: 2px solid transparent;
}

.btn-repair:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4);
  background: linear-gradient(135deg, #0056cc, #003d99);
  color: white;
}

.repair-banner-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.repair-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.repair-nav-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.repair-nav-btn i {
  font-size: 1.5rem;
  color: #333;
}

.repair-dots {
  display: flex;
  gap: 12px;
}

.repair-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.repair-dot.active {
  background: #007aff;
  transform: scale(1.2);
}

.repair-dot:hover {
  background: rgba(0, 122, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .repair-banner-slider {
    height: 400px;
    border-radius: 15px;
  }

  .repair-slide-content h2 {
    font-size: 2.2rem;
  }

  .repair-slide-content p {
    font-size: 1rem;
  }

  .btn-repair {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .repair-nav-btn {
    width: 45px;
    height: 45px;
  }

  .repair-nav-btn i {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .repair-banner-slider {
    height: 350px;
  }

  .repair-slide-content h2 {
    font-size: 1.8rem;
  }

  .repair-slide-content {
    padding: 0 15px;
  }

  .repair-banner-nav {
    gap: 20px;
    margin-top: 20px;
  }
}
