/* =========================================================
   Cindi's Catering Plugin — style.css
   Warm, classic NY deli aesthetic.
   Color palette: deep red, warm cream, antique gold.
   ========================================================= */

:root {
  --cc-red:        #8B1A1A;
  --cc-red-dk:     #6e1515;
  --cc-red-lt:     #b02020;
  --cc-cream:      #fff8e7;
  --cc-cream-dk:   #f5efd4;
  --cc-gold:       #c8a400;
  --cc-gold-lt:    #e8d070;
  --cc-text:       #2c2c2c;
  --cc-muted:      #777;
  --cc-border:     #e0d8c8;
  --cc-radius:     10px;
  --cc-shadow:     0 2px 10px rgba(0,0,0,.07);
  --cc-shadow-lg:  0 8px 32px rgba(0,0,0,.14);
}

/* ── Wrapper ─────────────────────────────────────────────── */

#cc-wrap {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--cc-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0;
}

/* ── Header ──────────────────────────────────────────────── */

.cc-heading {
  font-size: 30px;
  color: var(--cc-red);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.cc-pay-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cc-cream);
  border-left: 4px solid var(--cc-gold);
  padding: 14px 18px;
  border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.cc-notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* ── Layout ──────────────────────────────────────────────── */

.cc-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.cc-menu-col {
  flex: 1;
  min-width: 0;
}

.cc-sidebar {
  width: 310px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

/* ── Tabs ────────────────────────────────────────────────── */

.cc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.cc-tab {
  padding: 8px 20px;
  border: 2px solid var(--cc-border);
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--cc-text);
  transition: background .15s, border-color .15s, color .15s;
  font-weight: normal;
}
.cc-tab:hover,
.cc-tab.active {
  background: var(--cc-red);
  border-color: var(--cc-red);
  color: #fff;
}

/* ── Item image ──────────────────────────────────────────── */

.cc-card-img {
  margin: -22px -22px 16px;   /* bleed to card edges */
  border-radius: var(--cc-radius) var(--cc-radius) 0 0;
  overflow: hidden;
  max-height: 200px;
}
.cc-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.cc-card:hover .cc-card-img img {
  transform: scale(1.03);
}

/* ── Item cards ──────────────────────────────────────────── */

.cc-card {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--cc-shadow);
  transition: box-shadow .2s, transform .2s;
}
.cc-card:hover {
  box-shadow: var(--cc-shadow-lg);
  transform: translateY(-1px);
}
.cc-card.cc-hidden { display: none; }

.cc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.cc-item-name {
  margin: 0;
  font-size: 19px;
  color: var(--cc-red);
  font-weight: bold;
  line-height: 1.2;
}

.cc-from-badge {
  display: inline-block;
  background: var(--cc-cream);
  color: var(--cc-red);
  border: 1px solid var(--cc-gold-lt);
  padding: 3px 11px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}
.cc-badge-call {
  background: #f4f4f4;
  color: var(--cc-muted);
  border-color: #ccc;
}

.cc-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
  margin: 0 0 8px;
}

.cc-includes {
  font-size: 13px;
  color: var(--cc-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ── Size selector ───────────────────────────────────────── */

.cc-sizes-label {
  font-size: 13px;
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

.cc-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cc-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  min-width: 96px;
  border: 2px solid var(--cc-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  text-align: center;
}
.cc-size-btn:hover {
  border-color: var(--cc-red-lt);
  background: var(--cc-cream);
}
.cc-size-btn.selected {
  border-color: var(--cc-red);
  background: var(--cc-red);
}

.cc-s-serves {
  font-size: 12px;
  color: var(--cc-muted);
  font-weight: bold;
  line-height: 1;
}
.cc-s-price {
  font-size: 17px;
  font-weight: bold;
  color: var(--cc-red);
  line-height: 1;
}

.cc-size-btn.selected .cc-s-serves,
.cc-size-btn.selected .cc-s-price {
  color: #fff;
}

/* ── Options dropdowns ───────────────────────────────────── */

.cc-opts { margin-bottom: 16px; }

.cc-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cc-opt-label {
  font-size: 13px;
  font-weight: bold;
  color: #444;
  min-width: 62px;
  flex-shrink: 0;
}

.cc-opt-sel {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--cc-text);
  transition: border-color .15s;
}
.cc-opt-sel:focus  { outline: none; border-color: var(--cc-red); }
.cc-opt-sel.cc-err { border-color: #c00; }

/* ── Add button ──────────────────────────────────────────── */

.cc-add-btn {
  width: 100%;
  padding: 12px;
  background: var(--cc-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: 0.2px;
}
.cc-add-btn:hover:not(:disabled) {
  background: var(--cc-red-dk);
  transform: translateY(-1px);
}
.cc-add-btn:disabled {
  background: #ccc;
  cursor: default;
  transform: none;
}

.cc-add-msg {
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  margin-top: 7px;
  font-style: italic;
  transition: color .2s;
}

/* ── Cart ────────────────────────────────────────────────── */

.cc-cart-box {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 20px;
  box-shadow: var(--cc-shadow);
  margin-bottom: 16px;
}

.cc-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cc-cart-head h3 {
  margin: 0;
  color: var(--cc-red);
  font-size: 18px;
}

.cc-cart-count {
  background: var(--cc-red);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 9px;
  border-radius: 12px;
}

.cc-cart-empty {
  color: #aaa;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
  font-style: italic;
  margin: 0;
}

/* Cart item row */
.cc-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid #f0ebe0;
  font-size: 13px;
  gap: 8px;
}
.cc-item-left { flex: 1; min-width: 0; }
.cc-item-iname {
  font-weight: bold;
  color: var(--cc-text);
  font-size: 13px;
  line-height: 1.3;
}
.cc-item-detail {
  font-size: 11px;
  color: var(--cc-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.cc-item-right { text-align: right; flex-shrink: 0; }
.cc-item-price {
  font-weight: bold;
  color: var(--cc-red);
  font-size: 14px;
}
.cc-remove {
  display: block;
  font-size: 11px;
  color: #bbb;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 3px;
  font-family: inherit;
  transition: color .15s;
}
.cc-remove:hover { color: #c00; }

/* Cart total */
.cc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  font-size: 15px;
  border-top: 2px solid var(--cc-red);
  margin-top: 6px;
}
.cc-total-row strong { color: var(--cc-red); font-size: 17px; }
.cc-total-note {
  font-size: 11px;
  color: #aaa;
  margin: 6px 0 0;
  font-style: italic;
  line-height: 1.4;
}

/* ── Order form ──────────────────────────────────────────── */

.cc-form-box {
  background: var(--cc-cream);
  border: 1px solid #e8d8a0;
  border-radius: var(--cc-radius);
  padding: 20px;
}
.cc-form-box h3 {
  margin: 0 0 16px;
  color: var(--cc-red);
  font-size: 18px;
}

.cc-field { margin-bottom: 13px; }
.cc-field label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  margin-bottom: 4px;
}
.cc-field label abbr {
  color: var(--cc-red);
  text-decoration: none;
  margin-left: 2px;
}
.cc-field input,
.cc-field select,
.cc-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--cc-text);
  box-sizing: border-box;
  transition: border-color .15s;
}
.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus {
  outline: none;
  border-color: var(--cc-red);
}

.cc-field-row { display: flex; gap: 12px; }
.cc-field-row .cc-field { flex: 1; }

/* Errors */
.cc-errors {
  background: #fff0f0;
  border: 1px solid #f0a0a0;
  border-radius: 6px;
  padding: 11px 15px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #b00;
  line-height: 1.5;
}
.cc-errors ul { margin: 6px 0 0; padding-left: 18px; }
.cc-errors li { margin-bottom: 3px; }

/* Submit */
.cc-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--cc-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background .15s, transform .1s;
}
.cc-submit-btn:hover:not(:disabled) {
  background: var(--cc-red-dk);
  transform: translateY(-1px);
}
.cc-submit-btn:disabled {
  background: #bbb;
  cursor: default;
  transform: none;
}
.cc-submit-sub {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* ── Confirmation modal ──────────────────────────────────── */

.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cc-fade-in .2s ease;
}

.cc-modal-inner {
  background: #fff;
  border-radius: 16px;
  padding: 44px 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 72px rgba(0,0,0,.3);
  animation: cc-slide-up .25s ease;
}
.cc-modal-icon { font-size: 52px; margin-bottom: 12px; }
.cc-modal-inner h2 { color: var(--cc-red); margin: 0 0 14px; font-size: 24px; }
.cc-modal-inner p  { color: #555; line-height: 1.65; font-size: 15px; margin-bottom: 28px; }
.cc-modal-close {
  padding: 11px 36px;
  background: var(--cc-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background .15s;
}
.cc-modal-close:hover { background: var(--cc-red-dk); }

@keyframes cc-fade-in  { from { opacity: 0; }             to { opacity: 1; } }
@keyframes cc-slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Responsive (mobile) ─────────────────────────────────── */

@media (max-width: 768px) {
  .cc-layout       { flex-direction: column; }
  .cc-sidebar      { width: 100%; position: static; order: -1; }
  .cc-field-row    { flex-direction: column; gap: 0; }
  .cc-size-btn     { min-width: 82px; }
  .cc-heading      { font-size: 24px; }
}

@media (max-width: 480px) {
  .cc-card         { padding: 16px 14px; }
  .cc-modal-inner  { padding: 32px 22px; }
}
