/*
Theme Name: Säkert CarCare
Theme URI: https://sakertcarcare.se
Description: Premium WooCommerce-tema för bilvårdsprodukter. Mörk header med guld-accenter på ljus bakgrund. Helt responsivt med fokus på mobilupplevelse. Barntema till Storefront.
Author: Säkert CarCare
Author URI: https://sakertcarcare.se
Template: storefront
Version: 2.3.0
Text Domain: sakert-carcare
*/

/* =========================================================
   1. DESIGNTOKENS
   ========================================================= */
:root {
    /* Färger */
    --scc-black: #0A0A0A;
    --scc-near-black: #141414;
    --scc-charcoal: #1F1F1F;
    --scc-ink: #1A1A1A;
    --scc-text: #2A2A2A;
    --scc-muted: #6E6E6E;
    --scc-muted-light: #9A9A9A;
    --scc-line: #E8E5E0;
    --scc-line-dark: #2A2A2A;
    --scc-soft: #F8F6F2;
    --scc-cream: #FAF8F4;
    --scc-white: #FFFFFF;

    /* Accent (primary brand color) - behåller variabelnamnet --scc-gold för intern referens */
    --scc-gold: #D24E15;
    --scc-gold-bright: #E8632E;
    --scc-gold-deep: #A83B0E;

    /* Layout */
    --scc-radius-sm: 4px;
    --scc-radius: 8px;
    --scc-radius-lg: 14px;
    --scc-container: 1280px;
    --scc-header-h: 80px;
    --scc-topbar-h: 38px;

    /* Typsnitt - Sora för rubriker (modern geometrisk), Inter för text */
    --scc-serif: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --scc-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Skuggor */
    --scc-shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --scc-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --scc-shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --scc-shadow-gold: 0 8px 24px rgba(210,78,21,0.18);
}

/* =========================================================
   1b. LAYOUT RESET + STICKY FOOTER + GAP FIX
   ========================================================= */
/* Sticky footer via flex column */
html, body { min-height: 100%; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > .scc-topbar,
body > .site-header { flex: 0 0 auto; }
body > #page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}
body > #page > #scc-main { flex: 1 0 auto; display: block; }
body > #page > .site-footer { flex-shrink: 0; margin-top: auto; }

/* KRITISKT: ID-baserad selektor som beats allt Storefront kan ha
   eftersom #scc-main har specificitet (1,0,1) - en ID + en class */
html body #scc-main,
html body #scc-main.site-content,
html body #page,
html body #page.site,
html body #scc-main > main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
}

/* Sticky header måste hamna under admin-baren när användaren är inloggad */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
    body.admin-bar .site-header { top: 0; }
}

/* =========================================================
   2. RESET OCH GLOBALT
   ========================================================= */
html { scroll-behavior: smooth; }

body,
body.woocommerce,
.site {
    background-color: var(--scc-white);
    color: var(--scc-text);
    font-family: var(--scc-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

a {
    color: var(--scc-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--scc-gold-deep); }

h1, h2, h3, h4, .scc-serif {
    font-family: var(--scc-serif);
    font-weight: 600;
    color: var(--scc-ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--scc-gold); color: var(--scc-black); }

/* Container */
.scc-container {
    max-width: var(--scc-container);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Eyebrow text */
.scc-eyebrow {
    display: inline-block;
    font-family: var(--scc-sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--scc-gold);
    margin-bottom: 18px;
}

.scc-eyebrow-dark { color: var(--scc-gold); }
.scc-eyebrow-light { color: var(--scc-gold-bright); }

/* Section heading block */
.scc-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.scc-section-head h2 { margin-bottom: 12px; }
.scc-section-sub {
    color: var(--scc-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Sektioner */
.scc-section { padding: 96px 0; position: relative; }
.scc-section-tight { padding: 64px 0; }
.scc-section-soft { background: var(--scc-soft); }
.scc-section-dark { background: var(--scc-black); color: var(--scc-white); }
.scc-section-dark h1,
.scc-section-dark h2,
.scc-section-dark h3,
.scc-section-dark h4 { color: var(--scc-white); }
.scc-section-dark p { color: rgba(255,255,255,0.78); }

/* =========================================================
   3. KNAPPAR
   ========================================================= */
.scc-btn,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--scc-black);
    color: var(--scc-white) !important;
    font-family: var(--scc-sans);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.04em;
    padding: 15px 32px;
    border: 1px solid var(--scc-black);
    border-radius: var(--scc-radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1;
    box-shadow: none;
    text-shadow: none;
    text-transform: uppercase;
}

.scc-btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--scc-gold);
    border-color: var(--scc-gold);
    color: var(--scc-black) !important;
    transform: translateY(-1px);
}

/* Gold button (primary CTA) */
.scc-btn-gold {
    background: var(--scc-gold) !important;
    border-color: var(--scc-gold) !important;
    color: var(--scc-black) !important;
}
.scc-btn-gold:hover {
    background: var(--scc-black) !important;
    border-color: var(--scc-gold) !important;
    color: var(--scc-gold) !important;
}

/* Outline button */
.scc-btn-outline {
    background: transparent !important;
    color: var(--scc-black) !important;
    border-color: var(--scc-black) !important;
}
.scc-btn-outline:hover {
    background: var(--scc-black) !important;
    color: var(--scc-white) !important;
}

.scc-btn-outline-light {
    background: transparent !important;
    color: var(--scc-white) !important;
    border-color: rgba(255,255,255,0.4) !important;
}
.scc-btn-outline-light:hover {
    background: var(--scc-gold) !important;
    border-color: var(--scc-gold) !important;
    color: var(--scc-black) !important;
}

/* Storefront cart count badge fix */
.site-header-cart .count {
    background: var(--scc-gold) !important;
    color: var(--scc-black) !important;
}

/* =========================================================
   4. TOPBAR
   ========================================================= */
.scc-topbar {
    background: var(--scc-near-black);
    color: rgba(255,255,255,0.75);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scc-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--scc-topbar-h);
    gap: 24px;
}
.scc-topbar a {
    color: rgba(255,255,255,0.75);
    transition: color 0.2s ease;
}
.scc-topbar a:hover { color: var(--scc-gold); }
.scc-topbar-left,
.scc-topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}
.scc-topbar-left span,
.scc-topbar-right span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.scc-topbar svg {
    width: 13px;
    height: 13px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .scc-topbar-right { display: none; }
    .scc-topbar-inner { justify-content: center; }
    .scc-topbar-left { gap: 16px; font-size: 11.5px; }
}

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header,
header.site-header {
    background: var(--scc-black) !important;
    border-bottom: 1px solid var(--scc-line-dark);
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(0,0,0,0.18);
}

.scc-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    height: var(--scc-header-h);
    max-width: var(--scc-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logga */
.scc-logo {
    display: inline-flex;
    align-items: center;
    z-index: 2;
}
.scc-logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.2s ease;
}
.scc-logo:hover img {
    opacity: 0.85;
}

/* Huvudmeny (desktop) */
.scc-main-nav {
    display: flex;
    justify-content: center;
}
.scc-main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.scc-main-nav a {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}
.scc-main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--scc-gold);
    transition: width 0.25s ease;
}
.scc-main-nav a:hover { color: var(--scc-gold); }
.scc-main-nav a:hover::after { width: 24px; }
.scc-main-nav .current-menu-item a,
.scc-main-nav .current_page_item a { color: var(--scc-gold); }
.scc-main-nav .current-menu-item a::after,
.scc-main-nav .current_page_item a::after { width: 24px; }

/* Desktop dropdown / mega menu */
.scc-main-nav li { position: relative; }
.scc-main-nav > ul > li.menu-item-has-children > a::before { content: none; }
.scc-main-nav > ul > li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.scc-main-nav > ul > li.menu-item-has-children > a > span.scc-chevron,
.scc-main-nav > ul > li.menu-item-has-children > a::after {
    /* Chevron after text */
}
.scc-main-nav > ul > li.menu-item-has-children > a {
    position: relative;
}
.scc-main-nav > ul > li.menu-item-has-children > a > .scc-nav-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
}
.scc-main-nav > ul > li.menu-item-has-children:hover > a > .scc-nav-arrow {
    opacity: 1;
    transform: translateY(1px) rotate(225deg);
}

/* Standard dropdown (när det inte är mega menu) */
.scc-main-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: var(--scc-near-black);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--scc-radius);
    padding: 10px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    list-style: none;
    margin: 0;
    z-index: 50;
    flex-direction: column;
    display: flex !important;
    gap: 0 !important;
}
/* Hover-brygga för alla dropdowns och mega-panelen för att överbrygga tomrummet */
.scc-main-nav > ul > li > ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -35px; /* Säkrar att tomrummet hela vägen upp till länken täcks */
    left: 0;
    right: 0;
    height: 35px;
}
.scc-main-nav > ul > li:hover > ul.sub-menu,
.scc-main-nav > ul > li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.scc-main-nav ul.sub-menu li {
    margin: 0;
    width: 100%;
}
.scc-main-nav ul.sub-menu a {
    display: block;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
.scc-main-nav ul.sub-menu a::after { display: none; }
.scc-main-nav ul.sub-menu a:hover {
    background: rgba(210,78,21,0.1);
    color: var(--scc-gold);
}

/* MEGA MENU - aktiveras när dropdown innehåller en nästlad ul (kategorier med underkategorier) */
/* Förälder-li blir static så mega-panelen positioneras mot .site-header (= centrerad i fönstret, ingen overflow) */
.scc-main-nav > ul > li.menu-item-has-children:has(> ul > li > ul) {
    position: static;
}
.scc-main-nav > ul > li:has(> ul > li > ul) > ul {
    width: min(1180px, calc(100vw - 48px));
    min-width: 0;
    max-width: calc(100vw - 48px);
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    padding: 34px 40px !important;
    gap: 8px 44px !important;
    flex-direction: row !important;
    text-align: left;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(8px);
}
.scc-main-nav > ul > li:has(> ul > li > ul):hover > ul,
.scc-main-nav > ul > li:has(> ul > li > ul):focus-within > ul {
    transform: translateX(-50%) translateY(0);
}
.scc-main-nav > ul > li:has(> ul > li > ul) > ul > li {
    margin: 0;
    min-width: 0;
}
.scc-main-nav > ul > li:has(> ul > li > ul) > ul > li > a {
    display: block;
    padding: 0 0 12px 0 !important;
    color: var(--scc-gold) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 10px;
    white-space: normal !important;
    line-height: 1.3;
}
.scc-main-nav > ul > li:has(> ul > li > ul) > ul > li > a:hover {
    background: transparent !important;
    color: var(--scc-gold-bright) !important;
}
/* Underkategorierna i mega menyn - statisk lista, inte dropdown */
/* Gäller ALLA nästlade sub-menus inuti mega-panelen (oavsett djup),
   så ingen absolut-positionerad ul kan "läcka" ut nedanför panelen. */
/* Underkategorierna i mega menyn - statisk lista, inte dropdown */
/* Gäller ALLA nästlade sub-menus inuti mega-panelen (oavsett djup),
   så ingen absolut-positionerad ul kan "läcka" ut nedanför panelen. */
.scc-main-nav > ul > li:has(> ul > li > ul) > ul ul.sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: inherit !important;     /* FIXED: Inherits from parent */
    pointer-events: inherit !important; /* FIXED: Inherits from parent */
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.scc-main-nav > ul > li:has(> ul > li > ul) > ul ul.sub-menu a {
    padding: 5px 0 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.75) !important;
    white-space: normal !important;
    line-height: 1.4;
}
.scc-main-nav > ul > li:has(> ul > li > ul) > ul ul.sub-menu a:hover {
    color: var(--scc-gold) !important;
    background: transparent !important;
}

/* Header actions (search, account, cart) */
.scc-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.scc-header-action,
button.scc-header-action,
.scc-header-actions a.scc-header-action,
.scc-header-actions button.scc-header-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.92) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    border-radius: 50%;
    padding: 0 !important;
    margin: 0;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.scc-header-action:hover,
a.scc-header-action:hover,
.scc-header-actions a.scc-header-action:hover,
.scc-header-actions button.scc-header-action:hover,
button.scc-header-action:hover { color: var(--scc-gold) !important; background: transparent !important; }
.scc-header-action:hover svg,
a.scc-header-action:hover svg,
button.scc-header-action:hover svg { color: var(--scc-gold) !important; }
.scc-header-action svg { width: 20px; height: 20px; }
.scc-header-action svg path,
.scc-header-action svg line,
.scc-header-action svg circle,
.scc-header-action svg polyline,
.scc-header-action svg polygon { stroke: currentColor; }

/* Hamburger-knappen samma sak */
.scc-menu-toggle,
button.scc-menu-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: var(--scc-white) !important;
}

.scc-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--scc-gold);
    color: var(--scc-black);
    border-radius: 50%;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* Hide Storefront's default header bits we don't want */
.site-branding,
.storefront-handheld-footer-bar,
.main-navigation,
.site-header .secondary-navigation,
.site-header .site-search,
.site-header-cart {
    display: none !important;
}

/* =========================================================
   5b. SÖKOVERLAY
   ========================================================= */
.scc-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--scc-black);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
    z-index: 105;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.scc-search-overlay.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.scc-search-form {
    display: flex;
    align-items: center;
    padding: 18px 0;
    gap: 8px;
    max-width: var(--scc-container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.scc-search-form-icon {
    color: var(--scc-gold);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.scc-search-form-icon svg { width: 22px; height: 22px; }
.scc-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--scc-white);
    font-size: 17px;
    font-family: var(--scc-sans);
    padding: 14px 8px;
    outline: none;
    border-bottom: 1px solid transparent;
    -webkit-appearance: none;
    appearance: none;
}
.scc-search-form input[type="search"]::placeholder {
    color: rgba(255,255,255,0.42);
}
.scc-search-form input[type="search"]:focus {
    border-bottom-color: rgba(210,78,21,0.4);
}
.scc-search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.scc-search-form button[type="submit"] {
    background: var(--scc-gold);
    color: var(--scc-white);
    border: none;
    padding: 11px 22px;
    font-family: var(--scc-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--scc-radius-sm);
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.scc-search-form button[type="submit"]:hover { background: var(--scc-gold-deep); }
.scc-search-close,
button.scc-search-close,
.scc-search-form button.scc-search-close {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(255,255,255,0.85) !important;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}
.scc-search-close:hover,
button.scc-search-close:hover,
.scc-search-form button.scc-search-close:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--scc-gold) !important;
}
.scc-search-close svg {
    width: 22px;
    height: 22px;
    fill: none !important;
    color: inherit;
}
.scc-search-close svg line,
.scc-search-close svg path {
    stroke: currentColor !important;
    fill: none !important;
}

@media (max-width: 600px) {
    .scc-search-form { padding: 14px 16px; gap: 4px; }
    .scc-search-form input[type="search"] { font-size: 16px; }
    .scc-search-form button[type="submit"] { padding: 10px 14px; font-size: 12px; }
    .scc-search-form-icon { display: none; }
}

/* Mobile menu trigger */
.scc-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--scc-white);
    cursor: pointer;
    padding: 0;
}
.scc-menu-toggle svg { width: 24px; height: 24px; }

/* =========================================================
   6. MOBIL HEADER + SLIDE-IN MENY
   ========================================================= */
@media (max-width: 980px) {
    .scc-header-inner {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 0 16px;
        height: 68px;
    }
    .scc-main-nav { display: none; }
    .scc-menu-toggle { display: inline-flex; }
    .scc-logo img { height: 38px; }
    .scc-header-actions {
        gap: 4px;
        margin-left: auto;
    }
    .scc-header-action { width: 38px; height: 38px; }
    .scc-header-action svg { width: 19px; height: 19px; }
}

@media (max-width: 480px) {
    .scc-header-action-account { display: none; }
}

/* Backdrop overlay */
.scc-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.scc-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Slide-in panel */
.scc-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--scc-black);
    color: var(--scc-white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.scc-mobile-panel.is-open { transform: translateX(0); }

.scc-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.scc-mobile-head .scc-logo img { height: 34px; }
.scc-mobile-close {
    background: transparent;
    border: none;
    color: var(--scc-white);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.scc-mobile-close svg { width: 22px; height: 22px; }

.scc-mobile-nav {
    padding: 16px 0;
    flex: 1;
}
.scc-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.scc-mobile-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scc-mobile-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--scc-white);
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.scc-mobile-nav a:hover { color: var(--scc-gold); background: rgba(255,255,255,0.04); }
.scc-mobile-nav a::after {
    content: '→';
    color: var(--scc-gold);
    opacity: 0.7;
    font-size: 16px;
}

/* Mobil-submenyer: tappa pilen för att expandera */
.scc-mobile-nav li.menu-item-has-children { position: relative; }
.scc-mobile-nav li.menu-item-has-children > a::after { content: ''; }
.scc-mobile-nav .scc-mobile-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 56px;
    background: transparent;
    border: none;
    color: var(--scc-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-left: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s ease;
}
.scc-mobile-nav .scc-mobile-submenu-toggle:hover { background: rgba(255,255,255,0.05); }
.scc-mobile-nav .scc-mobile-submenu-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
}
.scc-mobile-nav li.is-open > .scc-mobile-submenu-toggle svg { transform: rotate(180deg); }
.scc-mobile-nav li.menu-item-has-children > a {
    padding-right: 70px;
}
.scc-mobile-nav ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.4);
}
.scc-mobile-nav li.is-open > ul.sub-menu { max-height: 800px; }
.scc-mobile-nav ul.sub-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.scc-mobile-nav ul.sub-menu li:last-child { border-bottom: none; }
.scc-mobile-nav ul.sub-menu a {
    padding: 14px 24px 14px 44px;
    font-size: 13.5px;
    text-transform: none;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.78);
    font-weight: 400;
}
.scc-mobile-nav ul.sub-menu a::after { display: none; }

.scc-mobile-foot {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: var(--scc-near-black);
}
.scc-mobile-foot-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 13.5px;
}
.scc-mobile-foot-line svg {
    width: 15px;
    height: 15px;
    color: var(--scc-gold);
    flex-shrink: 0;
}
.scc-mobile-foot a { color: rgba(255,255,255,0.75); }
.scc-mobile-foot a:hover { color: var(--scc-gold); }

/* Body lock when panel open */
body.scc-no-scroll { overflow: hidden; }

/* =========================================================
   7. HERO
   ========================================================= */
.scc-hero {
    position: relative;
    background: var(--scc-black);
    color: var(--scc-white);
    padding: 64px 0 80px;
    overflow: hidden;
}
.scc-hero-has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Mörk overlay - justerad för att vara mörkare */
.scc-hero-has-image::before {
    background:
        linear-gradient(rgba(8,8,8,0.98), rgba(8,8,8,0.99)), /* Ökad från 0.93/0.95 till 0.98/0.99 */
        radial-gradient(circle at 80% 30%, rgba(210,78,21,0.16) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(210,78,21,0.09) 0%, transparent 50%);
}
.scc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(210,78,21,0.12) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(210,78,21,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.scc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    opacity: 0.5;
}
.scc-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.scc-hero h1 {
    color: var(--scc-white);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin-bottom: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.scc-hero h1 em {
    font-style: normal;
    color: var(--scc-gold);
    font-weight: 600;
}
.scc-hero p {
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    color: rgba(255,255,255,0.74);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.scc-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .scc-hero { padding: 48px 0 60px; }
    .scc-hero p { margin-bottom: 24px; }
}

/* =========================================================
   8. USP-BAND
   ========================================================= */
.scc-usp-band {
    background: var(--scc-white);
    border-bottom: 1px solid var(--scc-line);
    padding: 36px 0;
}
.scc-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.scc-usp {
    display: flex;
    align-items: center;
    gap: 14px;
}
.scc-usp-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--scc-soft);
    color: var(--scc-gold-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.scc-usp-icon svg { width: 20px; height: 20px; }
.scc-usp-text { line-height: 1.3; }
.scc-usp-title {
    font-weight: 600;
    color: var(--scc-ink);
    font-size: 14.5px;
    display: block;
}
.scc-usp-sub {
    color: var(--scc-muted);
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .scc-usp-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 480px) {
    .scc-usp-band { padding: 26px 0; }
    .scc-usp { gap: 11px; }
    .scc-usp-icon { width: 36px; height: 36px; }
    .scc-usp-icon svg { width: 18px; height: 18px; }
    .scc-usp-title { font-size: 13.5px; }
    .scc-usp-sub { font-size: 11.5px; }
}

/* =========================================================
   9. KATEGORI-RUTNÄT
   ========================================================= */
.scc-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* 2x2-variant med bredare, rektangulära kort */
.scc-cat-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}
.scc-cat-grid-2x2 .scc-cat-card {
    aspect-ratio: 16 / 9;
}
.scc-cat-card-title {
    color: var(--scc-white) !important;
}
.scc-cat-card {
    position: relative;
    display: block;
    background: var(--scc-soft);
    aspect-ratio: 4 / 3;
    border-radius: var(--scc-radius);
    overflow: hidden;
    color: var(--scc-ink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scc-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}
.scc-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--scc-shadow-lg);
}
.scc-cat-card:hover::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
}
.scc-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.scc-cat-card:hover img { transform: scale(1.05); }
.scc-cat-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    z-index: 2;
    color: var(--scc-white);
}
.scc-cat-card-title {
    font-family: var(--scc-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.2;
}
.scc-cat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--scc-gold-bright);
    margin-top: 4px;
}
.scc-cat-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}
.scc-cat-card:hover .scc-cat-card-link::after { transform: translateX(4px); }

/* Fallback for no image */
.scc-cat-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2A2A2A 0%, #0A0A0A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(210,78,21,0.4);
    font-family: var(--scc-serif);
    font-size: 3rem;
}

@media (max-width: 900px) {
    .scc-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .scc-cat-grid { grid-template-columns: 1fr; gap: 14px; }
    .scc-cat-card { aspect-ratio: 16 / 10; }
}

/* =========================================================
   10. UTVALDA PRODUKTER + WOOCOMMERCE-PRODUKTKORT
   ========================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
/* Neutralisera Storefronts float/clear/bredd som annars lämnar en tom första ruta */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    background: var(--scc-white);
    border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    text-align: left !important;
    position: relative;
    display: flex !important;
    flex-direction: column;
}
.woocommerce ul.products li.product:hover {
    border-color: var(--scc-gold);
    box-shadow: var(--scc-shadow-lg);
    transform: translateY(-4px);
}
.woocommerce ul.products li.product a {
    display: block;
    color: var(--scc-ink);
}
/* Produktbild i en jämn, ljus ruta så alla kort blir lika höga upptill */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > a:first-of-type {
    display: block;
}
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    margin: 0 !important;
    width: 100% !important;
    aspect-ratio: 6 / 7;
    object-fit: cover;
    background: var(--scc-white);
    display: block;
    transition: transform 0.4s ease;
}
.woocommerce ul.products li.product:hover img { transform: scale(1.05); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--scc-serif) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--scc-ink) !important;
    margin: 0 !important;
    padding: 18px 18px 4px !important;
    line-height: 1.35;
}
.woocommerce ul.products li.product .star-rating {
    margin: 0 18px 6px !important;
    font-size: 0.8em !important;
    color: var(--scc-gold) !important;
}
.woocommerce ul.products li.product .price {
    color: var(--scc-ink) !important;
    font-weight: 700 !important;
    font-family: var(--scc-sans) !important;
    font-size: 1.1rem !important;
    padding: 0 18px !important;
    margin: 0 0 16px !important;
    display: block;
    margin-top: auto !important;
}
.woocommerce ul.products li.product .price ins {
    background: transparent !important;
    color: var(--scc-gold-deep) !important;
    font-weight: 700;
}
.woocommerce ul.products li.product .price del {
    color: var(--scc-muted) !important;
    opacity: 0.7;
    margin-right: 6px;
    font-weight: 500;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    width: calc(100% - 36px);
    margin: 0 18px 18px !important;
    padding: 13px 16px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    background: var(--scc-black) !important;
    color: var(--scc-white) !important;
    border: none !important;
    border-radius: var(--scc-radius-sm) !important;
    transition: background 0.2s ease !important;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    background: var(--scc-gold) !important;
    color: var(--scc-white) !important;
}

/* Onsale badge */
.woocommerce span.onsale {
    background: var(--scc-gold) !important;
    color: var(--scc-black) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    border-radius: var(--scc-radius-sm) !important;
    padding: 4px 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 760px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 420px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   11. VARUMÄRKES-BAND
   ========================================================= */
.scc-brand-strip {
    background: var(--scc-soft);
    padding: 60px 0;
    border-top: 1px solid var(--scc-line);
    border-bottom: 1px solid var(--scc-line);
}
.scc-brand-label {
    text-align: center;
    color: var(--scc-muted);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 500;
}
.scc-brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
.scc-brand-item {
    font-family: var(--scc-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--scc-muted);
    letter-spacing: 0.02em;
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.scc-brand-item:hover {
    opacity: 1;
    color: var(--scc-ink);
}

@media (max-width: 600px) {
    .scc-brand-row { gap: 28px; }
    .scc-brand-item { font-size: 1rem; }
}

/* =========================================================
   12. OM/STORY-SEKTION (mörk)
   ========================================================= */
.scc-story {
    background: var(--scc-black);
    color: var(--scc-white);
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.scc-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(210,78,21,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.scc-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.scc-story-content h2 {
    color: var(--scc-white);
    margin-bottom: 20px;
}
.scc-story-content p {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
}
.scc-story-visual {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #1F1F1F 0%, #0A0A0A 100%);
    border-radius: var(--scc-radius);
    border: 1px solid rgba(210,78,21,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--scc-gold);
    overflow: hidden;
    position: relative;
}
.scc-story-visual-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-color: rgba(255,255,255,0.08);
}
.scc-story-visual-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.scc-story-visual::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(210,78,21,0.12);
    border-radius: calc(var(--scc-radius) - 4px);
    pointer-events: none;
}
.scc-story-mark {
    font-family: var(--scc-serif);
    font-weight: 700;
    font-size: 5rem;
    color: var(--scc-gold);
    opacity: 0.9;
    letter-spacing: -0.04em;
}

@media (max-width: 880px) {
    .scc-story { padding: 72px 0; }
    .scc-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .scc-story-visual { aspect-ratio: 16 / 10; max-width: 400px; margin: 0 auto; }
}

/* =========================================================
   13. FOOTER
   ========================================================= */
footer.site-footer,
.site-footer {
    background: var(--scc-black) !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.site-footer * { box-shadow: none !important; }

.scc-footer-main {
    padding: 72px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.scc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}
.scc-footer-col h4 {
    color: var(--scc-white);
    font-family: var(--scc-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.scc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.scc-footer-col li { margin-bottom: 11px; }
.site-footer .scc-footer-col a,
.scc-footer-col a {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.site-footer .scc-footer-col a:hover,
.scc-footer-col a:hover { color: var(--scc-gold) !important; }
.scc-footer-brand .scc-logo img {
    height: 50px;
    margin-bottom: 18px;
}
.scc-footer-tag {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 0 18px;
}
.scc-footer-contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
}
.scc-footer-contact-line svg {
    width: 14px;
    height: 14px;
    color: var(--scc-gold);
    flex-shrink: 0;
}

.scc-footer-bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(255,255,255,0.45);
    font-size: 12.5px;
}
.scc-footer-bottom a {
    color: rgba(255,255,255,0.55);
    margin-right: 18px;
    font-size: 12.5px;
}
.scc-footer-bottom a:hover { color: var(--scc-gold); }

@media (max-width: 980px) {
    .scc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 560px) {
    .scc-footer-main { padding: 56px 0 36px; }
    .scc-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .scc-footer-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   14. INNEHÅLLSSIDOR (Om oss, Frakt, etc)
   ========================================================= */
.scc-page-banner {
    background: var(--scc-black);
    color: var(--scc-white);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.scc-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(210,78,21,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.scc-page-banner h1 {
    color: var(--scc-white);
    margin: 0;
    position: relative;
    z-index: 2;
}
.scc-page-banner .scc-breadcrumbs {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    letter-spacing: 0.06em;
}
.scc-page-banner .scc-breadcrumbs a { color: rgba(255,255,255,0.75); }
.scc-page-banner .scc-breadcrumbs a:hover { color: var(--scc-gold); }

/* WooCommerce-breadcrumb inuti vår banner ska matcha info-sidornas stil */
.scc-page-banner .scc-breadcrumbs .woocommerce-breadcrumb,
.scc-page-banner .woocommerce-breadcrumb {
    color: rgba(255,255,255,0.6) !important;
    font-size: 13px !important;
    letter-spacing: 0.06em;
    margin: 0 !important;
    padding: 0 !important;
}
.scc-page-banner .woocommerce-breadcrumb a { color: rgba(255,255,255,0.75) !important; }
.scc-page-banner .woocommerce-breadcrumb a:hover { color: var(--scc-gold) !important; }

/* Banner injicerad på woo-arkiv: bryt ut till full bredd även inuti .col-full */
body.woocommerce .scc-page-banner,
body.archive.woocommerce .scc-page-banner,
body.tax-product_cat .scc-page-banner,
body.post-type-archive-product .scc-page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -40px;
    margin-bottom: 48px;
}

.scc-content {
    padding: 60px 0 80px;
    max-width: 760px;
    margin: 0 auto;
}
.scc-content h2 {
    font-size: 1.35rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.scc-content h2:first-child { margin-top: 0; }
.scc-content h3 {
    font-size: 1.1rem;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
    font-weight: 600;
}
.scc-content p {
    font-size: 1.05rem;
    color: var(--scc-text);
    line-height: 1.8;
}
.scc-content ul, .scc-content ol {
    padding-left: 22px;
    margin-bottom: 1.2em;
}
.scc-content li { margin-bottom: 8px; }

/* FAQ accordion */
.scc-faq { max-width: 760px; margin: 0 auto; }
.scc-faq-item {
    border-bottom: 1px solid var(--scc-line);
}
.scc-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 36px 22px 0;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--scc-ink);
    position: relative;
    transition: color 0.2s ease;
    font-family: var(--scc-serif);
    letter-spacing: -0.01em;
}
.scc-faq-item summary::-webkit-details-marker { display: none; }
.scc-faq-item summary::marker { content: ''; }
.scc-faq-item summary::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--scc-gold);
    border-bottom: 2px solid var(--scc-gold);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
}
.scc-faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}
.scc-faq-item summary:hover { color: var(--scc-gold-deep); }
.scc-faq-body {
    padding: 0 0 22px;
    color: var(--scc-text);
    line-height: 1.7;
}
.scc-faq-body p { margin: 0 0 12px; }
.scc-faq-body p:last-child { margin-bottom: 0; }

/* =========================================================
   15. KONTAKTFORMULÄR
   ========================================================= */
.scc-contact-wrap {
    padding: 80px 0;
}
.scc-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
}
.scc-contact-info h2 { margin-bottom: 12px; }
.scc-contact-info > p {
    color: var(--scc-muted);
    margin-bottom: 32px;
    line-height: 1.65;
}
.scc-contact-card {
    background: var(--scc-soft);
    border-radius: var(--scc-radius);
    padding: 28px;
    margin-bottom: 16px;
    border: 1px solid var(--scc-line);
}
.scc-contact-card-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--scc-gold-deep);
    margin-bottom: 8px;
}
.scc-contact-card-body {
    color: var(--scc-ink);
    font-size: 15.5px;
    line-height: 1.6;
}
.scc-contact-card-body a { color: var(--scc-ink); }
.scc-contact-card-body a:hover { color: var(--scc-gold-deep); }

.scc-form {
    background: var(--scc-white);
    border-radius: var(--scc-radius);
    padding: 36px;
    border: 1px solid var(--scc-line);
    box-shadow: var(--scc-shadow-sm);
}
.scc-form-row { margin-bottom: 18px; }
.scc-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--scc-ink);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}
.scc-form input,
.scc-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius-sm);
    font-size: 15px;
    font-family: var(--scc-sans);
    color: var(--scc-ink);
    background: var(--scc-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.scc-form input:focus,
.scc-form textarea:focus {
    outline: none;
    border-color: var(--scc-gold);
    box-shadow: 0 0 0 3px rgba(210,78,21,0.14);
}
.scc-form textarea { min-height: 140px; resize: vertical; }
.scc-form-message {
    padding: 12px 16px;
    border-radius: var(--scc-radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
}
.scc-form-message.success {
    background: rgba(40,160,80,0.08);
    color: #1f6b3a;
    border: 1px solid rgba(40,160,80,0.25);
}
.scc-form-message.error {
    background: rgba(200,40,40,0.06);
    color: #8a2727;
    border: 1px solid rgba(200,40,40,0.18);
}

@media (max-width: 880px) {
    .scc-contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .scc-form { padding: 28px; }
}

/* =========================================================
   16. WOOCOMMERCE - SHOP, SINGLE PRODUCT, CART, CHECKOUT
   ========================================================= */
/* Shop page layout - täcker alla WooCommerce-sidor */
.woocommerce-shop .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce,
.single-product .woocommerce,
.post-type-archive-product .woocommerce,
.tax-product_cat .woocommerce,
.tax-product_tag .woocommerce {
    padding: 60px 24px !important;
    max-width: var(--scc-container) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* Försäkra att WooCommerce-sidor får samma maxbredd som övriga sidor */
body.woocommerce-page .col-full,
body.woocommerce-account .col-full,
body.woocommerce-cart .col-full,
body.woocommerce-checkout .col-full,
body.woocommerce-shop .col-full,
body.post-type-archive-product .col-full,
body.tax-product_cat .col-full,
body.single-product .col-full,
body.woocommerce-page #primary,
body.woocommerce-page #content > .col-full,
body.archive.woocommerce #content,
body.tax-product_cat #content,
body.post-type-archive-product #content,
body.single-product #content,
body.woocommerce .woocommerce-notices-wrapper,
body.archive.woocommerce .site-main,
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main,
body.single-product .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main {
    max-width: var(--scc-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
    width: 100% !important;
    float: none !important;
}

/* =========================================================
   ENSKILD PRODUKT (single product)
   ========================================================= */
/* Tvåkolumnslayout: galleri vänster, info höger */
.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin: 0 !important;
}
.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    position: relative;
}
.single-product div.product .entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Huvudbild i galleriet */
.single-product .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image img {
    border-radius: var(--scc-radius-lg);
    background: var(--scc-white);
    border: 1px solid var(--scc-line);
}
.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
}

/* Galleri-tumnaglar i en snygg rad under huvudbilden */
.single-product .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.single-product .flex-control-thumbs li {
    width: 78px !important;
    margin: 0 !important;
    float: none !important;
}
.single-product .flex-control-thumbs li img {
    border-radius: var(--scc-radius);
    border: 1px solid var(--scc-line);
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.single-product .flex-control-thumbs li img:hover,
.single-product .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--scc-gold);
}

/* Zoom-knapp */
.single-product .woocommerce-product-gallery__trigger {
    top: 14px !important;
    right: 14px !important;
}

/* Produkttitel - mindre */
.single-product .product_title.entry-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
}
.single-product div.product .price {
    font-size: 1.5rem !important;
    color: var(--scc-ink) !important;
    margin-bottom: 18px !important;
}

/* Ta bort flytande nästa/föregående produkt-navigation som stör layouten */
.single-product .product-navigation,
.single-product .products-navigation,
.single-product nav.product-navigation,
.single-product .post-navigation,
.single-product .nav-links,
.storefront-product-pagination,
.single-product .secondary-navigation {
    display: none !important;
}

@media (max-width: 860px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* Toppmarginal på woo-sidor (utom de med egen banner) */
body.archive.woocommerce .site-main,
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main,
body.single-product .site-main {
    padding-top: 40px !important;
    padding-bottom: 56px !important;
}

/* My Account sidofält + content - flex layout istället för float */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 240px;
    width: 240px !important;
    margin: 0 !important;
    float: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius);
    overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--scc-line);
}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 14px 18px;
    color: var(--scc-ink);
    font-weight: 500;
    font-size: 14.5px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--scc-soft);
    color: var(--scc-gold-deep);
}
@media (max-width: 760px) {
    .woocommerce-account .woocommerce-MyAccount-navigation { flex: 1 1 100%; width: 100% !important; }
}

/* Page title hero on shop */
.woocommerce-products-header__title.page-title {
    font-family: var(--scc-serif) !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    margin-bottom: 30px !important;
    text-align: left;
    color: var(--scc-ink);
}

/* Result count + ordering */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    color: var(--scc-muted);
    font-size: 14px;
    margin-bottom: 30px !important;
}
.woocommerce .woocommerce-ordering select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius-sm);
    font-family: var(--scc-sans);
    font-size: 14px;
    color: var(--scc-ink);
    background-color: var(--scc-white);
}

/* Single product page */
.single-product div.product .product_title {
    font-family: var(--scc-serif) !important;
    margin-bottom: 12px !important;
}
.single-product div.product .price {
    color: var(--scc-ink) !important;
    font-weight: 700 !important;
    font-size: 1.6rem !important;
    margin-bottom: 24px !important;
}
.single-product div.product .price ins {
    color: var(--scc-gold-deep) !important;
    background: transparent !important;
}
.single-product div.product .woocommerce-product-details__short-description {
    color: var(--scc-text);
    line-height: 1.7;
    margin-bottom: 24px;
}
.single-product div.product form.cart .quantity input.qty {
    height: 50px;
    border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius-sm);
    font-family: var(--scc-sans);
    width: 70px;
    text-align: center;
}
.single-product div.product form.cart .button {
    padding: 16px 36px !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--scc-line) !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-right: 32px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 14px 0 !important;
    color: var(--scc-muted) !important;
    font-weight: 600 !important;
    font-family: var(--scc-sans) !important;
    font-size: 14px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--scc-ink) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--scc-gold);
}

/* Cart and Checkout */
.woocommerce table.shop_table {
    border: 1px solid var(--scc-line) !important;
    border-radius: var(--scc-radius);
    overflow: hidden;
}
.woocommerce table.shop_table th {
    background: var(--scc-soft);
    font-family: var(--scc-sans);
    font-weight: 600;
    color: var(--scc-ink);
    border-color: var(--scc-line) !important;
    padding: 14px 16px;
}
.woocommerce table.shop_table td {
    border-color: var(--scc-line) !important;
    padding: 16px;
}
.woocommerce .cart_totals h2,
.woocommerce-checkout #order_review_heading {
    font-family: var(--scc-serif) !important;
    margin-bottom: 16px !important;
}

/* Form inputs in WooCommerce checkout */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout #order_review input.input-text,
.woocommerce-checkout #order_review textarea {
    padding: 12px 14px !important;
    border: 1px solid var(--scc-line) !important;
    border-radius: var(--scc-radius-sm) !important;
    font-family: var(--scc-sans) !important;
    font-size: 15px !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--scc-gold) !important;
    box-shadow: 0 0 0 3px rgba(210,78,21,0.14) !important;
    outline: none !important;
}

/* Cart icon link in shop */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--scc-gold) !important;
    background: var(--scc-soft) !important;
    color: var(--scc-ink) !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--scc-gold-deep) !important;
}

/* =========================================================
   17. HJÄLPKLASSER
   ========================================================= */
.scc-text-center { text-align: center; }
.scc-mt-0 { margin-top: 0 !important; }
.scc-mb-0 { margin-bottom: 0 !important; }

/* Hide elements visually but keep accessible */
.scc-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;
}

/* Print fixes */
@media print {
    .site-header, .site-footer, .scc-topbar { display: none; }
}



/* =========================================================
   404 ERROR PAGE: MAX-WIDTH GRID REBUILD & CLUTTER REMOVAL
   ========================================================= */

/* --- 1. Enforce 1200px Max-Width Layout Constraints --- */
.error404 #page,
.error404 .site-content,
.error404 .content-area,
.error404 main,
.error404 .site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* --- 2. Clean Typography & Alignment Rebuild --- */
/* Fixes the edge-to-edge title alignment from Skärmavbild 2026-06-03 kl. 15.12.24.jpg */
.error404 h1.page-title,
.error404 .page-header h1 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 15px !important;
    color: #111 !important;
}

.error404 .page-content > p {
    text-align: center !important;
    font-size: 1.1rem !important;
    color: #666 !important;
    margin-bottom: 35px !important;
}

/* --- 3. Restructure the Product Search Field --- */
.error404 form.search-form,
.error404 form.woocommerce-product-search {
    max-width: 550px !important;
    margin: 0 auto 50px auto !important;
    display: flex !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 6px;
}

/* --- 4. Hide Unnecessary Category Containers & Columns --- */
/* Completely eliminates the cluttered folder listings visible on the right */
.error404 .widget_product_categories,
.error404 .widget_products,
.error404 .widget.widget_archive,
.error404 .widget.widget_categories {
    display: none !important;
    width: 0 !important;
}

/* Force the remaining content areas to break out of split columns back to single stacks */
.error404 .page-content {
    display: block !important;
    width: 100% !important;
}

.error404 .content-area,
.error404 .sidebar,
.error404 #primary,
.error404 #secondary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* --- 5. Fix Product Grid Alignment --- */
/* Ensures "Populära produkter" from Skärmavbild 2026-06-03 kl. 15.12.30.jpg snaps to layout constraints */
.error404 ul.products {
    margin: 30px auto !important;
    max-width: 1200px !important;
}

.error404 h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}


