:root{
    --bg:#ffffff;
    --card:#ffffff;
    --border:#e9e9e9;
    --muted:#666;
    --text:#111;
    --btn:#111;
    --btnText:#fff;
  }
  
  *{ box-sizing:border-box; }
  
  body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  
  img{ max-width:100%; height:auto; display:block; }
  
  a{ color:inherit; }
  
  /* ===== Layout ===== */
.wrap{
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
}

/* Wider on bigger screens */
@media (min-width: 1100px){
  .wrap{ max-width: 1180px; }
}
@media (min-width: 1400px){
  .wrap{ max-width: 1380px; }
}
  
  .topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 18px;
    border-bottom:1px solid var(--border);
    background:#fff;
    position:sticky;
    top:0;
    z-index:10;
  }
  
  .brand{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-weight:900;
  }
  
  .logo{ height:32px; width:auto; }
  
  .menu{
    font-size:12px;
    letter-spacing:3px;
    color:var(--muted);
  }
  
  h1{ font-size:40px; margin: 10px 0 18px; }
  h2{ margin: 0 0 10px; }
  
  .card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    padding:16px;
    margin: 12px 0;
    overflow:hidden; /* keeps scroller clipped inside rounded card */
  }
  
  .muted{ color:var(--muted); }
  .small{ font-size:12px; }
  
  .sep{
    border:0;
    border-top:1px solid var(--border);
    margin:18px 0;
  }
  
  /* ===== Form controls ===== */
  .field{ display:block; margin: 10px 0; }
  .label{ font-weight:700; margin-bottom:6px; }
  
  input, textarea{
    width:100%;
    border:1px solid var(--border);
    border-radius:12px;
    padding:12px 12px;
    font-size:16px;
  }
  input[type="checkbox"], input[type="radio"]{
    width:auto;
    padding:0;
  }
  
  textarea{ resize: vertical; }
  
  input:focus,
  textarea:focus{
    border-color:#cfcfcf;
  }
  
  .two{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  @media (min-width: 680px){
    .two{ grid-template-columns: 1fr 1fr; }
  }
  
  /* Make checkbox/radio not inherit the full-width input styling */
  input[type="checkbox"],
  input[type="radio"]{
    width:auto;
    padding:0;
  }
  
  /* Checkbox row */
  .nomessage{ margin: 10px 0 18px; }
  .nomessage label{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    color:#333;
  }
  .nomessage input[type="checkbox"]{
    width:22px;
    height:22px;
  }
  
  /* Buttons */
  .btn{
    background:var(--btn);
    color:var(--btnText);
    border:none;
    border-radius:12px;
    padding:12px 14px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
  }
  
  .btn:hover{ opacity:0.92; }
  
  .btn.small{
    padding:8px 10px;
    font-size:14px;
    border-radius:10px;
  }
  
  .btn.ghost{
    background:#fff;
    border:1px solid #ddd;
    color:#111;
  }
  
  /* Notices */
  .notice{
    border:1px solid var(--border);
    background:#fafafa;
    border-radius:12px;
    padding:12px;
    margin: 10px 0 14px;
  }
  .notice.ok{
    border-color:#cfe9d6;
    background:#f3fbf6;
  }
  
  /* ===== Giftbox horizontal picker ===== */
  .boxscroller{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    padding: 8px 0 14px;
  }
  
  .boxscroller::-webkit-scrollbar{ height:8px; }
  .boxscroller::-webkit-scrollbar-thumb{
    border-radius:999px;
    background: rgba(0,0,0,.15);
  }
  
  .boxlist{
    display:flex;
    gap:14px;
    padding: 0 10px; /* keeps first/last card from sticking to edge */
    scroll-padding-left: 10px;
  }
  
  /* Responsive card width: near-full on mobile, capped on desktop */
  .boxitem{
    flex: 0 0 calc(100% - 20px); /* avoids the “320px skinny column” */
    max-width: 420px;
    scroll-snap-align:start;
  
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  
    padding:14px;
    border:1px solid var(--border);
    border-radius:16px;
    cursor:pointer;
    background:#fff;
    position:relative;
  }
  
  @media (min-width: 680px){
    .boxitem{
      flex: 0 0 360px;
      max-width:none;
    }
  }
  
  .boxitem:hover{ border-color:#dcdcdc; }
  
  /* Hide radio (we show selection by outlining the image) */
  .boxitem .radio{
    position:absolute;
    opacity:0;
    pointer-events:none;
  }
  
  /* Image */
  .boximg{
    width:100%;
    height:180px;
    border-radius:14px;
    overflow:hidden;
    background:#f4f4f4;
  }
  
  .boximg img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
  
  /* Meta */
  .boxmeta{ min-width:0; }
  .boxtitle{
    font-size:20px;
    font-weight:900;
    line-height:1.15;
  }
  .boxprice{
    font-weight:800;
    margin-top:4px;
  }
  .boxdesc{
    margin-top:6px;
    font-size:14px;
    line-height:1.3;
    color:var(--muted);
  
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  
  /* Selected state */
  .boxitem input:checked ~ .boximg{
    outline:2px solid #111;
    outline-offset:2px;
  }
  
  /* ===== Admin table bits (kept for your admin pages) ===== */
  .adminbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    flex-wrap:wrap;
  }
  .adminlinks{
    display:flex;
    align-items:center;
    gap: 10px;
  }
  .adminlinks a{
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .adminlinks a:hover{ border-bottom-color:#111; }
  
  .table{
    width:100%;
    border-collapse:collapse;
  }
  .table th, .table td{
    text-align:left;
    padding:10px;
    border-bottom:1px solid var(--border);
    vertical-align:top;
  }
  .table th{
    background:#fafafa;
    position:sticky;
    top:0;
  }
  
  .badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
  }
  .badge.new{ background:#fff3cd; }
  .badge.paid{ background:#d1e7dd; }
  
  .thumbs{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
  }
  .thumbs img{
    width:56px;
    height:56px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid var(--border);
  }
  
  /* ===== Sample toggle ===== */
  .sample-link{
    color:#111;
    font-weight:700;
    text-decoration:underline;
    cursor:pointer;
    margin-left:6px;
  }
  
  .sample-box{
    display:none;
    margin:12px 0 16px;
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
  }
  .sample-box img{
    width:100%;
    display:block;
  }
  .cookiegrid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:12px;
  }
  @media (min-width: 900px){
    .cookiegrid{ grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 1200px){
    .cookiegrid{ grid-template-columns: repeat(4, 1fr); }
  }

  .cookiecard{
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
    background:#fff;
  }
  
  .cookiecard img{
    width:100%;
    height:220px;        /* key: control height */
    object-fit:cover;
    aspect-ratio: auto;  /* override your 1/1 square */
  }
  @media (max-width: 680px){
    .cookiecard img{
      height:auto;
      aspect-ratio: 1 / 1; /* keep square on mobile if you like */
    }
  }
  
  .cookietitle{
    padding:10px 12px;
    font-weight:800;
    font-size:14px;
  }

  .notice.error{
    border-color:#f5c2c7;
    background:#fff5f5;
  }

  .submit-error{
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #f3b4b4;
    background: #fff5f5;
    color: #8a1f1f;
    font-weight: 600;
    font-size: 14px;
  }

  .img-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:2000;
    padding: 18px;
  }
  .img-modal img{
    max-width: 96%;
    max-height: 92%;
    border-radius: 12px;
  }
  
  .boximg{ position: relative; } /* important */
  
  .zoom-btn{
    position:absolute;
    bottom:10px;
    right:10px;
    background:rgba(0,0,0,.7);
    color:#fff;
    font-size:14px;
    padding:6px 9px;
    border-radius:999px;
    cursor:pointer;
    line-height:1;
    user-select:none;
  }

.cookiecard.selectable { cursor:pointer; }
.cookiecard.selectable.selected { outline: 3px solid #000; border-radius: 16px; }

/* Occasion chips: single-line horizontal scroll */
.chips{
  display:flex;
  flex-wrap: nowrap;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  margin: 10px 0 14px;
  scrollbar-width: none; /* firefox hide */
}
.chips::-webkit-scrollbar{ display:none; } /* chrome/safari hide */

.chip{
  flex: 0 0 auto;
  white-space: nowrap;
  border:1px solid #ddd;
  background:#fff;
  padding:10px 12px;
  border-radius:999px;
  font-size:14px;
  cursor:pointer;
}
.chip.active { border-color:#111; }
.chip.clear { opacity:0.7; }

.recoBadge{
  display:inline-block;
  margin-top:6px;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#eaf5ef;
}
.boxitem.recommended { outline:2px solid rgba(0,0,0,0.06); }

#messageChips .chip{
  font-size:13px;
  padding:8px 10px;
}
#messageChips .chip.active{
  border-color:#111;
}

#qty {
  width: 100%;
}

.field .muted.small {
  margin-top: 6px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 22px;        /* ⬅️ more touch-friendly */
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;       /* ⬅️ softer, premium feel */
  min-width: 160px;          /* ⬅️ makes it feel important */
}

@media (max-width: 600px) {
  .btn {
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
  }
}

/* Make select match your input styling */
.field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  min-height: 48px;          /* important for iOS */
}

/* iOS/Safari: prevent tiny native rendering */
.field select {
  -webkit-appearance: none;
  appearance: none;
}

/* Optional: keep the dropdown arrow visible with your own arrow */
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table {
  min-width: 1100px; /* adjust as needed */
}
/* Horizontal scroll wrapper (you already have this) */
.table-scroll {
  overflow-x: auto;
}

/* Sticky action column (Mark Paid) */
table.orders th:last-child,
table.orders td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 3;
  box-shadow: -4px 0 6px rgba(0,0,0,0.06);
}

/* Optional: make header slightly stronger */
table.orders th:last-child {
  background: #fafafa;
}
.adminlinks { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.adminlinks .btn { display:inline-flex; width:auto; }

/* Admin top bar buttons must not inherit big CTA button rules */
.adminlinks .btn{
  margin-top: 0;
  min-width: 0;
  width: auto;
  padding: 8px 10px;     /* match .btn.small */
  font-size: 14px;
  border-radius: 10px;
}
/* Links in admin bar: only style the plain links, not button links */
.adminlinks a:not(.btn){
  color:#111;
  text-decoration:none;
  border-bottom:1px solid var(--border);
}
.adminlinks a:not(.btn):hover{ border-bottom-color:#111; }

/* Button links in admin bar should look like buttons */
.adminlinks a.btn{
  color:#fff;
  border-bottom:none;
  text-decoration:none;
}

.pac-container { z-index: 99999; }

.pay-summary-title{
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}

.pay-summary-body{
  margin-top: 10px;
  font-size: 15px;      /* bump this to 16 if you want */
  line-height: 1.55;
  color: #111;
}

.pay-summary-body b{
  font-weight: 800;
}

.pay-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.pay-actions form{
  flex:1;
  margin:0;
}

.pay-actions .btn{
  width:100%;
  margin-top:0;   /* IMPORTANT: overrides your global .btn margin-top:20px */
  min-width:0;    /* IMPORTANT: overrides your global min-width:160px */
}

/* stack on mobile */
@media (max-width: 520px){
  .pay-actions{ flex-direction:column; }
}

.field.checkline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 26px; /* aligns with inputs in a .two row */
  font-weight:700;
}
.field.checkline input{ width:22px; height:22px; }
/* Top-right total + address pill (single line, no wrap) */
.order-summary{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: nowrap;

  font-weight: 600;
  font-size: 15px;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}

.order-summary span,
.order-summary b{
  white-space: nowrap;
}

/* Address pill inside the black banner */
.addr-pill{
  flex: 0 0 auto;
  white-space: nowrap;

  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  text-decoration: none;

  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 700;
}

.addr-pill:hover{
  background: rgba(255,255,255,.18);
}

/* ✅ ADD THIS INSTEAD */
a.btn{
  color: var(--btnText);
  text-decoration: none;
}

.addr-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.addr-info{
  flex: 1 1 auto;
  min-width: 0;              /* KEY: allows text to wrap nicely */
}

.addr-actions{
  flex: 0 0 auto;
  display:flex;
  gap:8px;
  align-items:flex-start;
  white-space: nowrap;
}

@media (max-width: 560px){
  .addr-row{
    flex-direction: column;  /* buttons go below text */
  }
  .addr-actions{
    width:100%;
  }
  .addr-actions form{
    flex:1;
  }
  .addr-actions .btn{
    width:100%;
  }
}

.addr-actions{
  display:flex;
  gap:10px;
  align-items:stretch;
  flex-wrap: nowrap;
}

.addr-actions form{
  margin:0;
  flex:1;                 /* two equal buttons */
  min-width:0;
}

.addr-actions .btn{
  width:100% !important;  /* fill its form (not the page) */
  margin-top:0 !important;
  min-width:0 !important;
}

/* If you want: stack buttons on very small screens */
@media (max-width: 380px){
  .addr-actions{ flex-direction:column; }
}

@media (max-width: 560px){
  .addr-row{ flex-direction:column; }
}

.qty-stepper{
  display:flex;
  align-items:center;
  gap:10px;
}
.qty-stepper input{
  text-align:center;
  max-width:120px;
}
.qty-btn{
  width:44px;
  height:44px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  font-size:22px;
  line-height:1;
}
.qty-btn:active{ transform: scale(0.98); }

.icon-marquee{
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  padding: 10px 0;
  margin: 10px 0 6px;
  background: #fff;              /* match your UI */
  border: 1px solid #eee;
}

.icon-track{
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: iconScroll 18s linear infinite;
  will-change: transform;
}

.icon-track img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* seamless loop: move by HALF (because we duplicated the list) */
@keyframes iconScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* pause on touch/hover (optional) */
.icon-marquee:active .icon-track,
.icon-marquee:hover .icon-track{
  animation-play-state: paused;
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .icon-track{ animation: none; }
}

.site-footer{
  padding:16px 0 28px;
  color:#777;
  font-size:12px;
}
.footer-inner{
  max-width:420px;   /* match your layout width */
  margin:0 auto;
  padding:0 18px;
  line-height:1.5;
}
.site-footer a{ color:inherit; text-decoration:underline; }