/* ==========================================================================
   Sudut11 Coffee — Design System CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Brand Tokens — Rich Deep Purple / Plum from Poster */
  --purple-950: #19052F;
  --purple-900: #250943;
  --purple-850: #320D56;
  --purple-800: #3E126B;
  --purple-700: #4B177E;   /* PRIMARY BRAND (Dark Purple) */
  --purple-600: #6022A1;
  --purple-500: #7C2ECB;   /* Vibrant Accent */
  --purple-400: #9E60F3;
  --purple-300: #C49BFC;
  --purple-200: #E0C7FE;
  --purple-100: #F1E5FE;   /* Soft chip active */
  --purple-50:  #F9F4FF;

  /* Poster Ivory & Warm Cream Accents */
  --cream-hero:   #FFF5E4; /* Warm ivory headline from poster */
  --cream-accent: #FCEBD3;
  --cream-muted:  #EADBC8;
  --accent-bar:   #8B5CF6; /* S11 sleeve accent underline */

  /* Neutrals */
  --bg:        #F8F6FC;    /* Soft premium lilac-tinted canvas */
  --surface:   #FFFFFF;    /* Clean cards */
  --surface-2: #F1EDF7;    /* Input, chip inactive */
  --text:      #190C29;
  --text-muted:#6B5E7C;
  --border:    #E5DFEE;

  /* Hero dark gradients (Poster dark background) */
  --hero-bg-from: #150428;
  --hero-bg-mid:  #270947;
  --hero-bg-to:   #3E126B;

  /* Semantics */
  --success: #16A34A;
  --warning: #F59E0B;   /* Rating stars */
  --danger:  #E11D48;   /* Heart / error */
  --info:    #2563EB;

  /* Shadow & Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(37, 9, 67, 0.05);
  --shadow-md: 0 8px 24px rgba(37, 9, 67, 0.08);
  --shadow-lg: 0 16px 36px rgba(37, 9, 67, 0.12);
  --shadow-purple: 0 10px 25px rgba(62, 18, 107, 0.25);

  --font-main: 'Plus Jakarta Sans', 'Poppins', -apple-system, sans-serif;
  --font-tagline: 'Caveat', cursive, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Base Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Announcement Notice Bar */
.top-announcement-bar {
  background: var(--purple-950);
  color: var(--purple-100);
  padding: 8px 20px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 51;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-tagline {
  font-family: var(--font-tagline);
  font-size: 1.25rem;
  color: var(--cream-hero);
  letter-spacing: 0.5px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .announcement-tagline {
    display: none;
  }
  .top-announcement-bar {
    justify-content: center;
    font-size: 0.75rem;
    text-align: center;
  }
}

/* Header & Navbar */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--purple-950);
  letter-spacing: -0.5px;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--purple-950);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-700);
  margin-top: 1px;
  letter-spacing: 0px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(62, 18, 107, 0.25);
}

.brand-logo span.accent {
  color: var(--purple-700);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--purple-700);
}

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

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple-700);
  color: white;
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.25);
}

.btn-primary:hover {
  background: var(--purple-600);
  box-shadow: 0 6px 20px rgba(76, 29, 149, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--purple-100);
  color: var(--purple-800);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--purple-700);
  color: var(--purple-700);
}

.btn-outline:hover {
  background: var(--purple-50);
}

.btn-white {
  background: #ffffff;
  color: var(--purple-800);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #faf8ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* Cart Icon Button */
.btn-cart {
  position: relative;
  background: var(--surface-2);
  color: var(--purple-800);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cart:hover {
  background: var(--purple-100);
  color: var(--purple-700);
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--purple-600);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  height: 20px;
  min-width: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid white;
}

/* ==========================================================================
   Floating Cart Widget (Melayang di Desktop & Mobile)
   ========================================================================== */
.floating-cart-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-950) 100%);
  color: white;
  padding: 10px 20px 10px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(37, 9, 67, 0.35), 0 0 0 1.5px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0);
}

.floating-cart-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px rgba(37, 9, 67, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.3);
  color: white;
}

.floating-cart-widget.bounce {
  animation: cartWidgetBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartWidgetBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.18) translateY(-6px); }
  65% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.floating-cart-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: white;
  flex-shrink: 0;
}

.floating-cart-icon-wrap .floating-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #FDE047;
  color: var(--purple-950);
  font-size: 0.74rem;
  font-weight: 900;
  height: 20px;
  min-width: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--purple-950);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.floating-cart-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #FFFFFF;
}

.floating-cart-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--purple-200);
  margin-top: 2px;
}

.floating-cart-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.floating-cart-widget:hover .floating-cart-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .floating-cart-widget {
    bottom: 74px;
    right: 14px;
    padding: 8px 14px 8px 10px;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 9, 67, 0.4);
  }
  .floating-cart-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .floating-cart-title {
    font-size: 0.82rem;
  }
  .floating-cart-subtitle {
    font-size: 0.7rem;
  }
  .floating-cart-arrow {
    display: none;
  }
}

/* Hero & Banners */
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.banner-card {
  position: relative;
  background: linear-gradient(135deg, #18052E 0%, #290B4A 45%, #3D1268 100%);
  color: white;
  padding: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 480px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(25, 5, 47, 0.4);
  border: 1px solid rgba(165, 108, 244, 0.2);
}

.banner-content {
  max-width: 56%;
  z-index: 2;
}

.poster-tagline-top {
  position: absolute;
  top: 26px;
  right: 40px;
  font-family: var(--font-tagline);
  font-size: 1.65rem;
  color: var(--cream-hero);
  line-height: 1.2;
  text-align: right;
  z-index: 3;
  letter-spacing: 0.5px;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.poster-promo-lead {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--purple-300);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.poster-title-cream {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--cream-hero);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.poster-subtitle {
  font-size: 1.05rem;
  color: #E6DEF3;
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 520px;
}

/* Coupon Box from poster */
.poster-coupon-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px 20px;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.8);
}

.poster-coupon-box .coupon-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6B5E7C;
}

.poster-coupon-box .coupon-code {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--purple-950);
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 2px 0;
}

.poster-coupon-box .coupon-note {
  font-size: 0.72rem;
  color: #8A7E9C;
  font-weight: 500;
}

/* 3 Feature circular badges from poster */
.poster-features-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.poster-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poster-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-800);
  border: 1.5px solid var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.poster-feature-text .f-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  line-height: 1.2;
}

.poster-feature-text .f-desc {
  font-size: 0.75rem;
  color: var(--purple-200);
  line-height: 1.2;
}

.banner-image {
  position: absolute;
  right: 32px;
  bottom: 22px;
  max-height: 440px;
  width: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(10, 2, 20, 0.65));
  transition: transform 0.3s ease;
}

.banner-card:hover .banner-image {
  transform: translateY(-6px) scale(1.03);
}

@media (max-width: 992px) {
  .banner-card {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-content {
    max-width: 100%;
  }
  .banner-image {
    position: static;
    max-height: 240px;
    margin: 20px auto 0;
  }
  .poster-tagline-top {
    position: static;
    text-align: left;
    margin-bottom: 12px;
  }
  .poster-title-cream {
    font-size: 2.1rem;
  }
}

/* Categories Pills / Chips */
.categories-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 28px;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-chip:hover {
  background: var(--purple-50);
  color: var(--purple-700);
  border-color: var(--purple-300);
}

.category-chip.active {
  background: var(--purple-700);
  color: white;
  border-color: var(--purple-700);
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.25);
}

.category-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.category-chip.active .category-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple-950);
  letter-spacing: -0.5px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-700);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

/* Product Cards & Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0edf5;
  margin-bottom: 14px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.badge-prep {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 10, 26, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-fav.active, .badge-fav:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--text);
}

.product-rating i {
  color: var(--warning);
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--purple-700);
}

.btn-add-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-700);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(76, 29, 149, 0.3);
}

.btn-add-circle:hover {
  background: var(--purple-600);
  transform: scale(1.1);
}

/* Product Detail Page Centered Card Layout */
.detail-page-wrapper {
  max-width: 1040px;
  margin: 28px auto 90px;
  padding: 0 20px;
}

.product-detail-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(37, 9, 67, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  margin-bottom: 32px;
}

.product-detail-media {
  background: linear-gradient(145deg, #18052E 0%, #2A0A4E 60%, #3D1268 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  min-height: 440px;
}

.product-detail-media .media-top-nav {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.btn-circle-blur {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-circle-blur:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.product-detail-media img {
  max-width: 300px;
  max-height: 340px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(10, 2, 20, 0.55));
  transition: transform 0.3s ease;
}

.product-detail-media:hover img {
  transform: translateY(-4px) scale(1.03);
}

.product-detail-info {
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-title-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--purple-950);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.detail-price-main {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--purple-700);
  white-space: nowrap;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-desc-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-inline-action {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .product-detail-card {
    grid-template-columns: 1fr;
  }
  .product-detail-media {
    min-height: 320px;
    padding: 30px 20px;
  }
  .product-detail-info {
    padding: 24px 20px 30px;
  }
  .detail-title {
    font-size: 1.55rem;
  }
  .detail-price-main {
    font-size: 1.5rem;
  }
  .mobile-only-bar {
    display: block !important;
  }
  .detail-page-wrapper {
    margin-bottom: 120px;
  }
}

/* Option Groups & Pills */
.option-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.option-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple-950);
  margin-bottom: 12px;
}

.segmented-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-choice {
  display: none;
}

.pill-label {
  padding: 10px 20px;
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-choice:checked + .pill-label {
  background: var(--purple-700);
  color: white;
  border-color: var(--purple-700);
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.25);
}

/* Sticky Action Bar at Bottom */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 40;
}

.sticky-bottom-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.qty-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--purple-950);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.qty-number {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

/* Bottom Navigation (Mobile Web) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  height: 64px;
  z-index: 40;
  padding: 0 10px;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
  text-decoration: none;
}

.bottom-nav-item i {
  font-size: 1.25rem;
}

.bottom-nav-item.active {
  color: var(--purple-700);
}

.bottom-nav-item.active::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--purple-700);
  border-radius: 50%;
  position: absolute;
  bottom: -6px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  background: white;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Card Container */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* Order Stepper Status Timeline */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 30px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--purple-700);
  top: 2px;
}

.timeline-dot.active {
  background: var(--purple-700);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.timeline-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-950);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending {
  background: #FEF3C7;
  color: #B45309;
}

.badge-paid {
  background: #DBEAFE;
  color: #1D4ED8;
}

.badge-preparing {
  background: var(--purple-100);
  color: var(--purple-800);
}

.badge-ready {
  background: #DCFCE7;
  color: #15803D;
}

.badge-completed {
  background: #E0E7FF;
  color: #4338CA;
}

.badge-cancelled {
  background: #FFE4E6;
  color: #BE123C;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--surface);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--purple-700);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s ease;
}

.toast.toast-error {
  border-left-color: var(--danger);
}

.toast.toast-success {
  border-left-color: var(--success);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Admin Dashboard Specific Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--purple-950);
  color: white;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 24px;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-300);
  transition: all 0.2s;
}

.admin-nav-item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-nav-item.active a {
  background: var(--purple-700);
  color: white;
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.4);
}

.admin-content {
  flex-grow: 1;
  background: var(--bg);
  padding: 32px 40px;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple-950);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #fbfaff;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

/* ==========================================================================
   Responsive Mobile-First Adjustments (Auto-Fit Smartphone & Tablet)
   ========================================================================== */

/* Tablet & Mobile Landscape (< 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .banner-card {
    padding: 32px 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
  }
  .banner-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .poster-tagline-top {
    position: static;
    text-align: center;
    margin-bottom: 12px;
  }
  .poster-title-cream {
    font-size: 2.2rem;
  }
  .banner-image {
    position: static;
    display: block;
    max-height: 260px;
    margin: 20px auto 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
}

/* Smartphone & Small Tablet (< 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Header Compact */
  .site-header {
    height: 64px;
  }
  .nav-inner {
    height: 64px;
  }
  .brand-logo-img {
    height: 38px;
    max-height: 38px;
    width: auto;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Announcement Bar Mobile */
  .top-announcement-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }
  .announcement-tagline {
    display: none;
  }

  /* Hero Banner Poster Mobile */
  .banner-carousel {
    margin-top: 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }
  .banner-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  .poster-tagline-top {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }
  .poster-promo-lead {
    font-size: 0.78rem;
    letter-spacing: 2px;
  }
  .poster-title-cream {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .poster-subtitle {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .poster-coupon-box {
    width: 100%;
    max-width: 280px;
    padding: 10px 16px;
    margin-bottom: 16px;
  }
  .poster-coupon-box .coupon-code {
    font-size: 1.4rem;
  }
  .poster-features-row {
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .banner-image {
    display: block !important;
    position: static !important;
    max-height: 220px !important;
    width: auto !important;
    margin: 16px auto 0 !important;
  }
  .banner-cta-buttons {
    justify-content: center !important;
    width: 100%;
  }
  .banner-cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Grid Layouts Auto-Stack to 1 Column */
  .cart-layout-grid,
  .checkout-grid,
  .qris-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Bottom Navigation Fixed */
  body {
    padding-bottom: 84px;
  }
  .mobile-bottom-nav {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(37, 9, 67, 0.08);
    z-index: 90;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 4px);
  }

  /* Footer safe space for bottom nav */
  .site-footer {
    padding-bottom: 96px;
  }
}

/* Smartphone Portrait (< 640px) */
@media (max-width: 640px) {
  /* Product Cards 2 Columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card {
    padding: 10px !important;
    border-radius: 16px !important;
  }
  .product-image-wrap {
    height: 125px !important;
    border-radius: 12px !important;
  }
  .product-name {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }
  .product-price {
    font-size: 0.95rem !important;
  }
  .product-card .btn-sm {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }

  /* Categories Slider horizontal swipe */
  .categories-slider {
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }
  .category-chip {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* Modals Full-Width on Mobile */
  .modal-dialog,
  #review-modal > div {
    width: 94% !important;
    max-width: 94% !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  /* Stepper Timeline on Order Detail */
  .stepper-label {
    font-size: 0.7rem !important;
  }
}

/* Small Smartphone (< 400px) */
@media (max-width: 400px) {
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    display: none;
  }
  .poster-title-cream {
    font-size: 1.75rem;
  }
  .products-grid {
    gap: 8px !important;
  }
  .product-image-wrap {
    height: 110px !important;
  }
}

