@import url("fonts.css");
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3e9dc;
    color: #3d2b1f;
    line-height: 1.5;
    padding-bottom: 80px;
}
.menu-header {
    background: linear-gradient(180deg, #f8f0e5, #f0e4d4);
    padding: 28px 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e5d8c6;
}
.rest-name { font-size: 24px; font-weight: 700; color: #2c1e14; }
.table-badge {
    display: inline-block;
    margin-top: 8px;
    background: #c47a2c;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.welcome { font-size: 14px; color: #8b7355; margin-top: 10px; }

.section { padding: 20px 16px 8px; max-width: 480px; margin: 0 auto; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: #2c1e14; }

.menu-list { display: flex; flex-direction: column; gap: 12px; }
.coffee-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 4px 14px rgba(60,40,20,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}
.coffee-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}
.coffee-info { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; }
.coffee-name { font-size: 15px; font-weight: 700; color: #2c1e14; }
.tag-hot {
    font-size: 10px;
    background: #fff3e0;
    color: #e65100;
    padding: 1px 6px;
    border-radius: 8px;
    margin-right: 4px;
}
.coffee-desc {
    font-size: 12px;
    color: #8b7355;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coffee-weight { font-size: 11px; color: #a08b70; margin-top: 2px; }
.coffee-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}
.coffee-price { font-size: 14px; font-weight: 700; color: #c47a2c; }
.old-price {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 4px;
    font-weight: 400;
}
/* btn-add moved to qty-controls */

.cart-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #2c1e14;
    color: #fff;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cart-info { font-size: 14px; font-weight: 600; }
.btn-cart {
    background: #c47a2c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}
.modal-bg.active { opacity: 1; visibility: visible; }
.modal {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.35s;
}
.modal-bg.active .modal { transform: translateY(0); }
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.checkout-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.modal-total { margin: 14px 0; font-size: 16px; }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; }
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, #c47a2c, #e09540);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}
.btn-outline {
    background: #fff;
    border: 1.5px solid #e5e5e5;
    color: #555;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.btn-block { width: 100%; }

/* ===== انیمیشن‌های نرم و ظاهر مدرن ===== */
.menu-header {
    animation: fadeDown 0.5s ease;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeUp 0.45s ease both;
}
.section:nth-child(2) { animation-delay: 0.05s; }
.section:nth-child(3) { animation-delay: 0.1s; }
.section:nth-child(4) { animation-delay: 0.15s; }
.section:nth-child(5) { animation-delay: 0.2s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.coffee-card {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
    animation: cardIn 0.4s ease both;
}
.coffee-card:nth-child(1) { animation-delay: 0.04s; }
.coffee-card:nth-child(2) { animation-delay: 0.08s; }
.coffee-card:nth-child(3) { animation-delay: 0.12s; }
.coffee-card:nth-child(4) { animation-delay: 0.16s; }
.coffee-card:nth-child(5) { animation-delay: 0.2s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.coffee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(60, 40, 20, 0.12);
}
.coffee-card:active {
    transform: scale(0.98);
}


.cart-bar {
    animation: slideUpBar 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUpBar {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.btn-cart {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cart:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(196, 122, 44, 0.4);
}
.btn-cart:active {
    transform: scale(0.97);
}

.modal {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-bg {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.table-badge {
    animation: pulseSoft 2.5s ease-in-out infinite;
}
@keyframes pulseSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 122, 44, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(196, 122, 44, 0); }
}

.tag-hot {
    animation: hotGlow 1.8s ease-in-out infinite;
}
@keyframes hotGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.btn-add, .btn-cart, .btn-primary, .coffee-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-add:active { transform: scale(0.88); }
.btn-cart:active { transform: scale(0.96); }
.brand-footer-menu {
    text-align: center;
    padding: 24px 16px 100px;
    font-size: 11px;
    color: #a08b70;
}

/* ===== ظاهر مدرن‌تر منوی مشتری ===== */
body {
    background: linear-gradient(180deg, #faf6f0 0%, #f3e9dc 40%, #efe6d8 100%);
}
.menu-header {
    background: linear-gradient(165deg, #fff9f2 0%, #f5ebe0 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 28px rgba(60,40,20,0.06);
    padding: 32px 20px 24px;
}
.rest-name {
    font-size: 26px;
    letter-spacing: -0.3px;
}
.table-badge {
    box-shadow: 0 4px 14px rgba(196,122,44,0.35);
}
.coffee-card {
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(60,40,20,0.07);
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
}
.coffee-img {
    width: 96px;
    height: 96px;
    border-radius: 0 16px 16px 0;
}
.coffee-name { font-size: 15.5px; }
.cart-bar {
    background: linear-gradient(90deg, #2c1e14, #3d2b1f);
    border-radius: 18px 18px 0 0;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
}
.btn-cart {
    border-radius: 12px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #c47a2c, #e8a04a);
    box-shadow: 0 4px 16px rgba(196,122,44,0.45);
}
.modal {
    border-radius: 24px 24px 0 0;
    padding: 28px 22px 36px;
}
.section-title {
    font-size: 17px;
    letter-spacing: -0.2px;
}
.menu-list { gap: 14px; }

/* نوار دسته‌ها — موبایل و دسکتاپ */
.cat-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 246, 240, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 22px;
    background: #fff;
    border: 1.5px solid #e8d9c8;
    color: #5c4a3a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.cat-chip:active, .cat-chip:hover {
    background: #c47a2c;
    color: #fff;
    border-color: #c47a2c;
}
.section { scroll-margin-top: 60px; }

/* تیپوگرافی تپل‌تر */
body { font-size: 15px; }
.rest-name { font-size: 28px !important; font-weight: 800 !important; }
.section-title { font-size: 18px !important; font-weight: 800 !important; }
.coffee-name { font-size: 16px !important; font-weight: 700 !important; }
.coffee-price { font-size: 15px !important; font-weight: 800 !important; }
.btn-cart { font-size: 15px !important; font-weight: 800 !important; }
.cat-chip { font-size: 13.5px !important; font-weight: 700 !important; }
.table-badge { font-weight: 800 !important; }

/* کنترل تعداد:  −  عدد  +  */
.qty-controls {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    direction: ltr !important; /* همیشه − عدد + از چپ به راست */
}
.qty-controls .btn-qty {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0 !important;
}
.qty-controls .btn-qty:active {
    transform: scale(0.9);
}
.qty-controls .btn-add {
    background: linear-gradient(135deg, #c47a2c, #e09540) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(196,122,44,0.4) !important;
}
.qty-controls .btn-minus {
    background: #efe4d4 !important;
    color: #3d2b1f !important;
    box-shadow: 0 2px 6px rgba(60,40,20,0.12) !important;
}
.qty-controls .qty-num {
    min-width: 28px !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    color: #2c1e14 !important;
    display: inline-block !important;
}
.coffee-card.in-cart {
    border-color: rgba(196,122,44,0.35);
    box-shadow: 0 6px 20px rgba(196,122,44,0.12);
}
.coffee-bottom {
    gap: 10px;
    flex-wrap: nowrap;
}


/* پیش‌نمایش شیشه‌ای آیتم — نیم‌صفحه */
.item-preview-modal {
  display: none;
  position: fixed; inset: 0; z-index: 320;
  background: rgba(25,15,8,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: flex-end;
  justify-content: center;
}
.item-preview-modal.show { display: flex !important; }
.item-preview-sheet {
  width: 100%; max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px 28px 0 0;
  padding: 10px 18px 28px;
  box-shadow: 0 -16px 48px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.65);
  animation: sheetUp .38s cubic-bezier(.2,.9,.3,1);
  position: relative;
}
@keyframes sheetUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ipv-handle {
  width: 42px; height: 5px; border-radius: 4px;
  background: rgba(0,0,0,0.12);
  margin: 4px auto 12px;
}
.ipv-close {
  position: absolute; top: 14px; left: 14px;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.07); font-size: 24px; line-height: 1;
  cursor: pointer; color: #5c4a3a; z-index: 2;
  font-family: inherit;
}
.ipv-img {
  width: 100%; height: 240px; object-fit: cover; border-radius: 20px;
  background: #f0e6da; display: block;
}
.ipv-body { padding-top: 16px; }
.ipv-body h3 {
  font-size: 22px; font-weight: 800; margin-bottom: 8px;
  color: #2c1e14; letter-spacing: -0.3px;
}
.ipv-desc {
  font-size: 14.5px; color: #6d5a48; line-height: 1.75;
  margin-bottom: 10px; font-weight: 500;
}
.ipv-weight {
  font-size: 13px; color: #a08b70; margin-bottom: 10px; font-weight: 600;
}
.ipv-tags { margin-bottom: 12px; }
.ipv-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.ipv-tag.hot { background: #fff3e0; color: #e65100; }
.ipv-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.ipv-price { font-size: 20px; font-weight: 800; color: #c47a2c; }
.ipv-add-btn {
  width: 100%; border: none; border-radius: 16px; padding: 16px;
  font-size: 16px; font-weight: 800; font-family: inherit;
  background: linear-gradient(135deg, #c47a2c, #e8a04a);
  color: #fff; cursor: pointer;
  box-shadow: 0 8px 22px rgba(196,122,44,0.35);
}
.ipv-add-btn:active { transform: scale(0.98); }
.coffee-card { cursor: pointer; }

/* Customer dark theme */
html[data-theme="dark"] body,
body[data-theme="dark"] {
  background: linear-gradient(165deg, #0c0c0e 0%, #161218 50%, #1a1210 100%) !important;
  color: #f2f2f2 !important;
}
html[data-theme="dark"] .rest-name,
html[data-theme="dark"] .welcome,
html[data-theme="dark"] .table-badge,
body[data-theme="dark"] .rest-name,
body[data-theme="dark"] .welcome {
  color: #fff !important;
}
html[data-theme="dark"] .cat-chip,
html[data-theme="dark"] .category-pill,
html[data-theme="dark"] .cats button,
html[data-theme="dark"] .cats a,
body[data-theme="dark"] .cat-chip,
body[data-theme="dark"] .category-pill {
  background: #1c1a1e !important;
  color: #f0ebe6 !important;
  border: 1px solid rgba(255,70,70,.25) !important;
}
html[data-theme="dark"] .cat-chip.active,
html[data-theme="dark"] .cats .active,
body[data-theme="dark"] .cat-chip.active {
  background: linear-gradient(135deg, #c62828, #e53935) !important;
  color: #fff !important;
}
html[data-theme="dark"] .coffee-card,
html[data-theme="dark"] .item-card,
body[data-theme="dark"] .coffee-card {
  background: #1c1a1e !important;
  border: 1px solid rgba(255,70,70,.2) !important;
  color: #f5f0eb !important;
}
html[data-theme="dark"] .coffee-name,
html[data-theme="dark"] .coffee-card h3,
html[data-theme="dark"] .coffee-card .name,
body[data-theme="dark"] .coffee-name,
body[data-theme="dark"] .coffee-card h3 {
  color: #ffffff !important;
}
html[data-theme="dark"] .coffee-desc,
html[data-theme="dark"] .coffee-weight,
body[data-theme="dark"] .coffee-desc,
body[data-theme="dark"] .coffee-weight {
  color: #c4b8ae !important;
}
html[data-theme="dark"] .coffee-price,
html[data-theme="dark"] .price,
body[data-theme="dark"] .coffee-price {
  color: #ff8a80 !important;
}
html[data-theme="dark"] .cart-bar,
body[data-theme="dark"] .cart-bar {
  background: rgba(18,16,20,.96) !important;
  border-top: 1px solid rgba(255,60,60,.25) !important;
  color: #fff !important;
}
html[data-theme="dark"] .item-preview-sheet,
body[data-theme="dark"] .item-preview-sheet {
  background: rgba(28,26,30,.95) !important;
  color: #f5f0eb !important;
}
html[data-theme="dark"] .ipv-body h3,
body[data-theme="dark"] .ipv-body h3 { color: #fff !important; }
html[data-theme="dark"] .ipv-desc,
body[data-theme="dark"] .ipv-desc { color: #c4b8ae !important; }
html[data-theme="dark"] .brand-footer-menu,
body[data-theme="dark"] .brand-footer-menu { color: #9a9088 !important; }

.theme-toggle-menu {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(196,122,44,.3);
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  padding: 0;
}
html[data-theme="dark"] .theme-toggle-menu,
body[data-theme="dark"] .theme-toggle-menu {
  background: rgba(28,26,30,.95);
  border-color: rgba(255,70,70,.35);
}
.theme-toggle-menu svg { width: 20px; height: 20px; stroke: #c47a2c; fill: none; stroke-width: 1.8; }
html[data-theme="dark"] .theme-toggle-menu svg { stroke: #ff8a80; }
/* receipt is self-contained - add via data-theme on body if linked */

/* Force remaining light islands to dark */
html[data-theme="dark"] .menu-header,
html[data-theme="dark"] .header-card,
html[data-theme="dark"] .top-card,
html[data-theme="dark"] .rest-header,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .welcome-box,
html[data-theme="dark"] .cats,
html[data-theme="dark"] .categories,
html[data-theme="dark"] .cat-scroll,
html[data-theme="dark"] .sticky-cats,
body[data-theme="dark"] .menu-header,
body[data-theme="dark"] .header-card,
body[data-theme="dark"] .top-card,
body[data-theme="dark"] .rest-header,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .welcome-box,
body[data-theme="dark"] .cats,
body[data-theme="dark"] .categories,
body[data-theme="dark"] .cat-scroll {
  background: #141218 !important;
  background-color: #141218 !important;
  border-color: rgba(255,70,70,.2) !important;
  color: #f5f0eb !important;
}
html[data-theme="dark"] body > div,
html[data-theme="dark"] .wrap,
html[data-theme="dark"] .container,
body[data-theme="dark"] .wrap {
  background: transparent !important;
}
/* any leftover white boxes */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: white"] {
  background: #1c1a1e !important;
}

/* === Dark: kill remaining light surfaces (sticky cats + header) === */
html[data-theme="dark"] .menu-header,
body[data-theme="dark"] .menu-header {
  background: linear-gradient(180deg, #121014, #1a161c) !important;
  border-bottom: 1px solid rgba(255,70,70,.2) !important;
}
html[data-theme="dark"] .rest-name,
body[data-theme="dark"] .rest-name { color: #ffffff !important; }
html[data-theme="dark"] .welcome,
body[data-theme="dark"] .welcome { color: #c4b8ae !important; }
html[data-theme="dark"] .section-title,
body[data-theme="dark"] .section-title { color: #ffffff !important; }
html[data-theme="dark"] .cat-nav,
body[data-theme="dark"] .cat-nav {
  background: rgba(18,16,20,0.96) !important;
  border-bottom: 1px solid rgba(255,70,70,.2) !important;
  backdrop-filter: blur(12px);
}
html[data-theme="dark"] .cat-chip,
body[data-theme="dark"] .cat-chip {
  background: #1c1a1e !important;
  border: 1.5px solid rgba(255,70,70,.3) !important;
  color: #f5f0eb !important;
}
html[data-theme="dark"] .cat-chip:hover,
html[data-theme="dark"] .cat-chip:active,
body[data-theme="dark"] .cat-chip:hover {
  background: #c62828 !important;
  border-color: #c62828 !important;
  color: #fff !important;
}
html[data-theme="dark"] .preview-bar,
body[data-theme="dark"] .preview-bar {
  background: #1a1520 !important;
  color: #ffcdd2 !important;
}
html[data-theme="dark"] .preview-bar a { color: #fff !important; }

/* Category labels MUST be readable on dark */
html[data-theme="dark"] .cat-chip,
html[data-theme="dark"] .cat-nav a,
html[data-theme="dark"] .cat-nav .cat-chip,
body[data-theme="dark"] .cat-chip,
body[data-theme="dark"] .cat-nav a,
body[data-theme="dark"] .cat-nav .cat-chip {
  color: #ffffff !important;
  background: #252228 !important;
  border: 1.5px solid rgba(255,100,100,.4) !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .cat-chip:hover,
html[data-theme="dark"] .cat-chip:active,
html[data-theme="dark"] .cat-chip.active,
body[data-theme="dark"] .cat-chip:hover,
body[data-theme="dark"] .cat-chip:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #c62828 !important;
  border-color: #ef5350 !important;
}
html[data-theme="dark"] .section-title,
body[data-theme="dark"] .section-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
/* light theme chips stay readable */
html[data-theme="light"] .cat-chip,
body[data-theme="light"] .cat-chip {
  color: #2c1e14 !important;
  -webkit-text-fill-color: #2c1e14 !important;
}

/* Quantity number: always readable (light + dark) */
.qty-controls .qty-num,
span.qty-num,
#ipvQty {
  min-width: 28px !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #1a1208 !important;
  -webkit-text-fill-color: #1a1208 !important;
}
html[data-theme="dark"] .qty-controls .qty-num,
html[data-theme="dark"] span.qty-num,
html[data-theme="dark"] #ipvQty,
body[data-theme="dark"] .qty-controls .qty-num,
body[data-theme="dark"] span.qty-num,
body[data-theme="dark"] #ipvQty {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
html[data-theme="light"] .qty-controls .qty-num,
html[data-theme="light"] span.qty-num,
body[data-theme="light"] .qty-controls .qty-num {
  color: #1a1208 !important;
  -webkit-text-fill-color: #1a1208 !important;
  text-shadow: none;
}
/* minus button contrast both themes */
html[data-theme="dark"] .qty-controls .btn-minus,
body[data-theme="dark"] .qty-controls .btn-minus {
  background: #3a353c !important;
  color: #ffffff !important;
}
html[data-theme="light"] .qty-controls .btn-minus,
body[data-theme="light"] .qty-controls .btn-minus {
  background: #efe4d4 !important;
  color: #3d2b1f !important;
}
