/* =========================================================
   KraftedKakao — Cleaned CSS (responsive & deduped)
   ========================================================= */
   
   
   /*-------------*------/
   
   /* Layout: make footer stick to bottom when content is short */
html, body { height: 100%; }

body {
  min-height: 100svh;            /* supports mobile safe areas */
  display: flex;
  flex-direction: column;
}

/* Let main take the available space between header and footer */
main, #wl-main {
  flex: 1 0 auto;
}

/* Push footer to the end of the column when content is short */
.kk-footer {
  margin-top: auto;
}

/*-------------------*/

/* Footer only visible after a small scroll on wishlist */
.page-wishlist #wl-main{
  /* viewport height - header + a little extra to force scroll */
  min-block-size: calc(100svh - var(--header-h) + 180px);
}

/* opt-in: make page taller so footer stays below the fold */
.force-below-fold main {
  min-block-size: calc(100svh - var(--header-h) + 180px);
}


/* ---------- Root & Base ---------- */
:root {
  --header-bg: #3B2F2F;
  --panel-bg: #FFF0E0;
  --text: #2E1D1A;
  --accent: #8B5E3C;
  --muted: #e0e0e0;  
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: clamp(14px, 1.6vw, 16px); }

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  background: #FFF8F2;
  color: var(--text);
  scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utility: lock background scroll when mobile menu is open */
.body--menu-open { overflow: hidden; }

/* Tap-targets */
.icons i, .btn, button {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* One logo rule (remove other .logo rules) */
.logo { font-size: clamp(1.4rem, 6vw, 2.4rem); line-height: 1; display: flex; align-items: center; }

/* =========================================================
   Header & Navigation
   ========================================================= */

/* Desktop (default) header */
#main-header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: var(--header-bg); color: #fff;
  padding: 15px 40px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000; transition: padding .3s;
}
#main-header.shrink { padding: 10px 40px; }

/* Normalize button & icon boxes so they align perfectly */
#main-header .menu-toggle {    
  width: 44px; height: 44px; margin: 0; padding: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Button specifics */
#main-header .menu-toggle { background: transparent; border: 0; font-size: 1.6rem; color: #fff; }
#main-header .menu-toggle i { pointer-events: none; } /* ensures click hits the button */

/* Desktop nav links */
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
}

/* Header icons */
.icons { display: flex; gap: 15px; align-items: center; }
.icons i { font-size: 1.3rem; color:#fff; cursor:pointer; transition: transform .2s; }

/* Hide hamburger on desktop, show only on mobile */
.menu-toggle { 
  display: none;           /* desktop/tablet default */
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;  /* visible on mobile */
  }
}

.icons i:hover { transform: scale(1.2); }

/* Mobile header (≤768px) */

/* === Mobile header: hamburger left, logo center, icons right (FINAL) === */
@media (max-width: 768px) {
  /* Header uses grid with three columns */
  #main-header {
    display: grid !important;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    column-gap: 12px;
    padding: 10px 12px;
    position: relative; /* anchor the dropdown nav */
    min-height: 56px;   /* keeps row height stable */
  }

  /* Left: hamburger (direct child of header) */
  #main-header > .menu-toggle {
    grid-column: 1;
    justify-self: start;
    align-self: center;
    display: inline-flex !important;
    width: 44px; height: 44px;
  }

  /* Center: logo (direct child of header) */
  #main-header > .logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    margin: 0;
    line-height: 1;
  }

  /* Right: header actions wrapper (direct child of header) */
  #main-header > #header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  /* Keep icons on one line inside header-actions */
  #main-header #header-actions .icons {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
  }

  /* Dropdown nav sits BELOW the bar (and not in the grid flow) */
  #main-header > #primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none; /* toggle with .open class in JS */
    background: var(--header-bg);
    padding: 8px 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    z-index: 1001;
  }
  #main-header > #primary-nav.open { display: block; }

  /* Uniform tap targets */
  #main-header .icons i { width: 44px; height: 44px; }
}



/* Force-hide hamburger on desktop */
@media (min-width: 769px){
  .menu-toggle{ display: none !important; }
}


@media (max-width: 768px) {
  #main-header {
    display: grid !important;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    column-gap: 12px;
    /* add this line to avoid unexpected second row */
    grid-auto-rows: min-content;
  }

  /* 🔑 Pin each item to the first row */
  #main-header > .menu-toggle,
  #main-header > .logo,
  #main-header > #header-actions {
    grid-row: 1;
  }

  /* let all direct children be allowed to shrink if needed */
  #main-header > * { min-width: 0; }
}




/* Only needed if some pages use <header> without the #main-header id */
header { background: var(--header-bg); color: #fff; }

/*--------------------*/
/* Default (desktop/tablet): hide the new items inside nav */
.nav-links .mobile-only { display: none; }

/* Mobile: show the new items and hide envelope/user in the top bar */
@media (max-width: 768px) {
  #primary-nav .mobile-only { display: block; }

  /* Hide ✉️ and 👤 in the header bar */
  #header-actions .fa-envelope,
  #header-actions #user-icon { display: none !important; }

  /* Make the nav items look nice: icon + label in a row */
  #primary-nav .nav-action {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #primary-nav .nav-action i {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
  }
}



#header-actions { display:flex; align-items:center; gap:30px; }
@media (max-width:768px){ #header-actions { gap:12px; } }

/*----*/

/* DESKTOP ONLY (old look): logo left, nav + icons together on right */
@media (min-width: 769px){
  #main-header{
    justify-content: flex-start;      /* instead of space-between */
  }
  .nav-links{
    margin-left: auto;                /* pushes nav to the right side */
    margin-right: 20px;               /* small gap between nav and icons */
  }
}



/* Desktop: tighter icon cluster */
@media (min-width: 769px){
  #header-actions{ gap: 12px; }       /* tighter than 30px */
  #main-header .icons i{
    min-width: auto;                  /* stop forcing 44px boxes */
    min-height: auto;
    padding: 4px;                     /* small click area on desktop is OK */
    font-size: 1.1rem;                /* slightly smaller than 1.3rem if you like */
  }
}

/* Mobile: keep big tap targets */
@media (max-width: 768px){
  #header-actions{ gap: 12px; }
  #main-header .icons i{
    min-width: 44px;
    min-height: 44px;
  }
}


/* Desktop: logo + nav text like old CSS */
@media (min-width: 769px){
  .logo{
    font-weight: 600;
    letter-spacing: 1px;
  }
  .nav-links a{
    font-size: 1rem;      /* already set, restated for clarity */
    font-weight: 500;
  }
}

/*-------------------*/

/* === Desktop tweaks: remove 44×44 boxes and tighten gaps === */
@media (min-width: 769px){
  /* stop the global tap-target rule from affecting desktop icons */
  .icons i { min-width:auto; min-height:auto; }

  /* undo the header's 44×44 box for icons on desktop */
  #main-header .icons i{
    width:auto; height:auto;
    padding:0;
    font-size:1.3rem;   /* match old look */
  }

  /* tighter spacing */
  #header-actions{ gap:20px; }   /* gap between nav and the icon cluster */
  #main-header .icons{ gap:15px; } /* gap between the individual icons */
}

/* === Mobile: keep big tap targets === */
@media (max-width: 768px){
  #main-header .icons i{
    width:44px; height:44px;     /* big tappable boxes only on mobile */
  }
}

/*------------------*/

/* Taller header on desktop */
@media (min-width: 769px){
  #main-header{ padding: 22px 56px; }   /* was 15px 40px */
  #main-header.shrink{ padding: 16px 48px; } /* keep a smaller scrolled state */
}

/* Taller header on mobile */
@media (max-width: 768px){
  #main-header{
    padding: 14px 16px;     /* was 10px 12px */
    min-height: 64px;       /* was 56px */
  }
  /* keep tap targets comfortable if you like */
  #main-header > .menu-toggle{ width:48px; height:48px; }
}

/*--------*/

/* === Make MOBILE header match DESKTOP visuals exactly === */
@media (max-width: 768px){
  /* 1) Icons: same pixel size as desktop (1.3rem @ 16px ≈ 21px),
        and no 44×44 boxes for header icons */
  #main-header .icons { gap: 10px; }           /* same as desktop tight cluster */
  #main-header .icons i{
    font-size: 21px;                           /* desktop visual size */
    width: auto; height: auto;                 /* undo 44×44 */
    min-width: auto; min-height: auto;         /* override global 44×44 min */
    padding: 4px;                              /* tiny cushion, optional */
  }

  /* 2) Logo: same pixel size as desktop (2.4rem @ 16px ≈ 38px) */
  #main-header > .logo{
    font-size: 28px;                           /* matches desktop exactly */
    letter-spacing: 1px;
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* 3) Keep the hamburger glyph proportionate to icons */
  #main-header > .menu-toggle{
    width: auto; height: auto;                 /* no forced box */
    padding: 4px;
    font-size: 21px;                           /* match icon glyph size */
  }

  /* 4) Slightly reduce column spacing to keep things tight */
  #main-header{ column-gap: 10px; }

  /* 5) Ensure the icon group itself can shrink */
  #header-actions{ gap:05px; min-width: 0; }
}


/* Desktop keeps 600 */
.logo{
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
}
/* Base mobile: lock logo at 28px up to 450px */
@media (max-width: 768px){
  #main-header > .logo{
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .8px;
    -webkit-text-stroke: 0.2px rgba(0,0,0,0.01);
    font-synthesis-weight: none;
  }
}




/* Mobile base: keep tight gaps up to 450px */
@media (max-width: 768px){
  /* icons inside the cluster */
  #main-header .icons { gap: 10px; }       /* your preferred base */
  /* gap between menu-toggle / logo / icon cluster */
  #header-actions { gap: 5px; }            /* tight base */
  /* header columns */
  #main-header { column-gap: 10px; }
}



/* --- FIX: tight gaps + edge paddings on mobile and ≤450px --- */

/* Mobile base (≤768): keep things tight */
@media (max-width: 768px){
  /* edge paddings: reduce left (hamburger side) and right (icons side) */
  #main-header{
    padding-left: 8px !important;
    padding-right: 8px !important;
    column-gap: 10px !important; /* small column gap */
  }

  /* base gaps in the icon area */
  #header-actions{ gap: 5px !important; }
  #main-header .icons{ gap: 10px !important; }
}

/* Mobile: tight edges + smooth logo shrink (no 450px rule anywhere) */
@media (max-width: 768px){
  /* pull hamburger and icons closer to edges, keep columns tight */
  #main-header{
    padding-left: clamp(6px, 2vw, 8px) !important;   /* left: menu toggle */
    padding-right: clamp(6px, 2vw, 8px) !important;  /* right: icons */
    column-gap: clamp(6px, 1.5vw, 10px) !important;  /* center column gap */
  }

  /* keep icon cluster gaps tight and scale slightly with width */
  #header-actions{ gap: clamp(4px, 1vw, 6px) !important; }
  #main-header .icons{ gap: clamp(6px, 1.5vw, 10px) !important; }

  /* Logo: base 28px and shrink smoothly as viewport narrows.
     28px at ~≥460px, ~16px by ~150px (2× faster look vs icons). */
  #main-header > .logo{
    font-size: clamp(16px, calc(5vw + 5px), 28px) !important;
    font-weight: 700;            /* keeps the “thick” fix */
    letter-spacing: .8px;
    -webkit-text-stroke: 0.2px rgba(0,0,0,0.01);
    font-synthesis-weight: none;
  }
}

/*----------------*/

/* Mobile dropdown: stack links & make them tappable */
@media (max-width: 768px) {
  

  /* every link becomes a full-width row */
  #primary-nav a {
    display: block;
    padding: 12px 16px;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
  }

  /* light separators for clarity (optional) */
  #primary-nav a + a {
    border-top: 1px solid rgba(255,255,255,.08);
  }

  /* keep icon+label row for the mobile-only actions */
  #primary-nav .nav-action {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* ensure the dropdown sits above everything & is clickable */
  #main-header { position: relative; z-index: 1000; }
  #primary-nav { z-index: 1001; }
}



/* =========================================================
   Page Structure
   ========================================================= */

main {
  padding-top: 110px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

h2 { color: var(--accent); margin: 40px 0 20px; font-weight: 600; }

/* Order rows (generic) */
.order-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) {
  .order-row { grid-template-columns: 1fr; border: 1px solid #eee; padding: 12px; border-radius: 10px; }
  .order-row > * + * { margin-top: 6px; }
}

/* =========================
   Product Grid & Cards (FINAL)
   ========================= */


/* Card: same look/structure as old, but responsive & equal height */
.chocolate-item{
  position: relative;
  display: flex;
  flex-direction: column;
  background:#fff;
  border-radius:12px;
  padding:12px; /* tighter */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: center;

  /* image ratio variable (desktop/tablet default) */
  --img-ratio: 4 / 5;
}
@media (min-width: 769px){
  .chocolate-item { min-height: 350px; } /* visual consistency on desktop */
}
.chocolate-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Image: consistent aspect with variable ratio */
.chocolate-item > img{
  width: 100%;
  aspect-ratio: var(--img-ratio);
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* On mobile you can make cards shorter by changing the ratio */
@media (max-width: 768px){
  .chocolate-item { --img-ratio: 1/1; } /* try 5/8, 2/3, etc. */
}

/* Title & text */
.chocolate-item h4{
  margin: 12px 0 4px;              /* tighter */
  color: var(--header-bg);
  font-weight: 600;
  display: -webkit-box;            /* clamp to 2 lines */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.description{
  font-size: .9rem;
  color: var(--text);
  margin-top: 4px;
  display: none;
}
.chocolate-item:hover .description{ display: block; }

/* Actions: pin to bottom regardless of text length */
.add-btn,
.sold-out-btn,
.quantity-controls{ margin-top: auto; }

/* Buttons (keep your existing colors) */
.add-btn, .sold-out-btn, .wishlist-btn, .remove-btn{
  border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 500;
}
.add-btn, .wishlist-btn{ background: var(--accent); color: #fff; }
/* unify Sold Out to light grey */
.sold-out-btn{
  background: var(--muted) !important; /* = #e0e0e0 from :root */
  color: #d9534f !important;
  cursor: not-allowed;
  border: none;
}

/* Quantity controls */
.quantity-controls{
  display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px;
}
.quantity-controls button{
  width: 30px; height: 30px; background: var(--accent); color: #fff;
  border: none; border-radius: 4px; font-size: 1.2rem; cursor: pointer;
}
.quantity-controls span{ min-width: 25px; text-align: center; font-weight: 500; }

/* Wishlist heart */
.wishlist-icon{
  position: absolute; top: 10px; right: 10px;
  font-size: 1.2rem; color: var(--accent); z-index: 1; cursor: pointer;
}
.wishlist-icon.clicked i{ color: red; }

/* Mobile & tablet: always show description */
@media (max-width: 768px){
  .description { display: block !important; }
  .chocolate-item:hover .description { display: block; } /* redundant but safe */
}




/* === Unified grid rules for products + wishlist === */
.chocolate-section,
.wishlist-grid{
  display: grid;
  gap: 24px;
  justify-content: center;   /* center the whole grid block */
  justify-items: center;     /* center each card in its cell */
  padding: 0 16px;
  margin: 0 auto;
}

/* <600px: keep 2 columns */
@media (max-width: 599px){
  .chocolate-section,
  .wishlist-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ≥600px: force 3 columns, allow them to shrink to fit */
@media (min-width: 600px){
  .chocolate-section,
  .wishlist-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;                 /* a bit tighter helps at ~600–700px */
  }

  /* cap card growth on wider screens */
  .chocolate-item,
  .wishlist-item{
    width: 100%;
    max-width: 300px;
  }
}


/* Optional: keep the whole grid tight on very wide screens
   so the next section remains slightly visible */
@media (min-width: 1100px){
  .chocolate-section,
  .wishlist-grid{ max-width: 980px; }
}


/* ========================================================= 
Side Panel (Contact / etc.) 
========================================================= */
/* === Side panel: no header gap + old inner look === */

/* header heights (match your site) */
:root{
  --header-h-desktop: 80px;
  --header-h-mobile: 64px;
}
@media (min-width: 769px){ :root{ --header-h: var(--header-h-desktop); } }
@media (max-width: 768px){ :root{ --header-h: var(--header-h-mobile); } }

.side-panel{
  position: fixed;
  inset: 0 0 0 auto;             /* top:0; right:0; bottom:0; */
  width: 420px;                   /* desktop width */
  height: 100vh;                  /* full height */
  background: var(--panel-bg);
  box-shadow: -2px 0 15px rgba(0,0,0,.2);
  z-index: 999;

  /* slide-in via transform (no negative right) */
  transform: translateX(100%);
  transition: transform .35s ease;

  /* visually start under the header with zero gap */
  padding-top: var(--header-h);

  /* keep a flex column so content fills and scrolls like before */
  display: flex;
  flex-direction: column;
}
.side-panel.active{ transform: translateX(0); }

/* Tablet + mobile: 75% width */
@media (max-width: 1024px){
  .side-panel{ width: 75vw; max-width: 420px; }
}

/* ✅ Restore the previous inner appearance */
.panel-content{
  display: flex;
  flex-direction: column;
  gap: 15px;            /* same as before */
  padding: 30px;        /* same as before */
  height: auto;         /* let flex control the height */
  flex: 1;              /* fill available space */
  overflow-y: auto;     /* scroll inside when needed */
  -webkit-overflow-scrolling: touch;
}

/* keep your original field/button look */
.panel-content input,
.panel-content textarea{
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}
.panel-content button{
  padding: 10px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 500;
  cursor: pointer;
}
.panel-content button:hover{ background:#7a482e; }

/* =========================================================
   Modal & Slider
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal .modal-content {
  position: relative;
  background: #fff;
  padding: 10px;                /* ↓ reduced from 20px */
  border-radius: 10px;
  max-width: 400px;
  width: min(92vw, 420px);
}

.modal .modal-content img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;           /* slightly smaller radius */
}

/* keep X above everything inside the modal card */
.modal .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.98);
  color: #333;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* --- Modal slider: keep arrows inside the white card --- */
.slider {
  position: relative;
  display: block;
}

.slider img {
  display: block;
  width: 100%;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  width: 38px;                 /* slightly smaller */
  height: 38px;
  font-size: 1.2rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 2;
}

/* snug to the inside edges of the white modal */
.slider .prev { left: 6px; }
.slider .next { right: 6px; }

/* smaller phones */
@media (max-width: 480px) {
  .modal .modal-content {
    padding: 6px;               /* ↓ even tighter on phones */
    width: min(94vw, 420px);
  }
  .slider button {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .slider .prev { left: 4px; }
  .slider .next { right: 4px; }
}

/* dots container at bottom of slider */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;              /* ↓ reduced margin */
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: rgba(0,0,0,0.7);
}



/* =========================================================
   Toast
   ========================================================= */

/* Toast (used by showToast in main.js) */
#toast-message {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #3B2F2F;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#toast-message.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Cart Page
   ========================================================= */

.item-line-row {
  display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px;
}

.cart-container {
  display: flex; justify-content: center; gap: 20px;
  padding: 140px 20px 40px; max-width: 1200px; margin: auto;
}

.cart-left-column { display: flex; flex-direction: column; width: 70%; }
.cart-left { width: 100% !important; padding-right: 0; }

.cart-item {
  display: flex; gap: 20px; padding: 15px 10px; border-bottom: 1px solid #ddd; align-items: center; flex-wrap: wrap;
  transition: all .3s ease-in-out;
}
.cart-item img { width: 100px; height: auto; border-radius: 10px; }

.cart-info { flex: 1; min-width: 200px; }

.cart-controls {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px;
}
.cart-controls button { padding: 4px 10px; font-size: 1rem; border-radius: 6px; cursor: pointer; border: none; }

.wishlist-btn { background: var(--accent); color: #fff; }

.cart-right {
  width: 30%; padding: 30px 25px; position: sticky; top: 100px; height: fit-content;
  background: #fff6eb; box-shadow: 0 0 10px rgba(0,0,0,.05); border-radius: 10px; margin-top: 20px; margin-left: 25px;
}

.promo-box { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-box input {
  padding: 8px 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; flex: 1;
}
.promo-box button {
  padding: 8px 16px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer;
}

.summary-row { display: flex; justify-content: space-between; margin: 12px 0; font-size: 1rem; }
.summary-row .label { min-width: 80px; text-align: left; }
.summary-row .value { text-align: right; font-weight: bold; }

.checkout-btn {
  width: 100%; padding: 12px; margin-top: 20px; font-size: 1rem;
  background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer;
}

/* Unserviceable Warning */
.unserviceable-box {
  background: #fff3cd; border: 1px solid #ffeeba; color: #856404;
  padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: .95rem; font-weight: 500; width: 100%;
}
.unserviceable-box li::before { content: "⚠️ "; margin-right: 4px; }
.unserviceable-box .cart-item {
  background: #fff7e6; border: 1px dashed #ffa500; padding: 15px; border-radius: 8px;
}

/* Cart responsiveness */
@media (max-width: 768px) {
  .cart-container { flex-direction: column; }
  .cart-left-column, .cart-right { width: 100%; margin-left: 0; }
  .cart-right { margin-top: 20px; }
}

/* =========================================================
   Checkout Page
   ========================================================= */

.checkout-container {
  display: flex; gap: 20px; align-items: flex-start;
  max-width: 1200px; margin: auto; padding: 30px 20px;
}
.checkout-left { flex: 1 1 60%; }
.checkout-right {
  flex: 1 1 40%; position: sticky; top: 96px;
  background: #fff; padding: 20px; border-radius: 10px; height: fit-content; box-shadow: 0 2px 8px rgba(0,0,0,.1);
  margin-bottom: 20px; display: flex; flex-direction: column; gap: 20px;
}

@media (max-width: 992px) { .checkout-container { gap: 16px; } }
@media (max-width: 768px) {
  .checkout-container { flex-direction: column; }
  .checkout-right { position: static; width: 100%; }
  .section, .panel, .address-card, .summary-card { padding: 12px; }
}
@media (max-width: 560px) {
  .btn, button, input, select, textarea { font-size: 1rem; }
  .form-row { flex-direction: column; gap: 10px; }
}

.checkout-form {
  flex: 2; background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.checkout-form h2,
.checkout-summary h3 { margin-bottom: 20px; color: var(--header-bg); }

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 15px;
  border-radius: 6px; border: 1px solid #ccc; font-size: .95rem; font-family: 'Poppins', sans-serif;
}
.checkout-form label { font-weight: 500; }
.checkout-form button {
  padding: 12px 20px; background: var(--accent); color: #fff; border: none; font-size: 1rem; border-radius: 8px; cursor: pointer;
}

.total { border-top: 1px solid #ccc; padding-top: 10px; }

.checkout-user {
  background: #fff; padding: 20px; border-radius: 10px; height: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); position: relative; margin-bottom: 20px;
}
.checkout-user h3 { margin-top: 0; color: var(--header-bg); }
.checkout-user p { font-size: 1rem; margin: 8px 0 0; font-weight: 500; }

.edit-btn, .delete-btn {
  margin-left: 10px; font-size: .8rem; padding: 2px 8px; cursor: pointer; border-radius: 4px; border: none;
}
.edit-btn { background: #4CAF50; color: #fff; }
.delete-btn { background: #f44336; color: #fff; }

/* =========================================================
   Misc small-layout tweaks
   ========================================================= */

@media (max-width: 768px) {
  main { margin: 16px auto; padding: 1.25rem 1rem; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .warning-box { margin-bottom: 12px; }
}

/* End of file */

/* === FIX: keep radios aligned in Personal Information === */

/* 1) Limit the "full-width input" styling to text-ish inputs only */
.personal-info input:not([type="radio"]):not([type="checkbox"]) {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 100%;
  background-color: #f7f7f7;
}

/* 2) Reset any radio weirdness inside gender group */
.personal-info .gender-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;           /* lets them wrap nicely on narrow screens */
}

.personal-info .gender-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.personal-info .gender-group input[type="radio"] {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 6px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;   /* neutralize any inherited transforms */
  accent-color: #3B2F2F;
}

/* 3) (Optional) Tighten spacing on very small screens */
@media (max-width: 480px){
  .personal-info .gender-group { gap: 12px; }
}


/*----------------------*/


/* ---------- Footer ---------- */
:root{
  --kk-footer-bg: #12100f;         /* deeper than header for contrast */
  --kk-footer-text: #e9e0d9;       /* warm off-white */
  --kk-footer-muted: #bdaea3;
  --kk-accent: #8B5E3C;            /* your brand accent */
  --kk-border: rgba(255,255,255,.08);
}

.kk-footer{
  background: var(--kk-footer-bg);
  color: var(--kk-footer-text);
  padding: 48px 20px 14px;
}

.kk-footer a{ color: var(--kk-footer-text); text-decoration: none; }
.kk-footer a:hover{ color: #fff; text-decoration: underline; }

.kk-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}

.kk-footer__col{
  grid-column: span 3;             /* 4 columns on desktop */
  min-width: 220px;
}

.kk-footer__brand{
  grid-column: span 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.kk-footer__brand img{ max-width: 180px; opacity: .95; }
.kk-footer__tag{
  font-size: .75rem; letter-spacing: .14em; color: var(--kk-footer-muted);
}

.kk-footer__heading{
  font-weight: 600;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.kk-footer__links{ list-style: none; padding: 0; margin: 0; }
.kk-footer__links li{ margin: 8px 0; }
.kk-footer__links a{ opacity: .9; }
.kk-footer__links a:hover{ opacity: 1; }

.kk-footer__address{
  line-height: 1.7;
  font-style: normal;
  color: var(--kk-footer-text);
  opacity: .95;
}
.kk-footer__address a{ color: var(--kk-footer-text); font-weight: 500; }

.kk-footer__form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.kk-footer__form input{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--kk-border);
  color: var(--kk-footer-text);
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
}
.kk-footer__form input::placeholder{ color: var(--kk-footer-muted); }
.kk-footer__form input:focus{ border-color: var(--kk-accent); box-shadow: 0 0 0 3px rgba(139,94,60,.25); }

.kk-footer__form button{
  background: var(--kk-accent);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
}
.kk-footer__form button:hover{ filter: brightness(1.05); }
.kk-footer__form .arrow{ display:inline-block; transform: translateY(1px); }

.kk-footer__social{
  margin-top: 14px;
  display: flex; gap: 12px;
}
.kk-footer__social a{
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--kk-border); border-radius: 999px;
  opacity: .9;
}
.kk-footer__social a:hover{ opacity: 1; border-color: rgba(255,255,255,.24); }

.kk-footer__bottom{
  margin: 28px auto 0;
  max-width: 1200px;
  padding-top: 18px;
  border-top: 1px solid var(--kk-border);
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--kk-footer-muted);
  font-size: .92rem;
}
.kk-footer__bottom a{ color: var(--kk-footer-muted); }
.kk-footer__bottom a:hover{ color: #fff; }

.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;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .kk-footer__col{ grid-column: span 6; }
  .kk-footer__brand{ grid-column: span 6; align-items: flex-start;transform: translateY(-90px); }
}

@media (max-width: 640px){
  .kk-footer__inner{ grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .kk-footer__col, .kk-footer__brand{ grid-column: 1 / -1; }
  .kk-footer__brand{ align-items: center; transform: none; }
  .kk-footer__bottom{ flex-direction: column; gap: 6px; text-align: center; }
}


/*---------------profile-pages-----------------*/

/* Addresses page layout (desktop/tablet card + mobile full width) */
:root { --page-card-max: 880px; }

#main-header ~ main.profile{
  /* card */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,.05);
  padding: 2rem 1.5rem 1.75rem;

  /* sizing & centering */
  box-sizing: border-box;
  max-width: var(--page-card-max);
  width: min(100% - 48px, var(--page-card-max)); /* prevents random shrinking */
  margin: 72px auto 24px;

  /* counter any global center text */
  text-align: left;

  /* body is flex-column; this prevents cross-axis squeeze */
  align-self: center;
}

/* phones: edge-to-edge like other pages */
@media (max-width: 768px){
  #main-header ~ main.profile{
    margin: 0 !important;
    max-width: none;
    width: 100%;
    border-radius: 0;
    padding: 1rem !important;
  }
}

/*------------Zoom in-----------------*/

/* Prevent iOS zoom on form fields */
@media (max-width: 768px){
  input, select, textarea {
    font-size: 16px !important;     /* key line */
    line-height: 1.3;
  }
}



@media (max-width: 768px) {
  /* Freeze background scroll only on mobile when panel is open */
  .body--panel-open {
    overflow: hidden;
    height: 100%;     /* prevents iOS body jump */
  }

  /* Allow the contact panel itself to scroll */
  .side-panel {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  /* smooth scrolling inside the panel */
  .side-panel { overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* stabilize panel height against keyboard changes */
  .side-panel { height: 100dvh; }
}


@media (max-width: 768px){
  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    font-size: 16px !important;
  }
}


@media (max-width: 768px){
  .kk-footer__form input {
    font-size: 16px !important;
  }
}


@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px){
    input, select, textarea { font-size: 16px !important; }
  }
}


/*------------index-slider-------------*/


/* ===== About: hero slider band ===== */
:root{
  --hero-max-w: 1100px;          /* adjust as you like */
  --hero-ratio: 3/1;       /* will be auto-updated by JS from first image */
}

.kk-hero{ padding: 0; margin-top: 40px; } /* space above band if needed */

.kk-hero__frame{
  position: relative;
  width: min(var(--hero-max-w), 92vw);
  aspect-ratio: var(--hero-ratio);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.kk-hero__slide{
  position: absolute; inset: 0;
  background-position: center;
  background-size: contain;      /* no cropping; full image inside the frame */
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.kk-hero__slide.is-active{ opacity: 1; }

/* soft vignette */
.kk-hero__frame::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(ellipse at center,
              rgba(0,0,0,.08) 0%, rgba(0,0,0,.20) 100%);
}

/* glass card overlay */
.kk-hero__about{
  position:absolute; left:24px; right:24px; bottom:8%;
  color:#fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius:16px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 28px);
}
.kk-hero__title{
  margin: 0 0 6px;
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: .3px;
  color: #fff;
}
.kk-hero__text{
  margin: 0;
  font-size: clamp(13px, 1.9vw, 16px);
  line-height: 1.6;
  color: rgba(255,255,255,.95);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .kk-hero__slide{ transition: none; }
}

/* Mobile-only tweaks for About hero */
@media (max-width: 600px){
  .kk-hero__about{
    background: transparent !important;   /* no glass on mobile */
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    left: 12px; right: 12px; bottom: 6%;  /* a bit tighter on phones */
    padding: 14px 16px;
  }

  .kk-hero__text{
    text-align: center;                    /* center the paragraph */
    color: #fff;                           /* keep readable on photo */
    text-shadow: 0 2px 6px rgba(0,0,0,.55);/* boost contrast on busy bg */
    margin: 0;
  }
}

@media (min-width: 769px){
  main { padding-bottom: 48px; }  /* keeps a site-wide bottom cushion */
}


/* Small screens: keep full image, no crop */
.kk-hero__slide{ background-size: contain; }

/* ≥870px: make the band flatter *and* crop to fill it */
@media (min-width: 870px){
  .kk-hero__frame { --hero-ratio: 2.7 / 1; }   /* tune 3.6–4.5/1 as you like */
  .kk-hero__slide{
    background-size: cover;         /* fill the whole frame, no grey bars */
    background-position: 50% 45%;   /* tweak focal point if needed */
  }
}

/* Optional: even flatter at wider breakpoints */
@media (min-width: 1100px){
  .kk-hero__frame { --hero-ratio: 2.7 / 1; }
}

/* 2) Reduce top margin for the first section’s heading */
#signature > h2{
  margin-top: 15px;                /* was 40px */
}

