/* ─── Reset & Base ───────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Mobile overflow fixes ──────────────────────────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

img, video, iframe, table, .container, .section {
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* ─── Fix for product page sidebar on mobile ────────────────────── */
@media (max-width: 768px) {
    #catalogueLayout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    #catalogueLayout aside {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
    }
    
    .grid-products {
        grid-template-columns: 1fr 1fr !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-on-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p {
    color: var(--text-on-dark-muted);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
}

/* ── Container ────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
    padding: var(--space-2xl) 0;
}

/* Light background sections (for neumorphic elements) */
.section--light {
    background: var(--color-ice);
    color: var(--text-on-light);
}

.section--light p {
    color: var(--text-on-light-muted);
}

.section--light h1,
.section--light h2,
.section--light h3 {
    color: var(--text-on-light);
}

/* ── Utility ─────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}