/* =========================
   FORCE-FIXED TOP UI OVERRIDE
========================= */

/* Force all pages to use the same top layout */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    scroll-behavior: smooth !important;
}

/* NAVBAR */
.navbar {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.nav-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
}

.logo {
    font-weight: 700 !important;
    font-size: 1.6rem !important;
    color: #2563eb !important;
    white-space: nowrap !important;
}

.nav-links {
    display: flex !important;
    justify-content: center !important;
    gap: 32px !important;
    flex: 1 !important;
    align-items: center !important;
}

.nav-links a {
    font-weight: 500 !important;
    color: #6b7280 !important;
    padding-bottom: 4px !important;
    position: relative !important;
}

.nav-links a::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -6px !important;
    width: 0% !important;
    height: 2px !important;
    background: #2563eb !important;
    transition: width 0.25s ease !important;
}

.nav-links a:hover::after {
    width: 100% !important;
}

.nav-links a:hover {
    color: #1f2933 !important;
}

/* CART ICON */
.cart-icon {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
}

.cart-icon svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #222 !important;
    stroke-width: 2 !important;
}

/* HERO */
.hero {
    min-height: 80vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 24px !important;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%) !important;
}

.hero-content {
    max-width: 720px !important;
    margin: 0 auto !important;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
    color: #1f2933 !important;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
    color: #6b7280 !important;
    margin-bottom: 32px !important;
}

/* HERO BUTTON */
.hero .btn {
    display: inline-block !important;
    padding: 14px 36px !important;
    border-radius: 14px !important;
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.hero .btn:hover {
    background: #1e40af !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.15) !important;
}

/* FORCE HERO + NAVBAR ALWAYS CENTERED */
.navbar, .nav-inner, .hero, .hero-content {
    margin: 0 auto !important;
    padding: 0 24px !important;
}

/* RESPONSIVE OVERRIDE */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .nav-links {
        flex-wrap: wrap !important;
        gap: 16px !important;
        justify-content: center !important;
    }

    .hero {
        min-height: 70vh !important;
        padding: 0 16px !important;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }

    .hero p {
        font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
    }

    .hero .btn {
        padding: 12px 28px !important;
    }
}

/* =========================
   MASTER TOP UI
   NAVBAR + HERO + BUTTONS
========================= */

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: #2563eb;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: #6b7280;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0%;
    background: #2563eb;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #1f2933;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CART ICON */
.cart-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-icon svg {
    width: 28px;
    height: 28px;
    stroke: #222;
    stroke-width: 2;
}

/* HERO */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #1f2933;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #6b7280;
    margin-bottom: 32px;
}

/* HERO BUTTONS */
.hero .btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    transition: all 0.25s ease;
}

.hero .btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* FORCE CONSISTENT LAYOUT */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* RESPONSIVE NAVBAR + HERO */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .hero {
        min-height: 70vh;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .hero .btn {
        padding: 12px 28px;
    }
}

/* =========================
   DESIGN SYSTEM
========================= */
:root {
    --bg: #f7f8fa;
    --bg-alt: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;

    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #22c55e;
    --danger: #ef4444;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

    --max-width: 1200px;
}

/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   SECTIONS, PRODUCT GRID, CARDS, MATERIALS, CTA, CART, FOOTER
   <KEEP ALL YOUR EXISTING CSS BELOW>
========================= */

/* Sections */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px 24px;
}
.section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 24px;
}
.section p {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    color: var(--muted);
}
.section + .section {
    padding-top: 40px;
}

/* Product Grid */
.product-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f1f3f5;
}
.product-card p {
    padding: 16px;
    font-weight: 600;
    text-align: center;
}

/* Process / Cards */
.process-cards {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.process-cards .card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.process-cards h3 {
    margin-bottom: 12px;
}

/* Materials */
.materials-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}
.material-card {
    background: var(--bg-alt);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
}
.cta-section h2 {
    margin-bottom: 28px;
}

/* Cart */
.cart {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100%;
    background: var(--bg-alt);
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
    padding: 24px;
    z-index: 200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-close {
    font-size: 1.6rem;
    cursor: pointer;
}
.cart-items {
    flex: 1;
    margin: 24px 0;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.cart-total {
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}
.btn-checkout {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    background: var(--bg-alt);
    border-top: 1px solid #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links { gap: 18px; }
    .hero { min-height: 85vh; }
    .cart { width: 100%; }
}
/* =========================
   CART BUTTON FIX (PRODUCTS.HTML)
========================= */
#cart-toggle {
    position: absolute;       /* removes it from navbar flex flow */
    right: 24px;              /* distance from right edge of navbar */
    top: 50%;                 /* vertically center */
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 1001;            /* above navbar */
}

#cart-toggle svg {
    width: 28px;
    height: 28px;
    stroke: #222;
    stroke-width: 2;
}
