/* ==========================================================================
   KESYO MART PREMIUM E-COMMERCE HOMEPAGE CSS
   Primary: #2563EB | Accent: #FACC15 | Background: #F8FAFC
   ========================================================================== */

:root {
  --lp-primary: #2563EB;
  --lp-primary-dark: #1d4ed8;
  --lp-accent: #FACC15;
  --lp-bg: #F8FAFC;
  --lp-card: #FFFFFF;
  --lp-text: #1e293b;
  --lp-text-light: #64748b;
  --lp-border: #e2e8f0;
  --lp-danger: #ef4444;
  --lp-success: #10b981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body.ecommerce-body { font-family: 'Inter', sans-serif; background-color: var(--lp-bg); color: var(--lp-text); line-height: 1.5; padding-bottom: 60px; /* Space for mobile nav */ }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.section-padding { padding: 40px 0; }
.text-center { text-align: center; }
.hide-desktop { display: none !important; }

/* --- HEADER --- */
.main-header { background: var(--lp-card); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.header-logo a { font-size: 1.8rem; font-weight: 800; color: var(--lp-primary); letter-spacing: -0.5px; }
.header-logo span { color: var(--lp-accent); }

.header-search { flex: 1; max-width: 500px; margin: 0 30px; position: relative; display: flex; }
.header-search input { width: 100%; padding: 12px 20px; border: 1px solid var(--lp-border); border-radius: 30px 0 0 30px; outline: none; font-family: 'Inter'; font-size: 0.95rem; background: var(--lp-bg); transition: var(--transition); }
.header-search input:focus { border-color: var(--lp-primary); background: #fff; }
.header-search .search-btn { background: var(--lp-primary); color: white; border: none; padding: 0 20px; border-radius: 0 30px 30px 0; cursor: pointer; font-size: 1.2rem; transition: var(--transition); }
.header-search .search-btn:hover { background: var(--lp-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.action-link { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.95rem; color: var(--lp-text); position: relative; }
.action-link:hover { color: var(--lp-primary); }
.action-link i { font-size: 1.4rem; }
.action-link .badge { position: absolute; top: -8px; right: -8px; background: var(--lp-danger); color: white; font-size: 0.7rem; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--lp-card); }

.auth-link-login { color: var(--lp-primary) !important; }
.auth-link-register { background: var(--lp-primary); color: white !important; padding: 8px 20px; border-radius: 30px; }
.auth-link-register:hover { background: var(--lp-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- MOBILE BOTTOM NAV --- */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--lp-card); display: flex; justify-content: space-around; padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 1000; border-top: 1px solid var(--lp-border); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--lp-text-light); font-size: 0.75rem; font-weight: 500; position: relative; }
.nav-item i { font-size: 1.4rem; }
.nav-item.active { color: var(--lp-primary); }
.nav-item .badge { position: absolute; top: -5px; right: 5px; background: var(--lp-danger); color: white; font-size: 0.65rem; padding: 2px 5px; border-radius: 10px; border: 1.5px solid var(--lp-card); }

/* --- HERO SLIDER --- */
.hero-slider-section { margin-top: 20px; padding: 0 15px; }
.heroSwiper { width: 100%; max-width: 1250px; margin: 0 auto; height: 400px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-slide { display: flex; align-items: center; padding: 0 60px; background-size: cover; background-position: center; position: relative; }
.hero-slide::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%); z-index: 1; }
.slide-content { position: relative; z-index: 2; color: white; max-width: 500px; animation: slideUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
.swiper-slide-active .slide-content { opacity: 1; transform: translateY(0); }
.slide-content h2 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.slide-content p { font-size: 1.2rem; margin-bottom: 25px; color: #f1f5f9; }
.btn-primary { display: inline-block; background: var(--lp-accent); color: #000; font-weight: 700; padding: 12px 30px; border-radius: 30px; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4); }
.btn-primary:hover { transform: scale(1.05); background: #eab308; }

/* Example backgrounds (To be replaced with real images via JS/CSS) */
.slide-offer { background-image: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=1200&q=80'); }
.slide-grocery { background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?w=1200&q=80'); }
.slide-electronics { background-image: url('https://images.unsplash.com/photo-1498049794561-7780e7231661?w=1200&q=80'); }
.slide-fashion { background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?w=1200&q=80'); }

/* --- TRUST BADGES --- */
.trust-badges-section { margin-top: -25px; position: relative; z-index: 10; padding: 0 15px; }
.trust-badges-container { display: flex; justify-content: center; gap: 30px; background: var(--lp-card); padding: 20px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); flex-wrap: wrap; }
.trust-badge-item { display: flex; align-items: center; gap: 15px; }
.tb-icon { width: 50px; height: 50px; background: rgba(37, 99, 235, 0.1); color: var(--lp-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.tb-text h4 { font-size: 1rem; font-weight: 700; color: var(--lp-text); margin-bottom: 2px; }
.tb-text p { font-size: 0.85rem; color: var(--lp-text-light); }

/* --- SECTION HEADERS --- */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--lp-text); position: relative; padding-bottom: 10px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: var(--lp-primary); border-radius: 2px; }
.view-all { color: var(--lp-primary); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.view-all:hover { color: var(--lp-primary-dark); text-decoration: underline; }

/* --- CATEGORIES --- */
.category-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; transition: var(--transition); }
.cat-img-wrapper { width: 120px; height: 120px; background: var(--lp-card); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden; padding: 15px; border: 2px solid transparent; }
.cat-img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.category-card:hover .cat-img-wrapper { border-color: var(--lp-primary); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.category-card:hover img { transform: scale(1.1); }
.category-card span { font-weight: 600; font-size: 1rem; color: var(--lp-text); }

/* --- DEALS TIMER --- */
.deals-title-area { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.deals-header h2::after { background: var(--lp-danger); }
.countdown-timer { background: var(--lp-danger); color: white; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); animation: pulse 2s infinite; }

/* --- PRODUCT CARDS --- */
.product-card { background: var(--lp-card); border-radius: var(--radius-lg); padding: 15px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; border: 1px solid var(--lp-border); display: flex; flex-direction: column; height: 100%; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--lp-primary); }
.pc-discount { position: absolute; top: 15px; left: 15px; background: var(--lp-danger); color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.pc-wishlist { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--lp-text-light); font-size: 1.2rem; box-shadow: var(--shadow-sm); cursor: pointer; z-index: 2; transition: var(--transition); }
.pc-wishlist:hover { color: var(--lp-danger); transform: scale(1.1); }
.pc-img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; transition: transform 0.3s; }
.product-card:hover .pc-img { transform: scale(1.05); }
.pc-brand { font-size: 0.8rem; color: var(--lp-text-light); font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.pc-title { font-size: 1rem; font-weight: 600; color: var(--lp-text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 45px; }
.pc-rating { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--lp-text-light); margin-bottom: 12px; }
.pc-rating i { color: var(--lp-accent); }
.pc-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 15px; margin-top: auto; }
.pc-price { font-size: 1.3rem; font-weight: 800; color: var(--lp-text); }
.pc-old-price { font-size: 0.9rem; color: var(--lp-text-light); text-decoration: line-through; }
.pc-actions { display: flex; gap: 10px; }
.btn-cart { flex: 1; background: rgba(37, 99, 235, 0.1); color: var(--lp-primary); border: none; padding: 10px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-cart:hover { background: var(--lp-primary); color: white; }
.btn-buy { flex: 1; background: var(--lp-primary); color: white; border: none; padding: 10px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-buy:hover { background: var(--lp-primary-dark); }

/* --- BRANDS --- */
.brands-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.brand-item { width: 150px; height: 80px; background: white; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); padding: 15px; transition: var(--transition); border: 1px solid var(--lp-border); }
.brand-item img { max-height: 100%; filter: grayscale(100%); transition: var(--transition); opacity: 0.7; }
.brand-item:hover { transform: translateY(-5px); border-color: var(--lp-primary); box-shadow: var(--shadow-md); }
.brand-item:hover img { filter: grayscale(0%); opacity: 1; }

/* --- WHY CHOOSE US --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { background: white; padding: 30px 20px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border-bottom: 4px solid transparent; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-bottom-color: var(--lp-primary); }
.feature-card i { font-size: 3rem; color: var(--lp-primary); margin-bottom: 20px; display: inline-block; background: rgba(37, 99, 235, 0.1); width: 80px; height: 80px; line-height: 80px; border-radius: 50%; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--lp-text-light); font-size: 0.95rem; }

/* --- REVIEWS --- */
.review-card { background: white; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; border: 1px solid var(--lp-border); margin: 10px; }
.rc-stars { color: var(--lp-accent); font-size: 1.2rem; margin-bottom: 15px; }
.rc-text { font-size: 1rem; font-style: italic; color: var(--lp-text); margin-bottom: 20px; line-height: 1.6; }
.rc-author { font-weight: 700; color: var(--lp-primary); }

/* --- APP DOWNLOAD --- */
.app-download-card { background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%); border-radius: var(--radius-lg); padding: 50px; display: flex; align-items: center; justify-content: space-between; color: white; box-shadow: var(--shadow-lg); flex-wrap: wrap; gap: 40px; }
.app-content h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.app-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; max-width: 500px; }
.app-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.store-btn { background: white; color: var(--lp-text); font-weight: 700; padding: 12px 25px; border-radius: 30px; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.store-btn i { font-size: 1.5rem; color: var(--lp-primary); }
.store-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.app-qr { background: white; padding: 20px; border-radius: var(--radius-md); text-align: center; color: var(--lp-text); font-weight: 600; }
.app-qr img { width: 120px; height: 120px; margin-bottom: 10px; }

/* --- FOOTER --- */
.main-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.brand-col .footer-logo { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 20px; display: inline-block; }
.brand-col .footer-logo span { color: var(--lp-accent); }
.brand-col p { line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; }
.social-links 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; transition: var(--transition); }
.social-links a:hover { background: var(--lp-primary); transform: translateY(-3px); }
.footer-col h3 { color: white; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #cbd5e1; transition: var(--transition); }
.footer-col ul a:hover { color: var(--lp-accent); padding-left: 5px; }
.contact-info li { display: flex; gap: 10px; margin-bottom: 15px; line-height: 1.5; }
.contact-info i { color: var(--lp-accent); font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.payment-methods { display: flex; gap: 15px; font-size: 2rem; color: white; opacity: 0.7; }

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: block !important; }
  .bottom-nav { display: flex !important; }
  body.ecommerce-body { padding-bottom: 70px; }
  .header-logo a { font-size: 1.5rem; }
  .header-container { padding: 0 15px; }
  .mobile-search-bar { padding: 10px 0; background: white; border-top: 1px solid var(--lp-border); }
  .heroSwiper { height: 300px; border-radius: 0; }
  .hero-slider-section { margin-top: 0; padding: 0; }
  .slide-content h2 { font-size: 2rem; }
  .trust-badges-container { flex-direction: column; padding: 20px; align-items: flex-start; }
  .deals-title-area { flex-direction: column; align-items: flex-start; gap: 10px; }
  .app-download-card { padding: 30px; text-align: center; justify-content: center; }
  .app-buttons { justify-content: center; }
  .section-header h2 { font-size: 1.5rem; }
}

/* === NEW POLISH CLASSES === */
.search-icons { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; color: var(--lp-text-light); font-size: 1.2rem; }
.search-icons i { cursor: pointer; transition: color 0.3s; }
.search-icons i:hover { color: var(--lp-primary); }
.skeleton-box { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: loading 1.5s infinite; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.rc-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.rc-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.rc-info { text-align: left; }
.rc-info h4 { margin-bottom: 2px; }
.rc-verified { color: #10b981; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 3px; }
@media (max-width: 992px) { .features-grid { grid-template-columns: 1fr 1fr; gap: 15px; } .feature-card { padding: 20px 10px; } .feature-card h3 { font-size: 1rem; } .feature-card p { font-size: 0.8rem; } }

/* === NEW DYNAMIC SECTIONS === */
.premium-badge { background: var(--lp-accent); color: #000; font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; vertical-align: middle; margin-left: 10px; font-weight: 700; text-transform: uppercase; }
.offer-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; align-items: center; }
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.offer-img { width: 50%; height: 250px; object-fit: cover; }
.offer-content { padding: 30px; width: 50%; }
.offer-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--lp-primary); }
.offer-content p { color: var(--lp-text-light); margin-bottom: 20px; }
.offer-date { display: inline-block; background: #f1f5f9; padding: 5px 10px; border-radius: 5px; font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; }
@media (max-width: 768px) { .offer-card { flex-direction: column; } .offer-img, .offer-content { width: 100%; } .offer-img { height: 180px; } }

.news-ticker-container { overflow: hidden; white-space: nowrap; position: relative; padding: 15px 0; border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }
.news-track { display: inline-block; animation: ticker 20s linear infinite; }
.news-track:hover { animation-play-state: paused; }
.news-item { display: inline-block; margin-right: 50px; font-weight: 500; font-size: 1.1rem; }
.news-item i { color: var(--lp-accent); margin-right: 8px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.video-grid, .events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.media-card { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow-sm); transition: var(--transition); }
.media-card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.media-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.media-card:hover .media-img { opacity: 1; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: white; background: rgba(0,0,0,0.5); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.media-card:hover .play-icon { background: var(--lp-primary); transform: translate(-50%, -50%) scale(1.1); }
.media-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; font-weight: 600; }

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; }
.lightbox-modal.active { display: flex; }
.lightbox-content { max-width: 900px; width: 95%; max-height: 90vh; position: relative; }
.lightbox-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox-content iframe, .lightbox-content img { width: 100%; height: auto; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
