/* DISPATCH STREETWEAR */
/* ==========================================================================
   01. Basinställningar, färger och universell nollställning.
   ========================================================================== */

:root {
    --black: #1d1d1d;
    --white: #ffffff;
    --red: #ff0000;
    --gray-dark: #757575;
    --gray-medium: #cccccc;
    --gray-light: #eeeeee;
    --accent: #333333;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    padding-top: 120px;
    background-color: var(--black);
    color: var(--white);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   02. Logotyp, språkval och din nya brödsmule-navigering.
   ========================================================================== */
header {
    /* Gör headern fast högst upp */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 10000; /* Se till att den ligger över dropdowns */
    background-color: var(--black);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Samma transition som resten av sajten */
}

/* Denna klass läggs till via JS när man skrollar ner */
header.nav-hidden {
    transform: translateY(-150%);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1; /* Tajtare avstånd mellan raderna */
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 4px; /* Litet mellanrum till undertiteln */
}

.logo-sub {
    font-size: 0.75rem; /* Samma storlek som Products/About */
    letter-spacing: 7px; /* Något mer luftig för teknisk känsla */
    font-weight: 500;
    color: var(--red); /* En subtil grå färg för kontrast */
    text-transform: uppercase;
    transition: var(--transition);
}

.logo-group:hover .logo-sub {
    color: var(--white);
}

/* --- 1. REGION SELECTOR (DESKTOP) --- */
.region-selector {
    position: relative;
    display: flex;
    flex-direction: row; /* Säkerställer horisontell rad */
    gap: 8px;
    align-items: center;
}

/* Behållaren för knapparna på desktop */
.region-dropdown {
    display: flex;
    flex-direction: row; /* Rad-layout som standard */
    gap: 10px;
}

/* Denna ger de vita rutorna på desktop */
.region-btn {
    background: transparent !important;
    border: 1px solid var(--white) !important;
    color: var(--white) !important;
    padding: 6px 12px !important;
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
    min-width: 45px;
    text-align: center;
}

.region-btn:hover  {
    background-color: var(--white) !important;
    color: var(--black) !important;
}

.region-btn.active {
    background-color: transparent !important;
        color: var(--red) !important;
    
}

.region-active-btn {
    display: none; /* Döljs på desktop */
}

/* --- 2. REGION SELECTOR (MOBILE) --- */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    .region-active-btn {
        display: block;
        background: transparent;
        border: 1px solid var(--white);
        color: var(--white);
        padding: 6px 12px;
        font-size: 0.7rem;
        min-width: 45px;
        box-sizing: border-box;
    }

    .region-dropdown {
        display: none; /* Döljs tills .show läggs till av JS */
        position: absolute;
        top: 100%;
        right: 0px; 
        background-color: var(--black);
        border: 1px solid var(--white);
        border-top: none;
        z-index: 9999;
        flex-direction: column; /* Staplas vertikalt i mobilen */
        width: 100%; 
        box-sizing: border-box;
    }

    .region-dropdown.show {
        display: flex !important;
    }

    /* ALLA regler som tar bort ramar MÅSTE ligga här inne */
    .region-dropdown .region-btn {
        border: none !important;
        border-bottom: 1px solid var(--accent) !important;
        padding: 12px 0 !important;
        width: 100%;
        text-align: center;
        background: transparent;
        color: var(--white) !important;
        font-size: 0.7rem;
        text-transform: uppercase;
        cursor: pointer;
        min-width: unset; /* Låter knappen ta hela bredden i mobilen */
    }

    .region-dropdown .region-btn.active {
        background-color: transparent !important;
        color: var(--red) !important;
    }
}
/* --- HEADER NAVIGATION UPDATES --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px; /* Mellanrum mellan länkarna och regionväljaren */
}

.nav-links {
    display: flex;
    gap: 25px; /* Mellanrum mellan Products och About */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--gray-medium);
}

/* Responsiv meny för mobilen */
@media (max-width: 768px) {
    .nav-right {
        gap: 20px;
    }
    .nav-links {
        display: none; /* Här kan vi senare lägga till en hamburgarmeny om du vill */
    }
}
/* --- HERO / ABOUT SECTION --- */
.hero {
    padding: 100px 0px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.4;
    color: var(--white);
}
@media (max-width: 768px) {
    .hero {
        /* Mobil: 100px topp, 20px sidmarginaler (vänster & höger) */
        padding: 100px 40px 60px 40px; 
    }

    .hero h1 {
        font-size: 1.8rem; /* Anpassat för mobilskärm */
        line-height: 1.2;
        margin-bottom: 20px;
        color: var(--white);
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%; /* Låter texten flöda fritt mellan dina 20px marginaler */
    }
}
.text-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--white);
    padding-bottom: 5px;
}

/* --- PRODUCT GRID (PLP) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 100px;
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

/* --- 1. BEHÅLLAREN (VIKTIGAST) --- */
.image-wrapper {
    position: relative;
    display: block; /* Tvingar behållaren att ta plats */
    width: 100%;
    min-height: 300px; /* Tillfällig fix: Ger den en fysisk höjd på desktop */
    aspect-ratio: 1 / 1; 
    background-color: #1a1a1a; 
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
    opacity: 0; /* Vi startar på 0 och tvingar fram primary-img */
    transition: opacity 0.4s ease;
}

/* Tvinga fram synlighet för rätt bilder */
.image-wrapper .primary-img {
    opacity: 1;
    z-index: 1;
}

.image-wrapper .secondary-img {
    opacity: 0;
    z-index: 2;
}

/* Hover-effekt */
.image-wrapper:hover .primary-img {
    opacity: 0;
}

.image-wrapper:hover .secondary-img {
    opacity: 1;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* Vid hover på hela produkten */
.product-item:hover .primary-img {
    opacity: 0; /* Gömmer huvudbilden */
}

.product-item:hover .secondary-img {
    opacity: 1; /* Visar motivbilden */
}

.product-item:hover .image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.item-info h3 {
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--gray-medium);
}

/* --- PRODUCT DETAIL PAGE (PDP) --- */
.pdp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 40px;
}

.product-visual img {
    width: 100%;
    filter: grayscale(0%); /* Alltid färg på produktsidan */
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.selection-area {
    margin: 30px 0;
    font-size: 0.9rem;
    font-weight: bold; 
    color: var(--white);
}
.trustpilot-widget-container {
    margin: 10px 0 20px 0; /* Ger lagom luft under priset och över texten */
    min-height: 24px; /* Förhindrar att layouten hoppar medan widgeten laddas */
    display: flex;
    justify-content: flex-start; /* Håller stjärnorna till vänster i linje med texten */
    font-size: 0.9rem;
    font-weight: bold; 
    color: var(--red);
    text-decoration: none;
}
.trustpilot-widget-container a{
    font-size: 0.9rem;
    font-weight: bold; 
    color: var(--white);
    text-decoration: none;
}
.trustpilot-widget-container span{
    font-size: 0.7rem;
    font-weight: normal; 
    color: var(--gray-medium);
}
    
.size-picker {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--white);
    padding: 15px;
    margin-top: 10px;
    cursor: pointer;
}

.buy-btn {
    display: block;
    width: 100%;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    padding: 20px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: var(--transition);
}

.buy-btn:hover {
    background-color: var(--gray-light);
}

/* --- PDP GALLERY LOOK & FEEL --- */

.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Luft mellan huvudbild och thumbnails */
    width: 100%;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--gray-dark); /* Matchar sajtens mörka tema */
    overflow: hidden;
    border: 1px solid var(--gray-dark);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out; /* Mjuk växling */
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 bilder i bredd */
    gap: 12px;
}

.thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    background-color: var(--gray-dark);
    border: 1px solid transparent; /* Osynlig ram som standard för att undvika "hopp" */
    transition: all var(--transition);
    opacity: 0.5; /* Tonas ner för att framhäva huvudbilden */
}

.thumb:hover {
    opacity: 0.8;
}

.thumb.active {
    opacity: 1;
    border-color: var(--white); /* Vit ram markerar den valda bilden */
}

/* Mobil-anpassning */
@media (max-width: 768px) {
    .thumbnail-grid {
        gap: 8px; /* Lite tajtare på mobilen för att spara plats */
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 40px 30px;
    border-top: 1px solid var(--gray-dark);
    font-size: 0.75rem; /* Mindre, teknisk textstorlek */
    letter-spacing: 0.05rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left p {
    margin: 0;
    text-transform: uppercase;
    line-height: 210%;
}

.footer-right .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.footer-right a {
    text-decoration: none; /* Inga understrykningar */
    color: var(--white);
    transition: opacity var(--transition);
}

.footer-right a:hover {
    opacity: 0.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.65rem;
    color: var(--gray-medium);
}

/* Mobil-anpassning */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }
    
    .footer-right .footer-nav {
        text-align: left;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .product-grid, .pdp-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
/* --- ABOUT PAGE SPECIFIC --- */
.manifesto {
    padding: 100px 0;
    border-bottom: 1px solid var(--accent);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    margin-top: 50px;
}

.manifesto-text p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 30px;
    color: var(--white);
}

.manifesto-stats {
    border-left: 1px solid var(--accent);
    padding-left: 40px;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item .label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gray-medium);
    margin-bottom: 5px;
}

.stat-item .value {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 100px 0;
}

.value-card h2 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--gray-medium);
}

.value-card p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .manifesto-grid, .values-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .manifesto-stats {
        border-left: none;
        border-top: 1px solid var(--accent);
        padding-left: 0;
        padding-top: 40px;
    }
}
/* --- ABOUT GALLERY SECTION --- */
.about-gallery {
    padding: 60px 0;
    border-bottom: 1px solid var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tre bilder på rad som i bilden */
    gap: 20px;
}

.gallery-item {
    background-color: var(--gray-dark);
    aspect-ratio: 1 / 1; /* Gör bilderna kvadratiska för en ren grid */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* Här kan du välja om du vill ha färg eller grayscale som standard */
}
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--white); /* Gör snedstrecket och övrig text vit */
    text-transform: uppercase;
}

/* Specifik styling för länken "Collection" */
.breadcrumb a {
    color: var(--white) !important; /* Tvingar vit färg och tar bort lila */
    font-weight: bold;         /* Gör texten fetstilt */
    text-decoration: none;     /* Tar bort understrykningen */
}

/* Säkerställer att den förblir vit även efter besök */
.breadcrumb a:visited {
    color: var(--white) !important;
}

/* Hover-effekt för användarvänlighet */
.breadcrumb a:hover {
    opacity: 0.7;
}
CSS
/* --- SPRÅKSTYRNING FÖR LISTORNA --- */

html:lang(sv) .lang-sv-content { 
    display: block; 
}
html:lang(sv) .lang-en-content { 
    display: none; 
}
html:lang(en) .lang-en-content { 
    display: block; 
}
html:lang(en) .lang-sv-content { 
    display: none; 
}

/* Byt text i summary baserat på språk */
.technical-specs summary::before { 
    content: attr(data-en); 
    font-size: 0.9rem; 
    color: var(--white);
}

html:lang(sv) .technical-specs summary::before { 
    content: attr(data-sv); 
}

/* --- DESIGN & IKON --- */

.technical-specs {
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
    width: 100%;
    margin-top: 20px;
}

.technical-specs summary {
    list-style: none;
    padding: 20px 0;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* FIXAR DUBLETTEN: Döljer texten som ligger i HTML-taggen */
    font-size: 0; 
    color: transparent;
}

.technical-specs summary::-webkit-details-marker { display: none; }

/* Plustecknet (+) till höger */
.technical-specs summary::after {
    content: '\002B'; 
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--white);
    transition: transform var(--transition);
}

/* Rotera pluset till ett kryss (x) när den öppnas */
.technical-specs[open] summary::after {
    transform: rotate(45deg);
}

/* --- MJUK FADE-IN ANIMATION --- */

@keyframes specsFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Triggar animationen när details öppnas */
.technical-specs[open] .specs-content {
    animation: specsFadeIn 0.4s ease-out;
}

.specs-content {
    padding-bottom: 25px;
    color: var(--gray-medium);
    font-size: 0.85rem;
    line-height: 1.8;
}

.specs-content ul { 
    list-style: none; 
    margin: 0;
    padding: 0;
}

/* --- MJUK FADE-IN ANIMATION --- */

@keyframes specsFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.technical-specs[open] .specs-content {
    animation: specsFadeIn 0.4s ease-out; /* Skapar den mjuka övergången */
}

.specs-content {
    padding-bottom: 25px;
    color: var(--gray-medium);
    font-size: 0.85rem;
    line-height: 1.8;
}

.specs-content ul { list-style: none; }

/* Responsivitet för mobilen */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Stapla bilderna i mobilen */
    }
}