/* ============================================================
   Phase 69 — Modern card & color refresh (all customer pages)
   ------------------------------------------------------------
   Fixes the dark-hero cards (menu board + buffet) so every text
   color is readable on its actual background, gives buffet item
   cards a photo-first modern layout now that pictures upload,
   and unifies the menu / order / cart / checkout cards with one
   modern style language: soft shadows, rounded corners, ink text
   on light surfaces, light text on dark surfaces.
   Loaded last via includes/customer-header.php so it wins the
   phase cascade.
   ============================================================ */

/* ==========================================================
   1) HERO CARDS — dark teal surface, light text everywhere
   ========================================================== */
.sk43-hero{
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(115% 125% at 6% 10%, rgba(255,255,255,.14), transparent 44%),
    radial-gradient(circle at 88% 8%, rgba(211,154,35,.32), transparent 32%),
    radial-gradient(circle at 72% 104%, rgba(12,127,132,.42), transparent 44%),
    linear-gradient(135deg,#05383d 0%,#075d63 52%,#062f34 100%);
  box-shadow:0 30px 74px rgba(4,44,48,.36), inset 0 1px 0 rgba(255,255,255,.16);
}
.sk43-hero h1{
  color:#ffffff!important; /* beats phase58 h1{color:var(--sk-text)!important} */
  text-shadow:0 2px 20px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.22);
  letter-spacing:-.02em;
}
.sk43-hero p{
  color:rgba(255,255,255,.94)!important;
  text-shadow:0 1px 12px rgba(0,0,0,.24);
}
.sk43-hero .sk43-eyebrow,
.sk43-hero .sk43-pill{
  background:rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(10px) saturate(140%);
  backdrop-filter:blur(10px) saturate(140%);
  border:1px solid rgba(255,255,255,.30);
  color:#ffe9c9;
  text-shadow:0 1px 8px rgba(0,0,0,.25);
  box-shadow:0 8px 18px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.30);
}

/* Buffet hero: only one column of content — stop leaving the
   right half of the 2-col grid empty. */
.sk-buffet-hero{grid-template-columns:minmax(0,1fr);}
.sk-buffet-hero .sk43-hero-copy{max-width:820px;}

/* Buffet hero eyebrow: was dark rust on dark teal — unreadable. */
.sk-buffet-hero .sk43-eyebrow{
  background:linear-gradient(135deg,rgba(244,205,107,.22),rgba(211,154,35,.14));
  border:1px solid rgba(244,205,107,.45);
  color:#ffd98a;
}

/* Price pill sits on the dark hero → light glass with gold price. */
.sk-buffet-price-pill{
  background:linear-gradient(158deg,rgba(255,255,255,.18),rgba(255,255,255,.06));
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  backdrop-filter:blur(14px) saturate(150%);
  border:1px solid rgba(255,255,255,.34);
  border-radius:18px;
  box-shadow:0 14px 32px rgba(3,40,42,.28), inset 0 1px 0 rgba(255,255,255,.40);
}
.sk-buffet-price-pill b{
  color:#ffd98a;
  text-shadow:0 1px 10px rgba(0,0,0,.30);
}
.sk-buffet-price-pill span{color:rgba(255,255,255,.86);}

/* Reserve row: label was dark teal on dark teal. */
.sk-buffet-reserve-label{color:#ffffff;text-shadow:0 1px 8px rgba(0,0,0,.25);}

/* Hero buttons: keep brand colors, modern pill + depth. */
.sk43-hero .sk43-btn{
  border-radius:999px!important; /* beats phase50 13px !important */
  font-size:1rem!important;      /* beats phase50 .92rem !important */
  font-weight:850!important;     /* beats phase50 500 !important */
  padding:13px 24px;
  border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(135deg,#f4cd6b,#d9a63a 52%,#c7922b);
  color:#231a06;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
  box-shadow:0 14px 30px rgba(199,146,43,.38), inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, filter .2s ease;
}
.sk43-hero .sk43-btn.ghost{
  background:rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  backdrop-filter:blur(12px) saturate(150%);
  border:1px solid rgba(255,255,255,.46);
  color:#ffffff;
  text-shadow:0 1px 10px rgba(0,0,0,.24);
  box-shadow:0 12px 28px rgba(3,40,42,.26), inset 0 1px 0 rgba(255,255,255,.38);
}
.sk43-hero .sk43-btn:hover{transform:translateY(-2px);filter:brightness(1.04);}

/* ==========================================================
   2) MENU BOARD — dish (product) cards
   Clean white card + ink text + teal price + teal Add button.
   Scoped selectors + !important beat phase54's cyan theme
   (phase69 loads last via customer-header.php).
   ========================================================== */
.sk43-card-grid .sk43-product-card,
.sk43-product-card{
  background:#ffffff!important;
  color:#10272a!important;
  border:1px solid rgba(6,63,68,.08)!important;
  border-radius:20px!important;
  box-shadow:0 10px 26px rgba(6,63,68,.10)!important;
  transition:transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.sk43-product-card:hover{
  transform:translateY(-4px)!important;
  box-shadow:0 18px 40px rgba(6,63,68,.18)!important;
}
.sk43-img{
  height:150px;
  background:linear-gradient(160deg,#eef8f8,#dff0f0);
}
.sk43-product-info h3,
.sk43-product-card h3{
  color:#0b3236!important;
  font-weight:850!important;
  letter-spacing:-.01em;
  line-height:1.25;
}
.sk43-product-info p,
.sk43-product-card p{color:#5b7175!important;}
.sk43-card-meta b,
.sk43-price-row b{
  color:#096f73!important;font-weight:900!important;font-size:15px!important;
  text-shadow:none!important;
}
.sk43-card-meta span:not(.sold),
.sk43-price-row span:not(.sold){font-weight:800;}
.sk43-card-meta span.sold,
.sk43-price-row span.sold{font-weight:800;}
.sk43-rating{color:#b45309!important;font-weight:800;}
.sk43-add{
  background:linear-gradient(135deg,#096f73,#06484b)!important;
  color:#ffffff!important;
  border:0!important;
  border-radius:999px!important;
  font-weight:850!important;
  letter-spacing:.01em;
  box-shadow:0 10px 22px rgba(6,72,75,.28), inset 0 1px 0 rgba(255,255,255,.25)!important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.sk43-add:hover{
  background:linear-gradient(135deg,#0b8186,#07565a)!important;
  color:#ffffff!important;
  transform:translateY(-2px);
  filter:brightness(1.06);
  box-shadow:0 14px 28px rgba(6,72,75,.36)!important;
}

/* ==========================================================
   3) BUFFET PAGE — section cards + photo-first item cards
   ========================================================== */
.sk-buffet-section{
  background:#fff;
  border:1px solid rgba(6,63,68,.08);
  border-radius:24px;
  padding:clamp(14px,2.4vw,22px);
  box-shadow:0 12px 32px rgba(6,63,68,.08);
}
.sk-buffet-section-head h2{color:#063f44!important;letter-spacing:-.01em;}
.sk-buffet-limit{color:#9a6b3f;}
.sk-buffet-section-count{
  background:rgba(224,135,64,.12);
  border:1px solid rgba(168,62,34,.24);
  color:#A83E22;
}

.sk-buffet-grid{grid-template-columns:repeat(auto-fill,minmax(164px,1fr));gap:14px;}
.sk-buffet-item{
  border-radius:20px;
  border:2px solid #ece3d7;
  padding:10px 12px 12px;
  gap:9px;
  box-shadow:0 8px 20px rgba(6,63,68,.08);
}
.sk-buffet-item-name{color:#0b3236;font-size:14px;font-weight:850;letter-spacing:-.01em;}

/* When an item has an uploaded picture, show it as a full-bleed
   photo banner instead of the small 64px tile. */
.sk-buffet-item-visual:has(img){
  width:100%;
  aspect-ratio:4/3;
  height:auto;
  border-radius:14px;
  font-size:0;
  background:linear-gradient(160deg,#f4ece1,#ead9c4);
  box-shadow:inset 0 0 0 1px rgba(6,63,68,.06);
}
.sk-buffet-item-visual:has(img) img{border-radius:14px;}
.sk-buffet-item:has(.sk-buffet-item-visual img){padding-top:10px;}

.sk-buffet-item-price{
  background:rgba(255,248,232,.94);
  border:1px solid rgba(168,62,34,.32);
  color:#8a4a17;
  box-shadow:0 4px 12px rgba(6,63,68,.16);
}
.sk-buffet-item.is-selected{
  border-color:#2f9e5b;
  background:linear-gradient(165deg,#ffffff,#eefaf1);
  box-shadow:0 14px 30px rgba(47,158,91,.22);
}

/* ==========================================================
   4) ORDER CARDS — virtual plate bar, plate sheet, checkout
      summary and cart table get one modern language
   ========================================================== */
.sk-plate-bar{
  border-radius:999px;
  background:linear-gradient(135deg,rgba(6,63,68,.97),rgba(9,111,115,.94));
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  backdrop-filter:blur(14px) saturate(150%);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 20px 46px rgba(3,40,42,.42), inset 0 1px 0 rgba(255,255,255,.22);
}
.sk-plate-bar-text{color:#fff;}
.sk-plate-bar-text b{color:#7fe0a4;}
.sk-plate-bar-price{color:#ffd98a;}
.sk-plate-clear{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.26);
  color:#fff;
}
.sk-plate-clear:hover{background:rgba(255,255,255,.28);}

.sk-plate-panel{
  border-radius:26px;
  border:1px solid rgba(6,63,68,.10);
  box-shadow:0 30px 70px rgba(3,40,42,.40);
}
.sk-plate-head{
  background:linear-gradient(135deg,#096f73,#063f44);
  padding:16px 20px;
}
.sk-plate-head h2{color:#ffffff!important;font-weight:900!important;letter-spacing:-.01em;}
.sk-plate-persons{background:#fbf7f1;border-bottom:1px solid #eee2d2;}
.sk-plate-persons-label{color:#063f44;}
.sk-plate-total small{color:#8a7a68;}
.sk-plate-total b{color:#A83E22;}
.sk-plate-group h3{color:#A83E22;}
.sk-plate-row{
  background:#fbf8f3;
  border:1px solid #efe6d9;
  border-radius:14px;
}
.sk-plate-row span{color:#0b3236;}
.sk-plate-actions .sk43-btn{
  background:linear-gradient(135deg,#2f9e5b,#22744a);
  color:#fff;
  border-radius:999px!important;
  font-weight:850;
  box-shadow:0 14px 30px rgba(34,116,74,.34), inset 0 1px 0 rgba(255,255,255,.30);
}
.sk-plate-note{color:#8a7a68;}

/* Checkout order summary items */
.sk-checkout-items{
  display:grid;gap:8px;
  padding:10px 0 12px;margin-bottom:10px;
  border-bottom:1px dashed rgba(6,63,68,.18);
}
.sk-checkout-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;gap:10px;
  padding:9px 12px;border-radius:14px;
  background:#fbf8f3;border:1px solid #efe6d9;
}
.sk-checkout-item-name{color:#0b3236;font-weight:800;font-size:14px;line-height:1.35;}
.sk-checkout-item-name small{display:block;color:#7d6a58;font-weight:650;font-size:12px;margin-top:2px;line-height:1.45;}
.sk-checkout-item-qty{color:#096f73;font-weight:850;font-size:13px;white-space:nowrap;}
.sk-checkout-item-total{color:#A83E22;font-weight:900;font-size:14px;white-space:nowrap;}

/* Cart page order card */
.customer-card .cart-table th{
  background:linear-gradient(135deg,#096f73,#063f44)!important;
  color:#ffffff!important;font-weight:800;letter-spacing:.02em;
}
.customer-card .cart-table td{color:#10272a!important;}
.customer-card .cart-table tr:hover td{background:#f6fbfb;}
.customer-card .cart-total{
  font-weight:900;color:#063f44;
}
.customer-card .cart-total span:last-child{color:#A83E22;}

/* ==========================================================
   Responsive + fallbacks
   ========================================================== */
@supports not selector(:has(*)){
  /* No :has() support → enlarge the tile instead of full-bleed */
  .sk-buffet-item-visual{width:96px;height:96px;border-radius:18px;}
}
@media(max-width:900px){
  .sk43-hero{border-radius:26px;}
  .sk-buffet-hero{padding:22px;}
}
@media(max-width:700px){
  .sk-buffet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .sk-buffet-item-name{font-size:12.8px;}
  .sk43-hero .sk43-btn{width:100%;justify-content:center;}
  .sk-checkout-item{grid-template-columns:minmax(0,1fr) auto;}
  .sk-checkout-item-qty{display:none;}
}
@media(prefers-reduced-motion:reduce){
  .sk43-product-card,.sk43-add,.sk43-hero .sk43-btn,.sk-buffet-item{transition:none!important;}
  .sk43-product-card:hover,.sk43-add:hover,.sk43-hero .sk43-btn:hover{transform:none;}
}
@media print{
  .sk43-hero{box-shadow:none;background:#063f44!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .sk-plate-bar,.sk-plate-panel{display:none!important;}
}
