html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(8, 2fr);
    grid-auto-rows: 2vw;
    background-color: rgb(218, 167, 134);
    background-image: url("Bilder/Mönster4.png");
    background-repeat: repeat;
}
a{text-decoration: none;
}
@font-face {
    font-family: "Butler";
    src: url("Font/Butler-Free-Med.otf");
}
@font-face {
    font-family: "Kenyan";
    src: url("Font/Kenyan Coffee Bd.otf");
}
@font-face {
    font-family: "Bank";
    src: url("Font/F25_Bank_Printer.otf");
}
@font-face {
    font-family:"Scaver";
    src: url("Scaver.ttf");
}
@font-face {
    font-family:"Modern";
    src: url("Font/Modern\ Romance.otf");
}
@font-face {
    font-family:"Creato";
    src: url("Font/CreatoDisplay-Light.otf");
}






.navbar {
    grid-column: 1/9;
    grid-row: 1/5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5.2vw;
    box-sizing: border-box;
    background-color: rgba(40, 25, 15, 0.55);
    position: relative;
    z-index: 10;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-logo img {
    width: 15vw;
    height: 13vw;
    object-fit: contain;
    display: block;
    padding-top: 0.4vw;
}   
.nav-links {
    display: flex;
    align-items: center;
    gap: 3vw;
}
.nav-links a {
    color: white;
    font-family: "Bank";
    font-size: clamp(13px, 1vw, 18px);
    letter-spacing: 0.1vw;
    text-decoration: none;

    display: flex;
    align-items: center;

    transition: color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover {
    color: #d8b08c;
    transform: translateY(-1px);
}
.nav-links a img {
    width: 1.8vw;
    height: 1.8vw;
    min-width: 22px;
    min-height: 22px;
    object-fit: contain;
    display: block;
}







.Text1{
    text-align: center;
    color: black;
    font-family: Butler;
    grid-column: 2/6;
    grid-row: 7/10;
    font-size: 2.2vw;
    padding-top: 1.5vw;
}

.Text2{
    text-align: center;
    color: black;
    font-family: Butler;
    grid-column: 6/8;
    grid-row: 7/10;
    font-size: 2.2vw;
    margin-right: 2.6vw;
    padding-top: 1.5vw;
}

.Backgrund1{
    background-color: white;
    grid-column: 2/8;
    grid-row:7/30;
}

.Backgrund2{
    outline: 0.15vw solid wheat;
    grid-column: 6/8;
    grid-row: 11/28;
    margin-right: 1vw;
    margin-left: 1vw;
    padding: 2vw;
    box-sizing: border-box;
    font-family: "Butler";
}

.Backgrund2 h2{
    text-align: center;
    font-family: Butler;
    font-size: 2.2vw;
    margin-top: 0;
    margin-bottom: 3vw;
}
.Backgrund2 span{
    font-size: 1.3vw;
}
.KostnadRad{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2vw;
    margin-bottom: 1.5vw;
    width: 100%;
}
.Backgrund2 hr{
    border: none;
    border-top: 0.1vw solid wheat;
    margin: 2vw 0;
}
.Total{
    display: flex;
    justify-content: space-between;
    font-size: 1.5vw;
    font-weight: bold;
}
.KassaKnapp{
    width: 100%;
    margin-top: 2vw;
    padding: 1vw;
    background-color: rgb(40, 25, 15);
    color: white;
    border: none;
    font-family: "Bank";
    font-size: 1.1vw;
    cursor: pointer;
}


.Backgrund3{
    grid-column: 2/6;
    grid-row: 10/30;
    z-index: 1;
    background-color: white;
    padding: 1vw;
    box-sizing: border-box;
    overflow: hidden;
}

#kundvagn {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    padding: 2vw;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.Produkt {
    width: 100%;
    min-height: 10vw;
    outline: 0.15vw solid wheat;
    background-color: rgba(40, 25, 15, 0.25);
    display: grid;
    grid-template-columns: 10vw 1fr auto;
    align-items: center;
    padding: 1vw;
    box-sizing: border-box;
}
.Produkt img {
    width: 8vw;
    height: 8vw;
    object-fit: contain;
}
.Produkt h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2vw;
    color: white;
}
.Produkt p {
    margin: 0.5vw 0 0;
    font-family: "Bank";
    font-size: 1.2vw;
    color: white;
}
.ProduktPris {
    font-family: "Butler";
    font-size: 1.5vw;
    color: white;
    padding-right: 1vw;
}
#kundvagn::-webkit-scrollbar {
    width: 0.5vw;
}

#kundvagn::-webkit-scrollbar-track {
    background: #eee;
}

#kundvagn::-webkit-scrollbar-thumb {
    background: rgb(40, 25, 15);
}

#kundvagn::-webkit-scrollbar-thumb:hover {
    background: rgb(70, 45, 30);
}
.KostnadRad span:last-child,
.Total span:last-child {
    letter-spacing: 0.1vw;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
    overflow: visible;
    display: inline-block;
}
.ProduktInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.Antal {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-top: 0.8vw;
}

.Antal label {
    font-family: "Bank";
    font-size: 1vw;
    color: white;
}

.Antal input {
    width: 3vw;
    padding: 0.3vw;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 1vw;

    border: none;
    text-align: center;
}
.TaBort {
    margin-top: 0.7vw;

    background: none;
    border: none;

    color: white;
    font-family: "Bank";
    font-size: 0.9vw;

    cursor: pointer;
}

.TaBort:hover {
    text-decoration: underline;
}
.Rabatt {
    margin-top: 2vw;
    margin-bottom: 1.5vw;
}

.Rabatt h3 {
    font-family: "Butler";
    font-size: 1.2vw;
    margin: 0 0 0.7vw;
}

.RabattInput {
    display: flex;
    gap: 0.5vw;
}

.RabattInput input {
    min-width: 0;
    width: 100%;
    padding: 0.7vw;

    box-sizing: border-box;

    border: 0.1vw solid wheat;
    background-color: white;

    font-family: "Bank";
    font-size: 0.9vw;
}

.RabattInput button {
    padding: 0.7vw 1vw;

    border: none;
    background-color: rgb(40, 25, 15);
    color: white;

    font-family: "Bank";
    font-size: 0.9vw;

    cursor: pointer;
}

.RabattInput button:hover {
    background-color: rgb(70, 45, 30);
}

#rabattMeddelande {
    margin: 0.5vw 0 0;

    font-family: "Bank";
    font-size: 0.8vw;
}







footer {
    background-color: rgb(40, 25, 15);
    color: white;
    grid-column: 1/9;
    grid-row: 35/42; padding: 3.5vw 8vw;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3vw; box-sizing: border-box;
}
footer img {
    width: 7vw;
    display: block;
    padding-top: 1.2vw;
}
.footer-brand p {
    font-family: "Butler";
    font-size: 1.1vw;
    margin-top: 1vw;
    color: white;
}
footer h4 {
    margin: 0 0 1.2vw;
    font-family: "Bank";
    font-size: 1.1vw;
    letter-spacing: 0.15vw;
    color: white;
    opacity: 0.55;
}
footer a {
    display: block;
    color: white;
    text-decoration: none;
    font-family: "Creato";
    font-size: 0.95vw;
    opacity: 0.75; 
    -bottom: 0.7vw;
    transition: 0.2s ease;
}
footer a:hover {
    opacity: 1;
    color:rgb(188, 171, 140);
}

/* Kunddesignens "Designa mer" ska ligga inne i samma produktkort. */
.Produkt {
    min-height: 10vw;
    height: auto;
    align-items: start;
}

.ProduktInfo {
    min-width: 0;
    padding-bottom: .25vw;
}

.DesignaMer {
    position: static;
    margin-bottom: .15rem;
    max-width: 100%;
    box-sizing: border-box;
}


/* Produktkort: knappen "Designa mer" ska alltid ligga INUTI kortet. */
#kundvagn {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: stretch;
}

.Produkt {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1vw;
    width: 100%;
    height: auto !important;
    min-height: 10vw;
    padding: 1vw;
    box-sizing: border-box;
    overflow: hidden;
}

.Produkt > img {
    flex: 0 0 8vw;
    width: 8vw;
    height: 8vw;
}

.ProduktInfo {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.ProduktInfo h2,
.ProduktInfo p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ProduktPris {
    flex: 0 0 auto;
    margin-left: auto;
    padding-right: 0;
}

.DesignaMer {
    position: static !important;
    display: inline-flex !important;
    width: auto;
    max-width: 100%;
    margin: .6vw 0 0 !important;
    box-sizing: border-box;
}


/* Designa mer: behåll knappen inne i produktkortet */
.ProduktInfo {
    position: relative;
    min-width: 0;
    overflow: visible;
}
.DesignaMer {
    position: relative !important;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    margin: .65vw 0 0 !important;
    padding: .55vw .85vw;
    box-sizing: border-box;
    white-space: nowrap;
}
.Produkt {
    overflow: hidden !important;
    min-height: 11vw !important;
    height: auto !important;
}


/* --- Kunddesign: actions ska ligga bredvid varandra i produktkortet --- */
.ProduktActions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1vw;
    width: 100%;
    margin-top: .7vw;
}

.ProduktActions .Antal {
    margin-top: 0;
}

.ProduktActions .TaBort {
    margin-top: 0;
    padding: 0;
}

.ProduktActions .DesignaMer {
    position: static !important;
    margin: 0 !important;
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
}

.Produkt {
    overflow: visible !important;
    min-height: 11vw !important;
}

/* Gemensam navbar och footer – måtten följer Shop.css. Endast aktiv länk varierar per sida. */
.navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 5.2vw !important;
    box-sizing: border-box !important;
    background-color: rgba(40, 25, 15, 0.55) !important;
    position: relative !important;
    z-index: 10 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-height: 0 !important;
}
.nav-logo { display: flex !important; align-items: center !important; flex: 0 0 auto !important; }
.nav-logo img {
    width: 15vw !important; height: 13vw !important; max-width: none !important;
    object-fit: contain !important; display: block !important; padding-top: 0.4vw !important;
}
.nav-links { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 3vw !important; max-width: none !important; flex-wrap: nowrap !important; }
.nav-links a {
    color: white; font-family: "Bank", sans-serif !important;
    font-size: clamp(13px, 1vw, 18px) !important; letter-spacing: 0.1vw !important;
    text-decoration: none !important; display: flex !important; align-items: center !important;
    white-space: nowrap !important; transition: color 0.2s ease, transform 0.2s ease !important;
}
.nav-links a:hover { color: #d8b08c !important; transform: translateY(-1px) !important; }
.nav-links a.aktiv { color: #d8b08c !important; }
.nav-links a img { width: 1.8vw !important; height: 1.8vw !important; min-width: 22px !important; min-height: 22px !important; object-fit: contain !important; display: block !important; }
footer {
    background-color: rgb(40, 25, 15) !important; color: white !important;
    padding: 3.5vw 8vw !important; display: grid !important;
    grid-template-columns: 2fr repeat(3, 1fr) !important; gap: 3vw !important;
    box-sizing: border-box !important; width: 100% !important;
}
footer .footer-brand img, footer > div:first-child > img { width: 7vw !important; max-width: none !important; height: auto !important; object-fit: contain !important; display: block !important; padding-top: 1.2vw !important; }
footer h4 { margin: 0 0 1.2vw !important; font-family: "Bank", sans-serif !important; font-size: 1.1vw !important; letter-spacing: 0.15vw !important; color: white !important; opacity: 0.55 !important; }
footer a { display: block !important; color: white !important; text-decoration: none !important; font-family: "Creato", sans-serif !important; font-size: 0.95vw !important; opacity: 0.75 !important; margin-bottom: 0.7vw !important; transition: 0.2s ease !important; }
footer a:hover { color: #d8b08c !important; }
@media (max-width: 760px) {
  .navbar { padding: 0 5.2vw !important; }
  .nav-logo img { width: 15vw !important; height: 13vw !important; }
  .nav-links { gap: 2vw !important; }
  .nav-links a { font-size: clamp(10px, 1.6vw, 13px) !important; }
  .nav-links a img { width: 22px !important; height: 22px !important; }
  footer { grid-template-columns: 2fr repeat(3, 1fr) !important; gap: 2vw !important; padding: 3.5vw 5vw !important; }
  footer h4 { font-size: clamp(10px, 1.5vw, 12px) !important; }
  footer a { font-size: clamp(10px, 1.4vw, 12px) !important; }
}



/* RESPONSIVITET – endast responsiva tillägg */
@media (max-width: 900px) {
  html, body { max-width: 100%; }
  img, video, iframe { max-width: 100%; }
  .navbar { min-height: 72px; height: auto; padding: 12px 4%; gap: 14px; flex-wrap: wrap; }
  .nav-logo { flex: 0 0 auto; }
  .nav-logo img { width: clamp(95px, 18vw, 145px); height: auto; max-height: 76px; }
  .nav-links { gap: clamp(10px, 2vw, 20px); flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: clamp(11px, 1.6vw, 15px); letter-spacing: .04em; }
}
@media (max-width: 600px) {
  .navbar { justify-content: center; padding: 10px 4%; }
  .nav-logo img { width: 105px; max-height: 58px; }
  .nav-links { width: 100%; gap: 10px 14px; }
  .nav-links a { font-size: 11px; white-space: normal; }
  button, input, select, textarea { max-width: 100%; }
  p, li { overflow-wrap: anywhere; }
}

@media (max-width: 900px) {
  .Backgrund1, .Backgrund2, .Backgrund3, #kundvagn { grid-row: auto; }
  .Backgrund1, .Backgrund2, .Backgrund3, #kundvagn { grid-column: 1 / -1; width: 100%; }
  .Text1, .Text2 { grid-row: auto; font-size: clamp(22px, 4vw, 34px); }
}

@media (max-width: 900px) {
  body { grid-auto-rows: auto; }
}

/* ==================================================
   KJORA – KUNDVAGN
   Responsiv layout för dator, surfplatta och mobil
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;

    background-color: #352c27;
    background-image: url("Bilder/Mönster4.png");
    background-repeat: repeat;
}

/* ================= NAVIGATION ================= */

.navbar {
    order: 0;
    flex: 0 0 auto;

    width: 100%;
    min-height: 90px;
    height: auto;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px;

    padding: 10px clamp(20px, 5vw, 80px) !important;

    background-color: rgba(40, 25, 15, 0.94) !important;
}

.nav-logo {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
}

.nav-logo img {
    display: block !important;
    width: clamp(95px, 12vw, 150px) !important;
    height: 70px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    padding: 0 !important;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(10px, 2vw, 28px) !important;
    min-width: 0;
}

.nav-links a {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;

    color: white;
    font-family: "Bank", sans-serif !important;
    font-size: clamp(11px, 1vw, 16px) !important;
    letter-spacing: .04em !important;
}

.nav-links a:hover {
    color: #d8b08c !important;
}

.nav-links a img {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    object-fit: contain !important;
}

/* ================= RUBRIK OCH BAKGRUND ================= */

.Backgrund1 {
    display: none !important;
}

.Text1 {
    order: 1;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(32px, 4vw, 58px) 0 24px !important;

    color: #f4dfb7 !important;
    font-family: "Butler", serif !important;
    font-size: clamp(30px, 3.2vw, 48px) !important;
    line-height: 1.2;
    text-align: center;

    grid-column: auto !important;
    grid-row: auto !important;
}

.Text2 {
    display: none;
}

/* ================= HUVUDLAYOUT ================= */

/* Varukorg och kostnad ska ligga bredvid varandra
   på större skärmar. */

.Backgrund3 {
    order: 2;

    width: min(1400px, calc(100% - 64px)) !important;
    min-width: 0;
    height: auto !important;
    min-height: 0;

    margin: 0 auto 48px;
    padding: clamp(18px, 2.2vw, 32px) !important;

    grid-column: auto !important;
    grid-row: auto !important;

    background-color: rgba(255, 255, 255, .97) !important;
    overflow: visible !important;
}

#kundvagn {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;

    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none;

    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: visible;

    color: #30251e;
}

/* ================= PRODUKTKORT ================= */

.Produkt {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start !important;
    gap: clamp(12px, 1.5vw, 22px);

    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;

    padding: clamp(12px, 1.5vw, 22px) !important;

    background-color: #f4e8d8 !important;
    outline: 1px solid #d7bd98 !important;
    outline-offset: 0;

    overflow: visible !important;
    border-radius: 4px;
}

.Produkt > img {
    flex: 0 0 clamp(76px, 10vw, 140px);

    width: clamp(76px, 10vw, 140px) !important;
    height: clamp(76px, 10vw, 140px) !important;

    object-fit: contain;
    background: #fff;
    border-radius: 3px;
}

.ProduktInfo {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;

    width: auto;
    min-width: 0;
    padding: 0 !important;

    overflow: visible !important;
}

.ProduktInfo h2 {
    margin: 0;
    color: #30251e !important;
    font-family: "Butler", Georgia, serif !important;
    font-size: clamp(18px, 1.7vw, 25px) !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ProduktInfo p {
    margin: 7px 0 0;
    color: #514136 !important;
    font-family: "Creato", sans-serif !important;
    font-size: clamp(13px, 1vw, 15px) !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ProduktPris {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 !important;

    color: #30251e !important;
    font-family: "Butler", serif !important;
    font-size: clamp(15px, 1.4vw, 21px) !important;
    font-weight: bold;
    white-space: nowrap;
}

.Antal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 12px !important;
}

.Antal label {
    color: #30251e !important;
    font-family: "Creato", sans-serif !important;
    font-size: 14px !important;
}

.Antal input {
    width: 64px !important;
    min-height: 34px;
    padding: 6px;

    border: 1px solid #c8b49b !important;
    border-radius: 4px;
    background: white;

    color: #30251e;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    text-align: center;
}

.TaBort {
    margin: 12px 0 0 !important;
    padding: 5px 0;

    border: none;
    background: transparent;

    color: #754b37 !important;
    font-family: "Bank", sans-serif !important;
    font-size: 12px !important;

    cursor: pointer;
}

.TaBort:hover {
    text-decoration: underline;
}

.DesignaMer {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: 100%;
    margin: 12px 0 0 !important;
    padding: 10px 16px !important;

    border: 1px solid #28190f;
    border-radius: 999px;
    background: #28190f;
    color: white;

    font-family: "Bank", sans-serif !important;
    font-size: 11px !important;
    letter-spacing: .06em;
    white-space: normal;

    cursor: pointer;
}

.DesignaMer:hover {
    background: #4a3324;
}

/* ================= KOSTNAD OCH KASSA ================= */

.Backgrund2 {
    order: 3;

    align-self: center;
    width: min(1400px, calc(100% - 64px)) !important;
    min-width: 0;
    height: auto !important;

    margin: 0 auto 48px !important;
    padding: clamp(24px, 3vw, 42px) !important;

    grid-column: auto !important;
    grid-row: auto !important;

    outline: 1px solid #d8b88d !important;
    outline-offset: 0;
    background: #f4e8d8 !important;

    color: #30251e;
    font-family: "Butler", serif !important;
}

.Backgrund2 h2 {
    margin: 0 0 26px !important;
    color: #30251e;
    font-family: "Butler", serif !important;
    font-size: clamp(26px, 2.5vw, 36px) !important;
    text-align: left;
}

.Backgrund2 span {
    font-size: inherit;
}

.KostnadRad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    width: 100%;
    margin-bottom: 18px !important;

    color: #30251e;
    font-family: "Creato", sans-serif !important;
    font-size: clamp(14px, 1.1vw, 17px) !important;
}

.KostnadRad span:last-child,
.Total span:last-child {
    flex-shrink: 0;
    min-width: max-content;
    white-space: nowrap;
    letter-spacing: normal;
}

.Backgrund2 hr {
    margin: 22px 0 !important;
    border: none;
    border-top: 1px solid #d8b88d;
}

.Total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    color: #30251e;
    font-family: "Butler", serif !important;
    font-size: clamp(21px, 1.8vw, 28px) !important;
    font-weight: bold;
}

.Rabatt {
    margin: 24px 0 !important;
}

.Rabatt h3 {
    margin: 0 0 10px !important;
    color: #30251e;
    font-family: "Butler", serif !important;
    font-size: clamp(18px, 1.4vw, 22px) !important;
}

.RabattInput {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.RabattInput input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 12px;

    border: 1px solid #c8b49b !important;
    border-radius: 4px;
    background: white;

    color: #30251e;
    font-family: "Creato", sans-serif !important;
    font-size: 14px !important;
}

.RabattInput button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;

    border: none;
    border-radius: 4px;
    background: #28190f;
    color: white;

    font-family: "Bank", sans-serif !important;
    font-size: 12px !important;

    cursor: pointer;
}

.RabattInput button:hover,
.KassaKnapp:hover {
    background: #4a3324;
}

#rabattMeddelande {
    margin: 10px 0 0 !important;
    color: #514136;
    font-family: "Creato", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.KassaKnapp {
    width: 100%;
    min-height: 52px;
    margin-top: 26px !important;
    padding: 14px 18px !important;

    border: none;
    border-radius: 4px;
    background: #28190f;
    color: white;

    font-family: "Bank", sans-serif !important;
    font-size: clamp(13px, 1vw, 16px) !important;
    letter-spacing: .06em;

    cursor: pointer;
}

/* ================= TOM KUNDVAGN ================= */

#kundvagn > div:only-child {
    padding: 36px 16px !important;
    color: #514136;
    font-family: "Creato", sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
}

/* ================= FOOTER ================= */

footer {
    order: 4;
    flex: 0 0 auto;

    width: 100%;
    min-width: 0;
    margin-top: auto;

    display: grid !important;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(20px, 3vw, 48px) !important;

    padding: clamp(30px, 3.5vw, 55px) clamp(24px, 8vw, 120px) !important;

    background-color: rgb(40, 25, 15) !important;
    color: white !important;
}

footer > div {
    min-width: 0;
}

footer .footer-brand img,
footer > div:first-child > img {
    display: block;
    width: clamp(95px, 8vw, 140px) !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    object-fit: contain;
}

.footer-brand p {
    margin: 12px 0 0;
    color: white;
    font-family: "Butler", serif;
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.5;
}

footer h4 {
    margin: 0 0 14px !important;
    color: white !important;
    font-family: "Bank", sans-serif !important;
    font-size: clamp(12px, 1vw, 15px) !important;
    letter-spacing: .08em !important;
    opacity: .65;
}

footer a {
    display: block;
    margin-bottom: 9px !important;
    color: white !important;
    font-family: "Creato", sans-serif !important;
    font-size: clamp(12px, .95vw, 15px) !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
    opacity: .8;
}

footer a:hover {
    color: #d8b08c !important;
    opacity: 1;
}

/* ==================================================
   SURFPLATTA
   ================================================== */

@media (min-width: 761px) {
    body {
        display: grid !important;
        grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
        grid-template-rows: auto auto auto auto;
        align-content: start;
        column-gap: clamp(20px, 3vw, 48px);
    }

    .navbar {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .Text1 {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .Backgrund3 {
        grid-column: 1;
        grid-row: 3;
        width: 100% !important;
        margin: 0 0 48px !important;
    }

    .Backgrund2 {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
        width: 100% !important;
        margin: 0 0 48px !important;
    }

    footer {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

/* ==================================================
   MOBIL OCH MINDRE SURFPLATTOR
   ================================================== */

@media (max-width: 760px) {
    body {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    .navbar {
        min-height: 76px;
        padding: 10px 16px !important;
        gap: 12px;
    }

    .nav-logo img {
        width: 92px !important;
        height: 54px !important;
    }

    .nav-links {
        gap: 8px 12px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .nav-links a {
        font-size: clamp(10px, 1.7vw, 13px) !important;
        letter-spacing: .02em !important;
    }

    .nav-links a img {
        width: 22px !important;
        height: 22px !important;
    }

    .Text1 {
        width: calc(100% - 32px);
        padding: 30px 0 20px !important;
        font-size: clamp(28px, 5vw, 38px) !important;
    }

    .Backgrund3 {
        width: calc(100% - 32px) !important;
        margin: 0 auto 24px !important;
        padding: 14px !important;
    }

    #kundvagn {
        gap: 12px;
    }

    .Produkt {
        display: grid !important;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px !important;
    }

    .Produkt > img {
        grid-column: 1;
        grid-row: 1 / span 2;

        width: 76px !important;
        height: 76px !important;
    }

    .ProduktInfo {
        grid-column: 2;
        grid-row: 1;
    }

    .ProduktInfo h2 {
        font-size: 18px !important;
    }

    .ProduktInfo p {
        font-size: 13px !important;
    }

    .ProduktPris {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        align-self: end;
        margin: 8px 0 0 !important;
        font-size: 16px !important;
    }

    .Antal {
        gap: 8px;
        margin-top: 10px !important;
    }

    .Antal input {
        width: 58px !important;
    }

    .TaBort {
        margin-top: 10px !important;
    }

    .DesignaMer {
        margin-top: 10px !important;
        padding: 9px 12px !important;
        font-size: 10px !important;
    }

    .Backgrund2 {
        width: calc(100% - 32px) !important;
        margin: 0 auto 32px !important;
        padding: 22px !important;
    }

    .Backgrund2 h2 {
        font-size: 28px !important;
        margin-bottom: 22px !important;
    }

    .KostnadRad {
        font-size: 15px !important;
    }

    .Total {
        font-size: 23px !important;
    }

    .RabattInput {
        gap: 8px;
    }

    .RabattInput input {
        padding: 10px;
        font-size: 13px !important;
    }

    .RabattInput button {
        padding: 10px 12px;
        font-size: 11px !important;
    }

    .KassaKnapp {
        min-height: 50px;
        font-size: 13px !important;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px 18px !important;
        padding: 28px 20px !important;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }

    footer .footer-brand img,
    footer > div:first-child > img {
        width: 105px !important;
    }

    footer h4 {
        font-size: 12px !important;
    }

    footer a {
        font-size: 12px !important;
    }
}

/* ==================================================
   SMÅ MOBILER
   ================================================== */

@media (max-width: 380px) {
    .navbar {
        padding: 10px 10px 12px !important;
    }

    .nav-links {
        gap: 9px 10px !important;
    }

    .nav-links a {
        font-size: 10px !important;
    }

    .Text1 {
        width: calc(100% - 24px);
        font-size: 27px !important;
    }

    .Backgrund3,
    .Backgrund2 {
        width: calc(100% - 20px) !important;
    }

    .Backgrund3 {
        padding: 10px !important;
    }

    .Produkt {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
        padding: 10px !important;
    }

    .Produkt > img {
        width: 62px !important;
        height: 62px !important;
    }

    .ProduktInfo h2 {
        font-size: 16px !important;
    }

    .ProduktInfo p {
        font-size: 12px !important;
    }

    .ProduktPris {
        font-size: 15px !important;
    }

    .Backgrund2 {
        padding: 18px !important;
    }

    .RabattInput {
        flex-direction: column;
    }

    .RabattInput button {
        width: 100%;
    }

    footer {
        padding: 24px 14px !important;
        gap: 22px 12px !important;
    }
}

/* ==================================================
   KJORA KUNDVAGN – SLUTLIG LAYOUTFIX
   ================================================== */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow-x: clip !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* En gemensam layout för hela sidan */
body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    grid-template-areas:
        "header"
        "title"
        "products"
        "summary"
        "footer" !important;

    align-content: start;
    align-items: start;
    gap: 0 !important;
    min-height: 100vh !important;
    background-color: #352c27;
    background-image: url("Bilder/Mönster4.png");
}

/* Navigation */
.navbar {
    grid-area: header !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 86px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px clamp(16px, 5vw, 72px) !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;

    background-color: rgba(40, 25, 15, .96) !important;
}

.nav-logo {
    flex: 0 0 auto !important;
}

.nav-logo img {
    display: block !important;
    width: clamp(85px, 11vw, 135px) !important;
    height: 62px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    padding: 0 !important;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: clamp(8px, 1.7vw, 24px) !important;
    min-width: 0 !important;
}

.nav-links a {
    font-size: clamp(10px, 1vw, 15px) !important;
    letter-spacing: .04em !important;
    white-space: nowrap !important;
}

.nav-links a img {
    width: 25px !important;
    height: 25px !important;
    min-width: 22px !important;
    min-height: 22px !important;
}

/* Dölj den gamla tomma bakgrundssektionen */
.Backgrund1,
.Text2 {
    display: none !important;
}

/* Rubriken ska alltid ligga överst */
.Text1 {
    grid-area: title !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(28px, 4vw, 48px) 16px 24px !important;

    color: #f4dfb7 !important;
    font-family: "Butler", Georgia, serif !important;
    font-size: clamp(30px, 3.5vw, 46px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* Produktlistan */
.Backgrund3 {
    grid-area: products !important;
    align-self: stretch !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: clamp(14px, 2vw, 26px) !important;

    background: #fff !important;
    border: none !important;
    overflow: visible !important;
    z-index: 1;
}

#kundvagn {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}

/* Produktkort */
.Produkt {
    display: grid !important;
    grid-template-columns: clamp(70px, 9vw, 112px) minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    gap: clamp(10px, 1.3vw, 18px) !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(12px, 1.5vw, 20px) !important;

    background: #f4e8d8 !important;
    outline: 1px solid #d8bd98 !important;
    outline-offset: 0 !important;
    border-radius: 4px;

    overflow: visible !important;
}

.Produkt > img {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;

    object-fit: contain !important;
    background: white;
    border-radius: 3px;
}

.ProduktInfo {
    grid-column: 2 !important;
    grid-row: 1 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.ProduktInfo h2 {
    margin: 0 !important;
    color: #30251e !important;
    font-family: "Butler", Georgia, serif !important;
    font-size: clamp(16px, 1.5vw, 22px) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
}

.ProduktInfo p {
    margin: 7px 0 0 !important;
    color: #514136 !important;
    font-family: "Creato", sans-serif !important;
    font-size: clamp(12px, .95vw, 15px) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}

.ProduktPris {
    grid-column: 3 !important;
    grid-row: 1 !important;

    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;

    color: #30251e !important;
    font-family: "Butler", Georgia, serif !important;
    font-size: clamp(13px, 1.2vw, 18px) !important;
    font-weight: bold;
    white-space: nowrap;
}

.Antal {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.Antal label {
    color: #30251e !important;
    font-family: "Creato", sans-serif !important;
    font-size: 14px !important;
}

.Antal input {
    width: 60px !important;
    min-height: 36px;
    padding: 6px !important;
    border: 1px solid #c8b49b !important;
    border-radius: 4px;
    background: white;
    color: #30251e;
    font-size: 14px !important;
}

.TaBort {
    margin: 10px 0 0 !important;
    padding: 5px 0 !important;
    border: none !important;
    background: transparent !important;
    color: #754b37 !important;
    font-family: "Bank", sans-serif !important;
    font-size: 12px !important;
    cursor: pointer;
}

.DesignaMer {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 9px 13px !important;
    border: 1px solid #28190f !important;
    border-radius: 999px !important;
    background: #28190f !important;
    color: white !important;
    font-size: 11px !important;
    white-space: normal !important;
}

/* Kostnadssammanställningen */
.Backgrund2 {
    grid-area: summary !important;
    align-self: start !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(22px, 2.5vw, 36px) !important;

    outline: 1px solid #d8bd98 !important;
    outline-offset: 0 !important;
    background: #f4e8d8 !important;

    color: #30251e !important;
    font-family: "Butler", Georgia, serif !important;
}

.Backgrund2 h2 {
    margin: 0 0 26px !important;
    color: #30251e !important;
    font-size: clamp(25px, 2.2vw, 34px) !important;
    text-align: left !important;
}

.KostnadRad {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    color: #30251e !important;
    font-family: "Creato", sans-serif !important;
    font-size: clamp(14px, 1vw, 16px) !important;
}

.KostnadRad span:last-child,
.Total span:last-child {
    flex-shrink: 0 !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    letter-spacing: normal !important;
}

.Backgrund2 hr {
    margin: 22px 0 !important;
    border: none !important;
    border-top: 1px solid #d8bd98 !important;
}

.Total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    color: #30251e !important;
    font-size: clamp(21px, 1.6vw, 26px) !important;
    font-weight: bold;
}

.Rabatt {
    margin: 24px 0 !important;
}

.Rabatt h3 {
    margin: 0 0 10px !important;
    color: #30251e !important;
    font-size: clamp(18px, 1.3vw, 22px) !important;
}

.RabattInput {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
}

.RabattInput input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    padding: 10px !important;
    border: 1px solid #c8b49b !important;
    border-radius: 4px;
    background: white;
    font-size: 14px !important;
}

.RabattInput button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px !important;
    border: none !important;
    border-radius: 4px;
    background: #28190f !important;
    color: white !important;
    font-size: 11px !important;
    cursor: pointer;
}

#rabattMeddelande {
    margin: 10px 0 0 !important;
    color: #514136 !important;
    font-size: 13px !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.KassaKnapp {
    width: 100% !important;
    min-height: 50px;
    margin-top: 24px !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 4px;
    background: #28190f !important;
    color: white !important;
    font-size: 13px !important;
    cursor: pointer;
}

/* Sidfot */
footer {
    grid-area: footer !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(28px, 3.5vw, 52px) clamp(20px, 8vw, 110px) !important;

    display: grid !important;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(18px, 3vw, 42px) !important;

    background: rgb(40, 25, 15) !important;
    color: white !important;
}

footer > div {
    min-width: 0;
}

footer .footer-brand img,
footer > div:first-child > img {
    width: clamp(95px, 8vw, 140px) !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
}

footer h4 {
    margin: 0 0 12px !important;
    font-size: clamp(12px, 1vw, 15px) !important;
    letter-spacing: .08em !important;
}

footer a {
    display: block;
    margin-bottom: 9px !important;
    font-size: clamp(12px, .95vw, 15px) !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ==================================================
   DESKTOP – TVÅ KOLUMNER UNDER RUBRIKEN
   ================================================== */

@media (min-width: 1000px) {
    body {
        grid-template-columns:
            minmax(0, 1.55fr)
            minmax(320px, .85fr) !important;

        grid-template-rows: auto auto minmax(0, 1fr) auto !important;
        grid-template-areas:
            "header header"
            "title title"
            "products summary"
            "footer footer" !important;

        column-gap: clamp(20px, 3vw, 44px) !important;
        row-gap: 0 !important;
        align-items: start !important;
    }

    .Backgrund3 {
        margin: 0 0 48px clamp(20px, 4vw, 60px) !important;
        width: calc(100% - clamp(20px, 4vw, 60px)) !important;
    }

    .Backgrund2 {
        margin: 0 clamp(20px, 4vw, 60px) 48px 0 !important;
        width: calc(100% - clamp(20px, 4vw, 60px)) !important;
    }
}

/* ==================================================
   SURFPLATTA OCH MINDRE DATOR
   ================================================== */

@media (min-width: 601px) and (max-width: 999px) {
    body {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "header"
            "title"
            "products"
            "summary"
            "footer" !important;
    }

    .Backgrund3,
    .Backgrund2 {
        width: calc(100% - 40px) !important;
        margin: 0 auto 24px !important;
    }

    .Produkt {
        grid-template-columns: 90px minmax(0, 1fr) auto !important;
    }

    .Produkt > img {
        width: 90px !important;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 30px 5% !important;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ==================================================
   MOBIL – EN KOLUMN OCH KOMPAKTA PRODUKTKORT
   ================================================== */

@media (max-width: 600px) {
    body {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "header"
            "title"
            "products"
            "summary"
            "footer" !important;
    }

    .navbar {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 12px 14px !important;
    }

    .nav-logo img {
        width: 90px !important;
        height: 52px !important;
    }

    .nav-links {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 9px 12px !important;
    }

    .nav-links a {
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .Text1 {
        padding: 28px 12px 20px !important;
        font-size: clamp(27px, 7vw, 36px) !important;
    }

    .Backgrund3 {
        width: calc(100% - 24px) !important;
        margin: 0 auto 20px !important;
        padding: 10px !important;
    }

    #kundvagn {
        gap: 12px !important;
    }

    .Produkt {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 8px 12px !important;
        padding: 12px !important;
    }

    .Produkt > img {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 64px !important;
        height: 64px !important;
    }

    .ProduktInfo {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .ProduktInfo h2 {
        font-size: 17px !important;
    }

    .ProduktInfo p {
        font-size: 12px !important;
    }

    .ProduktPris {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        align-self: start !important;
        margin: 0 !important;
        font-size: 15px !important;
    }

    .Antal {
        margin-top: 9px !important;
        gap: 8px !important;
    }

    .Antal input {
        width: 54px !important;
        min-height: 34px;
    }

    .Backgrund2 {
        width: calc(100% - 24px) !important;
        margin: 0 auto 28px !important;
        padding: 20px !important;
    }

    .Backgrund2 h2 {
        font-size: 27px !important;
    }

    .KostnadRad {
        font-size: 14px !important;
    }

    .Total {
        font-size: 22px !important;
    }

    .RabattInput input {
        font-size: 13px !important;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 16px !important;
        padding: 26px 16px !important;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }

    footer .footer-brand img,
    footer > div:first-child > img {
        width: 105px !important;
    }

    footer h4,
    footer a {
        font-size: 12px !important;
    }
}

/* Mycket smala mobiler */
@media (max-width: 360px) {
    .Backgrund3,
    .Backgrund2 {
        width: calc(100% - 16px) !important;
    }

    .Produkt {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 9px !important;
    }

    .Produkt > img {
        width: 54px !important;
        height: 54px !important;
    }

    .ProduktInfo h2 {
        font-size: 15px !important;
    }

    .ProduktPris {
        font-size: 14px !important;
    }

    .Backgrund2 {
        padding: 16px !important;
    }

    .RabattInput {
        flex-wrap: wrap;
    }

    .RabattInput button {
        flex: 1 1 100%;
    }

    footer {
        padding: 22px 12px !important;
        gap: 20px 10px !important;
    }
}
