/* =============================================
   MOTOFORGE - Modern Moto E-Commerce Site
   Den här filen styr webbplatsens utseende: färger,
   layout, knappar, rutnät, kort och responsiv design.
   ============================================= */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ff6b35;
    --accent-color: #f7931e;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* =============================================
   HJÄLPKLASSER
   Dessa klasser används flera gånger för att ge samma
   spacing, maxbredd och centreringsmönster över sidorna.
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

/* =============================================
   KNAPPAR
   Här definieras primära och sekundära knappar för
   handla, logga in och navigera mellan sidorna.
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #b9b9b4;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.btn:focus-visible,
.btn-add-cart:focus-visible,
.btn-details:focus-visible,
.btn-remove:focus-visible,
.configurator-cart-button:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 3px;
}

.btn:disabled,
.btn-add-cart:disabled,
.configurator-cart-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.btn-primary {
    background-color: #fff;
    color: #171717;
}

.btn-primary:hover,
.btn-secondary:hover {
    border-color: #171717;
    background-color: #171717;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #171717;
}

/* =============================================
   NAVIGATION
   Detta stylar huvudmenyn som visas högst upp på sidan.
   Det gör att länkarna och kundvagnen ser konsekventa ut.
   ============================================= */

.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo .tagline {
    font-size: 12px;
    color: var(--accent-color);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-link:hover {
    background-color: #fff;
    color: #171717;
}

.locale-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.locale-controls select {
    min-height: 38px;
    padding: 6px 24px 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.locale-controls select:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* =============================================
   HERO-SEKTION
   Detta är den stora startsidan med video, text och CTA-knapp.
   Det skapar första intrycket och lockar kunden att handla.
   ============================================= */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.08);
    filter: saturate(1.3) contrast(1.18) brightness(0.72) blur(0.8px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.45) 0%,
        rgba(15, 15, 15, 0.38) 35%,
        rgba(15, 15, 15, 0.62) 100%
    );
    backdrop-filter: blur(1px);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ddd;
}

.hero .btn {
    display: inline-block;
}

/* =============================================
   FÖRDELAR / DETALJER
   Här stylas korten som visar företagets styrkor och USP.
   ============================================= */

.features {
    background-color: var(--light-bg);
    padding: 80px 20px;
}

.features h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* =============================================
   PRODUKTER
   Detta styr korten för produkter, deras priser, färgval och knappar.
   Varje kort får samma look men kan förändras dynamiskt via JS.
   ============================================= */

.featured-products {
    padding: 80px 20px;
    background-color: var(--white);
}

.featured-products h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 800;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    overflow: hidden;
}

.product-model {
    font-size: initial;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-specs {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.product-specs span {
    display: inline-block;
    margin-right: 10px;
}

.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-swatch:hover {
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    min-height: 42px;
    background-color: #fff;
    color: #171717;
    padding: 9px 14px;
    border: 1px solid #b9b9b4;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 14px;
}

.btn-add-cart:hover,
.btn-details:hover,
.btn-remove:hover {
    border-color: #171717;
    background-color: #171717;
    color: #fff;
}

.btn-details {
    flex: 1;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #171717;
    padding: 9px 14px;
    border: 1px solid #b9b9b4;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}

/* =============================================
   PRODUKTANPASSARE
   Här stylas formuläret där användaren kan välja färg, finish
   och anpassningar innan produkten läggs i varukorgen.
   ============================================= */

.customizer-section {
    min-height: 700px;
    padding: 45px 20px 80px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 55%, #fff3ed 100%);
}

.customizer-back {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.customizer-back:hover {
    color: var(--secondary-color);
}

.customizer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 45px;
    align-items: stretch;
}

.customizer-preview-panel,
.customizer-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 35px;
    box-shadow: var(--shadow);
}

.customizer-preview-panel {
    min-height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #ffffff 0%, #eeeeee 100%);
}

.customizer-eyebrow {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.customizer-preview {
    display: flex;
    width: 100%;
    height: clamp(300px, 42vw, 470px);
    min-height: 300px;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    background: transparent;
    transition: var(--transition);
}

.model-fallback {
    padding: 20px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.customizer-summary {
    min-height: 24px;
    color: #666;
    font-size: 14px;
}

.customizer-panel h1 {
    margin: 12px 0 10px;
    color: var(--primary-color);
    font-size: 34px;
    line-height: 1.15;
}

.customizer-intro {
    color: #666;
    margin-bottom: 30px;
}

.customizer-panel label {
    display: block;
    margin: 18px 0 7px;
    color: var(--primary-color);
    font-weight: 700;
}

.customizer-panel label span {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.customizer-panel select,
.customizer-panel input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    color: var(--text-color);
    font: inherit;
}

.customizer-panel select:focus,
.customizer-panel input:focus {
    outline: 2px solid rgba(255, 107, 53, 0.25);
    border-color: var(--secondary-color);
}

.customizer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.customizer-total strong {
    color: var(--secondary-color);
    font-size: 28px;
}

/* =============================================
   NYHETSBREV
   Den här delen gör att besökaren kan anmäla sig till erbjudanden.
   ============================================= */

.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 12px 30px;
}

/* =============================================
   SIDFOT
   Detta är botten på sidan med kontakt, snabblänkar och copyright.
   ============================================= */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-section p {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-header p {
    font-size: 18px;
    color: #ddd;
}

/* =============================================
   FILTERS SECTION
   ============================================= */

.filters-section {
    background-color: var(--light-bg);
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* =============================================
   PRODUCTS PAGE
   ============================================= */

.products-section {
    padding: 60px 20px;
}

/* =============================================
   CART PAGE
   ============================================= */

.cart-section {
    padding: 60px 20px;
    min-height: 500px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.cart-items {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
}

.cart-item {
    background-color: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-specs {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-input {
    width: 50px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}

.btn-remove {
    min-height: 38px;
    background-color: #fff;
    color: #171717;
    padding: 6px 14px;
    border: 1px solid #b9b9b4;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.empty-cart {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.empty-cart a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    padding-top: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary-color);
}

.cart-summary .btn {
    width: 100%;
    margin-top: 15px;
}

.checkout-note {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-section {
    padding: 60px 20px;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 800;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
}

.team-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.team-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
}

.team-section p {
    color: #666;
    margin-bottom: 40px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-section {
    padding: 60px 20px;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 800;
}

.info-block {
    margin-bottom: 40px;
}

.info-block h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.info-block p {
    color: #555;
    line-height: 1.8;
}

.info-block a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-block a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.2);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #c8e6c9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background-color: #ffcdd2;
    color: #c62828;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .locale-controls {
        justify-content: center;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 500px;
    }

    .features h2,
    .featured-products h2 {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group select {
        width: 100%;
    }

    .customizer-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .customizer-preview-panel {
        min-height: 360px;
    }

    .customizer-preview-panel,
    .customizer-panel {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero {
        padding: 60px 20px;
    }

    .features,
    .featured-products,
    .about-section,
    .contact-section {
        padding: 40px 20px;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }
}


/* Fullskärmslayout för produktkonfiguratorn */
.configurator-page {
    background: #f5f5f3;
    color: #171717;
    overflow-x: hidden;
}

.configurator-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.configurator-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 34px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #dededb;
    position: relative;
    z-index: 2;
}

.configurator-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #cfcfca;
    border-radius: 50%;
    color: #171717;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
}

.configurator-close:hover {
    background: #171717;
    color: #fff;
}

.configurator-brand {
    margin-right: auto;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.configurator-brand span {
    display: block;
    margin-top: 3px;
    color: #777872;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.configurator-cart-button {
    border: 1px solid #b9b9b4;
    border-radius: 999px;
    background: #fff;
    padding: 12px 20px;
    color: #171717;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.configurator-cart-button span {
    margin-left: 7px;
    color: #666761;
    font-weight: 500;
}

.configurator-cart-button:hover {
    background: #171717;
    color: #fff;
}

.configurator-cart-button:hover span {
    color: #d8d8d2;
}

.configurator-stage {
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 34px 12px;
    background: radial-gradient(circle at 50% 35%, #fff 0%, #f1f1ef 68%, #e8e8e4 100%);
}

.configurator-product-meta {
    position: absolute;
    top: 25px;
    left: 34px;
}

.configurator-product-meta h1 {
    margin-top: 7px;
    font-size: clamp(18px, 2vw, 27px);
    font-weight: 700;
}

.configurator-eyebrow {
    color: #777872;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.customizer-preview {
    width: min(72vw, 720px);
    height: min(53vh, 520px);
    min-height: 280px;
    background: transparent;
}

.model-fallback {
    color: #767770;
    font-size: 14px;
}

.customizer-summary {
    min-height: 22px;
    margin: 0;
    color: #696a65;
    font-size: 13px;
}

.configurator-controls {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dededb;
    padding: 0 34px 28px;
}

.configurator-stepbar {
    width: min(680px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 14px;
}

.step-title {
    font-size: 14px;
    font-weight: 500;
}

.step-title strong {
    margin-left: 4px;
    color: #777872;
    font-size: 11px;
    font-weight: 500;
}

.step-arrow {
    width: 38px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #171717;
    cursor: pointer;
    font-size: 23px;
}

.step-arrow:disabled {
    color: #c8c8c3;
    cursor: default;
}

.configurator-form {
    width: min(680px, 100%);
    margin: 0 auto;
}

.customizer-step {
    display: none;
    align-items: center;
    gap: 16px;
}

.customizer-step.is-active {
    display: flex;
}

.customizer-step label {
    flex: 0 0 auto;
    color: #252622;
    font-size: 13px;
    font-weight: 700;
}

.customizer-step select,
.customizer-step input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #cfcfca;
    border-radius: 4px;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 13px;
}

.customizer-step select:focus,
.customizer-step input:focus {
    outline: 2px solid rgba(23, 23, 23, 0.12);
    border-color: #171717;
}

.customizer-step label span {
    color: #777872;
    font-size: 11px;
    font-weight: 400;
}

.color-picker {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.color-choice {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(23, 23, 23, 0.24);
    border-radius: 50%;
    background: var(--swatch-color);
    cursor: pointer;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.color-choice:hover {
    transform: scale(1.06);
}

.color-choice.is-selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #171717;
}

.color-choice:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 5px;
}

.color-choice:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

.accessory-step-content {
    display: grid;
    width: 100%;
    gap: 14px;
}

.accessory-toggle {
    position: relative;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    cursor: pointer;
}

.accessory-toggle input {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 44px;
    height: 26px;
    padding: 0;
    border: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.accessory-toggle-track {
    position: relative;
    width: 44px;
    height: 26px;
    flex: 0 0 44px;
    border: 1px solid #b9b9b4;
    border-radius: 999px;
    background: #e8e8e4;
    transition: background-color 0.18s ease;
}

.accessory-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease;
}

.accessory-toggle input:checked + .accessory-toggle-track {
    border-color: #171717;
    background: #171717;
}

.accessory-toggle input:checked + .accessory-toggle-track::after {
    transform: translateX(18px);
}

.accessory-toggle input:focus-visible + .accessory-toggle-track {
    outline: 2px solid #171717;
    outline-offset: 3px;
}

.configurator-topbar .locale-controls select {
    background: #fff;
    color: #171717;
    border-color: #cfcfca;
}

.configurator-finish-title {
    font-size: 14px;
    font-weight: 700;
}

.customizer-step p {
    margin-left: auto;
    color: #696a65;
    font-size: 13px;
}

@media (max-width: 640px) {
    .configurator-topbar {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        min-height: 68px;
        padding: 14px 16px;
        gap: 8px;
    }

    .configurator-brand {
        font-size: 13px;
    }

    .configurator-topbar .locale-controls {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
    }

    .configurator-topbar .locale-controls select {
        min-height: 32px;
        font-size: 11px;
    }

    .configurator-cart-button {
        padding: 10px 13px;
        font-size: 11px;
    }

    .configurator-cart-button span {
        display: block;
        margin: 2px 0 0;
    }

    .configurator-stage {
        min-height: 58vh;
        padding: 72px 16px 10px;
    }

    .configurator-product-meta {
        top: 18px;
        left: 16px;
    }

    .customizer-preview {
        width: 100%;
        height: 43vh;
        min-height: 240px;
    }

    .configurator-controls {
        padding: 0 16px 20px;
    }

    .customizer-step.is-active {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .customizer-step p {
        margin: 0;
    }
}

.configurator-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: linear-gradient(rgba(44, 45, 40, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 45, 40, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.stage-chip,
.stage-specs {
    position: absolute;
    z-index: 1;
}

.stage-chip {
    top: 31px;
    right: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d5d5d0;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.65);
    color: #676862;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.stage-chip-live span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #75a46b;
    box-shadow: 0 0 0 4px rgba(117, 164, 107, 0.13);
}

.stage-specs {
    right: 34px;
    bottom: 42px;
    display: grid;
    gap: 9px;
    min-width: 112px;
}

.stage-specs div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid #bebeb8;
    padding-left: 9px;
}

.stage-specs span {
    color: #878882;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stage-specs strong {
    color: #32332f;
    font-size: 12px;
    font-weight: 700;
}

.step-progress {
    width: min(680px, 100%);
    height: 3px;
    display: flex;
    gap: 5px;
    margin: 0 auto 19px;
}

.step-progress span {
    flex: 1;
    border-radius: 99px;
    background: #e1e1dc;
    transition: background 0.2s ease;
}

.step-progress span.is-active {
    background: #252622;
}

@media (max-width: 640px) {
    .stage-chip {
        top: 20px;
        right: 16px;
    }

    .stage-specs {
        right: 16px;
        bottom: 28px;
    }

}
