/* ============================================
   Oven Diaries - shared core (all pages) styles
   (split from css/style.css)
   ============================================ */

:root {
  --cream: #fff8ef;
  --cream-2: #fffdf7;
  --choco: #3e2723;
  --choco-2: #5d4037;
  --caramel: #d9a05b;
  --caramel-dark: #b97a33;
  --pink: #f2a7b3;
  --pink-dark: #e57380;
  --gold: #c9a227;
  --green: #6e9d5c;
  --red: #d94f4f;
  --text: #4a3a2f;
  --text-light: #8a7568;
  --border: #ecdcc8;
  --shadow: 0 10px 30px rgba(62, 39, 35, 0.08);
  --shadow-lg: 0 22px 55px rgba(62, 39, 35, 0.16);
  --radius: 18px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--choco);
  line-height: 1.25;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream-2);
}

::-webkit-scrollbar-thumb {
  background: var(--caramel);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--caramel-dark);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-110%) skewX(-18deg);
  transition: transform 0.55s ease;
}

.btn:hover::after {
  transform: translateX(110%) skewX(-18deg);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--caramel);
  color: #fff;
}

.btn-primary:hover {
  background: var(--caramel-dark);
}

.btn-dark {
  background: var(--choco);
  color: var(--cream-2);
}

.btn-dark:hover {
  background: #2f1d1a;
}

.btn-outline {
  border: 2px solid var(--caramel);
  color: var(--caramel-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--caramel);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--choco);
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(38px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes floatX {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  50% {
    transform: translateX(14px) rotate(6deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(9px);
  }
}

@keyframes shimmer {
  from {
    background-position: -500px 0;
  }

  to {
    background-position: 500px 0;
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.18);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.18);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-55px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(55px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* On tablets/phones the horizontal slide-in pushes content past the
   viewport edge and widens the layout, so reveal vertically instead. */
@media (max-width: 940px) {

  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-zoom.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

.delay-4 {
  transition-delay: 0.48s;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 6px 25px rgba(62, 39, 35, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(217, 160, 91, 0.45);
  animation: pulse 3s ease-in-out infinite;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--choco);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-text span {
  color: var(--caramel-dark);
  font-style: italic;
}

.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(217, 160, 91, 0.45);
}

footer .logo-img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.admin-sidebar .logo-img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--caramel-dark);
  background: var(--cream-2);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--caramel-dark);
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px rgba(217, 160, 91, 0.35);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--choco);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.icon-btn:hover {
  transform: translateY(-3px);
  background: var(--caramel);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  animation: zoomIn 0.4s ease;
}

.nav-toggle {
  display: none;
}

.burger {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: all 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 7px;
}

.burger span:nth-child(3) {
  top: 14px;
}

.nav-toggle.open .burger span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-toggle.open .burger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle.open .burger span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
@media (max-width: 940px) {
  .nav-toggle {
    display: grid;
    position: relative;
    z-index: 3002;
  }

  .nav-links {
    display: none;
  }

  header.drawer-open {
    z-index: 3010;
  }
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 88vw);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #fffdf7 100%);
  border-left: 1px solid rgba(217, 160, 91, 0.3);
  box-shadow: -24px 0 60px rgba(62, 39, 35, 0.22);
  padding: 95px 20px 22px;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0.36, 1), visibility 0.5s;
}

.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2990;
  background: rgba(44, 28, 25, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.nd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.nd-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nd-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(217, 160, 91, 0.4);
}

.nd-avatar i {
  font-size: 1.05rem;
  color: var(--cream-2);
}

.nd-user b {
  display: block;
  color: var(--choco);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.nd-user small {
  color: var(--text-light);
  font-size: 0.75rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.nd-close {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.nd-links {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 18px 0;
  overflow-y: auto;
  padding: 0;
}

.nd-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nd-links a i {
  width: 22px;
  text-align: center;
  color: var(--caramel-dark);
  font-size: 1rem;
}

.nd-links a:hover {
  background: var(--cream-2);
  color: var(--caramel-dark);
  border-color: var(--border);
  transform: translateX(4px);
}

.nd-links a.active {
  background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(217, 160, 91, 0.35);
}

.nd-links a.active i {
  color: #fff;
}

.nd-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 10px;
}

.nd-foot .btn {
  width: 100%;
  justify-content: center;
}

.nd-foot .btn-outline {
  border-color: var(--border);
}

.nd-mgmt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.nd-mgmt i {
  color: var(--caramel-dark);
}

.nd-mgmt:hover {
  background: var(--cream-2);
  color: var(--caramel-dark);
}

@media (min-width: 941px) {

  .nav-drawer,
  .nav-backdrop {
    display: none;
  }
}

/* ============ SECTIONS ============ */
section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  color: var(--caramel-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-accent);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: '';
  width: 34px;
  height: 1.5px;
  background: var(--caramel);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 14px 0 12px;
}

.section-head p {
  color: var(--text-light);
}

/* ============ PRODUCT CARD ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: zoomIn 0.5s ease both;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card .img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .img-wrap img {
  transform: scale(1.1);
}

.p-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--pink-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.p-tag.bestseller {
  background: var(--gold);
}

.p-tag.new {
  background: var(--green);
}

.p-tag.sale {
  background: var(--red);
}

.p-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--red);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .p-wish {
  opacity: 1;
  transform: translateY(0);
}

.p-wish.active {
  opacity: 1;
  transform: translateY(0);
  animation: heartbeat 0.7s ease;
}

.img-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 5.6rem;
  animation: floatY 5s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(62, 39, 35, 0.25));
  z-index: 1;
  transition: transform 0.6s ease;
}

.product-card:hover .img-art {
  animation: none;
  transform: scale(1.16) rotate(4deg);
}

.img-wrap img.p-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .img-wrap img.p-img {
  transform: scale(1.1);
}

.icon-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 3px 12px rgba(62, 39, 35, 0.4);
}

.hero-slider {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% / 44%;
  box-shadow: var(--shadow-lg);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.option .icon {
  font-size: 1.9rem;
  margin-bottom: 8px;
  display: block;
  color: var(--caramel-dark);
}

.option .swatch-mini {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
}

.cake-cherry {
  color: #e57380;
  text-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

#cake-candle {
  color: #ffb344;
  text-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.avatar-letter {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.product-card .body {
  padding: 18px 20px 22px;
}

.p-cat {
  font-size: 0.75rem;
  color: var(--caramel-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.product-card h3 {
  font-size: 1.12rem;
  margin: 6px 0 4px;
}

.p-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  min-height: 42px;
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.price {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--choco);
  font-weight: 700;
}

.price .old {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
  font-family: var(--font-body);
}

.add-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--caramel);
  color: #fff;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.add-btn:hover {
  background: var(--caramel-dark);
  transform: rotate(90deg) scale(1.08);
}

.add-btn.added {
  animation: heartbeat 0.6s ease;
  background: var(--green);
}

/* ============ ABOUT PREVIEW / SPLIT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split .visual {
  position: relative;
}

.split .visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.split .visual .floating-card {
  position: absolute;
  bottom: -26px;
  right: -26px;
  background: var(--choco);
  color: var(--cream-2);
  border-radius: 16px;
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}

.split .visual .floating-card b {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--caramel);
  display: block;
}

.split .visual .floating-card span {
  font-size: 0.8rem;
}

.split h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 16px 0 18px;
}

.split p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.split .check-list {
  list-style: none;
  margin: 22px 0 30px;
  display: grid;
  gap: 12px;
}

.split .check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}

.split .check-list i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(110, 157, 92, 0.18);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============ CUSTOM CAKE BANNER ============ */
.custom-banner {
  background: linear-gradient(120deg, var(--choco), #6a3a35, var(--choco-2));
  background-size: 200% auto;
  animation: gradientShift 10s ease infinite;
  border-radius: 28px;
  overflow: hidden;
  color: var(--cream-2);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.custom-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 110%, rgba(242, 167, 179, 0.3), transparent 50%);
}

.custom-banner .info {
  padding: 56px;
  position: relative;
  z-index: 1;
}

.custom-banner h2 {
  color: var(--cream-2);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 12px 0;
}

.custom-banner p {
  color: rgba(255, 248, 239, 0.8);
  margin-bottom: 26px;
}

.custom-banner .steps {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
  list-style: none;
}

.custom-banner .steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}

.custom-banner .steps b {
  color: var(--caramel);
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.custom-banner .visual {
  position: relative;
  min-height: 380px;
}

.custom-banner .visual img {
  position: absolute;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.banner-cake-big {
  width: 300px;
  height: 300px;
  object-fit: cover;
  top: 12%;
  left: 8%;
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}

.banner-cake-small {
  width: 170px;
  height: 170px;
  object-fit: cover;
  bottom: 8%;
  right: 8%;
  animation: floatX 7s ease-in-out infinite;
}

/* ============ FOOTER ============ */
footer {
  background: #2c1c19;
  color: rgba(255, 248, 239, 0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

footer .logo-text {
  color: var(--cream-2);
}

.footer-about p {
  font-size: 0.9rem;
  margin: 16px 0 22px;
  max-width: 300px;
}

footer h4 {
  color: var(--cream-2);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--caramel);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-links a {
  font-size: 0.92rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--caramel);
  padding-left: 6px;
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 14px;
  font-size: 0.9rem;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--caramel);
  margin-top: 3px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 239, 0.25);
  display: grid;
  place-items: center;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.socials a:hover {
  background: var(--caramel);
  border-color: var(--caramel);
  transform: translateY(-4px) rotate(8deg);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 239, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom b {
  color: var(--caramel);
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(242, 167, 179, 0.16), transparent 50%),
    radial-gradient(ellipse at 12% 85%, rgba(217, 160, 91, 0.2), transparent 50%),
    var(--cream-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 70px 0 56px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  animation: fadeUp 0.7s ease both;
}

.page-hero h1 .accent {
  background: linear-gradient(90deg, var(--caramel-dark), var(--gold), var(--pink-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease infinite;
}

.page-hero p {
  color: var(--text-light);
  max-width: 560px;
  margin: 12px auto 0;
  animation: fadeUp 0.7s 0.15s ease both;
}

.crumbs {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
  animation: fadeUp 0.7s 0.25s ease both;
}

.crumbs a {
  color: var(--caramel-dark);
}

.crumbs i {
  margin: 0 8px;
  font-size: 0.7rem;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--choco);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 4px rgba(217, 160, 91, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}
/* ============ TOAST ============ */
#toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: grid;
  gap: 10px;
}

.toast {
  background: var(--choco);
  color: var(--cream-2);
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s cubic-bezier(0.6, 0, 0.2, 1) both;
  font-size: 0.92rem;
  max-width: 340px;
}

.toast.out {
  animation: slideOut 0.4s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

.toast i {
  color: var(--caramel);
  font-size: 1.2rem;
}

.toast.success i {
  color: var(--green);
}

.toast.error i {
  color: var(--red);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(120%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.shake {
  animation: shake 0.4s ease;
}

/* ============ COMPLAINTS (about page) ============ */
.complaints-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 46px;
  align-items: center;
  padding: 30px 0 24px;
}

.comp-intro h2 {
  font-size: 2rem;
  margin: 10px 0 14px;
}

.comp-intro>p {
  color: var(--text-light);
  margin-bottom: 18px;
  max-width: 46ch;
}

.comp-intro .check-list {
  margin-bottom: 24px;
}

.comp-contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--choco-2);
  font-weight: 500;
}

.comp-contact i {
  color: var(--caramel-dark);
  margin-right: 6px;
}

.comp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px 34px 30px;
  box-shadow: 0 22px 55px rgba(62, 39, 35, 0.12);
}

.comp-card h3 {
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.comp-card h3 i {
  color: var(--caramel-dark);
  margin-right: 8px;
}

.comp-form {
  display: grid;
  gap: 16px;
}

.comp-form .field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--choco);
  margin-bottom: 8px;
}

.comp-form .field .input-wrap {
  position: relative;
}

.comp-form .field .input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--caramel-dark);
  opacity: 0.8;
  font-size: 0.95rem;
  pointer-events: none;
}

.comp-form input,
.comp-form textarea {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fffaf2;
  font: inherit;
  font-size: 0.93rem;
  outline: none;
  transition: all 0.3s ease;
}

.comp-form textarea {
  resize: vertical;
  min-height: 120px;
  padding-left: 16px;
}

.comp-form input:focus,
.comp-form textarea:focus {
  border-color: var(--caramel);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 160, 91, 0.16);
}

.comp-file {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 2px dashed rgba(217, 160, 91, 0.55);
  background: rgba(217, 160, 91, 0.06);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comp-file:hover {
  border-color: var(--caramel);
  background: rgba(217, 160, 91, 0.12);
}

.comp-file.has-file {
  border-style: solid;
  border-color: var(--green);
  background: rgba(110, 157, 92, 0.08);
}

.comp-file i {
  font-size: 1.3rem;
  color: var(--caramel-dark);
}

.comp-file span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--choco-2);
}

.comp-file small {
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}
/* ============ OFFERS SECTION (home) ============ */
.offers-sec {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 88% -10%, rgba(217, 160, 91, 0.16), transparent 60%),
    radial-gradient(900px 460px at 4% 110%, rgba(242, 167, 179, 0.14), transparent 60%),
    linear-gradient(180deg, #fffdf7 0%, #fff8ef 100%);
}

.offers-sec::before {
  content: '';
  position: absolute;
  top: 60px;
  right: -70px;
  width: 240px;
  height: 240px;
  border: 2px dashed rgba(217, 160, 91, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.offers-sec::after {
  content: '';
  position: absolute;
  bottom: -90px;
  left: 46%;
  width: 300px;
  height: 300px;
  border: 2px dashed rgba(242, 167, 179, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.offers-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

/* ---- Coupon-ticket cards ---- */
.offer-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(128px, 34%) 1fr;
  min-height: 262px;
  background: #fffdf6;
  border: 1.5px solid #ecdcc4;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(93, 60, 38, 0.14);
  color: #4a2f22;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(93, 60, 38, 0.2);
}

/* ticket cut-out notches */
.offer-card::before,
.offer-card::after {
  content: '';
  position: absolute;
  left: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff9f0;
  z-index: 0;
}

.offer-card::before {
  top: 32px;
}

.offer-card::after {
  bottom: 32px;
}

/* ---- Perforated stamp panel ---- */
.offer-pct {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  border-right: 2px dashed #e3cfb5;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(217, 160, 91, 0.16), rgba(217, 160, 91, 0.04) 70%);
}

.pct-row {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.pct-row b {
  font-family: var(--font-head);
  font-size: clamp(3.4rem, 6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -2px;
  color: #c0652f;
}

.pct-row span {
  font-size: 2rem;
  font-weight: 700;
  color: #c0652f;
  margin-left: 3px;
}

.offer-off {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: #d9506b;
  border-radius: 999px;
  padding: 4px 12px 4px 14px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px rgba(217, 80, 107, 0.35);
}

/* stamp colour per offer variant */
.offer-card.offer-2 .pct-row b,
.offer-card.offer-2 .pct-row span {
  color: #c0506a;
}

.offer-card.offer-2 .offer-pct {
  background: radial-gradient(120% 100% at 50% 0%, rgba(242, 167, 179, 0.22), rgba(242, 167, 179, 0.05) 70%);
}

.offer-card.offer-3 .pct-row b,
.offer-card.offer-3 .pct-row span {
  color: #a97c20;
}

.offer-card.offer-3 .offer-pct {
  background: radial-gradient(120% 100% at 50% 0%, rgba(231, 195, 107, 0.3), rgba(231, 195, 107, 0.07) 70%);
}

.offer-card.offer-4 .pct-row b,
.offer-card.offer-4 .pct-row span {
  color: #3f7d58;
}

.offer-card.offer-4 .offer-pct {
  background: radial-gradient(120% 100% at 50% 0%, rgba(143, 191, 143, 0.28), rgba(143, 191, 143, 0.06) 70%);
}

/* ---- Free delivery ticket ---- */
.offer-free-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #eaf6ec, #d8eee0);
  border: 2px dashed rgba(63, 125, 88, 0.55);
  color: #3f7d58;
  font-size: 2.9rem;
  box-shadow: 0 14px 26px rgba(63, 125, 88, 0.18);
  transform: rotate(-6deg);
  animation: floatY 4.6s ease-in-out infinite;
}

.offer-card.offer-free .offer-info::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  border-left: 2px dashed #cfe0d2;
}

/* ---- Live ring + badge (seal sticker) ---- */
.offer-card.offer-live {
  box-shadow: 0 0 0 3px rgba(217, 160, 91, 0.55), 0 18px 40px rgba(93, 60, 38, 0.16);
}

.offer-card.offer-live:hover {
  box-shadow: 0 0 0 3px rgba(217, 160, 91, 0.55), 0 26px 52px rgba(93, 60, 38, 0.22);
}

.offer-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) rotate(-3deg);
  display: none;
  align-items: center;
  gap: 6px;
  background: #fff8ea;
  color: #b06a2f;
  border: 1.5px solid #d9a05b;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(217, 160, 91, 0.35);
  animation: livePulse 2.2s ease-in-out infinite;
}

.offer-live .offer-badge {
  display: inline-flex;
}

@keyframes livePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 160, 91, 0.45), 0 6px 16px rgba(217, 160, 91, 0.35);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(217, 160, 91, 0), 0 6px 16px rgba(217, 160, 91, 0.35);
  }
}

/* ---- Info side ---- */
.offer-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
}

.offer-tag {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b06a2f;
  background: rgba(217, 160, 91, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
}

.offer-info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #3a2b1f;
  margin: 12px 0 6px;
}

.offer-info p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #8a7564;
  max-width: 34ch;
  margin: 0 0 auto;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b06a2f, #d9a05b);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(176, 106, 47, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-cta:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 26px rgba(176, 106, 47, 0.4);
}

/* ---- Stacked layout on small screens ---- */
@media (max-width: 640px) {

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-pct {
    border-right: none;
    border-bottom: 2px dashed #e3cfb5;
    padding: 22px 12px;
    background: radial-gradient(120% 100% at 50% 0%, rgba(217, 160, 91, 0.16), rgba(217, 160, 91, 0.04) 70%);
  }

  .offer-card.offer-2 .offer-pct {
    background: radial-gradient(120% 100% at 50% 0%, rgba(242, 167, 179, 0.22), rgba(242, 167, 179, 0.05) 70%);
  }

  .offer-card.offer-3 .offer-pct {
    background: radial-gradient(120% 100% at 50% 0%, rgba(231, 195, 107, 0.3), rgba(231, 195, 107, 0.07) 70%);
  }

  .offer-card.offer-4 .offer-pct {
    background: radial-gradient(120% 100% at 50% 0%, rgba(143, 191, 143, 0.28), rgba(143, 191, 143, 0.06) 70%);
  }

  .offer-free-icon {
    margin: 20px auto 0;
    transform: rotate(-6deg);
  }

  .offer-card.offer-free .offer-info::before {
    border-left: none;
  }
}

/* Admin: city selector for delivery areas */
.city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(217, 160, 91, 0.08);
  border: 1.5px dashed var(--border);
}

.city-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--caramel-dark);
  font-size: 0.9rem;
}

.city-row label i {
  font-size: 1.05rem;
}

#city-sel {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  cursor: pointer;
}

#city-sel:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(217, 160, 91, 0.15);
}

@media (max-width: 700px) {
  .offers-sec {
    padding: 64px 0 72px;
  }

  .offer-card {
    min-height: 240px;
    padding: 24px;
  }
}
/* ============ PRODUCT DETAIL MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 28, 25, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-modal {
  background: var(--cream-2);
  border-radius: 22px;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: zoomIn 0.35s ease both;
}

.detail-modal .d-img {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.detail-modal .d-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px 0 0 22px;
  animation: zoomIn 0.5s ease both;
}

.detail-modal .d-img .icon-fallback {
  font-size: 4rem;
}

.d-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  z-index: 6;
  color: var(--choco);
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: var(--shadow);
}

.d-modal-close:hover {
  transform: rotate(90deg);
  background: var(--caramel);
  color: #fff;
}

.detail-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.d-price {
  font-family: var(--font-head);
  color: var(--choco);
  font-size: 1.55rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.d-price .old {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-family: var(--font-body);
  font-weight: 400;
}

.d-price-note {
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 400;
}

.selector-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--choco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.flavor-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.flavor-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flavor-swatch:hover {
  transform: scale(1.12);
}

.flavor-swatch.active {
  box-shadow: 0 0 0 2.5px var(--caramel-dark), 0 8px 16px rgba(217, 160, 91, 0.45);
  transform: scale(1.1);
}

.size-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-row .chip.active {
  box-shadow: 0 8px 20px rgba(217, 160, 91, 0.35);
}

.d-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.d-actions .qty {
  padding: 6px;
}

.d-actions .qty button {
  width: 32px;
  height: 32px;
}

@media (max-width: 760px) {
  .detail-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .detail-modal .d-img {
    min-height: 240px;
  }

  .detail-modal .d-img img {
    position: static;
    height: 240px;
    border-radius: 22px 22px 0 0;
  }

  .detail-body {
    padding: 24px 22px;
  }

  .d-actions {
    flex-wrap: wrap;
  }
}

.profile-wrap {
  max-width: 900px;
  margin: 6px auto 0;
}

.profile-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #fffdf7 0%, #fff 55%, #fdf3e5 100%);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 44px 46px 38px;
  box-shadow: var(--shadow-lg);
  animation: apfIn 0.45s ease both;
}

.pf-glow {
  position: absolute;
  top: -120px;
  right: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(217, 160, 91, 0.22), transparent 65%);
  pointer-events: none;
}

.pf-head {
  display: flex;
  align-items: center;
  gap: 26px;
  position: relative;
}

.pf-avatar-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  flex-shrink: 0;
}

.pf-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed rgba(217, 160, 91, 0.55);
  animation: slowSpin 14s linear infinite;
}

.pf-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
  box-shadow: 0 12px 26px rgba(217, 160, 91, 0.4);
  border: 4px solid #fff;
}

.pf-status {
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(66, 44, 28, 0.2);
}

.pf-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--caramel-dark);
}

.pf-id h3 {
  font-family: var(--font-head);
  color: var(--choco);
  font-size: 2rem;
  margin: 6px 0 8px;
}

.pf-role-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pf-online {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}

.pf-online i {
  font-size: 0.6rem;
  margin-right: 3px;
}

.pf-mail {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.pf-bio {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 24px 0 22px;
  padding-left: 18px;
  border-left: 3px solid var(--caramel);
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.pf-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(66, 44, 28, 0.1);
}

.pf-stat i {
  color: var(--caramel-dark);
  font-size: 1.05rem;
}

.pf-stat b {
  display: block;
  font-size: 1.25rem;
  color: var(--choco);
  margin: 6px 0 2px;
}

.pf-stat span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.pf-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.pf-foot i {
  color: var(--caramel-dark);
  margin-right: 6px;
}

.pf-foot b {
  color: var(--choco);
}

/* User profile page */
@media (max-width: 700px) {
  .profile-card {
    padding: 30px 22px 28px;
  }

  .pf-head {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .pf-role-row,
  .pf-online {
    justify-content: center;
  }

  .pf-bio {
    text-align: left;
  }

  .pf-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pf-foot {
    justify-content: center;
  }
}

/* Custom Cake page: order success */
.order-success {
  text-align: center;
  padding: 70px 24px;
  max-width: 560px;
  margin: 30px auto 80px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(66, 44, 28, 0.12);
}

.order-success .s-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  animation: popIn 0.5s ease both;
  box-shadow: 0 14px 32px rgba(217, 160, 91, 0.45);
}

.order-success h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--choco);
  margin: 0 0 10px;
}

.order-success p {
  color: var(--text-light);
  font-size: 1.04rem;
  margin: 0 0 8px;
  line-height: 1.55;
}

.order-success .s-id {
  display: inline-block;
  background: #f7f0e4;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 18px;
  font-weight: 700;
  color: var(--caramel-dark);
  margin: 14px 0 24px;
}

.order-success .s-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .custom-banner {
    grid-template-columns: 1fr;
  }
  .custom-banner .visual {
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-sidebar.open {
    left: 0;
  }
  .admin-table-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .footer-col {
    display: none;
  }
  .footer-grid {
    text-align: center;
    justify-content: center;
  }
  .footer-about p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-about .socials {
    justify-content: center;
  }
  .footer-bottom {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  section {
    padding: 64px 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .products-grid .p-desc {
    display: none;
  }
  .products-grid .img-wrap {
    height: 150px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .split .visual img {
    height: 340px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cart-item .actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .admin-table-wrap {
    overflow-x: auto;
  }
  .split .visual .floating-card {
    right: 0;
  }
  .custom-banner .info {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .logo {
    gap: 8px;
  }
  .logo-img {
    width: 36px;
    height: 36px;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .products-grid .img-wrap {
    height: 120px;
  }
  .products-grid .body {
    padding: 10px 10px 13px;
  }
  .products-grid h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }
  .products-grid .p-cat {
    font-size: 0.62rem;
  }
  .products-grid .price {
    font-size: 1rem;
  }
  .products-grid .price .old {
    font-size: 0.72rem;
    margin-left: 3px;
  }
  .products-grid .add-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .product-card .p-wish {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
  .p-tag {
    padding: 3px 9px;
    font-size: 0.62rem;
  }
}

.credit-note {
  background: rgba(110, 157, 92, 0.12);
  border: 1px dashed var(--green);
  color: var(--green);
  border-radius: 14px;
  padding: 16px;
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
