/* Reset and base */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html,body{height:100%; overflow-x: hidden; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #ffffff;
    padding-top: 130px;
    width: 100%;
    position: relative;
}

/* Header / Navigation (from header.php) */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-top {
    background: #ffffff;
    color: #333;
    min-height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; }
.logo { font-size: 24px; font-weight: bold; color: #333; text-decoration: none; display: flex; align-items: center; }
.logo span { color: #ff9900; }
.search-bar { flex: 1; max-width: 500px; margin: 0 30px; position: relative; }
.search-input-group { display: flex; background: white; border-radius: 4px; overflow: hidden; border: 2px solid #ff9900; }
.search-input-group input[type="text"] { flex: 1; border: none; padding: 12px 16px; outline: none; color: #333; background: white; }
.search-input-group input[type="text"]::placeholder { color: #999; }
.image-search-btn { background: #f3f3f3; border: none; padding: 12px 15px; cursor: pointer; border-left: 1px solid #ddd; transition: background 0.3s; }
.image-search-btn:hover { background: #e9ecef; }
.header-actions { display: flex; gap: 20px; align-items: center; }
.action-link { color: #333; text-decoration: none; display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 5px; transition: background 0.3s; }
.action-link:hover { background: rgba(0,0,0,0.1); color: #333; }
.cart-icon-wrapper { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: #ff9900; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.header-nav { 
    background: #2d2d2d; 
    border-bottom: 1px solid #444;
    height: 60px;
    display: flex;
    align-items: center;
}
.nav-menu { list-style: none; display: flex; margin: 0; padding: 0; width: 100%; justify-content: center; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 15px 20px; color: #ffffff; text-decoration: none; transition: all 0.3s; border-radius: 5px; margin: 0 5px; }
.nav-link:hover { background: #444; color: #ffd700; transform: translateY(-2px); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: #2d2d2d; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.4); z-index: 1001; display: none; border: 1px solid #444; border-radius: 8px; overflow: hidden; }
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a { display: block; padding: 12px 15px; color: #ffffff; text-decoration: none; transition: all 0.3s; }
.dropdown-menu a:hover { background: #444; color: #ffd700; padding-left: 20px; }
.mobile-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background: white; margin: 3px 0; transition: 0.3s; }
.icon { width: 18px; height: 18px; fill: #666; }
.icon-lg { width: 24px; height: 24px; }
.image-search-btn .icon { fill: #666; }
.search-input-group button .icon { fill: white; }
.image-search-btn { background: #f8f9fa; border: none; padding: 12px 15px; cursor: pointer; border-left: 1px solid #dee2e6; transition: background 0.3s; }
.image-search-btn:hover { background: #e9ecef; }
.image-preview { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #dee2e6; border-radius: 0 0 8px 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: none; z-index: 1000; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.preview-content { display: flex; align-items: center; padding: 15px; gap: 15px; }
.preview-image { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #dee2e6; }
.preview-info { flex: 1; }
.clear-image { background: #dc3545; color: white; border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s; }
.clear-image:hover { background: #c82333; }
.search-info { background: #2d2d2d; padding: 15px; border-radius: 8px; border-left: 4px solid #ffd700; color: #ffffff; }
.search-input-group { background: #2d2d2d; border: 1px solid #444; }
.search-input-group input[type="text"] { background: #2d2d2d; color: #ffffff; border: none; }
.search-input-group input[type="text"]::placeholder { color: #aaa; }
.image-search-btn { background: #444; border-left: 1px solid #555; }
.image-search-btn:hover { background: #555; }
.image-preview { background: #2d2d2d; border: 1px solid #444; color: #ffffff; }
.action-link:hover { background: rgba(255,215,0,0.1); color: #ffd700; }
.cart-badge { background: #ffd700; color: #000; }
.mobile-nav-toggle { display: none; }

/* Responsive header tweaks */
@media (max-width: 1200px) { .container { padding: 0 15px; } }
@media (max-width: 992px) {
    .search-bar { display: none; }
    .btn-text { display: none; }
    .nav-menu { flex-wrap: wrap; justify-content: flex-start; }
    .nav-link { padding: 12px 15px; }
    body { padding-top: 140px; }
}
@media (max-width: 768px) {
    .header-top { min-height: 56px; padding: 8px 0; }
    .header-nav { height: auto; min-height: 50px; }
    .logo { font-size: 16px !important; flex-shrink: 0; }
    .logo img { height: 26px !important; margin-right: 6px !important; }
    .header-actions { gap: 6px; }
    .action-link { padding: 6px 8px; }
    .mobile-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #2d2d2d; flex-direction: column; border-top: 1px solid #444; box-shadow: 0 4px 8px rgba(0,0,0,0.3); max-height: 70vh; overflow-y: auto; }
    .nav-menu.active { display: flex; }
    .nav-item { width: 100%; }
    .nav-link { padding: 14px 16px; border-bottom: 1px solid #444; font-size: 15px; }
    .dropdown-menu { position: static; display: none; background: #1a1a1a; box-shadow: none; border: none; border-radius: 0; }
    .nav-item.active .dropdown-menu { display: block; }
    body { padding-top: 56px !important; padding-bottom: 65px !important; }
    .container { padding: 0 10px; max-width: 100%; }
    .hero-banner { height: 40vh; min-height: 300px; }
    .banner-title { font-size: 1.8rem !important; }
    .banner-subtitle { font-size: 0.9rem !important; }
    .section-title { font-size: 1.6rem !important; }
}
@media (max-width: 480px) {
    .logo { font-size: 15px !important; }
    .logo img { height: 24px !important; }
    .header-top { min-height: 52px; }
    .container { padding: 0 8px; }
    body { padding-top: 52px !important; }
    .banner-title { font-size: 1.5rem !important; }
    .banner-subtitle { font-size: 0.85rem !important; }
    .btn-banner-primary, .btn-banner-secondary { padding: 10px 20px !important; font-size: 0.85rem !important; }
    .product-card { margin-bottom: 12px; }
    .col-lg-3, .col-md-4, .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Hero Banner and Index styles (from index.php) */
.hero-banner { position: relative; height: 60vh; overflow: hidden; background: #000; }
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; }
.banner-slide.active { opacity: 1; }
.banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; filter: brightness(0.4); }
.banner-content { position: relative; z-index: 2; width: 100%; color: white; }
.banner-text { animation: slideInLeft 1s ease-out; }
.banner-badge { display: inline-block; background: linear-gradient(45deg, #ff6b6b, #ee5a24); color: white; padding: 8px 20px; border-radius: 25px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.banner-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; background: linear-gradient(45deg, #fff, #f1f2f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.banner-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; }
.banner-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-banner-primary { background: linear-gradient(45deg, #667eea, #764ba2); color: white; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: none; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); }
.btn-banner-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4); color: white; }
.btn-banner-secondary { background: transparent; color: white; padding: 15px 35px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.btn-banner-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: white; transform: translateY(-3px); }
.banner-image { display: none; }
.banner-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 30px; z-index: 3; }
.banner-prev, .banner-next { background: rgba(255,255,255,0.2); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.banner-prev:hover, .banner-next:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.banner-indicators { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 3; }
.indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; }
.indicator.active { background: #667eea; transform: scale(1.2); }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 768px) { .hero-banner { height: 50vh; } .banner-title { font-size: 2.5rem; } .banner-subtitle { font-size: 1rem; } .banner-buttons { flex-direction: column; align-items: flex-start; } .btn-banner-primary, .btn-banner-secondary { padding: 12px 25px; font-size: 0.9rem; } .banner-nav { padding: 0 15px; } .banner-prev, .banner-next { width: 40px; height: 40px; } }

.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: #6c757d; }

.categories-section { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.category-card-modern { position: relative; height: 350px; border-radius: 20px; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.category-card-modern:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.category-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.category-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-card-modern:hover .category-image-wrapper img { transform: scale(1.1); }
.category-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%); transition: opacity 0.3s ease; }
.category-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; color: white; z-index: 2; }
.category-icon-modern { width: 60px; height: 60px; background: rgba(255,255,255,0.2); border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }
.category-icon-modern i { font-size: 24px; color: #fff; }
.category-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.category-description { font-size: 0.95rem; opacity: 0.9; margin-bottom: 20px; color: #fff; }
.btn-explore { display: inline-flex; align-items: center; padding: 12px 24px; background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; border-radius: 25px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }
.btn-explore:hover { background: rgba(255,255,255,0.3); color: #fff; transform: translateX(5px); }
.category-card-modern:hover .category-content { transform: translateY(-10px); }

.product-card { background: white; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; border: 1px solid #e9ecef; height: 100%; position: relative; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.product-image { position: relative; height: 220px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-info { padding: 1.5rem; }
.product-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: #2c3e50; }
.product-price { font-size: 1.3rem; font-weight: 700; color: #007bff; margin-bottom: 0.5rem; }
.product-description { font-size: 0.9rem; color: #6c757d; margin-bottom: 1rem; line-height: 1.4; }
.product-actions { display: flex; gap: 0.5rem; }

.feature-item { padding: 2rem 1rem; }
.feature-icon { margin-bottom: 1.5rem; }
.feature-icon i { color: #ffd700; }

@media (max-width: 768px) { .hero-title { font-size: 2.5rem; } .hero-stats { flex-direction: column; text-align: center; } .stat-item { margin-bottom: 1rem; } .section-title { font-size: 2rem; } }

/* Basic utility classes used in markup */
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.col-lg-8, .col-lg-4, .col-lg-3, .col-md-6, .col-md-4, .col-sm-6 { padding-left: 12px; padding-right: 12px; }
.col-lg-8 { flex: 0 0 66.6666%; max-width: 66.6666%; }
.col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.g-4 { gap: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.container .text-center + .row { margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: #007bff; color: white; border-color: #007bff; }
.btn-outline-primary { background: transparent; color: #007bff; border-color: #007bff; }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; }
.flex-fill { flex: 1 1 auto; }
.ms-2 { margin-left: 0.5rem; }
.display-1 { font-size: 4rem; }
.text-muted { color: #6c757d; }
.bg-primary { background: linear-gradient(45deg, #667eea, #764ba2); }
.text-white { color: #fff; }
.text-white-50 { color: rgba(255,255,255,0.5); }
.position-fixed { position: fixed; }
.alert { padding: 12px 18px; border-radius: 8px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-dismissible .btn-close { background: transparent; border: none; font-size: 1.1rem; }

/* Small helpers */
.text-muted { color: #b3b3b3; }
