/* ===================== CUSTOM FONTS ===================== */

@font-face {
  font-family: "BrittanySignature";
  src: url("website/public/fonts/BrittanySignature.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Handwash";
  src: url("website/public/fonts/Handwash.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===================== GLOBAL STYLES ===================== */

:root {
  --brand-main: #b42ea0;
  --brand-accent: #2ea6b4;
  --bg-soft: #6a4d7a;
  --text-main: #ffffff;

  --font-heading: "BrittanySignature", cursive;
  --font-body: "Handwash", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
  color: var(--text-main);
}

/* ===================== FLORAL HEADER WITH ROUND LOGO ===================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: #000000;
  background-image: radial-gradient(circle at top, #3b2035 0, #000000 55%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-logo-text {
  font-family: "BrittanySignature", cursive;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.header .brand-link:hover {
  text-decoration: underline;
}

/* NAV LINKS */

.header-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-link-active {
  background: rgba(255, 255, 255, 0.22);
}

/* ===================== ANNOUNCEMENT BAR ===================== */

.announcement-bar {
  background: linear-gradient(90deg, #4c256c, #b42ea0, #ff3bc4);
  color: #ffffff;
  font-size: 1.35rem;
  padding: 0.9rem 1rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.announcement-inner {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  line-height: 1.2;
  animation: spc-announcement-marquee 22s linear infinite;
}

@keyframes spc-announcement-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===================== HERO SECTION (HOME) ===================== */

.hero {
  background: #fce4f7;
  text-align: center;
  padding: 32px 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #4c256c;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 800px;
  margin: 0.5rem auto 1.4rem;
  color: #4c256c;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero .hero-button {
  display: inline-block;
  background: var(--brand-main);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 12px 28px;
  font-weight: 600;
}

.hero .hero-button:hover {
  opacity: 0.9;
}

.hero-button.hero-button-secondary {
  background: var(--brand-main);
  color: #ffffff;
  border: none;
}

/* ===================== MAIN LAYOUT ===================== */

main {
  padding-bottom: 32px;
}

main h2 {
  text-align: center;
  margin: 0 0 8px;
  font-family: var(--font-heading);
}

/* ===================== PRODUCT GRID (SHOP) ===================== */

#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 0 20px 20px;
}

/* ===================== PRODUCT & KIOSK CARDS ===================== */

.product,
.kiosk-product,
.kiosk-item {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Image wrapper shared by shop & kiosk */
.product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  background: #f7e9fb;
}

/* ===================== PRODUCT RIBBON (NEW / FEATURED / CUSTOM) ===================== */

.product-ribbon {
  position: absolute;
  top: 55px;
  left: -50px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 2.6rem 0.55rem 3.1rem;
  transform: rotate(-35deg);
  transform-origin: left top;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #ff4fa3, #ff1493);
  border: 2px solid #ff4fa3;
}

.product-ribbon-new {
  background: linear-gradient(135deg, #b42ea0, #7a2282);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.product-ribbon-featured {
  background: linear-gradient(135deg, #2ea6b4, #1a6c7a);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.product-ribbon-custom {
  background: linear-gradient(135deg, #ff4fa3, #ff1493);
  border: 2px solid #ff4fa3;
}

/* ===================== PRODUCT IMAGES & VIEW LARGER ===================== */

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay "View Larger" button (shop + kiosk) */
.product-image-wrap .view-image,
.kiosk-enlarge-btn {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: none;
  background: #ffffffcc;
  color: #b0258e;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 7px 18px;
  font-weight: 600;
}

/* Optional "View Larger" button under product image */
.product-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 1.25rem 0;
  margin-left: auto;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  background: #ffffff;
  color: var(--brand-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
}

/* Product text */

.product-name {
  min-height: 2.4em;
  margin: 6px 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4c256c;
  text-align: center;
}

.product-type {
  min-height: 1.2em;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #666666;
  text-align: center;
}

/* Stock status labels */

.stock-status {
  min-height: 1.2em;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.stock-in {
  color: #2e7d32;
}

.stock-low {
  color: #f57c00;
}

.stock-out {
  color: #c62828;
}

/* Size + selects */

.product label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  text-align: left;
}

.product select {
  margin-top: 4px;
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

/* Actions area at bottom of card */

.product-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Qty input */

.product-qty {
  width: 60px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
}

/* Add to cart button (shop) */

.add-to-cart {
  background: var(--brand-main);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.add-to-cart:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Kiosk "show to cashier" */

.kiosk-product .kiosk-show,
.kiosk-item .kiosk-show {
  background: var(--brand-main);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.kiosk-product .kiosk-show:disabled,
.kiosk-item .kiosk-show:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* ===================== CATEGORY / AUDIENCE FILTERS ===================== */

#category-filters,
#kiosk-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px 0;
  flex-wrap: wrap;
}

#category-filters button,
#kiosk-filters button {
  border-radius: 999px;
  border: 1px solid var(--brand-main);
  background: white;
  color: var(--brand-main);
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}

#audience-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 20px 10px;
  flex-wrap: wrap;
}

#audience-filters button {
  border-radius: 999px;
  border: 1px solid var(--brand-main);
  background: white;
  color: var(--brand-main);
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}

#kiosk-audience-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 20px 14px;
  flex-wrap: wrap;
}

#kiosk-audience-filters button {
  border-radius: 999px;
  border: 1px solid var(--brand-main);
  background: #ffffff;
  color: var(--brand-main);
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}

/* Active states shared */

#category-filters button.active,
#kiosk-filters button.active,
#audience-filters button.active,
#kiosk-audience-filters button.active {
  background: var(--brand-main);
  color: #ffffff;
}

/* ===================== CART BAR & MINI CART ===================== */

#cart-bar-container {
  display: flex;
  justify-content: center;
  margin: 10px 0 5px;
}

#cart-bar {
  background: white;
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4c256c;
}

.view-cart-button,
.continue-shopping {
  border-radius: 999px;
  border: none;
  background: var(--brand-main);
  color: white;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.view-cart-button:hover,
.continue-shopping:hover {
  opacity: 0.9;
}

/* generic mini-cart panel */

#cart-details {
  max-width: 800px;
  margin: 12px auto 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #333;
}

.cart-empty {
  text-align: center;
  color: #666;
  margin: 4px 0;
}

#cart-details .cart-line {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px 0;
}

#cart-details .cart-line:last-child {
  border-bottom: none;
}

#cart-details .cart-line-main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

#cart-details .cart-line-name {
  font-weight: 600;
}

#cart-details .cart-line-meta {
  font-size: 0.8rem;
  color: #777;
  text-align: right;
}

#cart-details .cart-line-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#cart-details .cart-qty {
  min-width: 20px;
  text-align: center;
}

#cart-details .cart-line-total {
  font-weight: 600;
}

#cart-details .cart-inc,
#cart-details .cart-dec,
#cart-details .cart-remove {
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 0.8rem;
}

#cart-details .cart-remove {
  border-color: #c62828;
  color: #c62828;
}

/* ===================== IMAGE MODAL ===================== */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-modal.hidden {
  display: none;
}

.image-modal:not(.hidden) {
  display: flex;
}

.image-modal-content {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.image-modal-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  margin-bottom: 0.25rem;
}

/* ===================== KIOSK PAGE LAYOUT ===================== */

body.kiosk {
  background: #6a4d7a;
  color: #ffffff;
  font-family: "Handwash", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, Arial, sans-serif;
}

.kiosk-hero {
  text-align: center;
  padding: 1.6rem 1rem 1.1rem;
}

.kiosk-hero h2 {
  margin-bottom: 0.4rem;
  font-size: 2.6rem;
}

.kiosk-hero p {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 900px;
  margin: 0.5rem auto 1.6rem;
  color: #ffffffcc;
  font-weight: 500;
}

#kiosk-filters {
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.kiosk-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.kiosk-filter-row button {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: #ffffff;
  color: #6a4d7a;
}

.kiosk-filter-row button.active {
  background: #b42ea0;
  color: #ffffff;
}

.kiosk-extra-filters input,
.kiosk-extra-filters select {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
}

/* Kiosk grid */

#kiosk-grid {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* Kiosk card overrides */

.kiosk-item {
  background: #f9f4ff;
  color: #3a2347;
  border-radius: 16px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.kiosk-item .product-image-wrap {
  text-align: center;
}

.kiosk-item .product-img {
  width: 100%;
  border-radius: 14px;
  max-height: 260px;
  object-fit: cover;
}

.kiosk-name {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  text-align: center;
}

.kiosk-details p {
  margin: 0.25rem 0;
}

/* ===================== KIOSK SPLASH SCREEN ===================== */

.kiosk-splash {
  position: fixed;
  inset: 0;
  background: #000000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.kiosk-splash.hidden {
  display: none;
}

.kiosk-splash:not(.hidden) {
  display: flex;
}

.kiosk-splash-panel {
  width: min(420px, 90vw);
  padding: 1.4rem 1.6rem 1.6rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top, #3e223e 0, #1a101c 60%, #050306 100%);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(180, 46, 160, 0.45);
  text-align: center;
  color: #ffffff;
}

.kiosk-splash-logo-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.8rem;
}

.kiosk-splash-panel h1 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.5rem;
}

.kiosk-splash-panel p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.kiosk-splash-panel p:last-child {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ===================== SHOP SPLASH OVERLAY ===================== */

.shop-splash {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  pointer-events: auto;
}

.shop-splash.hidden {
  display: none;
}

.shop-splash:not(.hidden) {
  display: flex;
}

.shop-splash-inner {
  width: min(480px, 92vw);
  padding: 1.8rem 1.9rem 2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at top, #3e223e 0, #1a101c 60%, #050306 100%);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 70px rgba(180, 46, 160, 0.55);
  text-align: center;
  color: #ffffff;
}

.shop-splash-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.7rem;
}

.shop-splash-title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

#shop-splash-message {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== TITLE REFINEMENTS ===================== */

.product-name,
.kiosk-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.3;
}

/* ===================== PILL BUTTON OVERRIDES ===================== */

#category-filters button,
#audience-filters button,
#kiosk-filters button,
#kiosk-audience-filters button,
.kiosk-filter-row button {
  font-family: var(--font-body) !important;
  font-size: 1.1rem !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
}

/* ===================== DROPDOWNS – USE HANDWASH ===================== */

select,
.product select,
.kiosk-details select,
.kiosk-extra-filters select,
.kiosk-extra-filters input {
  font-family: var(--font-body) !important;
  font-size: 1rem;
}

/* ===================== UTILS ===================== */

.hidden {
  display: none;
}

/* ===================== MOBILE TWEAKS (GLOBAL) ===================== */

@media (max-width: 700px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .header-brand {
    width: 100%;
    justify-content: flex-start;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-logo-img {
    height: 44px;
    width: 44px;
  }

  .brand-logo-text {
    font-size: 1.7rem;
  }

  .hero {
    padding: 1.5rem 1.1rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-button,
  .hero-button-secondary {
    width: 100%;
    text-align: center;
  }

  #category-filters,
  #audience-filters,
  #cart-bar-container {
    padding: 0 0.75rem;
  }

  #product-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-splash-panel {
    border-radius: 32px;
    width: 90vw;
  }

  .shop-splash-inner {
    border-radius: 36px;
    width: 90vw;
  }

  .announcement-bar {
    font-size: 1.1rem;
    padding: 0.75rem 0.6rem;
  }
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.9rem;
  }
}

/* =========================================================
   CART PAGE – NEW LEFT/RIGHT LAYOUT + SHIPPING + CUSTOMER INFO
   ========================================================= */

.cart-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.2fr);
  column-gap: 2rem;
  row-gap: 1.5rem;
  align-items: flex-start;
}

.cart-items {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  padding: 1.5rem 1.75rem;
}

.cart-page #cart-details .cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e1d8e8;
}

.cart-page #cart-details .cart-line:last-child {
  border-bottom: none;
}

.cart-page .cart-line-image img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-page .cart-line-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cart-page .cart-name-below {
  font-family: "BrittanySignature", cursive;
  font-size: 1.35rem;
  font-weight: normal;
  margin-top: 0.4rem;
  margin-bottom: 0.35rem;
  color: #2e1b47;
}

.cart-page .cart-meta-purple {
  font-family: "Handwash", sans-serif;
  font-size: 1rem;
  color: #3a2852;
  opacity: 0.9;
  background: transparent;
  padding: 0;
  margin-top: -2px;
}

.cart-page .cart-line-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-page .cart-line-controls button {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid #b398d8;
  background: #f7f2ff;
  color: #4a3b7a;
  cursor: pointer;
  font-size: 1rem;
}

.cart-page .cart-line-controls .cart-remove {
  border-color: #d24646;
  color: #d24646;
}

.cart-page .cart-line-total {
  font-weight: 700;
  color: #4a3b7a;
}

.cart-summary-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cart-page #cart-summary {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem 1.5rem 1.4rem;
  border: 2px solid #e2d3f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #3a2852;
  font-family: "Handwash", sans-serif;
  max-width: 320px;
  margin-left: auto;
}

.free-shipping-banner {
  background: #fbe7f7;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9c2b82;
  text-align: center;
  margin-bottom: 0.75rem;
}

.cart-page #cart-summary .cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.cart-page #cart-summary .cart-summary-grand {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #cbb6ec;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-customer-section,
.cart-shipping-section {
  margin-top: 1rem;
}

.cart-customer-section h2,
.cart-shipping-section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: #2e1b47;
}

.cart-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.cart-field span {
  margin-bottom: 0.15rem;
}

.required {
  color: #d24646;
  margin-left: 0.15rem;
}

.cart-field input {
  border-radius: 999px;
  border: 1px solid #d8c7f0;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.cart-field input:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 2px rgba(180, 46, 160, 0.2);
}

.cart-field-row {
  display: flex;
  gap: 0.6rem;
}

.cart-field-half {
  flex: 1;
}

.cart-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
}

.cart-actions a.continue-shopping,
.cart-actions #checkout-btn {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.cart-actions a.continue-shopping {
  background: #ffffff;
  color: #3a2852;
  border: 2px solid var(--brand-main);
}

.cart-actions a.continue-shopping:hover {
  background: #fbe7f7;
}

.cart-actions #checkout-btn {
  background: var(--brand-main);
  color: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cart-actions #checkout-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
}

@media (max-width: 800px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-page #cart-summary {
    max-width: none;
    margin: 0;
  }

  .cart-page #cart-details .cart-line {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cart-page .cart-line-main {
    align-items: flex-start;
    text-align: left;
  }

  .cart-page .cart-line-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ===================== ADMIN PAGE STYLES ===================== */

.admin-main {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.admin-section {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.75rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 1rem;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.admin-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.admin-help-text {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  opacity: 0.9;
}

.admin-subsection {
  margin-top: 1.5rem;
}

body.admin {
  font-family: var(--font-body);
}

.btn-primary,
.btn-secondary {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--brand-main);
  color: #ffffff;
  font-weight: bold;
}

.btn-primary:hover {
  background: #e74dc1;
}

.btn-secondary {
  background: var(--brand-main);
  color: #ffffff;
  font-weight: bold;
}

.btn-secondary:hover {
  background: #e74dc1;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-table th {
  font-weight: bold;
  text-align: left;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 0.4rem;
  margin-bottom: 0.25rem;
}

.flag-pill input[type="checkbox"] {
  accent-color: var(--brand-main);
}

#flags-section .flags-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

#flags-status {
  margin-top: 0.35rem;
}

#flags-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

#flags-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.products-table-wrapper {
  max-height: 420px;
  overflow-y: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.flags-save-bar,
.flags-sticky-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.6rem;
  margin-top: 0.5rem;
  background: linear-gradient(
    to bottom,
    rgba(106, 77, 122, 0),
    rgba(106, 77, 122, 0.95)
  );
  backdrop-filter: blur(4px);
}

#save-flags-btn {
  min-width: 190px;
}

#flags-section.flags-collapsed .products-table-wrapper,
#flags-section.flags-collapsed .flags-save-bar,
#flags-section.flags-collapsed .flags-sticky-footer {
  display: none;
}

/* ===================== MOVE-TO-TOP BUTTON (GLOBAL) ===================== */

.move-to-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--brand-main);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;

  /* hidden by default; JS adds .visible */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.move-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===================== UNIFIED FILTER ROW + SEARCH STYLES (SHOP + KIOSK) ===================== */

/* Search inputs – both pages (SHOP + KIOSK) */
#shop-search,
#kiosk-search {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #6a4d7a;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  outline: none;
}

#shop-search::placeholder,
#kiosk-search::placeholder {
  color: #b48cc7;
}

/* Clear Filters buttons – identical on shop + kiosk */
#shop-clear-filters,
#kiosk-clear-filters {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  background: #ffffff;
  color: #b42ea0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

#shop-clear-filters:hover,
#kiosk-clear-filters:hover {
  background: #fbe7f7;
}
/* ===== Floating Social Buttons ===== */
.floating-social {
  position: fixed;
  bottom: 20px;
  left: 20px;          /* move to left side */
  right: auto;         /* override any right positioning */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;          /* keeps the icon nicely round */
  background: transparent;   /* icon image provides the gradient */
  padding: 0;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
/* ========== SUGAR PLUM ALERT MODAL ========== */

.spc-alert-overlay {
  position: fixed;
  inset: 0;
  display: none; /* shown via .active / .is-visible */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

/* Support both class names so JS can use either */
.spc-alert-overlay.active,
.spc-alert-overlay.is-visible {
  display: flex;
}

.spc-alert {
  background: #ffffff;
  color: #6a4d7a;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  max-width: 420px;
  width: calc(100% - 3rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: left;
  border: 3px solid #b42ea0;
}

.spc-alert.spc-alert-error {
  border-color: #e03a5d;
}

.spc-alert-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
  color: #b42ea0;
}

.spc-alert.spc-alert-error .spc-alert-title {
  color: #e03a5d;
}

.spc-alert-message {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.spc-alert-button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  background: #b42ea0;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.spc-alert-button:hover {
  background: #7c1d72;
}
