@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Gabarito:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #5C1A2B;
    --color-accent: #5C1A2B;

    --color-heading: #1F1B17;

    --color-success: rgba(190, 251, 224);
    --color-alert: rgba(253, 164, 175);

    --color-foreground: #1F1B17;

    --bg-body: #FAEDCA;
    --bg-header: #FAEDCA;
    --bg-footer: #FAEDCA;
    --bg-overlay: 146, 146, 146;

    --gap: 1rem;

    /* Display font for headings, menu items and product titles */
    --font-display: 'Fraunces', Georgia, serif;

    /* Body font for paragraphs, navigation labels and UI text */
    --font-body: 'Gabarito', system-ui, -apple-system, sans-serif;

    /* Swiper */
    --swiper-navigation-color: var(--color-foreground);
    --swiper-pagination-color: var(--color-accent);
    --swiper-navigation-size: 2rem;
    --swiper-theme-color: var(--color-primary);
}











/**
 * Body — global typography baseline
 *
 * 17px size with 1.5 line-height for compact editorial readability.
 * Color #1F1B17 ensures maximum contrast against the warm beige background.
 */
body {
    background-color: var(--bg-body, #FAEDCA);
    overflow: overlay;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-foreground);
}

/**
 * Sticky header offset
 *
 * The theme handles header compensation through pt-24 utility classes on
 * page containers. We don't add body padding here — instead we just ensure
 * anchor links scroll headings below the fixed header.
 */
:root {
    --header-height: 80px;
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
    }
}

.font-body {
    font-family: var(--font-body) !important;
}

/**
 * Paragraph and inline text — inherit baseline body styles explicitly
 * to override any Tailwind utilities that might reduce contrast.
 */
p,
li,
dd,
dt,
span,
a,
label,
small {
    color: var(--color-foreground);
}

p {
    font-size: 17px;
    line-height: 1.5;
}

/**
 * Override Tailwind grey utility classes so faded greys become full-contrast
 * dark charcoal. Keeps muted hierarchy on truly secondary text by mapping
 * 400/500/600 to a slightly softer (but still readable) tone.
 */
.text-gray-100,
.text-gray-200,
.text-gray-300,
.text-gray-400,
.text-gray-500,
.text-gray-600,
.text-gray-700,
.text-gray-800,
.text-gray-900,
.text-neutral-400,
.text-neutral-500,
.text-neutral-600,
.text-neutral-700,
.text-slate-400,
.text-slate-500,
.text-slate-600,
.text-zinc-400,
.text-zinc-500,
.text-zinc-600 {
    color: var(--color-foreground) !important;
}

/**
 * Headings — Fraunces in dark charcoal as default
 *
 * Wine red is reserved for *signal* headings (logo, hero, product titles,
 * CTAs). Standard headings (H2/H3/H4 in flowing content, FAQ, about pages,
 * editorial sections) use dark charcoal for maximum readability and to
 * preserve hierarchy through size and weight rather than color.
 */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-heading);
}

/**
 * Signal headings — wine red
 *
 * These are the headings that *carry brand identity*: hero rubric on
 * startpage, section titles on startpage, product titles on product pages.
 * Add the .heading-primary class to any heading that should carry brand color.
 */
.heading-primary,
.hero h1,
.hero h2,
.product h1,
.product-page h1,
section.intro h1,
section.intro h2 {
    color: var(--color-primary);
}

/**
 * Menu items — Fraunces
 * Lighter weight + slight positive tracking so navigation reads as a sibling
 * to the headings, not a competitor.
 */
nav a,
.menu a,
.main-menu a,
header nav a,
.navigation a,
.nav-item,
.menu-item {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-heading);
}

/**
 * Product titles — Fraunces in wine red
 * Product titles always carry brand color since they identify the product
 * itself.
 */
.product-title,
.product-name,
.product-card .title,
.product-card h2,
.product-card h3,
.product-item .title,
.product-item h2,
.product-item h3,
.product h1,
[class*="product-title"],
[class*="product_title"] {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: -0.005em;
}

/**
 * Colors
 */
.text-primary {
    color: var(--color-primary);
}
.hover\:text-primary:hover {
    color: var(--color-primary);
}
.ring-primary,
.ring-primary:focus {
    --tw-ring-color: var(--color-primary);
}

.text-highlight {
    color: var(--color-accent);
}
.hover\:text-highlight:hover {
    color: var(--color-accent);
}
.ring-highlight {
    --tw-ring-color: var(--color-accent);
}

.text-body {
    color: var(--color-foreground) !important;
}
.hover\:text-body:hover {
    color: var(--color-foreground);
}
.border-text-body {
    border-color: var(--color-foreground);
}
.hover\:border-text-body:hover {
    border-color: var(--color-foreground);
}

.bg-primary {
    background-color: var(--color-primary) !important;
}
.hover\:bg-primary:hover {
    color: var(--color-primary);
}
.border-primary {
    border-color: var(--color-primary);
}

.bg-secondary {
    background-color: rgba(50, 50, 50, 0.05);
}

.bg-highlight {
    background-color: var(--color-accent) !important;
}
.hover\:bg-highlight:hover {
    color: var(--color-accent);
}

.bg-success {
    background: var(--color-success);
}

.bg-alert {
    background: var(--color-alert);
}

.bg-body {
    background-color: var(--bg-body);
}

.bg-white {
    background-color: var(--bg-body) !important;
}

.bg-header {
    background-color: var(--bg-header);
}

.bg-footer {
    background-color: var(--bg-footer);
}

.bg-overlay {
    background-color: rgba(var(--bg-overlay), var(--tw-bg-opacity));
}

.border-highlight {
    border-color: var(--color-accent) !important;
}

.decoration-primary {
    text-decoration-color: var(--color-primary);
}

.gap-default {
    gap: var(--gap);
}

/**
 * Remove decorative grey separator borders globally.
 *
 * Targets all Tailwind grey/neutral border colour utilities so visible
 * dividers between sections disappear, but functional borders (buttons,
 * form fields, brand-colored accents like .border-primary) are preserved.
 *
 * Includes border-gray-150 — a custom Tailwind extension used by the theme.
 */
[class*="border-gray-"],
[class*="border-neutral-"],
[class*="border-slate-"],
[class*="border-zinc-"] {
    border-color: transparent !important;
}

/**
 * Hide <hr> separator elements completely so they don't reserve vertical space.
 * The border override above only hides the line — but hr elements with margin
 * utilities (my-16 etc.) still reserve hundreds of pixels of empty space.
 * display: none removes both line and space.
 */
hr[class*="border-gray-"],
hr[class*="border-neutral-"],
hr[class*="border-slate-"],
hr[class*="border-zinc-"] {
    display: none !important;
}

/**
 * Buttons
 */
.btn,
button[type="submit"],
input[type="submit"] {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 500;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-foreground);
    border-color: var(--color-foreground);
}

/**
 * Disable spinner arrows on number inputs
 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/**
 * Cart bubble tweaks
 */
.cart-bubble.text-xs {
    font-size: 0.7rem;
    line-height: 1;
}

/**
 * Tailwind form focus
 */
[multiple]:focus,
[type=date]:focus,
[type=datetime-local]:focus,
[type=email]:focus,
[type=month]:focus,
[type=number]:focus,
[type=password]:focus,
[type=search]:focus,
[type=tel]:focus,
[type=text]:focus,
[type=time]:focus,
[type=url]:focus,
[type=week]:focus,
select:focus,
textarea:focus {
    --tw-ring-color: var(--color-primary);
    outline: none;
    border-color: var(--color-primary);
}

/**
 * PhotoSwipe
 */
.pswp {
    --pswp-icon-color-secondary: var(--color-foreground);
    --pswp-icon-color: var(--color-foreground);
    --pswp-bg: var(--bg-body);
    --pswp-icon-stroke-color: var(--pswp-bg);
}

.pswp img {
    max-width: none;
    object-fit: contain;
}

.pswp__img--placeholder {
    display: none !important;
}

.pswp__counter {
    font-weight: bold;
    text-shadow: 0 0 2px var(--pswp-bg);
}

/**
 * Swiper
 */

/* Fix for pinch zoom on main product image */
.swiper.swiper-horizontal {
    touch-action: auto;
}

.swiper-button-next,
.swiper-button-prev {
    width: auto;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    display: none;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: '';
}

/**
 * Hero Slider
 */
.hero-slider {
    transition: height 0.3s ease;
    min-height: 500px;
}

@media (min-width: 768px) {
    .hero-slider {
        min-height: 700px;
    }
}

.hero-slider .swiper-slide {
    height: 100%;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Remove Swiper's default arrow pseudo-elements */
.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    content: none;
}

/* Style the SVG icons inside the arrow buttons */
.hero-slider .swiper-button-next svg,
.hero-slider .swiper-button-prev svg {
    stroke: white;
    stroke-width: 2.5;
}

.hero-slider .swiper-pagination {
    bottom: 20px;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
    width: 32px;
    border-radius: 6px;
}

.bg-dark-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.bg-light-overlay {
    background: rgba(255, 255, 255, 0.4);
}

.products-swiper-main {
    min-height: 200px;
}

.products-swiper-thumbs {
    --swiper-navigation-size: 30px;
}

.swiper-slide-thumb-active {
    opacity: 100 !important;
}

@media (max-width: 767px) {
    .products-swiper-main .swiper-slide img {
        max-height: 50vh;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .products-swiper-main .swiper-slide img {
        max-height: 700px;
    }
}

@media (min-width: 1280px) {
    .products-swiper-main .swiper-slide img {
        max-height: 800px;
    }
}

/**
 * Aspect ratios
 */
.aspect-1\/1 {
    aspect-ratio: 1 / 1;
}

.aspect-4\/3 {
    aspect-ratio: 4 / 3;
}

.aspect-3\/2 {
    aspect-ratio: 3 / 2;
}

.aspect-3\/4 {
    aspect-ratio: 3 / 4;
}

/**
 * Rundade hörn på produktbilder
 *
 * Täcker bilder i produktkort (kategorisidor, hemsida, sökresultat,
 * widgets) och huvudbilden på produktsidor. Riktar regeln mot alla
 * bilder som ligger inuti klickbara länkar (vilket alla produktkort gör)
 * samt produktsidans bildkarusell.
 */
a img,
.products-swiper-main img,
.products-swiper-thumbs img,
.product-card img,
.product-item img,
[class*="product-card"] img,
[class*="product-item"] img,
[class*="product_card"] img,
[class*="product_item"] img {
    border-radius: 12px;
    overflow: hidden;
}

/**
 * Undantag: bilder i header (logo) och navigation ska inte ha rundade hörn.
 */
header a img,
nav a img,
.menu a img,
.main-menu a img,
.navbar a img,
.navigation a img,
.navbar-menu a img,
footer a img {
    border-radius: 0;
}

/**
 * Select dropdown styling
 */
select:not([size]) {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.focus\:outline-none:focus {
    --tw-ring-color: transparent;
}

.break-words {
    overflow-wrap: anywhere !important;
}

/* "Polyfill" for Tailwind */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/**
 * Fix for modal max-height in desktop
 */
@media (min-width: 640px) {
    div[modal='search'] {
        max-height: calc(80vh);
    }
}

/**
 * Wishlist
 */
.wishlist-alert {
    background: var(--color-success);
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.wishlist-alert i {
    display: none;
}

.wishlist-alert .wishlist-addok {
    background: #f00;
}

/**
 * Login & Register
 */
.login,
.register {
    max-width: 24rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.login div,
.register div {
    width: 100% !important;
}

.login form,
.register form {
    margin-top: 3rem;
    text-align: left;
}

.login label,
.register label {
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
}

.login label.cursor,
.register label.cursor {
    padding: 1rem 0;
}

.login label.cursor + label.cursor,
.register label.cursor + label.cursor {
    margin-left: 1rem;
}

.login label.cursor,
.register label.cursor,
.login label.cursor > input[type="radio"],
.register label.cursor > input[type="radio"] {
    display: inline-block;
    width: auto;
    cursor: pointer;
}

.login label.cursor > input[type="radio"],
.register label.cursor > input[type="radio"] {
    margin-right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    --tw-ring-color: var(--color-primary);
}

.login input[type="text"],
.login input[type="email"],
.login input[type="password"],
.register input[type="text"],
.register input[type="email"],
.register input[type="password"] {
    border: 1px solid #e5e7eb;
    padding: 0.4rem 0.8rem;
    display: block;
    border-radius: 0.25rem;
    width: 100%;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.login .btn-inverse,
.register .btn-inverse,
.register hr + div > a[href] {
    margin: 1rem 0 2rem 0;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    width: 100%;
}

.register hr + div a[href] {
    padding: 0.75rem 2rem;
}

.login .btn-inverse:hover,
.register .btn-inverse:hover {
    background-color: var(--color-foreground);
}

.login br,
.register br {
    display: none;
}

.login hr,
.register hr {
    margin-bottom: 2rem;
}

.login hr + div,
.register hr + div {
    display: block;
}

.login hr + div > a,
.register hr + div > a[href] {
    display: block;
    margin-bottom: 1rem;
    font-size: 1rem !important;
    color: var(--color-primary);
}

.login hr + div > a:hover,
.register hr + div > a:hover {
    color: var(--color-foreground);
}

.login hr + div a.btn,
.register hr + div a[href] {
    display: block;
    background: transparent;
    font-size: 1rem !important;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.login hr + div a.btn:hover,
.register hr + div a:hover {
    background: transparent;
    color: var(--color-foreground);
    border-color: var(--color-foreground);
}

.customerarea_login_message {
    margin-bottom: 2rem !important;
}

/**
 * Fix for image alignment
 */
img.fr-dib {
    margin: 5px auto;
}

img.fr-dib.fr-fil {
    margin-left: 0;
}

img.fr-dib.fr-fir {
    margin-right: 0;
}


/**
 * Tightare avstånd globalt — neutralisera överstora margin-klasser
 * 
 * Tailwinds standardklasser för stora vertikala MARGINALER (mb-16, mt-16,
 * my-16 och uppåt) skapar onödig luft när de används som sektionsseparatorer.
 * Här komprimerar vi marginalerna till mer rimliga värden.
 *
 * OBS: Padding-topp för pt-20 och pt-24 lämnas orörd eftersom temat
 * använder dessa för att kompensera för den fixade headern högst upp på
 * sidan. pt-16/py-16 nollställs dock — de skapar bara onödigt tomrum.
 */
.mb-16, .my-16 { margin-bottom: 1.5rem !important; }
.mt-16, .my-16 { margin-top: 1.5rem !important; }
.mb-20, .my-20 { margin-bottom: 2rem !important; }
.mt-20, .my-20 { margin-top: 2rem !important; }
.mb-24, .my-24 { margin-bottom: 2.5rem !important; }
.mt-24, .my-24 { margin-top: 2.5rem !important; }

.pt-16, .py-16 { padding-top: 0 !important; }
.pb-16, .py-16 { padding-bottom: 0 !important; }


/**
 * Tightare avstånd på mobil — global override
 *
 * Här komprimeras inte heller pt-16/pt-20/pt-24 eftersom de bär headerns
 * kompensationsutrymme. Endast marginaler och mindre paddings justeras.
 */
@media (max-width: 767px) {
    .mt-16, .my-16 { margin-top: 1rem !important; }
    .mb-16, .my-16 { margin-bottom: 1rem !important; }
    .mt-12, .my-12 { margin-top: 1.5rem !important; }
    .mb-12, .my-12 { margin-bottom: 1.5rem !important; }
    .mt-10, .my-10 { margin-top: 1.25rem !important; }
    .mb-10, .my-10 { margin-bottom: 1.25rem !important; }
    .mt-8,  .my-8  { margin-top: 1rem !important; }
    .mb-8,  .my-8  { margin-bottom: 1rem !important; }
    .mt-6,  .my-6  { margin-top: 0.75rem !important; }
    .mb-6,  .my-6  { margin-bottom: 0.75rem !important; }
    .mt-4,  .my-4  { margin-top: 0.5rem !important; }
    .mb-4,  .my-4  { margin-bottom: 0.5rem !important; }

    .pt-12, .py-12 { padding-top: 1.5rem !important; }
    .pb-12, .py-12 { padding-bottom: 1.5rem !important; }
    .pt-10, .py-10 { padding-top: 1.25rem !important; }
    .pb-10, .py-10 { padding-bottom: 1.25rem !important; }
    .pt-8,  .py-8  { padding-top: 1rem !important; }
    .pb-8,  .py-8  { padding-bottom: 1rem !important; }
    .pt-6,  .py-6  { padding-top: 0.75rem !important; }
    .pb-6,  .py-6  { padding-bottom: 0.75rem !important; }
    .pt-4,  .py-4  { padding-top: 0.5rem !important; }
    .pb-4,  .py-4  { padding-bottom: 0.5rem !important; }

    .gap-12 { gap: 1.5rem !important; }
    .gap-10 { gap: 1.25rem !important; }
    .gap-8  { gap: 1rem !important; }
    .gap-6  { gap: 0.75rem !important; }
    .gap-4  { gap: 0.5rem !important; }

    .space-y-12 > * + * { margin-top: 1.5rem !important; }
    .space-y-10 > * + * { margin-top: 1.25rem !important; }
    .space-y-8  > * + * { margin-top: 1rem !important; }
    .space-y-6  > * + * { margin-top: 0.75rem !important; }
    .space-y-4  > * + * { margin-top: 0.5rem !important; }
}


.border-b {
    border-bottom: none !important;
}

/**
 * Om oss-sida — central styling
 *
 * Lägg till denna kod i kamajispel-styles.css så att Om oss-sidan
 * (och liknande textsidor) får sin styling automatiskt utan att behöva
 * ha klasser eller inline-styles direkt i WYSIWYG-editorn.
 */

.om-oss-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.om-oss-page section {
    margin-bottom: 4rem;
}

.om-oss-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.om-oss-intro h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.om-oss-intro .lead {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.om-oss-kontakt {
    text-align: center;
    padding: 2rem;
    background-color: rgba(92, 26, 43, 0.05);
    border-radius: 12px;
}

.om-oss-kontakt h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.om-oss-kontakt a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.om-oss-team h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-member {
    margin: 0;
    text-align: center;
}

.team-member img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.team-member figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-member figcaption strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-heading);
}

.team-member figcaption span {
    font-size: 0.9rem;
    color: var(--color-foreground);
    opacity: 0.7;
}

.om-oss-kontor figure {
    margin: 0;
    text-align: center;
}

.om-oss-kontor img {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.om-oss-kontor figcaption {
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .om-oss-page {
        padding: 1rem 1rem;
    }
    .om-oss-page section {
        margin-bottom: 2.5rem;
    }
    .om-oss-intro {
        margin-bottom: 2.5rem;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .team-member figcaption strong {
        font-size: 1rem;
    }
    .team-member figcaption span {
        font-size: 0.85rem;
    }
}