/* ============================================================
   DURGAPUR INDUSTRIAL STORE — style.css
   Industrial Aesthetic: Bold, Heavy, Authoritative
   Fonts: Barlow Condensed (headings) + Barlow (body)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --brand-orange:  #E85D04;
    --brand-dark:    #0D0D0D;
    --brand-steel:   #1A1A2E;
    --brand-mid:     #2C2C2C;
    --brand-light:   #F5F5F0;
    --brand-white:   #FFFFFF;
    --brand-accent:  #FFB703;
    --text-main:     #1A1A1A;
    --text-muted:    #666666;
    --border:        #E0E0E0;
    --radius-sm:     4px;
    --radius-md:     8px;
    --shadow-card:   0 2px 12px rgba(0,0,0,0.10);
    --shadow-hover:  0 8px 28px rgba(0,0,0,0.18);
    --transition:    0.22s ease;
    --max-width:     1280px;
    --header-h:      68px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--brand-light);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--brand-steel);
    color: #ccc;
    font-size: 0.78rem;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 0.03em;
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-item { display: flex; align-items: center; gap: 4px; }
.topbar-item a { color: #ccc; transition: color var(--transition); }
.topbar-item a:hover { color: var(--brand-orange); }
.topbar-right { margin-left: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--brand-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: var(--brand-orange);
    animation: spin-slow 8s linear infinite;
    display: inline-block;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--brand-white);
    letter-spacing: 0.06em;
}
.logo-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--brand-orange);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Search */
.search-form {
    flex: 1;
    display: flex;
    max-width: 480px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--brand-orange);
}

.search-input {
    flex: 1;
    padding: 9px 14px;
    font-size: 0.92rem;
    font-family: 'Barlow', sans-serif;
    border: none;
    outline: none;
    background: #1c1c1c;
    color: #fff;
}
.search-input::placeholder { color: #888; }

.search-btn {
    padding: 9px 16px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 1rem;
    transition: background var(--transition);
}
.search-btn:hover { background: #c94e00; }

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #ccc;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
    text-transform: uppercase;
}
.nav-link:hover { color: var(--brand-white); background: rgba(255,255,255,0.06); }

.cart-link { color: var(--brand-white); position: relative; }
.cart-link:hover { color: var(--brand-accent); }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--brand-white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 400px; padding: 8px 0 12px; }
.mobile-nav a {
    padding: 11px 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccc;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--brand-orange); background: rgba(255,255,255,0.03); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--brand-steel);
    height: clamp(280px, 50vw, 560px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; position: relative; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-default {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A2E 50%, #2c2316 100%);
}
/* Subtle pattern for default hero */
.hero-default::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 40%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--brand-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    color: var(--brand-white);
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 28px;
    max-width: 460px;
}

.hero-btn {
    display: inline-block;
    background: var(--brand-orange);
    color: var(--brand-white);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
}
.hero-btn:hover { background: #c94e00; transform: translateY(-2px); }

/* Slider controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition);
    line-height: 1;
}
.slider-btn:hover { background: var(--brand-orange); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--brand-orange); transform: scale(1.3); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    background: var(--brand-orange);
    padding: 10px 20px;
}
.trust-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-white);
}
.trust-icon { font-size: 1.1rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 0; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-dark);
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: var(--brand-orange);
    border-radius: 2px;
}

.see-all {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-orange);
    transition: color var(--transition);
}
.see-all:hover { color: #c94e00; }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-section { background: var(--brand-white); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--brand-light);
    border-radius: var(--radius-md);
    padding: 20px 12px 16px;
    border: 2px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    text-align: center;
}
.category-card:hover {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.cat-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8e8e8;
    flex-shrink: 0;
}
.cat-img-wrap img { width: 100%; height: 100%; }

.cat-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-dark);
    line-height: 1.2;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--brand-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f0f0ec;
    overflow: hidden;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-orange);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}

.product-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.product-cat {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-orange);
    font-weight: 600;
}

.product-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--brand-dark);
    letter-spacing: 0.02em;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--brand-orange);
    letter-spacing: 0.02em;
}

.product-stock {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
}
.in-stock  { background: #e6f9ee; color: #1a8a3c; }
.out-stock { background: #fde8e8; color: #c0392b; }

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
    background: var(--brand-steel);
    padding: 60px 20px;
    color: var(--brand-white);
}
.about-strip-inner {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text { flex: 1; min-width: 280px; }
.about-text h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-white);
    margin-bottom: 16px;
}
.about-text p {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.96rem;
    margin-bottom: 24px;
}
.about-text strong { color: var(--brand-accent); }

.about-btn {
    display: inline-block;
    background: var(--brand-orange);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.about-btn:hover { background: #c94e00; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    flex-shrink: 0;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.06);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}
.stat-num {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--brand-orange);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-results-section { padding: 50px 0; }
.no-results {
    color: var(--text-muted);
    font-size: 1.05rem;
    padding: 40px 0;
    text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--brand-dark);
    color: #aaa;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 50px 20px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-tagline {
    color: #888;
    line-height: 1.6;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.footer-founders {
    font-size: 0.82rem;
    color: #666;
}
.footer-founders strong { color: var(--brand-accent); }

.footer-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-white);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-orange);
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
    color: #888;
    transition: color var(--transition);
    font-size: 0.88rem;
}
.footer-links a:hover { color: var(--brand-orange); }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #888;
    font-size: 0.88rem;
}
.footer-contact-list a { color: #888; transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--brand-orange); }
.contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
    border-top: 1px solid #222;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #555;
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand { grid-column: 1 / -1; }

    .about-strip-inner { flex-direction: column; gap: 36px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root { --header-h: 60px; }

    /* Topbar: hide on very small screens to save space */
    .topbar { display: none; }

    /* Header: hide desktop nav, show hamburger */
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }

    /* Search below logo */
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
    .search-form  { order: 3; flex: 0 0 100%; max-width: 100%; }
    .logo         { order: 1; }
    .hamburger    { order: 2; }

    /* Hero */
    .hero-slider  { height: clamp(220px, 55vw, 320px); }
    .hero-title   { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .hero-content { padding: 0 20px; }
    .slider-btn   { width: 36px; height: 36px; font-size: 1.5rem; }

    /* Trust bar */
    .trust-bar-inner { gap: 16px; justify-content: flex-start; }
    .trust-item { font-size: 0.78rem; }

    /* Sections */
    .section { padding: 36px 0; }
    .section-header { margin-bottom: 20px; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }

    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-name  { font-size: 0.9rem; }

    /* About stats */
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }

    /* Footer */
    .footer-inner  { grid-template-columns: 1fr; gap: 28px; padding: 36px 16px 24px; }
    .footer-brand  { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.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;
}
