/* === PETRON GASUL CUSTOMER ORDERING - FIXED MOBILE UI === */
:root {
  --petron-green: #00a86b;
  --petron-red: #ed1c24;
  --petron-navy: #00205b;
  --blue: #10b981;
  --blue2: #059669;
  --navy: #171717;
  --red: var(--petron-red);
  --green: #10b981;
  --brand-green: #10b981;
  --brand-green-dark: #047857;
  --bg: #f3f4f6;
  --card: #fff;
  --line: #e5e7eb;
  --text: #171717;
  --muted: #6b7280;
  --shadow: 0 18px 45px rgba(23, 23, 23, 0.10);
  --radius: 18px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ===== SHELL ===== */
.shop-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 10px;
}

/* ===== HEADER ===== */
.shop-header {
  height: 86px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 82px;
  height: 68px;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.07);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.shop-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.order-type-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}
.modal-icon-image {
  width: 48px;
  height: 48px;
}
.brand-name {
  font-size: 30px;
  font-weight: 900;
  line-height: 0.95;
  color: var(--red);
  letter-spacing: -1px;
}
.brand-name span {
  color: var(--blue2);
}
.brand-sub {
  text-transform: uppercase;
  font-weight: 800;
  color: var(--blue2);
  letter-spacing: 0.8px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
}
.icon-btn span {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.mini-badge {
  background: #f3f4f6;
  color: var(--blue);
  font-weight: 800;
  padding: 9px 13px;
  border-radius: 999px;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
}
.screen.active {
  display: block;
}

/* ===== HOME SCREEN ===== */
.hero-panel {
  min-height: 430px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  padding: clamp(38px, 5vw, 70px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.hero-panel h1 {
  font-size: clamp(40px, 4.1vw, 54px);
  line-height: 1.02;
  margin: 18px 0;
  color: var(--navy);
}
.hero-panel p,
.page-title-row p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.hero-actions.order-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
}
.hero-actions .btn {
  white-space: nowrap;
}
.hero-actions .order-choice-button {
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 15px 17px;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  white-space: normal;
  text-align: left;
  text-decoration: none;
  line-height: 1.3;
}
.hero-actions .order-choice-button strong {
  font-size: 14px;
  line-height: 1.25;
}
.hero-actions .order-track-link {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.order-choice-button span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
}

/* ===== BUTTONS ===== */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}
.btn-primary {
  background: linear-gradient(180deg, #171717, #171717);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 23, 23, 0.22);
}
.btn-success {
  background: linear-gradient(180deg, #171717, #171717);
  color: #ffffff;
}
.btn-ghost {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--line);
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 10px;
}

/* ===== ORDER SCREEN LAYOUT ===== */
.page-title-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(23, 23, 23, 0.04);
}
.page-title-row h1 {
  margin: 0;
  font-size: 30px;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 18px;
  align-items: start;
}

/* ===== PRODUCTS PANEL ===== */
.products-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

.filters-card {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr auto;
  gap: 12px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 900;
  color: #171717;
}
.field label span {
  color: var(--red);
}
.field input,
.field select,
.field textarea,
.search-wrap {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--text);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.1);
}
.search-wrap {
  display: flex;
  align-items: center;
  padding: 0;
}
.search-wrap input {
  border: 0;
  min-height: 46px;
  box-shadow: none;
}
.search-wrap span {
  padding: 0 14px;
  color: var(--muted);
}
.search-wrap button {
  height: 46px;
  margin: 1px;
  border-radius: 11px;
  padding: 0 14px;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}
.filter-btn {
  height: 48px;
  align-self: end;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
}
.hidden {
  display: none !important;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  overflow: hidden;
}
.product-card:hover,
.product-card.active {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.12);
  transform: translateY(-2px);
}
.product-card:active {
  transform: scale(0.98);
}
.product-img {
  height: 160px;
  width: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}
.product-placeholder {
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f4f6, #ffffff);
  display: grid;
  place-items: center;
  font-size: 54px;
}
.product-media {
  min-width: 0;
}
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.size-badge {
  align-self: flex-start;
  background: #171717;
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.product-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.product-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  margin: 8px 0;
}
.product-price .partner-srp-price {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
  white-space: nowrap;
}
.stock {
  font-weight: 800;
  color: var(--green);
  font-size: 13px;
}
.desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.product-tags {
  margin: 4px 0;
}
.product-type-pill {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
}
.full-badge {
  background: #f3f4f6;
  color: var(--blue);
}
.refill-badge {
  background: #f3f4f6;
  color: var(--brand-green);
}

.product-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.qty {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  width: max-content;
}
.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  font-size: 18px;
}
.qty button:hover {
  background: #ffffff;
}
.qty span {
  min-width: 34px;
  display: grid;
  place-items: center;
  font-weight: 900;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 16px;
}
.add-btn {
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  padding: 9px;
  cursor: pointer;
  min-width: 86px;
  transition: background 0.15s;
}
.add-btn:hover {
  background: #171717;
}
.add-btn.added {
  background: var(--green);
}

.empty {
  grid-column: 1/-1;
  border: 1px dashed #ffffff;
  border-radius: 16px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

/* Product tabs */
.shop-product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.shop-product-tabs button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  color: var(--navy);
}
.shop-product-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}
.shop-product-tabs button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.product-list-header h2 {
  font-size: 20px;
  margin: 0;
  color: var(--navy);
}
.product-list-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.product-list-header span {
  font-size: 12px;
  color: var(--muted);
}
.refill-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.product-row-scroll {
  display: block;
}

/* Module notes and next buttons */
.module-note {
  border: 1px solid #f3f4f6;
  background: #ffffff;
  color: #6b7280;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
}
.module-next-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.module-next-btn {
  min-width: 220px;
}
.orders-next-wrap {
  display: none;
}
.checkout-back-wrap {
  display: none;
}
.checkout-note {
  display: none;
}
.orders-note {
  display: none;
}

/* ===== CHECKOUT PANEL ===== */
.checkout-panel {
  position: relative;
}
.sticky-card {
  position: sticky;
  top: 104px;
}
.checkout-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.checkout-head h2 {
  font-size: 22px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.clear-btn {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
}
.back-shop-btn {
  border: 0;
  background: #f3f4f6;
  color: var(--blue);
  font-weight: 900;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}
.summary-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.mini-checkout-btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #171717, #171717);
  color: #ffffff;
  font-weight: 900;
  padding: 9px 13px;
  cursor: pointer;
}
.module-secondary-btn {
  color: var(--blue);
  border-color: #ffffff;
}
.module-danger-btn {
  color: #dc2626;
  border-color: #fecaca;
}

.quantity-count {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.order-type-box {
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.order-type-box label {
  font-size: 13px;
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
}
.order-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.order-type-options button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.15s;
}
.order-type-options button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.summary-product {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 70px;
  margin-bottom: 14px;
}
.summary-product > span {
  display: block;
  text-align: center;
  color: var(--muted);
  padding: 8px 0;
}

.summary-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 34px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.summary-cart-row:last-child {
  border-bottom: 0;
}
.summary-cart-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.summary-cart-text strong {
  font-size: 14px;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.summary-cart-text span {
  font-size: 12px;
  color: var(--muted);
}
.summary-cart-total {
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
  font-weight: 900;
}
.summary-remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.summary-lines {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.summary-lines div:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}
.summary-lines span {
  color: #6b7280;
}
.summary-lines strong {
  font-weight: 900;
}
.summary-lines .total strong {
  font-size: 24px;
  color: var(--green);
}

.customer-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.terms-consent {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text, #1f2937);
  font-size: 13px;
}
.terms-consent summary {
  color: var(--green, #075b50);
  font-weight: 700;
  cursor: pointer;
}
.terms-copy {
  max-height: 220px;
  overflow: auto;
  padding: 6px 2px;
  line-height: 1.55;
}
.terms-copy h4 {
  margin: 10px 0 4px;
}
.terms-copy ul {
  padding-left: 20px;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  cursor: pointer;
}
.terms-check input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--green, #075b50);
}
.customer-card h3 {
  margin: 0 0 12px;
}
.form-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-btn {
  width: 100%;
  font-size: 18px;
  margin-top: 14px;
  padding: 16px;
}
.mobile-summary-toggle {
  display: none;
}

/* ===== PAYMENT SCREEN ===== */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.payment-card,
.track-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.qr-box {
  min-height: 280px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-box img {
  max-width: 100%;
  max-height: 280px;
}
.save-qr-btn[hidden] {
  display: none;
}
.timer-box {
  font-size: 44px;
  font-weight: 900;
  color: var(--red);
  text-align: center;
  margin-bottom: 16px;
}
.receipt-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.receipt-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.receipt-box div:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

/* Track */
.tracker-result {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.tracker-result.show {
  display: block;
}
.tracker-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.track-card {
  margin-top: 20px;
}

/* Payment modal options */
.payment-options {
  display: grid;
  gap: 12px;
}
.payment-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.payment-option:hover {
  border-color: var(--blue);
}
.payment-option strong {
  display: block;
  color: var(--navy);
}
.payment-option span {
  color: var(--muted);
  font-size: 13px;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.modal.show {
  display: flex;
}
.modal-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  width: min(480px, 100%);
  box-shadow: 0 30px 80px rgba(23, 23, 23, 0.25);
  text-align: center;
  max-height: 90vh;
  overflow: auto;
}
.modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 12px;
}
.modal-card .btn {
  width: 100%;
  margin-top: 10px;
}

/* ===== BOTTOM NAV ===== */
.customer-bottom-nav {
  display: none;
}

/* ===== TOAST ===== */
.toast-box {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}
.toast-item {
  transform: translateY(12px);
  opacity: 0;
  transition: 0.22s;
  background: #171717;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(23, 23, 23, 0.22);
  max-width: min(360px, calc(100vw - 32px));
}
.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-item.error {
  background: #dc2626;
}
.toast-item.success {
  background: #171717;
}

/* ===== VALIDATION ===== */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}
.field-error-text {
  color: #dc2626;
  font-weight: 800;
  font-size: 12px;
  margin-top: 6px;
}

/* ===== DESKTOP RESPONSIVE ===== */
@media (max-width: 1280px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 450px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
  .product-card {
    grid-template-columns: 110px 1fr;
  }
}
@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
  .filters-card {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1080px) {
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .hero-panel {
    border-radius: 0;
    padding: 26px;
    display: block;
    min-height: auto;
    border-top: 0;
  }
  .hero-panel h1 {
    font-size: 32px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions.order-paths {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions.order-paths .order-choice-button {
    width: 100%;
  }
  .hero-actions .order-track-link {
    grid-column: 1;
    justify-self: stretch;
  }
  .payment-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  /* ---- Shell and global ---- */
  html,
  body {
    overflow-x: hidden;
  }
  body.customer-mode-order {
    background: #ffffff;
    padding-bottom: 0;
  }
  .shop-shell {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* ---- Header ---- */
  .shop-header {
    height: 64px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: env(safe-area-inset-top) calc(16px + env(safe-area-inset-right)) 0
      calc(16px + env(safe-area-inset-left));
    height: calc(64px + env(safe-area-inset-top));
    box-shadow: 0 2px 12px rgba(23, 23, 23, 0.07);
    position: sticky;
    top: 0;
    z-index: 80;
  }
  .brand-mark {
    width: 52px;
    height: 46px;
    border-radius: 9px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-sub {
    font-size: 10px;
  }
  button,
  .btn,
  .add-btn,
  .icon-btn,
  .customer-bottom-nav button {
    min-height: 44px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  /* ---- Screens ---- */
  /* Home and Track - simple full screens */
  body.customer-mode-home .hero-panel,
  body.customer-mode-track .hero-panel {
    padding: 28px 20px;
  }
  body.customer-mode-track .track-card {
    margin: 16px;
  }

  /* ---- Order Screen: page-title hidden on mobile ---- */
  body.customer-mode-order .page-title-row {
    display: none;
  }

  /* ---- ORDER SCREEN LAYOUT: full-width tabs ---- */
  body.customer-mode-order .shop-layout {
    display: block;
  }
  body.customer-mode-order .products-panel,
  body.customer-mode-order .checkout-panel {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: none;
    max-height: none;
    overflow: visible;
    margin: 0;
  }
  .sticky-card {
    position: static;
    top: auto;
  }

  /* === TAB: SHOP === */
  body.order-view-shop .products-panel {
    display: block;
    padding: 14px 16px calc(88px + env(safe-area-inset-bottom) + 80px);
  }
  body.order-view-shop .checkout-panel {
    display: none;
  }

  /* Filters: only branch selector visible on shop tab */
  body.order-view-shop .filters-card {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.order-view-shop .filters-card .field:not(.branch-field) {
    display: none;
  }
  body.order-view-shop .filters-card .filter-btn {
    display: none;
  }
  body.order-view-shop .branch-field {
    display: block;
    margin: 0 0 14px;
    position: relative;
  }
  body.order-view-shop .branch-field label {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #171717;
    margin-bottom: 8px;
  }
  body.order-view-shop #branchSelect {
    height: 58px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid #ffffff;
    background: #ffffff;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #171717;
    appearance: auto;
  }

  /* Product tabs on shop */
  body.order-view-shop .shop-product-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
  }
  body.order-view-shop .shop-product-tabs button {
    font-size: 14px;
    padding: 13px 8px;
    border-radius: 12px;
  }

  /* Product list */
  body.order-view-shop .product-list-header {
    margin: 4px 0 10px;
  }
  body.order-view-shop .product-list-header span {
    display: none;
  }
  body.order-view-shop .products-grid {
    display: block;
  }
  body.order-view-shop .product-row-scroll {
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  body.order-view-shop .product-row-scroll .product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 16px;
    text-align: left;
    transform: none !important;
  }
  body.order-view-shop .product-img,
  body.order-view-shop .product-placeholder {
    height: 84px;
    width: 84px;
    object-fit: contain;
    border-radius: 10px;
  }
  body.order-view-shop .product-name {
    font-size: 15px;
    line-height: 1.3;
  }
  body.order-view-shop .product-price {
    font-size: 17px;
    margin: 4px 0;
  }
  body.order-view-shop .desc {
    display: none;
  }
  body.order-view-shop .size-badge {
    font-size: 11px;
    margin-bottom: 5px;
  }
  body.order-view-shop .stock {
    font-size: 12px;
  }
  body.order-view-shop .product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    grid-template-columns: unset;
  }
  body.order-view-shop .qty {
    display: flex;
    height: 38px;
  }
  body.order-view-shop .qty button {
    width: 36px;
    height: 38px;
    font-size: 20px;
  }
  body.order-view-shop .qty span {
    min-width: 36px;
    height: 38px;
    font-size: 16px;
  }
  body.order-view-shop .add-btn {
    height: 38px;
    min-width: 72px;
    padding: 0 12px;
    font-size: 14px;
  }

  /* Next button in shop */
  body.order-view-shop .shop-next-wrap {
    display: flex;
    position: sticky;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
    z-index: 50;
    padding: 12px 0 8px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0), #ffffff 38%);
  }
  body.order-view-shop .shop-next-wrap .module-next-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(180deg, #171717, #171717);
    font-size: 16px;
  }

  /* === TAB: ORDERS === */
  body.order-view-orders .products-panel {
    display: none;
  }
  body.order-view-orders .checkout-panel {
    display: block;
    padding: 14px 16px calc(88px + env(safe-area-inset-bottom) + 20px);
  }
  body.order-view-orders .checkout-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  body.order-view-orders .checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid #f3f4f6;
  }
  body.order-view-orders .checkout-head h2 {
    font-size: 19px;
    font-weight: 900;
    color: #171717;
  }
  body.order-view-orders .quantity-count {
    display: none;
  }
  body.order-view-orders .summary-head-actions {
    display: flex;
    gap: 10px;
  }
  body.order-view-orders .mini-checkout-btn {
    display: inline-flex;
  }
  /* Hide checkout-only stuff */
  body.order-view-orders .order-type-box,
  body.order-view-orders .customer-card,
  body.order-view-orders #placeOrderBtn,
  body.order-view-orders .checkout-note {
    display: none;
  }
  /* Show orders stuff */
  body.order-view-orders .orders-note {
    display: block;
  }
  body.order-view-orders .summary-product {
    display: block;
    min-height: 80px;
    max-height: none;
    overflow: visible;
  }
  body.order-view-orders .summary-lines {
    display: block;
  }
  /* Cart items */
  body.order-view-orders .summary-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
  }
  body.order-view-orders .summary-cart-text strong {
    font-size: 15px;
    font-weight: 800;
  }
  body.order-view-orders .summary-cart-text span {
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
  body.order-view-orders .summary-cart-total {
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
  }
  /* Orders next button */
  body.order-view-orders .orders-next-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: sticky;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
    z-index: 50;
    padding: 12px 0 8px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0), #ffffff 38%);
  }
  body.order-view-orders .orders-next-wrap .module-next-btn {
    flex: 1 1 100%;
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(180deg, #171717, #171717);
    font-size: 16px;
  }
  body.order-view-orders .orders-next-wrap .module-secondary-btn,
  body.order-view-orders .orders-next-wrap .module-danger-btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 46px;
    border-radius: 14px;
  }

  /* === TAB: CHECKOUT === */
  body.order-view-checkout .products-panel {
    display: none;
  }
  body.order-view-checkout .checkout-panel {
    display: block;
    padding: 14px 16px calc(88px + env(safe-area-inset-bottom) + 20px);
  }
  body.order-view-checkout .checkout-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  body.order-view-checkout .checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid #f3f4f6;
  }
  body.order-view-checkout .checkout-head h2 {
    font-size: 22px;
    font-weight: 900;
    color: #171717;
  }
  body.order-view-checkout .summary-head-actions {
    display: none;
  }
  /* Hide orders-only stuff */
  body.order-view-checkout .orders-note,
  body.order-view-checkout .orders-next-wrap,
  body.order-view-checkout .summary-product {
    display: none;
  }
  /* Show checkout stuff */
  body.order-view-checkout .checkout-back-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
  }
  body.order-view-checkout .checkout-back-wrap .btn {
    min-height: 46px;
    border-radius: 14px;
  }
  body.order-view-checkout .checkout-note {
    display: block;
  }
  body.order-view-checkout .order-type-box {
    display: block;
  }
  body.order-view-checkout .customer-card {
    display: block;
  }
  body.order-view-checkout #placeOrderBtn {
    display: flex;
    width: 100%;
  }
  body.order-view-checkout .summary-lines {
    display: block;
    margin-bottom: 14px;
  }
  /* Order type buttons */
  body.order-view-checkout .order-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body.order-view-checkout .order-type-options button {
    height: 58px;
    border-radius: 12px;
  }
  body.order-view-checkout .order-type-options button.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
  }
  /* Form */
  body.order-view-checkout .form-grid.two {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.order-view-checkout .field input,
  body.order-view-checkout .field select,
  body.order-view-checkout .field textarea {
    font-size: 16px;
    min-height: 54px;
    border-radius: 12px;
  }
  body.order-view-checkout .customer-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
  }
  body.order-view-checkout .order-type-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
  }
  body.order-view-checkout .summary-lines {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
  }
  body.order-view-checkout .checkout-btn {
    min-height: 56px;
    font-size: 17px;
    border-radius: 14px;
  }

  /* ===== BOTTOM NAV ===== */
  .customer-bottom-nav {
    display: none;
  }
  body.customer-mode-order .customer-bottom-nav,
  body.customer-mode-track .customer-bottom-nav {
    display: grid;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(430px, 100vw);
    height: var(--nav-h);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 -8px 22px rgba(23, 23, 23, 0.07);
    z-index: 100;
    grid-template-columns: repeat(3, 1fr);
  }
  .customer-bottom-nav button {
    border: 0;
    background: #ffffff;
    color: #6a8277;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: color 0.15s;
  }
  .customer-bottom-nav button span {
    font-size: 12px;
    font-weight: 700;
  }
  .customer-bottom-nav button.active {
    color: var(--blue);
  }

  /* ===== HIDE DESKTOP-ONLY ELEMENTS ===== */
  .mobile-summary-toggle {
    display: none;
  }
  body.customer-mode-order .filters-card .field:not(.branch-field) {
    display: none;
  }

  /* ===== TOAST on mobile ===== */
  .toast-box {
    left: 12px;
    right: 12px;
    bottom: calc(var(--nav-h) + 8px);
  }
  .toast-item {
    max-width: 100%;
  }

  /* ===== MODALS on mobile ===== */
  .modal {
    z-index: 300;
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 22px 22px 0 0;
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
    max-height: 92vh;
  }

  /* Payment and Track screens */
  body.customer-mode-payment .payment-layout {
    display: block;
    padding: 16px;
  }
  body.customer-mode-payment .payment-card {
    margin-bottom: 16px;
  }
  body.customer-mode-track .track-card {
    margin: 16px;
  }
}

@media (max-width: 400px) {
  body.order-view-shop .product-row-scroll .product-card {
    grid-template-columns: 72px 1fr;
  }
  body.order-view-shop .product-img,
  body.order-view-shop .product-placeholder {
    height: 72px;
    width: 72px;
  }
}

/* ===== CUSTOMER MOBILE POLISH ===== */
.selected-qty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.22);
}
.product-card {
  position: relative;
}
.summary-qty-pill {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 28px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #171717;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.cancel-order-btn {
  width: 100%;
  margin-top: 14px;
  background: #dc2626;
  color: #ffffff;
  border: 0;
}
.cancel-order-btn:hover {
  background: #b91c1c;
}
.cancel-payment-order-btn {
  width: 100%;
  margin-top: 10px;
  color: #dc2626;
  border-color: #fecaca;
}

@media (max-width: 767px) {
  body {
    background: #f3f4f6;
  }
  body.customer-mode-order .shop-header {
    background: rgba(255, 250, 242, 0.96);
    backdrop-filter: blur(12px);
  }
  body.order-view-shop .products-panel,
  body.order-view-orders .checkout-panel,
  body.order-view-checkout .checkout-panel {
    background: #ffffff;
  }
  body.order-view-shop .branch-field {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(23, 23, 23, 0.06);
  }
  body.order-view-shop .product-list-header h2 {
    font-size: 18px;
    letter-spacing: 0;
  }
  body.order-view-shop .product-row-scroll .product-card {
    background: #ffffff;
    border-color: #f3f4f6;
    box-shadow: 0 10px 24px rgba(23, 23, 23, 0.06);
  }
  body.order-view-shop .product-row-scroll .product-card.active {
    border-color: #171717;
    box-shadow: 0 14px 30px rgba(23, 23, 23, 0.14);
  }
  body.order-view-shop .product-actions {
    justify-content: space-between;
  }
  body.order-view-shop .qty {
    border-radius: 12px;
    background: #ffffff;
  }
  body.order-view-shop .add-btn {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(23, 23, 23, 0.18);
  }
  body.order-view-orders .summary-product,
  body.order-view-orders .summary-lines,
  body.order-view-checkout .summary-lines,
  body.order-view-checkout .customer-card,
  body.order-view-checkout .order-type-box {
    box-shadow: 0 10px 24px rgba(23, 23, 23, 0.06);
  }
  body.order-view-orders .summary-cart-row {
    grid-template-columns: minmax(0, 1fr) auto auto 34px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
  }
  body.order-view-orders .summary-cart-row:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
  }
  body.order-view-orders .summary-cart-text strong {
    color: #171717;
  }
  body.order-view-orders .summary-cart-total {
    color: #171717;
  }
  body.order-view-checkout .checkout-note,
  body.order-view-orders .orders-note {
    background: #ffffff;
    border-color: #f3f4f6;
    color: #6b7280;
    box-shadow: 0 8px 20px rgba(23, 23, 23, 0.04);
  }
  body.customer-mode-order .customer-bottom-nav,
  body.customer-mode-track .customer-bottom-nav {
    height: 76px;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 -12px 28px rgba(23, 23, 23, 0.1);
  }
  .customer-bottom-nav button {
    position: relative;
    border-radius: 16px;
    margin: 4px 8px;
  }
  .customer-bottom-nav button.active {
    background: #f3f4f6;
  }
  .customer-bottom-nav button.has-count::after {
    content: attr(data-count);
    position: absolute;
    top: 4px;
    right: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
  }
  body.customer-mode-track .track-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 16px 35px rgba(23, 23, 23, 0.1);
  }
  .tracker-result.show {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 23, 23, 0.06);
  }
  .tracker-header {
    align-items: flex-start;
  }
  .tracker-header h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
  }
  .receipt-box div {
    align-items: center;
  }
}

@media (max-width: 430px) {
  body.order-view-orders .summary-cart-row {
    grid-template-columns: minmax(0, 1fr) auto 34px;
  }
  body.order-view-orders .summary-qty-pill {
    grid-column: 1 / 2;
    justify-self: start;
  }
  body.order-view-orders .summary-cart-total {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  body.order-view-orders .summary-remove {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

/* Admin-managed homepage announcements, promotions, partners, and videos */
.homepage-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 18px 0 4px;
}
.homepage-content-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.08);
}
.homepage-content-card.promotion {
  border-top: 4px solid #10b981;
}
.homepage-content-card.affiliate {
  border-top: 4px solid #f59e0b;
}
.homepage-content-card.video {
  border-top: 4px solid #aeccb8;
}
.homepage-content-image {
  width: 100%;
  height: clamp(220px, 40vw, 560px);
  object-fit: contain;
  object-position: center;
  background: #171717;
}
.homepage-content-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}
.homepage-content-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.homepage-content-copy h2 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}
.homepage-content-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.55;
}
.homepage-content-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}
.homepage-content-cta:hover {
  text-decoration: underline;
}
.homepage-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: linear-gradient(135deg, #171717, #171717);
}
iframe.homepage-video {
  display: block;
}
.homepage-video-play {
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}
@media (max-width: 680px) {
  .homepage-content {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }
  .homepage-content-image {
    height: clamp(190px, 56vw, 300px);
  }
  .homepage-content-copy {
    padding: 17px;
  }
  .homepage-content-copy h2 {
    font-size: 19px;
  }
}
@media (max-width: 360px) {
  .homepage-content-copy {
    padding: 15px;
  }
  .homepage-content-image {
    height: 180px;
  }
  .homepage-content-copy h2 {
    font-size: 18px;
  }
}

/* Admin-managed customer footer */
.customer-footer {
  margin-top: 18px;
  overflow: hidden;
  color: #f3f4f6;
  background: var(--navy);
  border-radius: 18px;
}
.customer-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr) minmax(190px, 0.8fr);
  gap: 28px;
  padding: 28px;
}
.customer-footer strong {
  color: #ffffff;
  font-size: 19px;
}
.customer-footer p {
  max-width: 500px;
  margin: 8px 0 0;
  color: #ffffff;
  line-height: 1.55;
}
.customer-footer-contact,
.customer-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.customer-footer-contact a,
.customer-footer-contact .customer-footer-detail,
.customer-footer-links a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.45;
}
.customer-footer-contact a > i,
.customer-footer-contact .customer-footer-detail > i,
.customer-footer-links a > i {
  width: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  text-align: center;
}
.customer-footer-contact small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 242, 222, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.customer-footer-links a {
  font-weight: 700;
}
.customer-footer-links a:hover,
.customer-footer-contact a:hover {
  text-decoration: underline;
}
.customer-footer-bottom {
  padding: 14px 28px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 250, 242, 0.14);
  color: #ffffff;
  font-size: 12px;
}
@media (max-width: 680px) {
  .customer-footer {
    margin: 14px 0 calc(80px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }
  .customer-footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }
  .customer-footer-bottom {
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }
}

.customer-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.customer-card-heading h3 {
  margin: 0;
}
.customer-card-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* Product content has one flow; only the card container is a grid. */
.products-grid {
  display: block;
}
.product-row-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.unavailable-products {
  margin-top: 24px;
}
.unavailable-products h3 {
  margin: 0 0 12px;
}
.product-card.product-unavailable {
  cursor: default;
}
.product-card.product-unavailable .stock {
  color: var(--muted);
}
.field,
.products-panel,
.checkout-panel,
.search-wrap input {
  min-width: 0;
}
.product-image-fallback {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.product-image-fallback span {
  font-size: 36px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.header-nav button {
  min-height: 44px;
}
@media (min-width: 768px) {
  .shop-shell {
    padding: 20px 24px;
  }
  .shop-header {
    border-radius: 18px;
    margin-bottom: 20px;
  }
  .hero-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
  }
  .page-title-row {
    border-radius: 18px;
    padding: 22px 26px;
  }
  .page-title-row p {
    margin-bottom: 0;
  }
  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }
  .filters-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .product-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .product-img,
  .product-placeholder {
    height: 190px;
    width: 100%;
  }
  .product-info {
    height: 100%;
  }
  .product-actions {
    margin-top: auto;
    padding-top: 14px;
  }
  .qty button,
  .qty span {
    min-width: 40px;
    min-height: 44px;
  }
  .add-btn {
    min-height: 44px;
  }
  .checkout-panel {
    position: sticky;
    top: 106px;
  }
  .sticky-card {
    position: static;
  }
  .checkout-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .summary-head-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
  body.order-view-shop .customer-card,
  body.order-view-shop .order-type-box,
  body.order-view-shop #placeOrderBtn,
  body.order-view-shop #backToShopBtn {
    display: none;
  }
  body.order-view-shop .summary-product {
    max-height: 320px;
    overflow-y: auto;
  }
  body.order-view-shop .shop-next-wrap {
    display: none;
  }
  body.order-view-orders .shop-layout,
  body.order-view-checkout .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
    margin: auto;
  }
  body.order-view-orders .products-panel,
  body.order-view-checkout .products-panel {
    display: none;
  }
  body.order-view-orders .customer-card,
  body.order-view-orders .order-type-box,
  body.order-view-orders #placeOrderBtn {
    display: none;
  }
  body.order-view-orders .orders-note,
  body.order-view-checkout .checkout-note {
    display: block;
  }
  body.order-view-orders .orders-next-wrap,
  body.order-view-checkout .checkout-back-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  body.order-view-checkout .summary-head-actions {
    display: none;
  }
  .track-card {
    max-width: 920px;
    margin: 0 auto;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .shop-shell {
    padding: 16px;
  }
  .brand-name {
    font-size: 24px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .brand-mark {
    width: 60px;
    height: 54px;
  }
  .shop-header {
    padding: 12px 18px;
  }
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-row-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-panel {
    position: static;
  }
  body.order-view-shop .checkout-panel {
    display: none;
  }
  body.order-view-shop .shop-next-wrap {
    display: flex;
    position: sticky;
    bottom: 16px;
    z-index: 5;
  }
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  /* Keep the brand and primary navigation on one tidy row. The partner action
     remains available on the home card, where it has room to breathe. */
  .shop-header {
    gap: 8px;
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  .brand-name {
    font-size: 17px;
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .header-nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .header-nav .btn {
    min-height: 40px;
    padding: 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .header-nav a[href="partners.php"] { display: none; }
  .header-nav [data-screen='homeScreen'] {
    display: none;
  }
  body.customer-mode-home .hero-panel {
    padding: 24px 20px;
    gap: 16px;
  }
  body.customer-mode-home .hero-panel h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.12;
  }
  body.customer-mode-home .hero-panel p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  body.customer-mode-home .hero-actions {
    margin-top: 16px;
    gap: 10px;
  }
  body.customer-mode-home .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }
  body.customer-mode-home .partner-hero-panel {
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  body.customer-mode-home .partner-hero-panel h2 {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.2;
  }
  body.customer-mode-home .partner-hero-panel .btn {
    text-decoration: none;
  }
  body.order-view-shop .filters-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body.order-view-shop .filters-card .field:not(.branch-field),
  body.order-view-shop .filters-card .filter-btn {
    display: flex;
  }
  body.order-view-shop .branch-field {
    margin-bottom: 0;
  }
  body.order-view-shop .qty button,
  body.order-view-shop .qty span {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .shop-header {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 9px;
    padding-bottom: 7px;
  }
  .shop-header .brand {
    flex: 0 0 auto;
    width: 100%;
  }
  .shop-header .header-nav {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shop-header .header-nav::-webkit-scrollbar { display: none; }
  .shop-header .header-nav > * { flex: 0 0 auto; }
  .shop-header .header-nav .btn { min-height: 36px; }
}

/* Controls wrap within the card instead of being clipped at narrow/zoomed widths. */
.product-card {
  min-width: 0;
}
.product-actions,
body.order-view-shop .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.product-actions .qty {
  flex: 0 0 auto;
  max-width: 100%;
}
.product-actions .add-btn {
  flex: 1 0 86px;
  max-width: 100%;
}
.product-info {
  min-width: 0;
}

/* Storefront: image-led catalog, quiet surfaces and a focused order summary. */
:root {
  --line: #f3f4f6;
  --shadow: 0 8px 28px rgba(23, 23, 23, 0.045);
  --muted: #6b7280;
}
body {
  background: #ffffff;
}
.shop-header {
  box-shadow: none;
  border-color: var(--line);
}
.header-nav .btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
body.customer-mode-home .header-nav [data-screen='homeScreen'],
body.customer-mode-order .header-nav [data-screen='orderScreen'],
body.customer-mode-track .header-nav [data-screen='trackScreen'] {
  background: #f3f4f6;
  color: var(--blue);
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--blue);
  margin-bottom: 10px;
}
.page-title-row {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 16px 0 24px;
}
.page-title-row > .link-btn {
  display: none;
}
.page-title-row h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1.2px;
}
.page-title-row p {
  margin: 10px 0 18px;
  font-size: 14px;
}
.order-progress {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.order-progress button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.order-progress b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3f4f6;
}
body.order-view-shop .order-progress [data-order-view='shop'],
body.order-view-orders .order-progress [data-action='orders'],
body.order-view-checkout .order-progress [data-action='checkout'] {
  color: var(--blue);
}
body.order-view-shop .order-progress [data-order-view='shop'] b,
body.order-view-orders .order-progress [data-action='orders'] b,
body.order-view-checkout .order-progress [data-action='checkout'] b {
  color: #ffffff;
  background: var(--blue);
}
.filters-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  gap: 12px;
  margin-bottom: 24px;
}
.field label {
  font-weight: 600;
  font-size: 12px;
}
.filter-btn {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: none;
}
.shop-product-tabs {
  display: flex;
  gap: 10px;
}
.shop-product-tabs button {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  min-height: 44px;
}
.shop-product-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
}
.shop-product-tabs button.active {
  background: var(--navy);
  border-color: var(--navy);
}
.shop-product-tabs button.active span {
  background: #ffffff24;
  color: #ffffff;
}
.product-list-header {
  margin: 24px 0 18px;
}
.product-list-header h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-bottom: 5px;
}
.product-list-header > span {
  white-space: nowrap;
}
.product-card {
  border-radius: 22px;
  border-color: var(--line);
  padding: 18px;
  box-shadow: 0 4px 18px rgba(23, 23, 23, 0.025);
}
.product-card:hover {
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.08);
}
.product-img,
.product-placeholder {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
}
.product-name {
  font-size: 17px;
  font-weight: 700;
}
.product-price {
  color: var(--blue);
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 10px 0;
}
.size-badge {
  color: #6b7280;
  background: #f3f4f6;
  font-weight: 700;
}
.stock {
  font-size: 11px;
  font-weight: 600;
}
.desc {
  font-size: 12px;
  line-height: 1.5;
}
.qty {
  border-radius: 12px;
}
.add-btn {
  border-radius: 12px;
  font-weight: 700;
}
.selected-qty-badge {
  box-shadow: none;
  font-weight: 700;
}
.checkout-card {
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.checkout-head h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.quantity-count {
  background: #f3f4f6;
  color: var(--blue);
}
.summary-product {
  border: 0;
  padding: 0;
}
.summary-lines {
  border: 0;
  background: #ffffff;
  padding: 16px;
}
.summary-lines .total {
  margin-top: 8px;
  padding-top: 16px;
}
.summary-lines .total strong {
  color: var(--navy);
}
.summary-lines span,
.summary-lines strong {
  font-size: 13px;
}
.summary-cart-row {
  padding: 16px 0;
}
.cart-empty {
  padding: 32px 12px;
  text-align: center;
}
.cart-empty > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #f3f4f6;
  color: var(--blue);
  font-size: 25px;
}
.cart-empty strong {
  font-size: 14px;
}
.cart-empty p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.refill-note {
  font-size: 12px;
  border: 0;
  border-radius: 12px;
}
@media (min-width: 1200px) {
  .filters-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr) auto;
  }
  .search-wrap span {
    padding: 0 8px;
  }
  .search-wrap button {
    padding: 0 10px;
    font-size: 12px;
  }
  .field input,
  .field select {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }
}
@media (min-width: 768px) {
  .product-card {
    gap: 18px;
  }
  .product-info {
    align-items: center;
    text-align: center;
  }
  .size-badge {
    align-self: center;
  }
  .product-actions {
    align-self: stretch;
  }
  .product-img,
  .product-placeholder {
    height: 200px;
  }
  .shop-next-wrap .btn {
    box-shadow: 0 10px 25px #17171730;
  }
}
@media (max-width: 767px) {
  body.customer-mode-order {
    background: #ffffff;
  }
  body.customer-mode-order .page-title-row {
    display: block;
    padding: 24px 18px 12px;
    margin: 0;
  }
  body.order-view-orders .page-title-row,
  body.order-view-checkout .page-title-row {
    display: none;
  }
  .page-title-row h1 {
    font-size: 26px;
  }
  .page-title-row p {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .section-eyebrow {
    font-size: 10px;
  }
  .order-progress {
    display: none;
  }
  body.order-view-shop .filters-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
  }
  body.order-view-shop .filters-card .branch-field,
  body.order-view-shop .filters-card .field:nth-child(2) {
    grid-column: 1 / -1;
  }
  body.order-view-shop .branch-field {
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  body.order-view-shop .branch-field label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  body.order-view-shop #branchSelect {
    min-height: 46px;
    height: 46px;
    font-size: 14px;
    border-radius: 12px;
  }
  body.order-view-shop .shop-product-tabs {
    display: flex;
    gap: 10px;
  }
  body.order-view-shop .shop-product-tabs button {
    flex: 1;
    border-radius: 999px;
    font-size: 13px;
  }
  body.order-view-shop .product-row-scroll .product-card {
    border-radius: 20px;
    box-shadow: 0 4px 18px #17171706;
    padding: 16px;
  }
  body.order-view-shop .product-img,
  body.order-view-shop .product-placeholder {
    padding: 4px;
    background: #ffffff;
  }
  body.order-view-shop .product-name {
    font-size: 16px;
    padding-right: 4px;
  }
  body.order-view-shop .product-price {
    font-size: 22px;
    margin: 8px 0;
  }
  body.order-view-shop .size-badge {
    margin-top: 22px;
  }
  body.order-view-shop .add-btn {
    box-shadow: none;
  }
  body.order-view-shop .shop-next-wrap {
    position: sticky;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 15;
    padding-top: 10px;
  }
  body.order-view-shop .shop-next-wrap .module-next-btn {
    min-width: 0;
    white-space: normal;
    font-size: 14px;
  }
}

/* Reference palette: pale mauve canvas, crisp white surfaces, charcoal text and berry actions. */
body {
  background: #f3f4f6;
}


/* Unified customer storefront theme based on the green and white reference. */
:root {
  --petron-green: #00a86b;
  --petron-red: #ed1c24;
  --petron-navy: #00205b;
  --red: var(--petron-red);
  --blue: #10b981;
  --blue2: #059669;
  --navy: #171717;
  --green: #10b981;
  --brand-green: #10b981;
  --brand-green-dark: #047857;
  --bg: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #171717;
  --muted: #6b7280;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}
body {
  background: #f3f4f6;
  color: #171717;
}
.shop-shell { background: transparent; }
.shop-header, .hero-panel, .page-title-row, .products-panel, .filters-card,
.product-card, .checkout-card, .payment-card, .track-card, .modal-card,
.customer-card, .homepage-content-card, .customer-footer {
  background-color: #ffffff;
  border-color: #e5e7eb;
}
.shop-header { box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06); }
.btn-primary, .btn-success, .add-btn, .checkout-btn, .module-next-btn,
.shop-next-wrap .btn, .search-wrap button, .shop-product-tabs button.active,
.order-type-options button.active, .payment-option.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.2);
}
.btn-primary:hover, .btn-success:hover, .add-btn:hover, .checkout-btn:hover,
.module-next-btn:hover, .shop-next-wrap .btn:hover, .search-wrap button:hover {
  background: #10b981;
  border-color: #10b981;
}
.btn-ghost, .filter-btn, .qty, .payment-option, .icon-btn {
  background-color: #ffffff;
  border-color: #e5e7eb;
}
.size-badge, .full-badge, .refill-badge, .mini-badge, .quantity-count,
.order-progress b, .cart-empty > span, .shop-product-tabs button span,
body.customer-mode-home .header-nav [data-screen='homeScreen'],
body.customer-mode-order .header-nav [data-screen='orderScreen'],
body.customer-mode-track .header-nav [data-screen='trackScreen'] {
  background: #ecfdf5;
  color: #047857;
}
.product-card, .homepage-content-card, .checkout-card, .track-card,
.payment-card, .modal-card { box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08); }
.customer-bottom-nav { background: #ffffff; border-color: #e5e7eb; }
.customer-bottom-nav button.active, .customer-bottom-nav button:hover { color: #059669; }
.field input:focus, .field select:focus, .field textarea:focus,
.search-wrap:focus-within { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14); }
.homepage-content-card.promotion { border-top-color: #10b981; }
.homepage-content-card.video { border-top-color: #a7f3d0; }
.homepage-content-image, .homepage-video { background: #ecfdf5; }
.toast-item.success { background: #059669; }

/* Petron Gasul wordmark and footer contrast. */
.brand {
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.brand-mark {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.brand-mark img {
  padding: 0;
}
.brand-name {
  display: flex;
  flex-direction: column;
  color: #00205b;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.brand-name span { color: #e50011; }
.brand-sub {
  margin-top: 3px;
  color: #e50011;
  font-size: 11px;
  letter-spacing: 0;
}
.customer-footer {
  color: #ffffff;
  background: var(--petron-navy);
  border: 1px solid var(--petron-navy);
  border-top: 4px solid #10b981;
}
.customer-footer strong,
.customer-footer p,
.customer-footer-contact a,
.customer-footer-contact .customer-footer-detail,
.customer-footer-links a,
.customer-footer-bottom { color: #ffffff; }
.customer-footer-contact small { color: #a7f3d0; }
.customer-footer-bottom { border-top-color: rgba(255, 255, 255, 0.2); }
.customer-footer a:hover { color: #a7f3d0; }

.customer-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(5px);
}
.customer-loading-screen.is-visible,
html.customer-login-loading #customerLoadingScreen { display: flex; }
.customer-loading-card {
  width: min(340px, 100%);
  padding: 30px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.14);
  text-align: center;
}
.customer-loading-card img {
  display: block;
  width: 42px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.customer-loading-card strong {
  display: block;
  color: #00205b;
  font-size: 18px;
}
.customer-loading-card p {
  margin: 7px 0 18px;
  color: #6b7280;
  font-size: 14px;
}
.customer-loading-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 3px solid #d1fae5;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: customer-loading-spin 0.8s linear infinite;
}
@keyframes customer-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .customer-loading-spinner { animation-duration: 1.8s; }
}

/* Customer storefront palette: white surfaces, Petron blue accents, pale blue canvas. */
:root {
  --petron-navy: #12345b;
  --blue: #2f669f;
  --blue2: #1f5286;
  --navy: #12345b;
  --green: #2f669f;
  --brand-green: #2f669f;
  --brand-green-dark: #1f5286;
  --bg: #edf3f8;
  --card: #ffffff;
  --line: #dce7f2;
  --text: #173657;
  --muted: #657b94;
  --shadow: 0 8px 24px rgba(18, 52, 91, 0.08);
}
body { background: #edf3f8; color: #173657; }
.shop-header, .hero-panel, .page-title-row, .products-panel, .filters-card,
.product-card, .checkout-card, .payment-card, .track-card, .modal-card,
.customer-card, .homepage-content-card, .customer-footer, .partner-card {
  background-color: #ffffff;
  border-color: #dce7f2;
}
.shop-header { box-shadow: 0 2px 12px rgba(18, 52, 91, 0.07); }
.btn-primary, .btn-success, .add-btn, .checkout-btn, .module-next-btn,
.shop-next-wrap .btn, .search-wrap button, .shop-product-tabs button.active,
.order-type-options button.active, .payment-option.active {
  background: #2f669f;
  border-color: #2f669f;
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(47, 102, 159, 0.20);
}
.btn-primary:hover, .btn-success:hover, .add-btn:hover, .checkout-btn:hover,
.module-next-btn:hover, .shop-next-wrap .btn:hover, .search-wrap button:hover {
  background: #245481;
  border-color: #245481;
}
.btn-ghost, .filter-btn, .qty, .payment-option, .icon-btn {
  background-color: #ffffff;
  border-color: #d5e2ef;
  color: #173657;
}
.size-badge, .full-badge, .refill-badge, .mini-badge, .quantity-count,
.order-progress b, .cart-empty > span, .shop-product-tabs button span,
body.customer-mode-home .header-nav [data-screen='homeScreen'],
body.customer-mode-order .header-nav [data-screen='orderScreen'],
body.customer-mode-track .header-nav [data-screen='trackScreen'] {
  background: #e6f0f8;
  color: #245481;
}
.customer-bottom-nav { background: #ffffff; border-color: #dce7f2; }
.customer-bottom-nav button.active, .customer-bottom-nav button:hover { color: #2f669f; }
.field input:focus, .field select:focus, .field textarea:focus,
.search-wrap:focus-within { border-color: #2f669f; box-shadow: 0 0 0 3px rgba(47, 102, 159, 0.14); }
.homepage-content-card.promotion { border-top-color: #2f669f; }
.homepage-content-card.video { border-top-color: #b9d2e8; }
.homepage-content-image, .homepage-video { background: #eaf2f8; }
.toast-item.success { background: #245481; }
.customer-footer {
  color: #ffffff;
  background: #12345b;
  border-color: #12345b;
  border-top-color: #2f669f;
}
.customer-footer-contact small, .customer-footer a:hover { color: #b9d2e8; }
.customer-loading-screen { background: rgba(237, 243, 248, 0.96); }
.customer-loading-card { border-color: #dce7f2; box-shadow: 0 20px 60px rgba(18, 52, 91, 0.16); }
.customer-loading-card strong { color: #12345b; }
.customer-loading-card p { color: #657b94; }
.customer-loading-spinner { border-color: #d6e5f2; border-top-color: #2f669f; }
