/* KS Food Packaging - design system v2 (photo led, young and fresh) */
:root {
  --navy: #302782;
  --navy-700: #3B32A0;
  --blue: #0587C3;
  --sky: #81CFF5;
  --sky-100: #E8F6FD;
  --sky-200: #CDEBFB;
  --sky-300: #A9DEF8;
  --mint: #5BE2A8;
  --coral: #FF7A59;
  --lemon: #FFD166;
  --ink: #1B1A3A;
  --muted: #5C5F7F;
}
html { scroll-behavior: smooth; }
body { color: var(--ink); font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif; font-size: 16.5px; }
h1, h2, h3, h4, .display { font-family: 'Unbounded', 'Outfit', sans-serif; letter-spacing: -0.01em; }
.h-18 { height: 4.5rem; }
::selection { background: var(--lemon); color: var(--navy); }

/* Buttons */
.btn-primary, .btn-outline, .btn-ghost, .btn-white, .btn-danger, .btn-coral {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem; border-radius: 9999px; font-weight: 700; font-size: .95rem;
  transition: all .2s cubic-bezier(.2,.8,.2,1); cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(48,39,130,.55); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 28px -10px rgba(5,135,195,.55); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,122,89,.6); }
.btn-coral:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--sky-100); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--lemon); transform: translateY(-2px); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
button:disabled, .btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* Nav */
.nav-link { padding: .55rem .95rem; border-radius: 9999px; font-weight: 600; font-size: .95rem; color: var(--ink); transition: all .15s; }
.nav-link:hover { background: var(--sky-100); color: var(--blue); }
.nav-link-active { color: var(--navy); background: var(--sky-100); }
.menu-item { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
.menu-item:hover { background: var(--sky-100); }
.quote-count-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 9999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Footer */
.footer-heading { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sky); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; color: #D7E6F8; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Typography helpers */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); font-family: 'Unbounded', sans-serif; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; line-height: 1.02; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.08; }
.h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); }
.highlight { background: linear-gradient(transparent 58%, var(--lemon) 58%, var(--lemon) 92%, transparent 92%); padding: 0 .1em; }
.text-muted { color: var(--muted); }

/* Cards */
.card { background: #fff; border-radius: 1.75rem; border: 1px solid var(--sky-100); box-shadow: 0 6px 24px -10px rgba(48,39,130,.12); }
.product-card { background: #fff; border-radius: 1.75rem; border: 1px solid var(--sky-100); overflow: hidden; transition: all .25s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(48,39,130,.3); border-color: var(--sky-200); }
.product-card .product-art { aspect-ratio: 1 / 1; background: #DDF0FB; display: block; overflow: hidden; position: relative; }
.product-card .product-art img, .product-card .product-art svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-art img { transform: scale(1.06); }
.product-card .product-art svg { padding: 8%; }
.product-card .quick-add { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 9999px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -8px rgba(48,39,130,.6); opacity: 0; transform: translateY(8px); transition: all .25s; }
.product-card:hover .quick-add { opacity: 1; transform: none; }
@media (hover: none) { .product-card .quick-add { opacity: 1; transform: none; } }
.category-tile { position: relative; overflow: hidden; border-radius: 1.75rem; display: block; aspect-ratio: 4 / 5; background: var(--navy); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.category-tile:hover img { transform: scale(1.08); }
.category-tile .tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,26,58,.85) 0%, rgba(27,26,58,.2) 55%, transparent 100%); }
.category-tile .tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; color: #fff; }
.photo-tile { border-radius: 1.75rem; overflow: hidden; position: relative; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 9999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.badge-sky { background: var(--sky-100); color: var(--blue); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-mint { background: #DFF9EE; color: #0F7A4E; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-gray { background: #EEF2F7; color: #4B5A78; }
.badge-red { background: #FEE2E2; color: #B91C1C; }
.badge-green { background: #DCFCE7; color: #166534; }
.badge-coral { background: #FFE4DC; color: #B8461F; }
.badge-lemon { background: var(--lemon); color: var(--navy); }

/* Forms */
.label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.input, .select, .textarea {
  width: 100%; border: 2px solid var(--sky-200); border-radius: 1rem; padding: .75rem 1rem; font-size: .95rem;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; outline: none; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(129,207,245,.35); }
.textarea { min-height: 120px; resize: vertical; }
.checkbox { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.form-error { color: #b91c1c; font-size: .85rem; font-weight: 600; }

/* Decorative */
.deco-shape { position: absolute; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(48,39,130,.12) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent); }
.blob-1 { position: absolute; width: 420px; height: 420px; border-radius: 48% 52% 60% 40% / 45% 40% 60% 55%; background: radial-gradient(circle at 30% 30%, #CDEBFB, #81CFF5); opacity: .7; }
.blob-2 { position: absolute; width: 260px; height: 260px; border-radius: 60% 40% 45% 55% / 50% 60% 40% 50%; background: radial-gradient(circle at 70% 30%, #0587C3, #302782); opacity: .08; }
.squiggle { position: absolute; pointer-events: none; }
.float { animation: float 6s ease-in-out infinite; }
.float-delay { animation: float 7s ease-in-out 1.2s infinite; }
.spin-slow { animation: spin 14s linear infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.sticker-badge { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 9999px; font-family: 'Unbounded', sans-serif; font-weight: 800; line-height: 1.1; box-shadow: 0 16px 32px -14px rgba(48,39,130,.45); }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Toast */
.toast { padding: .85rem 1.1rem; border-radius: 1rem; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(48,39,130,.4); display: flex; align-items: center; gap: .6rem; animation: toastIn .25s ease; max-width: 360px; }
.toast-success { background: #0F7A4E; }
.toast-error { background: #B91C1C; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Admin */
.admin-nav-link { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: .9rem; font-weight: 600; font-size: .9rem; color: #CDEBFB; transition: all .15s; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link-active { background: var(--blue); color: #fff; }
.stat-card { background: #fff; border-radius: 1.5rem; padding: 1.25rem; border: 1px solid var(--sky-100); box-shadow: 0 4px 20px -6px rgba(48,39,130,.08); }
.table { width: 100%; font-size: .875rem; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #5B6B8C; font-weight: 800; padding: .75rem 1rem; background: #F6FAFF; border-bottom: 1px solid var(--sky-100); }
.table td { padding: .85rem 1rem; border-bottom: 1px solid #EEF4FB; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #FAFCFF; }
.icon-btn { width: 2.1rem; height: 2.1rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; color: var(--blue); background: var(--sky-100); transition: all .15s; }
.icon-btn:hover { background: var(--sky-200); }
.icon-btn-danger { color: #b91c1c; background: #fee2e2; }
.icon-btn-danger:hover { background: #fecaca; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(27,26,58,.55); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.modal { background: #fff; border-radius: 1.75rem; width: 100%; max-width: 640px; box-shadow: 0 30px 60px -20px rgba(48,39,130,.4); animation: toastIn .2s ease; }
.tab-btn { padding: .5rem 1rem; border-radius: 9999px; font-weight: 700; font-size: .85rem; color: #4B5A78; background: #fff; border: 1px solid var(--sky-100); }
.tab-btn-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.thumb { width: 3rem; height: 3rem; border-radius: .9rem; object-fit: cover; background: #DDF0FB; }

/* Scrollbar */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--sky-200); border-radius: 3px; }

/* Step number */
.step-num { width: 3.25rem; height: 3.25rem; border-radius: 1.1rem; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-family: 'Unbounded', sans-serif; transform: rotate(-6deg); }

/* Category sidebar */
.cat-parent { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .6rem .8rem; border-radius: .9rem; font-weight: 700; font-size: .92rem; }
.cat-parent:hover { background: var(--sky-100); }
.cat-parent-active { background: var(--sky-100); color: var(--blue); }
.cat-child { display: block; padding: .4rem .8rem .4rem 2.25rem; border-radius: .7rem; font-size: .88rem; color: var(--muted); }
.cat-child:hover { background: var(--sky-100); color: var(--blue); }
.cat-child-active { color: var(--blue); font-weight: 700; background: var(--sky-100); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 9999px; font-size: .82rem; font-weight: 700; border: 2px solid var(--sky-200); color: var(--navy); background: #fff; white-space: nowrap; transition: all .15s; }
.chip-active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Gallery thumbs */
.thumb-btn { border-radius: 1rem; overflow: hidden; border: 2px solid transparent; background: #DDF0FB; aspect-ratio: 1; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active { border-color: var(--navy); }
