@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@800;900&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --primary: #ff4d00; /* Electric Orange */
  --primary-glow: rgba(255, 77, 0, 0.15);
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 0px; /* Industrial Sharp Look */
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }

/* HEADER - Floating Style */
.header { 
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: calc(100% - 40px); 
    max-width: 1200px; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border); 
    z-index: 1000; 
    padding: 10px 30px; 
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 24px; font-weight: 900; color: #000; border-bottom: 4px solid var(--primary); padding-bottom: 2px; }
.header-nav { display: flex; gap: 30px; }
.header-nav a { 
    color: var(--text); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}
.header-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s;
}
.header-nav a:hover::after { width: 100%; }

.cart-btn { 
    background: #000; 
    color: #fff; 
    border: none; 
    padding: 12px 24px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 800; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.cart-badge { background: var(--primary); color: #fff; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; }

/* HERO - Industrial Look */
.hero { 
    padding: 180px 20px 100px; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px; 
    align-items: center; 
}
.hero-content { position: relative; }
.hero-badge { 
    font-size: 12px; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    display: block; 
}
.hero-content h1 { font-size: 72px; line-height: 0.95; margin-bottom: 25px; }
.hero-highlight { 
    color: transparent; 
    -webkit-text-stroke: 1px #000; 
}
.hero-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; }
.hero-btns { display: flex; gap: 15px; }

.hero-img2 { position: relative; }
.hero-img2::before {
    content: ''; position: absolute; top: -10%; right: -10%; width: 100%; height: 100%; background: var(--bg-alt); z-index: -1;
}
.hero-logo { width: 100%; border-radius: 0; filter: grayscale(1); transition: 0.5s; }
.hero-img2:hover .hero-logo { filter: grayscale(0); transform: translate(-10px, -10px); }

/* FEATURES - Industrial Bar */
.features { background: #000; color: #fff; display: flex; justify-content: center; padding: 40px 0; }
.feature-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); padding: 0 40px; }
.feature-item:last-child { border-right: none; }
.feature-item span { font-size: 24px; margin-bottom: 10px; display: block; }
.feature-item p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #ccc; }

/* PRODUCTS - Clean & Grid */
.products-section { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.product-card { 
    background: var(--card); 
    border-bottom: 4px solid transparent; 
    transition: 0.3s; 
    position: relative; 
    display: flex;
    flex-direction: column;
}
.product-card:hover { 
    border-bottom-color: var(--primary); 
    transform: translateY(-5px); 
    box-shadow: var(--shadow);
}
.product-badge { 
    position: absolute; top: 0; left: 0; 
    background: #000; color: #fff; 
    padding: 8px 15px; font-size: 11px; font-weight: 800; z-index: 10;
}
.product-image { 
    height: 300px; 
    background: #f8fafc; 
    display: flex; align-items: center; justify-content: center; 
    padding: 20px;
}
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-info { padding: 25px 0; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 18px; margin-bottom: 10px; color: #000; }
.product-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.product-price { font-size: 24px; font-weight: 900; color: #000; font-family: 'Montserrat'; }
.add-to-cart { 
    background: transparent; color: #000; 
    border: 2px solid #000; 
    padding: 10px 20px; font-size: 12px; font-weight: 800; 
    cursor: pointer; transition: 0.3s;
}
.add-to-cart:hover { background: #000; color: #fff; }

/* PAGINATION */
.pagination-wrap { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.page-btn {
    width: 45px; height: 45px; border: 1px solid #000; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; cursor: pointer; transition: 0.3s;
}
.page-btn:hover, .page-btn.active { background: #000; color: #fff; }

/* CATEGORIES */
.categories-section { max-width: 1200px; margin: 100px auto 0; padding: 0 20px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.category-card { 
    background: var(--bg-alt); 
    padding: 20px; text-align: center; cursor: pointer; transition: 0.2s;
}
.category-card:hover, .category-card.active { 
    background: var(--primary); color: #fff; 
}
.category-card .cat-icon { font-size: 24px; margin-bottom: 5px; }

/* FOOTER */
.footer { background: #000; color: #fff; padding: 100px 20px 40px; margin-top: 100px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; }
.footer-col h4 { color: var(--primary); margin-bottom: 30px; font-size: 14px; }
.footer-col a { color: #999; text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }

/* BUTTONS & ACTIONS */
.btn { 
    padding: 18px 40px; font-size: 14px; font-weight: 900; 
    text-transform: uppercase; border: none; cursor: pointer; transition: 0.3s; 
}
.back-btn {
    background: none; border: 1px solid #000; padding: 10px 20px; font-size: 12px; font-weight: 800; cursor: pointer; margin-bottom: 20px; transition: 0.3s;
}
.back-btn:hover { background: #000; color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: #000; color: #fff; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

#loadingOverlay { background: #fff !important; color: #000 !important; font-weight: 900; text-transform: uppercase; }
#toastMsg { border-radius: 0 !important; background: #000 !important; color: #fff !important; font-weight: 700 !important; }

/* CART SIDEBAR & OVERLAY */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar { 
    position: fixed; top: 0; right: -100%; width: 450px; height: 100vh;
    background: #fff; z-index: 2001; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0,0,0,0.1); 
    display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }

.cart-header { 
    padding: 30px 40px; border-bottom: 1px solid #eee; 
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-family: 'Montserrat'; font-size: 18px; margin: 0; }
.close-cart { background: none; border: none; font-size: 24px; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 20px 40px; }
.cart-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; position: relative; }
.cart-item img { width: 80px; height: 80px; object-fit: contain; background: #f8fafc; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.cart-item-price { color: var(--primary); font-weight: 800; font-size: 15px; }

.qty-control { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.remove-item { position: absolute; top: 20px; right: 0; background: none; border: none; color: #999; cursor: pointer; }

.cart-footer { padding: 30px 40px; border-top: 1px solid #eee; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 20px; }
.btn-full { width: 100%; }

.empty-cart { text-align: center; padding: 60px 0; color: #94a3b8; }
.empty-icon { font-size: 48px; margin-bottom: 10px; }

@media (max-width: 768px) {
    .cart-sidebar { width: 100%; }
}
