/* ====================
   BASE - shared design tokens & reset
   Loaded by ALL page systems (the multi-page routes via index.php,
   category pages via category.php and product pages via product.php), because includes/header.php and
   includes/footer.php depend on these tokens/classes and are shared by
   both systems too. Keep this file limited to true global primitives —
   page-specific rules belong in style.css / pages.css (home and page
   routes), category.css or product.css, never here, so those two stay independent of each
   other (removing one must never affect the other's pages).
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #ecf0f1;
    --text: #333;
    --text-light: #7f8c8d;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;

    /* Consistent section spacing */
    --section-padding: 35px 0;
    --section-spacing: 60px;

    /* Unified brand accent - matches Contact section ("Ask Logitech!") and Footer */
    --brand-teal: #0E9488;
    --brand-teal-hover: #0B7A70;
    --brand-teal-light: #E3F5F2;

    /* Canonical SVG icon color - matches the Footer's Trust Badges icons */
    --icon-teal: #0C6E5F;
}

/* Visually hidden but still readable by screen readers - for form labels
   and similar cases where a visible label would duplicate an adjacent
   heading/placeholder but an accessible name is still required. */
.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;
}

/* Skip-to-content link - visually hidden until it receives keyboard focus,
   so sighted mouse users never see it but keyboard/screen-reader users can
   jump straight past the repeated header/nav on every page. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 10000;
    background: var(--brand-teal);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
}

/* Inline SVG icons - sized like the font icons they replace (tracks font-size via 1em) */
.icon-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.125em;
    color: var(--icon-teal);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html {
    scroll-padding-top: 100px;
    /* Accounts for fixed header */
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
    overflow-x: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

ul {
    list-style: none;
}

/* Preserve original container behavior */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1520px;
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1720px;
    }
}
