/* KJORA – RETUR OCH ÅNGERRÄTT
   Responsiv layout för mobil, surfplatta och dator. */
@font-face {
    font-family: "Butler";
    src: url("Font/Butler-Free-Med.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Bank";
    src: url("Font/F25_Bank_Printer.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Creato";
    src: url("Font/CreatoDisplay-Light.otf") format("opentype");
    font-display: swap;
}

:root {
    --dark: #332923;
    --deep: #28190f;
    --cream: #f2d9ad;
    --paper: #fffaf5;
    --muted: #6a5140;
    --line: rgba(255, 250, 245, .35);
    --content-width: 900px;
}
*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    color: var(--deep);
    background: rgb(218,167,134) url("Bilder/Mönster4.png") repeat;
    font-family: "Creato", Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { line-height: 1.75; }
h1, h2 { font-family: "Butler", Georgia, serif; font-weight: 400; }

/* Navigation */
.navbar {
    width: 100%;
    min-height: 82px;
    padding: 10px clamp(18px, 5.2vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    background: rgba(40, 25, 15, .94);
}
.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { width: clamp(96px, 12vw, 145px); height: 58px; object-fit: contain; }
.nav-links {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 28px);
}
.nav-links a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font: clamp(10px, .95vw, 15px) "Bank", Arial, sans-serif;
    letter-spacing: .04em;
    transition: color .2s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links .cart-link img { width: 25px; height: 25px; object-fit: contain; }

/* Page heading */
main { width: min(calc(100% - 48px), var(--content-width)); margin: 0 auto; }
.page-heading {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(38px, 5vw, 64px) 0 clamp(24px, 3vw, 38px);
    text-align: center;
    color: var(--paper);
}
.eyebrow {
    margin: 0 0 12px;
    color: #e5c39c;
    font: 11px/1.6 "Bank", Arial, sans-serif;
    letter-spacing: .15em;
}
.page-heading h1 {
    margin: 10px 0 16px;
    color: var(--cream);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    overflow-wrap: break-word;
}
.page-heading > p:last-child {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,250,245,.92);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.75;
}

/* Notice panel */
.notice {
    margin: 0 0 24px;
    padding: clamp(22px, 3.5vw, 36px);
    border-left: 4px solid #a87954;
    border-radius: 3px;
    background: var(--paper);
    color: var(--deep);
}
.notice h2, .form-panel h2, .contact-note h2 {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
}
.notice p { margin: 12px 0 0; font-size: 15px; line-height: 1.75; }
.notice p:first-of-type { margin-top: 0; }

/* Return form */
.form-panel, .contact-note {
    margin-bottom: 24px;
    padding: clamp(22px, 4vw, 40px);
    border-radius: 3px;
    background: var(--paper);
    color: var(--deep);
}
.form-intro { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
form label {
    display: block;
    margin: 18px 0 8px;
    color: #38271c;
    font: 12px/1.5 "Bank", Arial, sans-serif;
    letter-spacing: .025em;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.form-grid > div { min-width: 0; }
input, select, textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 13px 14px;
    border: 1px solid #c7b5a5;
    border-radius: 2px;
    background: #fff;
    color: var(--deep);
    font: 16px/1.45 "Creato", Arial, sans-serif;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid #a87954;
    outline-offset: 1px;
}
textarea { min-height: 140px; resize: vertical; }
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 12px;
    color: #493629;
    font: 15px/1.6 "Creato", Arial, sans-serif;
}
.consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 3px 0 0;
    accent-color: #6e4a30;
}
button {
    border: 0;
    border-radius: 2px;
    background: var(--deep);
    color: #fff;
    padding: 15px 22px;
    font: 12px/1.5 "Bank", Arial, sans-serif;
    letter-spacing: .04em;
    cursor: pointer;
}
form button { width: 100%; margin-top: 20px; }
button:hover { background: #4a3325; }
button:focus-visible, a:focus-visible {
    outline: 2px solid #a87954;
    outline-offset: 3px;
}
button:disabled { opacity: .65; cursor: wait; }
.status { margin: 16px 0 0; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.status.error { color: #9b2c20; }
.contact-note p { margin: 0; color: var(--muted); line-height: 1.75; }
.contact-note a { color: #7a4f2e; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Confirmation modal */
.retur-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(24, 15, 9, .72);
}
.retur-modal.is-open { display: flex; }
.retur-modal-card {
    width: min(480px, 100%);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: clamp(24px, 5vw, 36px);
    background: var(--paper);
    color: var(--deep);
    text-align: center;
    border: 1px solid #d9c8b8;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
}
.retur-modal-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e5eee1;
    color: #35623b;
    font-size: 27px;
}
.retur-modal-card h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.retur-modal-card p { margin: 0 0 24px; line-height: 1.7; }
.retur-modal-close { min-width: 130px; }

/* Footer */
footer {
    width: 100%;
    margin-top: auto;
    padding: clamp(30px, 3.5vw, 48px) clamp(22px, 8vw, 112px);
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 38px);
    background: var(--deep);
    color: white;
}
footer > div { min-width: 0; }
footer .footer-brand img { width: clamp(100px, 8vw, 135px); height: auto; object-fit: contain; }
footer .footer-brand p { margin: 12px 0 0; font: 13px/1.5 "Butler", Georgia, serif; }
footer h4 { margin: 4px 0 14px; font: 12px "Bank", Arial, sans-serif; letter-spacing: .1em; opacity: .7; }
footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
footer a:hover { color: var(--cream); }

/* Tablet */
@media (max-width: 850px) {
    .navbar { padding: 10px 22px; gap: 14px; }
    .nav-logo img { width: 100px; height: 54px; }
    .nav-links { gap: 10px 13px; }
    .nav-links a { font-size: 10px; }
    main { width: min(calc(100% - 36px), var(--content-width)); }
    .form-panel, .contact-note { padding: 26px; }
    footer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px 28px; gap: 24px; }
    footer .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 600px) {
    .navbar { flex-direction: column; justify-content: center; gap: 7px; padding: 10px 12px 14px; }
    .nav-logo img { width: 92px; height: 48px; }
    .nav-links { width: 100%; justify-content: center; gap: 10px 12px; }
    .nav-links a { font-size: 10px; letter-spacing: .02em; }
    .nav-links .cart-link img { width: 22px; height: 22px; }
    main { width: calc(100% - 30px); }
    .page-heading { padding-top: 32px; }
    .page-heading h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    .notice { padding: 21px 18px; }
    .notice p { font-size: 14px; }
    .form-panel, .contact-note { padding: 22px 17px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    form label { margin-top: 16px; }
    input, select, textarea { padding: 12px; }
    .consent-row { font-size: 14px; }
    form button { padding: 15px 12px; }
    footer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 18px; gap: 22px 16px; }
    footer .footer-brand { grid-column: 1 / -1; }
    footer .footer-brand img { width: 110px; }
    footer h4, footer a { font-size: 12px; }
}
@media (max-width: 350px) {
    main { width: calc(100% - 22px); }
    .nav-links { gap: 8px; }
    .nav-links a { font-size: 9px; }
    .notice, .form-panel, .contact-note { padding: 18px 14px; }
    footer { padding-right: 12px; padding-left: 12px; gap: 20px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
