.hero { padding: clamp(28px, 5vw, 64px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--market-soft), #fff 56%, var(--water-soft)); }
.hero p { max-width: 650px; margin-top: var(--space-4); color: var(--ink-600); font-size: 1.08rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
.service-card { min-height: 220px; padding: var(--space-6); overflow: hidden; position: relative; }
.service-card--market { border-top: 4px solid var(--market-500); }
.service-card--water { border-top: 4px solid var(--water-700); }
.service-card p { max-width: 390px; margin-block: var(--space-3) var(--space-5); color: var(--ink-600); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.trust-item { padding: var(--space-5); }
.trust-item p { margin-top: var(--space-2); color: var(--ink-600); font-size: .875rem; }

.catalog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.sidebar { position: sticky; top: 96px; padding: var(--space-4); }
.sidebar nav { display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.sidebar a { padding: 10px; border-radius: var(--radius-sm); color: var(--ink-600); text-decoration: none; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--brand-700); background: var(--market-soft); font-weight: 700; }

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.catalog-service-switch { display: flex; align-items: center; gap: var(--space-2); overflow-x: auto; margin-bottom: var(--space-4); padding-bottom: 2px; }
.catalog-service-switch__item, .catalog-service-switch__search { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 46px; flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink-600); background: var(--surface-card); font-weight: 800; text-decoration: none; }
.catalog-service-switch__item span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--surface-soft); }
.catalog-service-switch__item.is-selected { border-color: var(--brand-700); color: var(--brand-700); background: var(--market-soft); }
.catalog-service-switch__search { margin-left: auto; border-color: transparent; color: var(--brand-700); background: transparent; font-size: .8rem; }
.search-categories { display: flex; gap: var(--space-3); overflow-x: auto; padding: var(--space-2) 0 var(--space-4); }
.search-category { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink-600); background: var(--surface-card); cursor: pointer; }
.search-category span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--surface-soft); font-size: 1.1rem; }
.search-category.is-selected { border-color: var(--brand-700); color: var(--brand-700); background: var(--market-soft); box-shadow: 0 0 0 2px rgba(91, 54, 198, .08); }
.search-category.is-selected span { background: #fff; }
.search-input { min-height: 44px; width: min(400px, 100%); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-card); }
.filter-row { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-bottom: var(--space-5); }
.filter-chip { min-height: 40px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-600); background: var(--surface-card); font-weight: 700; }
.filter-chip[aria-pressed="true"] { color: var(--brand-700); border-color: var(--brand-700); background: var(--market-soft); }
.filter-chip--water[aria-pressed="true"] { color: var(--water-700); border-color: var(--water-700); background: var(--water-soft); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.product-card { display: flex; min-width: 0; flex-direction: column; padding: var(--space-3); }
.product-card__image { aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: var(--space-4); border-radius: var(--radius-md); color: var(--water-700); background: var(--water-soft); font-size: 3rem; }
.product-card__image--market { color: var(--brand-700); background: linear-gradient(145deg, #f3efff, #fff4d6); }
.product-card__image--water { color: var(--water-700); background: linear-gradient(145deg, #e4f8ff, #eef0ff); }
.product-card__image { position: relative; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__image.image-fallback::after { content: "Görsel kullanılamıyor"; color: var(--ink-600); font-size: .78rem; }
.product-add-control { position: absolute; top: -2px; right: -2px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 13px; color: var(--brand-700); background: #fff; box-shadow: var(--shadow-sm); font-size: 1.7rem; font-weight: 500; cursor: pointer; }
.quantity-control--stacked { position: absolute; top: -2px; right: -2px; display: grid; width: 44px; overflow: hidden; border-radius: 13px; color: var(--brand-700); background: #fff; box-shadow: var(--shadow-sm); }
.quantity-control--stacked button, .quantity-control--stacked strong { display: grid; min-height: 42px; place-items: center; border: 0; color: var(--brand-700); background: #fff; font-size: 1.15rem; }
.quantity-control--stacked strong { color: #fff; background: var(--brand-700); font-size: 1rem; }
.quantity-control--stacked button { cursor: pointer; }
.catalog-floating-cart { position: fixed; z-index: 20; top: 82px; right: max(16px, calc((100vw - var(--content-width)) / 2)); display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 7px 10px; border: 2px solid #fff; border-radius: 17px; color: var(--brand-700); background: #fff; box-shadow: var(--shadow-md); text-decoration: none; }
.catalog-floating-cart span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--market-soft); font-size: 1rem; }
.catalog-floating-cart strong { font-size: .9rem; }
.catalog-floating-cart b { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-700); font-size: .75rem; }
.product-card__body { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.product-card h3 { font-size: 1rem; }
.product-card p { margin-top: var(--space-2); color: var(--ink-600); font-size: .8rem; }
.product-card__footer { display: flex; align-items: end; justify-content: space-between; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); }
.price { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.unit { display: block; color: var(--ink-600); font-size: .75rem; font-weight: 400; }

.water-banner { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-5); padding: var(--space-6); margin-bottom: var(--space-6); border: 1px solid #cfe5f8; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--water-soft), #fff); }
.delivery-box { padding: var(--space-4); border: 1px solid #cfe5f8; border-radius: var(--radius-md); background: #fff; }
.delivery-option { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.delivery-option:last-child { border-bottom: 0; }
.delivery-option strong { display: block; }

.sticky-cart { position: sticky; bottom: var(--space-4); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.sticky-cart p { color: var(--ink-600); font-size: .85rem; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-6); }
.summary { position: sticky; top: 96px; padding: var(--space-5); }
.summary-row { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); color: var(--ink-600); }
.summary-row--total { padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--ink-900); font-size: 1.15rem; font-weight: 800; }

.auth-grid, .account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.account-panel { padding: var(--space-5); }
.account-form { display: grid; gap: var(--space-4); }
.account-form fieldset { display: grid; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); }
.account-form legend { padding-inline: var(--space-2); font-weight: 800; }
.field-label { display: block; margin-bottom: var(--space-2); font-weight: 800; }
.address-title-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.address-title-option { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 58px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink-600); background: var(--surface-card); font-weight: 800; }
.address-title-option.is-selected { border: 3px solid var(--promo-500); color: var(--brand-700); background: var(--market-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.form-actions, .panel-heading, .address-card__title, .address-card__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.panel-heading { align-items: start; margin-bottom: var(--space-5); }
.address-list { display: grid; gap: var(--space-3); }
.address-card { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); }
.address-card p { margin-top: var(--space-2); }
.order-history-list { display: grid; gap: var(--space-3); }
.order-history-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink-900); background: var(--surface-card); text-decoration: none; }
.order-history-card:hover { border-color: var(--brand-500); box-shadow: var(--shadow-sm); }
.order-history-card strong, .order-history-card small { display: block; }
.order-history-card small { margin-top: 4px; color: var(--ink-600); font-size: .78rem; }
.order-history-card > strong { font-variant-numeric: tabular-nums; }

.admin-main { padding-top: var(--space-7); }
.admin-login { width: min(480px, 100%); margin: 8vh auto; padding: var(--space-6); }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); }
.admin-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.admin-header__actions .status { padding: 8px 10px; font-size: .75rem; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.metric-card { display: grid; gap: var(--space-2); padding: var(--space-4); }
.metric-card span { color: var(--ink-600); font-size: .8rem; }
.metric-card strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: var(--space-6); margin-bottom: var(--space-6); }
.admin-panel { padding: var(--space-5); }
.admin-table { display: grid; gap: var(--space-3); }
.admin-order { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.admin-order-tools, .admin-order__actions, .admin-detail-topbar, .admin-detail-header, .admin-detail-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.admin-order-tools { flex-wrap: wrap; justify-content: end; }
.admin-order__actions { flex-wrap: wrap; justify-content: end; }
.admin-order p { margin-top: var(--space-1); color: var(--ink-600); font-size: .8rem; }
.admin-order select, .admin-stock { min-height: 40px; max-width: 170px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-card); }
.admin-order .button { margin-top: var(--space-2); }
.admin-detail-shell { display: grid; gap: var(--space-5); }
.admin-detail-topbar, .admin-detail-header { justify-content: space-between; }
.admin-detail-header { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); }
.admin-detail-header h2 { margin: var(--space-2) 0 0; }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: var(--space-5); }
.admin-detail-items { display: grid; gap: var(--space-3); }
.admin-detail-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.admin-detail-item__image { display: grid; width: 58px; height: 58px; place-items: center; overflow: hidden; border-radius: var(--radius-md); color: var(--water-700); background: var(--water-soft); font-size: 1.8rem; }
.admin-detail-item__image img { width: 100%; height: 100%; object-fit: cover; }
.admin-detail-item__copy strong, .admin-detail-item__copy small { display: block; }
.admin-detail-item__copy small { margin-top: 4px; color: var(--ink-600); }
.admin-detail-summary { margin-top: var(--space-4); }
.admin-customer-card dl { display: grid; gap: var(--space-4); margin: 0; }
.admin-customer-card dl div { display: grid; gap: 4px; }
.admin-customer-card dt { color: var(--ink-600); font-size: .78rem; }
.admin-customer-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.admin-detail-history { margin-top: 0; }
.button--danger { color: #fff; background: var(--danger); }
.button--danger:hover { background: #8f1515; }
.stock-list { display: grid; gap: var(--space-3); }
.stock-list li { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.admin-tabs { display: flex; gap: var(--space-2); overflow-x: auto; margin-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.admin-tab { min-height: 44px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; color: var(--ink-600); background: transparent; font-weight: 800; white-space: nowrap; }
.admin-tab.is-active, .admin-tab:hover { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.order-history { margin-top: var(--space-6); padding: var(--space-5); }
.order-history__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.order-history__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.order-history__dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--brand-700); }
.order-history__list strong, .order-history__list small { display: block; }
.order-history__list small, .order-history__list time { color: var(--ink-600); font-size: .78rem; }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.admin-form input { min-height: 44px; width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-card); }
.admin-products-toolbar { display: flex; align-items: start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.admin-product-form { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-card); }
.admin-product-form .panel-heading { margin-bottom: 0; }
.admin-product-form input, .admin-product-form select, .admin-product-form textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.admin-product-form input, .admin-product-form select { min-height: 44px; }
.admin-product-form textarea { resize: vertical; }
.admin-product-form input[type="file"] { padding: 8px; }
.product-upload-preview { display: grid; width: 120px; height: 120px; place-items: center; margin-top: var(--space-2); overflow: hidden; border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface); }
.product-upload-preview:empty::after { content: "Önizleme"; color: var(--ink-600); font-size: .78rem; }
.product-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-upload-progress { display: block; width: min(420px, 100%); height: 10px; margin-top: var(--space-3); }
.admin-product-table { display: grid; gap: 0; }
.admin-product-row { display: grid; grid-template-columns: 52px minmax(150px, 1fr) 110px 110px 80px auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.admin-product-row.is-inactive { opacity: .65; }
.admin-product-visual { display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border-radius: var(--radius-sm); color: var(--brand-700); background: var(--market-soft); font-size: 1.5rem; }
.admin-product-visual img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-main strong, .admin-product-main small { display: block; }
.admin-product-main small { margin-top: 4px; color: var(--ink-600); font-size: .78rem; }
.admin-product-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: var(--space-2); }
.admin-category-table { display: grid; gap: 0; }
.admin-category-row { display: grid; grid-template-columns: minmax(180px, 1fr) 100px 90px 70px auto; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.admin-category-row.is-inactive { opacity: .65; }
.admin-category-row strong, .admin-category-row small { display: block; }
.admin-category-row small { margin-top: 4px; color: var(--ink-600); font-size: .78rem; }
.admin-stock-field { display: grid; gap: 4px; color: var(--ink-600); font-size: .75rem; }
.admin-stock-field input { min-height: 40px; width: 90px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-card); }
.profile-topbar { display: none; }
.profile-identity { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-xl); color: #fff; background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); }
.profile-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; color: var(--brand-700); background: #f2efff; font-size: 1rem; font-weight: 900; }
.profile-identity h1 { margin: 2px 0; color: #fff; font-size: 1.8rem; }
.profile-identity p { margin: 0; color: rgba(255,255,255,.78); }
.profile-edit { margin-left: auto; border: 0; color: #fff; background: transparent; font-size: 1.5rem; }
.profile-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.profile-quick-links a { display: grid; gap: var(--space-2); min-height: 112px; align-content: center; justify-items: center; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink-900); background: #fff; text-align: center; text-decoration: none; box-shadow: var(--shadow-sm); }
.profile-quick-links span { color: var(--brand-700); font-size: 1.8rem; }
.profile-quick-links strong { font-size: .8rem; }
.profile-menu { display: grid; margin-top: var(--space-4); padding: 0 var(--space-4); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.profile-menu button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 20px; gap: var(--space-3); align-items: center; min-height: 58px; border: 0; border-bottom: 1px solid var(--border); color: var(--ink-900); background: transparent; text-align: left; }
.profile-menu button:last-child { border-bottom: 0; }
.profile-menu button > span { color: var(--brand-700); font-size: 1.35rem; text-align: center; }
.profile-menu button > b { color: var(--brand-700); font-size: 1.4rem; }
.profile-menu button > em { color: var(--ink-600); font-style: normal; }
.profile-addresses { margin-top: var(--space-4); }
.profile-logout { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 58px; margin-top: var(--space-4); padding: 0 var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink-900); background: #fff; font-weight: 800; text-align: left; }
.profile-logout:first-letter { color: var(--brand-700); }
.profile-version { margin: var(--space-5) 0; color: var(--ink-600); text-align: center; font-size: .8rem; }
.product-detail { display: grid; grid-template-columns: minmax(240px, .8fr) 1fr; gap: var(--space-6); padding: var(--space-6); align-items: center; }

/* Mobile delivery app surfaces */
.app-topbar { background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); border: 0; color: #fff; }
.app-topbar .brand, .app-topbar .primary-nav a, .app-topbar .primary-nav a:hover { color: #fff; background: transparent; }
.app-topbar .brand-mark { color: var(--brand-700); background: #fff; }
.app-topbar .address-trigger { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
.app-topbar .address-trigger small { color: rgba(255,255,255,.72); }
.app-home-hero { position: relative; display: grid; grid-template-columns: 1fr 180px; gap: var(--space-5); overflow: hidden; padding: clamp(24px, 5vw, 48px); border-radius: var(--radius-xl); background: linear-gradient(135deg, #5b36c6, #40218f); color: #fff; }
.app-home-hero__copy { position: relative; z-index: 1; align-self: center; }
.app-home-hero h1 { max-width: 600px; margin: 12px 0 8px; color: #fff; }
.app-home-hero p { max-width: 430px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.active-order { margin-top: var(--space-5); }
.active-order__card { padding: var(--space-5); border: 1px solid #d9d0f8; border-radius: var(--radius-xl); background: linear-gradient(135deg, #fff, var(--market-soft)); box-shadow: var(--shadow-sm); }
.active-order__top, .active-order__bottom { display: flex; align-items: start; justify-content: space-between; gap: var(--space-4); }
.active-order__top h2 { margin: var(--space-2) 0 2px; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.active-order__top p { margin: 0; color: var(--ink-600); font-size: .85rem; }
.active-order__live { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #ded8ee; border-radius: 999px; color: var(--ink-600); background: #fff; font-size: .7rem; font-weight: 800; }
.active-order__live.is-connected { color: #18734a; border-color: #bde5cf; background: var(--success-soft); }
.active-order__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: var(--space-6) 0 var(--space-5); padding: 0; list-style: none; }
.active-order__step { position: relative; display: grid; gap: var(--space-2); justify-items: center; min-width: 0; color: var(--ink-600); text-align: center; }
.active-order__step::before { content: ""; position: absolute; top: 7px; right: 50%; left: -50%; height: 2px; background: var(--border); }
.active-order__step:first-child::before { display: none; }
.active-order__step.is-done::before { background: var(--brand-700); }
.active-order__step span { position: relative; z-index: 1; width: 16px; height: 16px; border: 3px solid var(--border); border-radius: 50%; background: #fff; }
.active-order__step.is-done span { border-color: var(--brand-700); background: var(--brand-700); box-shadow: 0 0 0 4px rgba(91,54,198,.1); }
.active-order__step.is-current span { box-shadow: 0 0 0 5px rgba(91,54,198,.14); }
.active-order__step small { max-width: 92px; color: inherit; font-size: .68rem; line-height: 1.25; }
.active-order__step.is-current small { color: var(--brand-700); font-weight: 800; }
.active-order__bottom { align-items: center; padding-top: var(--space-4); border-top: 1px solid rgba(91,54,198,.12); color: var(--ink-600); font-size: .78rem; }
.active-order__bottom a { flex: 0 0 auto; color: var(--brand-700); font-weight: 800; text-decoration: none; }
.app-home-hero .eyebrow { color: #3e258f; background: #f6d95b; }
.app-home-hero__visual { position: relative; min-height: 160px; }
.hero-bottle, .hero-bag { position: absolute; display: grid; place-items: center; border-radius: 32px; font-size: 4.5rem; transform: rotate(8deg); }
.hero-bottle { right: 72px; bottom: 12px; width: 116px; height: 150px; background: rgba(255,255,255,.18); }
.hero-bag { right: 0; bottom: 0; width: 120px; height: 120px; background: #f6d95b; transform: rotate(-8deg); }
.app-address-card { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-lg); color: var(--ink-900); background: #fff; box-shadow: var(--shadow-md); }
.app-address-card .form-field { margin: 0; }
.app-address-card select { width: 100%; min-height: 44px; border: 0; background: transparent; font-weight: 700; }
.address-card-heading { display: grid; gap: var(--space-2); }
.address-card-heading strong { font-size: 1rem; }
.address-sheet-trigger { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--space-4); border: 3px solid var(--promo-500); border-radius: var(--radius-lg); color: var(--ink-900); background: #fff; font-weight: 800; text-align: left; }
.address-sheet-trigger span { color: var(--brand-700); font-size: 1.25rem; }
.address-sheet-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 10vh; background: rgba(19, 13, 35, .62); opacity: 0; transition: opacity .18s ease; }
.address-sheet-backdrop.is-open { opacity: 1; }
.address-sheet { width: min(100%, 560px); max-height: 88vh; overflow: auto; padding: var(--space-4) var(--space-4) max(18px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; transform: translateY(24px); transition: transform .18s ease; }
.address-sheet-backdrop.is-open .address-sheet { transform: translateY(0); }
.address-sheet__handle { width: 56px; height: 5px; margin: 0 auto var(--space-4); border-radius: 99px; background: #e7e4ed; }
.address-sheet__close { position: absolute; right: 18px; display: none; border: 0; color: var(--ink-600); background: transparent; font-size: 1.8rem; }
.address-sheet__heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 8px var(--space-4); border-bottom: 1px solid var(--border); }
.address-sheet__heading h2 { margin: 0; color: var(--ink-600); font-size: 1rem; }
.address-sheet__heading a { color: var(--brand-700); font-weight: 800; text-decoration: none; }
.address-sheet__list { display: grid; }
.address-option { position: relative; display: grid; grid-template-columns: 32px 42px minmax(0, 1fr) 44px; gap: var(--space-3); align-items: center; min-height: 108px; padding: var(--space-4) 4px; border: 0; border-bottom: 1px solid var(--border); color: var(--ink-900); background: #fff; text-align: left; }
.address-option__radio { width: 25px; height: 25px; border: 1px solid #e6e2ee; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(50, 31, 105, .08); }
.address-option.is-selected .address-option__radio { border: 7px solid var(--brand-700); }
.address-option__icon { font-size: 1.7rem; text-align: center; }
.address-option__copy { display: grid; gap: 3px; min-width: 0; }
.address-option__copy strong { font-size: 1.05rem; }
.address-option__copy small { overflow: hidden; color: var(--ink-600); font-size: .95rem; line-height: 1.35; text-overflow: ellipsis; }
.address-option__copy em { color: var(--brand-700); font-size: .78rem; font-style: normal; }
.address-option__edit { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: var(--brand-700); background: #faf9ff; font-size: 1.35rem; }
.address-sheet__new { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-4) 4px 0; border: 0; color: var(--brand-700); background: #fff; font-size: 1rem; font-weight: 800; text-align: left; }
.promo-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 116px; margin-top: var(--space-5); padding: var(--space-5) var(--space-6); overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, #261056, #7046d8); }
.promo-strip div { display: grid; gap: 3px; }
.promo-strip span { color: #f6d95b; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.promo-strip strong { font-size: 1.25rem; }
.promo-strip small { color: rgba(255,255,255,.72); }
.promo-strip > b { color: #f6d95b; font-size: 3.5rem; line-height: 1; }
.quick-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.quick-service { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: 1fr 1fr; column-gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); color: var(--ink-900); text-decoration: none; background: #fff; box-shadow: var(--shadow-sm); }
.quick-service > span { grid-row: 1 / -1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.8rem; background: var(--market-soft); }
.quick-service strong { align-self: end; }
.quick-service small { align-self: start; color: var(--ink-600); }
.quick-service--water > span { background: var(--water-soft); }
.category-section { margin-top: var(--space-6); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.section-heading h2 { margin: 0; font-size: 1.35rem; }
.section-heading a { color: var(--brand-700); font-size: .8rem; font-weight: 800; text-decoration: none; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.category-grid a { display: grid; gap: var(--space-2); min-height: 110px; align-content: center; justify-items: center; padding: var(--space-3); border-radius: var(--radius-lg); color: var(--ink-900); text-align: center; text-decoration: none; background: #fff; box-shadow: var(--shadow-sm); }
.category-grid span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.8rem; background: #f1eff7; }
.category-grid b { font-size: .75rem; }
.legacy-services, .legacy-trust { display: none; }
.header-action { gap: 7px; color: var(--brand-700) !important; background: #fff !important; }
.header-action strong { font-size: .8rem; }
.cart-app-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.cart-app-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.back-link, .cart-clear { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; color: var(--brand-700); background: var(--market-soft); font-size: 1.8rem; text-decoration: none; cursor: pointer; }
.cart-clear { color: #fff; background: var(--brand-700); font-size: 1rem; }
.cart-promo { display: flex; align-items: center; gap: var(--space-3); min-height: 86px; padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(110deg, #e9fff7, #fff9d9); }
.cart-promo > span { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 16px; background: #fff; font-size: 1.8rem; }
.cart-promo p { margin: 0; }
.cart-promo b { margin-left: auto; font-size: 2rem; color: var(--brand-700); }
.cart-search { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); color: var(--brand-700); font-size: 1.5rem; }
.cart-search span { color: var(--brand-700); font-size: .95rem; }
.cart-group { margin-top: var(--space-5); }
.cart-group h2 { margin-bottom: var(--space-3); font-size: 1.15rem; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.cart-line__visual { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #f3efff, #fff4d6); font-size: 1.6rem; }
.cart-line__info { display: grid; gap: 3px; min-width: 0; }
.cart-line__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line__info small { color: var(--ink-600); }
.cart-line__info b { color: var(--brand-700); font-size: 1.05rem; }
.cart-line__quantity { display: flex; align-items: center; overflow: hidden; border-radius: 12px; background: var(--market-soft); }
.cart-line__quantity button, .cart-line__quantity strong { display: grid; width: 36px; height: 38px; place-items: center; border: 0; color: var(--brand-700); background: transparent; font-size: 1rem; }
.cart-line__quantity button { cursor: pointer; }

/* WELCOME PAGE STYLES */
.welcome-hero {
  text-align: center;
  padding: var(--space-6) var(--space-4) var(--space-4);
}
.welcome-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--success-soft);
  color: #18734a;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}
.welcome-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 900px;
  margin: 0 auto var(--space-3);
  color: var(--ink-900);
}
.welcome-hero .highlight-text {
  color: var(--brand-700);
  border-bottom: 4px solid var(--brand-700);
}
.welcome-hero p {
  font-size: 1.15rem;
  color: var(--ink-600);
}

.welcome-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.welcome-card {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--space-4);
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(38, 23, 80, 0.03);
  border: 1px solid var(--border);
}
.welcome-card--water {
  border-color: #cfe5f8;
  background: linear-gradient(135deg, #fff 50%, var(--water-soft));
}
.welcome-card--market {
  border-color: #d9d0f8;
  background: linear-gradient(135deg, #fff 50%, var(--market-soft));
}
.welcome-card__content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}
.welcome-card__tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.tag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}
.tag--water {
  background: var(--water-soft);
  color: var(--water-700);
}
.tag--market {
  background: #ffebe5;
  color: #d95a32;
}
.welcome-card h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}
.welcome-card p {
  color: var(--ink-600);
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}
.welcome-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.welcome-card__pills span {
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--ink-600);
  font-weight: 700;
}
.welcome-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.welcome-card__footer small {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-600);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 2px;
}
.welcome-card__footer strong {
  font-size: 1.25rem;
  display: block;
}
.welcome-card__footer strong small {
  display: inline;
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 400;
}
.welcome-card__visual {
  display: grid;
  place-items: center;
}
.mock-bottles, .mock-bag {
  font-size: 8rem;
  transform: rotate(5deg);
  opacity: 0.9;
}

.welcome-section-header {
  text-align: center;
  margin: var(--space-7) auto var(--space-6);
  max-width: 600px;
}
.welcome-section-header .eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.welcome-section-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}
.welcome-section-header p {
  color: var(--ink-600);
  font-size: 1.1rem;
}

.welcome-features {
  padding: var(--space-6) 0;
  background: #faf9ff;
  margin: var(--space-7) calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-radius: var(--radius-xl);
}
.welcome-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.welcome-feature-card {
  background: #fff;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}
.feature-icon--brand { background: var(--market-soft); color: var(--brand-700); }
.feature-icon--water { background: var(--water-soft); color: var(--water-700); }
.feature-icon--promo { background: #fff4d6; color: #d95a32; }
.feature-icon--success { background: var(--success-soft); color: #18734a; }
.welcome-feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}
.welcome-feature-card p {
  color: var(--ink-600);
  font-size: 0.85rem;
  line-height: 1.5;
}

.welcome-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.how-step {
  text-align: center;
}
.how-number {
  width: 48px;
  height: 48px;
  background: var(--brand-700);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
}
.how-step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}
.how-step p {
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .welcome-feature-grid, .welcome-how-grid {
    grid-template-columns: 1fr;
  }
  .welcome-card {
    grid-template-columns: 1fr;
  }
  .welcome-card__visual {
    display: none;
  }
}

/* WATER PAGE STYLES */
.water-page {
  padding-bottom: var(--space-8);
}
.water-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(135deg, #f0f7ff, #fff);
  border-radius: var(--radius-xl);
  margin-top: var(--space-4);
  border: 1px solid #cfe5f8;
}
.water-hero-left h1 {
  font-size: 1.6rem;
  color: var(--water-700);
  margin: var(--space-3) 0;
  line-height: 1.2;
}
.water-hero-left p {
  font-size: 1.05rem;
  color: var(--ink-600);
  margin-bottom: var(--space-5);
  max-width: 600px;
}
.water-hero-pills {
  display: flex;
  gap: var(--space-4);
}
.w-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.w-pill b { font-size: 1.5rem; }
.w-pill strong { display: block; font-size: 0.9rem; }
.w-pill small { color: var(--ink-600); font-size: 0.75rem; }

.water-delivery-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.wdc-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.wdc-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}
.wdc-option.is-active {
  border-color: #18734a;
  background: var(--success-soft);
}
.wdc-option strong { display: block; font-size: 0.95rem; }
.wdc-option small { color: var(--ink-600); font-size: 0.75rem; }
.wdc-alert {
  background: #e9f8f0;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  margin-top: var(--space-4);
  color: #18734a;
}
.wdc-alert small { display: block; margin-bottom: 4px; font-weight: 700; }

.water-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}
.water-sidebar h3 {
  color: #92174c;
  margin-bottom: var(--space-4);
}
.water-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.water-sidebar-nav button {
  text-align: left;
  padding: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-600);
  font-size: 0.95rem;
  cursor: pointer;
}
.water-sidebar-nav button:hover, .water-sidebar-nav button.is-active {
  color: var(--water-700);
  font-weight: 800;
}
.water-sidebar-banner {
  background: #fcfcfc;
  border: 1px solid var(--border);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
}

.water-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}
.water-sort select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.water-filter-tabs {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
.w-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-600);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.w-tab.is-active {
  background: #92174c;
  color: #fff;
  border-color: #92174c;
}

.water-mini-cart {
  background: #fff;
  border: 1px solid #18734a;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(24, 115, 74, 0.15);
  margin-bottom: var(--space-5);
}

.water-exchange-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  background: #faf9ff;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-8);
  border: 1px solid var(--border);
}
.wep-left h2 {
  font-size: 1.8rem;
  margin: var(--space-3) 0;
}
.wep-left p { color: var(--ink-600); line-height: 1.6; }
.wep-right { display: grid; gap: var(--space-4); }
.wep-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}
.wep-step .num {
  width: 32px; height: 32px;
  background: var(--water-soft);
  color: var(--water-700);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
}

.water-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.wf-card {
  display: flex;
  gap: var(--space-3);
  background: #fff;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.wf-card b {
  font-size: 2rem;
  width: 48px; height: 48px;
  background: var(--surface-soft);
  display: grid; place-items: center;
  border-radius: 12px;
}
.wf-card strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.wf-card small { color: var(--ink-600); font-size: 0.8rem; line-height: 1.4; display: block; }

.w-add-button {
  width: 100%;
  padding: 10px;
  background: var(--water-700);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.w-add-button:hover { background: #126394; }

.w-quantity-block {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--water-soft);
  border-radius: var(--radius-sm);
  border: 1px solid #cfe5f8;
}
.w-quantity-block button {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--water-700);
  cursor: pointer;
}
.w-quantity-block strong {
  font-size: 0.9rem;
  color: var(--water-700);
}

/* Also reset the old product card for new layout */
.water-page .product-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.water-page .product-card__image {
  background: transparent;
}
.water-page .product-card__image img {
  object-fit: contain;
}
.water-page .product-card h3 {
  font-size: 1rem;
  color: var(--brand-700);
}
.water-page .price {
  color: #d95a32; /* Orange price from the design */
}

.water-page .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.water-page .product-card {
  padding: 12px;
}
.water-page .product-card h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.water-page .product-card p {
  font-size: 0.75rem;
}
.water-page .product-card__image {
  height: 120px;
  margin-bottom: 12px;
}
.w-add-button {
  padding: 8px;
  font-size: 0.85rem;
}

/* Overriding any remaining purple in water page with the crimson theme */
:root {
  --water-theme: #0277bd;
}

.water-sidebar h3 {
  color: var(--water-theme) !important;
}

.water-toolbar h2 {
  color: var(--water-theme) !important;
  border-left-color: var(--water-theme) !important;
}

.w-tab.is-active {
  background: var(--water-theme) !important;
  border-color: var(--water-theme) !important;
}

.water-page .product-card h3 {
  color: var(--water-theme) !important;
}

.water-page .price {
  color: var(--water-theme) !important;
}

.water-page .product-card__detail-link {
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge--success {
  background: var(--success-soft);
  color: #18734a;
}
.badge--outline {
  background: transparent;
  border: 1px solid #18734a;
  color: #18734a;
}

.brand-text {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink-900);
  margin-left: 8px;
}
.app-topbar .brand-text {
  color: #fff;
}
.brand-logo {
  height: 54px !important;
  transform: scale(1.3);
  transform-origin: left center;
}

.water-hero-left h1 {
  font-size: 1.5rem !important; /* Reduced from 2.2rem */
}
.brand-text { color: inherit; }

.water-hero-left h1 {
  font-size: 1.25rem !important;
  margin: var(--space-2) 0 !important;
}

.water-hero-left p {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  margin-bottom: var(--space-4) !important;
}

.auth-grid {
  align-items: start;
}

/* MARKET PAGE STYLES */
:root {
  --market-orange: #f26722;
  --market-orange-dark: #d85a1a;
  --market-orange-soft: #fff0e6;
}

.market-page {
  padding-bottom: var(--space-8);
}

.market-hero-banners {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.market-hero-left {
  background: linear-gradient(100deg, var(--market-orange), #ff985c);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.market-hero-left h1 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 16px 0;
}
.market-hero-left p {
  font-size: 1rem;
  max-width: 400px;
  margin-bottom: 24px;
}
.m-badge {
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.m-btn-white {
  display: inline-block;
  background: #fff;
  color: var(--market-orange);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 800;
  text-decoration: none;
}

.market-hero-right {
  background: #e58d20;
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  position: relative;
}
.market-hero-right h2 {
  font-size: 1.8rem;
  margin: 16px 0 8px;
}
.market-hero-right p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.m-badge-outline {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}
.m-stock-badge {
  background: rgba(0,0,0,0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
}
.m-circle-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #e58d20;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.market-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.m-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.m-sidebar-header h3 {
  font-size: 1.1rem;
  color: var(--ink-900);
}
.m-sidebar-header small {
  font-size: 0.7rem;
  color: var(--ink-600);
}

.m-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-sidebar-nav button {
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  color: var(--ink-600);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.m-sidebar-nav button:hover {
  background: var(--market-orange-soft);
  color: var(--market-orange);
}
.m-sidebar-nav button.is-active {
  background: var(--market-orange-soft);
  color: var(--market-orange);
  border: 1px solid var(--market-orange);
  font-weight: 800;
}

.m-sidebar-promo {
  background: var(--market-orange-soft);
  color: var(--market-orange-dark);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
  display: grid;
  gap: 4px;
}

.market-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
}
.m-toolbar-titles h2 {
  font-size: 1.4rem;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.m-toolbar-titles p {
  color: var(--ink-600);
  font-size: 0.9rem;
}
.m-toolbar-tabs {
  display: flex;
  gap: var(--space-2);
}
.m-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--ink-600);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.m-tab.is-active {
  background: var(--market-orange);
  color: #fff;
  border-color: var(--market-orange);
}

.m-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.m-product-card {
  position: relative;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.m-product-image {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.m-product-image img {
  max-height: 100%;
  object-fit: contain;
}
.m-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--market-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
}
.m-add-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--market-orange);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.m-add-button:hover {
  border-color: var(--market-orange);
}
.m-quantity-block {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 1px solid var(--market-orange);
  border-radius: 20px;
  display: flex;
  align-items: center;
  height: 32px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.m-quantity-block button {
  background: transparent;
  border: none;
  width: 28px;
  color: var(--market-orange);
  font-size: 1.1rem;
  cursor: pointer;
}
.m-quantity-block strong {
  font-size: 0.85rem;
  padding: 0 4px;
}

.m-product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.m-price {
  color: var(--market-orange);
  font-weight: 800;
  font-size: 1.15rem;
}
.old-price {
  color: var(--ink-400);
  text-decoration: line-through;
  font-size: 0.8rem;
}
.m-title {
  font-size: 0.95rem;
  color: var(--ink-900);
}
.m-unit {
  color: var(--ink-600);
  font-size: 0.8rem;
}

.m-search-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--market-orange-soft);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  margin-top: var(--space-6);
}
.m-search-promo > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.m-box-icon {
  font-size: 2.5rem;
}
.m-search-promo strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}
.m-search-promo p {
  color: var(--ink-600);
  font-size: 0.9rem;
}
.m-btn-outline {
  border: 1px solid var(--market-orange);
  color: var(--market-orange);
  background: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 800;
  cursor: pointer;
}

.m-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.m-f-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-xl);
}
.m-f-card .icon {
  width: 48px;
  height: 48px;
  background: var(--market-orange-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.m-f-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-900);
}
.m-f-card p {
  font-size: 0.85rem;
  color: var(--ink-600);
  line-height: 1.5;
}

/* REMOVE BORDERS FROM PRODUCT CARDS & ADD ELEGANT SHADOW */
.product-card {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.m-product-card {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.m-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Adjust layout since title is now above price */
.m-product-body {
  margin-top: auto;
}
.m-title {
  margin-bottom: 2px;
}
.m-unit {
  margin-bottom: 8px;
}
.m-price-row {
  margin-top: auto;
}

.product-card__detail-link,
.product-card__detail-link * {
  text-decoration: none !important;
}

.product-card__detail-link .old-price {
  text-decoration: line-through !important;
}

/* MODAL RESPONSIVE STYLES */
@media (max-width: 768px) {
  .modal-flex-row {
    flex-direction: column !important;
  }
  .modal-left-panel {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 20px !important;
  }
  .modal-right-panel {
    padding: 20px !important;
  }
}

/* NEW CART LAYOUT */
.c-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--market-orange-soft);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.c-title {
  font-size: 1.8rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.c-count {
  font-size: 0.9rem;
  background: var(--surface-card);
  padding: 4px 12px;
  border-radius: 20px;
  color: #0277bd;
  background: #e7f7ff;
}
.c-subtitle {
  color: var(--ink-600);
  font-size: 0.95rem;
}
.c-clear-btn {
  background: transparent;
  border: none;
  color: #e53935;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}
@media (max-width: 900px) {
  .c-grid { grid-template-columns: 1fr; }
}

.c-address-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  background: #fff;
  margin-bottom: 16px;
}
.c-icon-pin {
  width: 48px;
  height: 48px;
  background: #fff0e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.c-address-info { flex: 1; }
.c-address-info strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.c-address-info span {
  font-size: 0.75rem;
  background: #e0e0e0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  color: var(--ink-600);
}
.c-address-info p {
  color: var(--ink-600);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.c-address-tags {
  display: flex;
  gap: 8px;
}
.c-tag {
  font-size: 0.8rem;
  color: var(--ink-600);
}
.c-tag-orange {
  color: var(--market-orange);
  font-weight: 800;
}
.c-btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.c-product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.c-product-item {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  gap: 20px;
}
.c-product-image {
  position: relative;
  width: 80px;
  height: 80px;
  background: #f9f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-product-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.c-badge-water { background: #0277bd; }
.c-badge-market { background: var(--market-orange); }
.c-img-placeholder { font-size: 2rem; }

.c-product-details {
  flex: 1;
}
.c-product-details h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.c-product-details p {
  color: var(--ink-600);
  font-size: 0.9rem;
}

.c-product-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}
.c-qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  height: 40px;
}
.c-qty-box button {
  background: transparent;
  border: none;
  width: 36px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink-900);
}
.c-qty-box strong {
  width: 32px;
  text-align: center;
}
.c-qty-box button:last-child {
  color: #fff;
  background: #0277bd;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin-right: 4px;
  font-size: 1rem;
}
.c-product-price {
  text-align: right;
  min-width: 80px;
}
.c-product-price strong {
  display: block;
  font-size: 1rem;
}
.c-product-price small {
  color: #0277bd;
  font-size: 0.75rem;
}

.c-note-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
  margin-bottom: 40px;
}
.c-note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.c-optional {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.c-note-block textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  resize: none;
  min-height: 80px;
  margin-bottom: 12px;
}
.c-note-tags {
  display: flex;
  gap: 8px;
}
.c-note-tags button {
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
}

.c-summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #fff;
  margin-bottom: 16px;
}
.c-summary-card h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.c-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--ink-600);
}
.c-summary-row strong {
  color: var(--ink-900);
}

.c-coupon-block {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.c-coupon-block > span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--ink-600);
}
.c-coupon-input {
  display: flex;
  gap: 8px;
}
.c-coupon-input input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
}
.c-coupon-input button {
  background: #e7f7ff;
  color: #0277bd;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.c-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.c-summary-total strong {
  font-size: 1rem;
}
.c-summary-total small {
  display: block;
  color: var(--ink-600);
  font-size: 0.8rem;
}
.c-total-price {
  font-size: 1.6rem;
  color: #0277bd;
  font-weight: 800;
}

.c-checkout-btn {
  width: 100%;
  background: #0277bd;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 24px;
}
.c-security-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--ink-600);
  margin-bottom: 12px;
}
.c-legal-text {
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-400);
}

.c-guarantee-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #f9f9fa;
  display: flex;
  gap: 16px;
  align-items: center;
}
.c-g-icon {
  width: 40px;
  height: 40px;
  background: #e7f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.c-guarantee-card strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}
.c-guarantee-card p {
  font-size: 0.8rem;
  color: var(--ink-600);
}

/* CRITICAL MOBILE FIX: SIDE-BY-SIDE WELCOME SERVICES */
@media (max-width: 768px) {
  .welcome-services {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100%;
    overflow: hidden;
  }
  
  .welcome-card {
    padding: 12px !important;
    border-radius: var(--radius-lg);
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  
  .welcome-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .welcome-card__tags {
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
  }
  .welcome-card__tags .tag {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }
  
  .welcome-card h2 {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }
  
  /* Hide the verbose text and pills */
  .welcome-card > .welcome-card__content > p,
  .welcome-card__pills {
    display: none !important;
  }
  
  /* Optimize footer for ultra-compact view */
  .welcome-card__footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 8px !important;
  }
  .welcome-card__footer > div {
    display: none !important; /* Hide price labels on mobile */
  }
  
  .welcome-card__footer .button {
    width: 100% !important;
    padding: 10px 4px !important;
    font-size: 0.85rem !important;
    justify-content: center;
  }
}

/* ULTRA MOBILE OPTIMIZATIONS (USER REQUESTED) */
@media (max-width: 768px) {
  /* 1. Header & Nav fixes */
  .mobile-nav {
    display: none !important;
  }
  .site-header .header-inner {
    flex-wrap: wrap;
    justify-content: center !important;
    padding: 8px !important;
  }
  .primary-nav {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .primary-nav a {
    font-size: 0.8rem;
    padding: 6px 8px;
    min-height: auto;
    white-space: nowrap;
  }
  .app-address-trigger {
    display: none !important; /* Hide address on top for extreme space saving */
  }

  /* 2. Reorder Main Content (Services above Hero text) */
  #main-content {
    display: flex;
    flex-direction: column;
  }
  .welcome-services {
    order: -1;
    margin-top: 16px;
    margin-bottom: 24px;
  }
  .welcome-hero {
    order: 0;
    padding: 0 12px;
  }
  .welcome-hero h1 {
    font-size: 1.6rem !important;
  }
  .welcome-features {
    order: 1;
  }
  .welcome-how {
    order: 2;
  }

  /* 3. Feature Cards Side-by-Side */
  .welcome-feature-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .welcome-feature-card {
    padding: 12px !important;
    text-align: center;
    border-radius: 12px;
  }
  .welcome-feature-card .feature-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
    margin: 0 auto 8px auto !important;
  }
  .welcome-feature-card h3 {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .welcome-feature-card p {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
  }

  /* 4. Footer Layout */
  .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 12px !important;
    text-align: left;
  }
  .footer-inner > div:first-child {
    grid-column: 1 / -1;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 16px;
    margin-bottom: 8px;
  }
  
  /* Copyright text */
  .site-footer {
    padding-bottom: 24px !important; /* Because mobile-nav is gone */
  }
}

.copyright-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-400);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}

/* FORCE SHOW BRAND ON MOBILE */
@media (max-width: 768px) {
  .app-topbar .brand {
    display: inline-flex !important;
  }
  .app-topbar .address-trigger {
    display: none !important;
  }
}

/* FORCE SHOW ALL PRIMARY NAV LINKS ON MOBILE */
@media (max-width: 768px) {
  .primary-nav a {
    display: inline-flex !important;
  }
}

/* AGGRESSIVE ANTI-OVERFLOW & PRO MOBILE CARDS */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
.site-shell {
  overflow-x: hidden !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  /* Fix primary nav potentially causing overflow */
  .site-header .header-inner {
    padding: 12px !important;
    gap: 12px !important;
  }
  .primary-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  .primary-nav a {
    font-size: 0.75rem !important;
    padding: 8px 4px !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: var(--surface-card) !important;
    border: 1px solid var(--border) !important;
  }

  /* Stunning App-Like Welcome Cards */
  .welcome-services {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  
  .welcome-card {
    padding: 20px 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 220px !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  /* Bring back the visual emojis but make them app icons */
  .welcome-card__visual {
    display: flex !important;
    position: relative !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #f0f7ff, #fff) !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    border-radius: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: -10px auto 16px auto !important;
    top: 0 !important;
    right: 8px !important;
    bottom: auto !important;
  }
  .mock-bottles, .mock-bag {
    font-size: 2.2rem !important;
    position: static !important;
  }
  .welcome-card--market .welcome-card__visual {
    background: linear-gradient(135deg, #fff0e6, #fff) !important;
  }
  
  .welcome-card__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
  }
  
  .welcome-card h2 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
  }
  
  .welcome-card__footer {
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .welcome-card__footer .button {
    width: 100% !important;
    padding: 14px 8px !important;
    font-size: 0.95rem !important;
    border-radius: 30px !important;
  }
}

@media (max-width: 768px) {
  .site-header .header-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .primary-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .primary-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ink-900) !important;
  }
}

/* GLOBAL SOLID COLOR WELCOME CARDS */
.welcome-card--water {
  background: #0277bd !important;
  color: #fff !important;
}
.welcome-card--water h2, .welcome-card--water p, .welcome-card--water small, .welcome-card--water strong, .welcome-card--water span {
  color: #fff !important;
}
.welcome-card--water .welcome-card__visual {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
.welcome-card--water .tag {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.welcome-card--water .button {
  background: #fff !important;
  color: #0277bd !important;
  border-color: #fff !important;
}

.welcome-card--market {
  background: var(--market-orange) !important;
  color: #fff !important;
}
.welcome-card--market h2, .welcome-card--market p, .welcome-card--market small, .welcome-card--market strong, .welcome-card--market span {
  color: #fff !important;
}
.welcome-card--market .welcome-card__visual {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
.welcome-card--market .tag {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.welcome-card--market .button {
  background: #fff !important;
  color: var(--market-orange) !important;
  border-color: #fff !important;
}

/* MARKET PAGE ULTRA MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
  .market-layout {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Categories Strip */
  .market-sidebar {
    width: 100% !important;
    border-right: none !important;
    padding-right: 8px !important;
    margin-bottom: 12px !important;
  }
  .m-sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  .m-sidebar-header h3 {
    font-size: 0.9rem !important;
    color: var(--ink-900) !important;
  }
  .m-sidebar-header h3::before {
    content: "📦 ";
  }
  .m-sidebar-header small {
    color: var(--market-orange) !important;
    font-weight: 800 !important;
  }
  #market-category-filters {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }
  #market-category-filters button {
    white-space: nowrap !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: var(--ink-900) !important;
  }
  #market-category-filters button.is-active {
    background: var(--market-orange) !important;
    color: #fff !important;
    border-color: var(--market-orange) !important;
  }
  .m-sidebar-promo {
    display: none !important;
  }
  
  /* Hero Banner */
  .market-hero-banners {
    grid-template-columns: 1fr !important;
    margin-bottom: 16px !important;
  }
  .market-hero-right {
    display: none !important; /* Hide secondary banner to save space */
  }
  .market-hero-left {
    padding: 20px !important;
    min-height: 180px !important;
  }
  .market-hero-left h1 {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
  }
  .market-hero-left p {
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
  }
  .m-btn-white {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
  
  /* Toolbar & Tabs */
  .market-toolbar {
    margin-bottom: 12px !important;
  }
  .m-toolbar-titles {
    display: none !important;
  }
  .m-toolbar-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }
  .m-tab {
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
  }
  
  /* Product Grid */
  .m-product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  
  /* Product Cards */
  .m-product-card {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    position: relative !important;
  }
  .m-product-image {
    position: relative !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    height: 110px !important;
  }
  .m-product-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  .m-discount-badge {
    top: 8px !important;
    left: 8px !important;
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    z-index: 2 !important;
  }
  
  /* The Floating (+) Button inside image area */
  .m-product-card .m-add-button,
  .m-product-card .m-quantity-block {
    position: absolute !important;
    top: 100px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    color: var(--market-orange) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    z-index: 3 !important;
  }
  .m-product-card .m-quantity-block {
    width: auto !important;
    border-radius: 16px !important;
    padding: 0 4px !important;
    bottom: auto !important;
  }
  .m-quantity-block button {
    width: 24px !important;
    height: 24px !important;
    font-size: 1.2rem !important;
    color: var(--market-orange) !important;
  }
  .m-quantity-block strong {
    font-size: 0.85rem !important;
    margin: 0 4px !important;
  }
  
  /* Text layout */
  .m-price-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
  }
  .m-price {
    font-size: 1rem !important;
    color: var(--market-orange) !important;
    font-weight: 800 !important;
  }
  .old-price {
    font-size: 0.7rem !important;
    color: var(--ink-400) !important;
    text-decoration: line-through !important;
  }
  .m-title {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
    color: var(--ink-900) !important;
  }
  .m-unit {
    font-size: 0.7rem !important;
    color: var(--ink-400) !important;
  }

  /* Features block at bottom */
  .m-features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }
  .m-f-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  }
  .m-f-card .icon {
    width: 44px !important;
    height: 44px !important;
    background: #fdf3ef !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
  }
  .m-f-card strong {
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
  }
  .m-f-card p {
    font-size: 0.7rem !important;
  }
}

/* FIX HEADER BACKGROUND AND BRAND COLORS GLOBALLY */
.app-topbar, .site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--ink-900) !important;
}
.app-topbar .brand, .site-header .brand {
  color: var(--ink-900) !important;
}
.app-topbar .brand-text, .site-header .brand-text {
  color: var(--ink-900) !important;
  font-weight: 900 !important;
}
.app-topbar .primary-nav a, .site-header .primary-nav a {
  color: var(--ink-600) !important;
}
.app-topbar .primary-nav a:hover, .site-header .primary-nav a:hover {
  color: #0277bd !important;
  background: #e7f7ff !important;
}

/* Ensure mobile nav pills look good on white header */
@media (max-width: 768px) {
  .primary-nav a {
    background: #f9f9fa !important;
    border: 1px solid var(--border) !important;
    color: var(--ink-900) !important;
  }
}

/* REVERT HEADER TO BRAND BLUE INSTEAD OF WHITE */
.app-topbar, .site-header {
  background: #0277bd !important;
  border-bottom: none !important;
  color: #fff !important;
}
.app-topbar .brand, .site-header .brand {
  color: #fff !important;
}
.app-topbar .brand-text, .site-header .brand-text {
  color: #fff !important;
  font-weight: 900 !important;
}
.app-topbar .primary-nav a, .site-header .primary-nav a {
  color: rgba(255, 255, 255, 0.85) !important;
}
.app-topbar .primary-nav a:hover, .site-header .primary-nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Ensure mobile nav pills look good on blue header */
@media (max-width: 768px) {
  .primary-nav a {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
  }
  .primary-nav a[aria-current="page"] {
    background: #fff !important;
    color: var(--brand-700) !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
}

/* HOMEPAGE NO-PURPLE GUARANTEE (BLUE & ORANGE THEME) */

/* 1. Header Gradient (Blue to Orange) */
.app-topbar, .site-header {
  background: linear-gradient(135deg, #0277bd 0%, #f26722 100%) !important;
}

/* 2. Hero Highlight Text */
.welcome-hero .highlight-text {
  background: linear-gradient(90deg, #0277bd, #f26722) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  border-bottom: none !important;
  font-weight: 900 !important;
}

/* 3. Feature Icons (Remove Purple) */
.feature-icon--brand {
  color: #0277bd !important;
  background: #e7f7ff !important;
}
.welcome-section-header .eyebrow--brand {
  color: #0277bd !important;
  background: #e7f7ff !important;
}
.welcome-section-header .eyebrow--promo {
  color: #f26722 !important;
  background: #fff0e6 !important;
}

/* 4. How-to Step Numbers */
.how-number {
  background: linear-gradient(135deg, #0277bd, #f26722) !important;
  color: #fff !important;
}

/* FIX PILLS (EMPTY WHITE BOXES) ON WELCOME CARDS */
.welcome-card__pills span {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* FIX EMPTY CART BUTTONS TEXT COLOR */
.c-empty-state .button {
  color: #fff !important;
}

/* FIX CART PAGE BADGE TEXT COLOR JUST IN CASE */
.c-badge {
  color: #fff !important;
}

/* FIX SEPET BUTTON IN HEADER (WHITE BACKGROUND -> NEEDS VISIBLE TEXT) */
.site-header .primary-nav a.header-action,
.app-topbar .primary-nav a.header-action {
  background: #fff !important;
  color: var(--ink-900) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  font-weight: 800 !important;
}
.site-header .primary-nav a.header-action span,
.app-topbar .primary-nav a.header-action span {
  color: var(--market-orange) !important;
}

/* WATER PAGE EXACT MOBILE MATCH WITH MARKET */
@media (max-width: 768px) {
  .water-layout {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Categories Strip */
  .water-sidebar {
    width: 100% !important;
    border-right: none !important;
    padding-right: 0 !important;
    margin-bottom: 12px !important;
  }
  .water-sidebar h3 {
    font-size: 0.9rem !important;
    color: var(--ink-900) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px !important;
  }
  .water-sidebar h3::before {
    content: "💧 ";
  }
  .water-sidebar h3::after {
    content: "Tümü";
    color: #0277bd;
    font-size: 0.75rem;
    font-weight: 800;
  }
  #water-category-filters {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }
  #water-category-filters button {
    white-space: nowrap !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: var(--ink-900) !important;
  }
  #water-category-filters button.is-active {
    background: #0277bd !important;
    color: #fff !important;
    border-color: #0277bd !important;
  }
  .water-sidebar-banner {
    display: none !important;
  }
  
  /* Hero Banner */
  .water-hero {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 16px !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }
  .water-hero-right {
    display: none !important;
  }
  .water-hero-left h1 {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
  }
  .water-hero-left p {
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
  }
  
  /* Toolbar & Tabs */
  .water-toolbar {
    display: none !important;
  }
  #water-size-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    margin-bottom: 12px !important;
  }
  #water-size-filters .w-tab {
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    background: #fff;
    color: var(--ink-900);
    border: 1px solid var(--border);
  }
  #water-size-filters .w-tab.is-active {
    background: #0277bd !important;
    color: #fff !important;
    border-color: #0277bd !important;
  }
  
  /* Product Grid */
  #water-products {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }
  
  /* Features block at bottom */
  .water-features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
    grid-template-columns: 1fr !important;
  }
  .wf-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  }
  .wf-card b {
    width: 44px !important;
    height: 44px !important;
    background: #e7f7ff !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .water-exchange-promo {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
  }
  .wep-left h2 {
    font-size: 1.2rem !important;
  }
}

/* FIX WATER HERO PILLS OVERFLOW ON MOBILE */
@media (max-width: 768px) {
  .water-hero-pills {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .w-pill {
    width: 100% !important;
    padding: 12px 16px !important;
  }
}

/* NEW MOBILE CART LAYOUT (USER REQUESTED DESIGN) */
.c-header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.c-address-strip {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f4f7f9;
  gap: 12px;
}
.c-address-strip-icon {
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.c-address-strip-info {
  flex: 1;
}
.c-address-strip-info strong {
  font-size: 0.95rem;
  color: var(--ink-900);
}
.c-address-strip-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-600);
  margin-top: 2px;
}
.c-address-change {
  background: transparent;
  border: none;
  color: #0277bd;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
.c-mobile-layout {
  padding: 12px;
  background: #f9f9fa;
  min-height: 100vh;
}
.c-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c-item-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.c-item-remove {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--ink-400);
  cursor: pointer;
}
.c-item-top {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.c-item-image {
  width: 60px;
  height: 60px;
  background: #f9f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 4px;
}
.c-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.c-item-info {
  flex: 1;
  padding-right: 20px;
}
.c-item-info h3 {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  color: var(--ink-900);
  line-height: 1.3;
}
.c-item-unit-price {
  font-size: 0.75rem;
  color: var(--ink-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-item-qty-badge {
  background: #f4f7f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: #0277bd;
  font-weight: 800;
}
.c-item-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 800;
}
.c-item-badge--water {
  color: #0277bd;
  background: #e7f7ff;
}
.c-item-badge--market {
  color: #0f8f53;
  background: #e6f6ee;
}
.c-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.c-qty-pill {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  height: 36px;
  background: #fff;
  overflow: hidden;
}
.c-qty-btn {
  width: 36px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-qty-plus {
  background: #006b4b;
  color: #fff;
}
.c-qty-minus {
  color: var(--ink-400);
}
.c-qty-val {
  width: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}
.c-item-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.c-item-old-price {
  font-size: 0.8rem;
  color: var(--ink-400);
  text-decoration: line-through;
}
.c-item-total strong {
  font-size: 1.1rem;
  color: var(--ink-900);
  font-weight: 900;
}

/* CARDS: Note, Cross-sell, Coupon, Summary */
.c-note-card, .c-cross-sell, .c-coupon-card, .c-summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.c-note-header, .c-cs-header, .c-coupon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.c-note-header strong, .c-cs-header strong, .c-coupon-header strong {
  font-size: 0.95rem;
  color: var(--ink-900);
}
.c-note-card textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  min-height: 60px;
  margin-bottom: 12px;
  resize: none;
}
.c-note-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.c-note-tags span {
  white-space: nowrap;
  padding: 6px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--ink-600);
}
.c-cs-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.c-cs-item {
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.c-cs-img {
  font-size: 2rem;
  margin-bottom: 8px;
}
.c-cs-item strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.c-cs-item span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
}
.c-cs-item button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7f7ff;
  color: #0277bd;
  border: none;
  font-weight: 800;
}
.c-coupon-input {
  display: flex;
  gap: 8px;
}
.c-coupon-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.85rem;
}
.c-coupon-input button {
  padding: 0 16px;
  background: #e7f7ff;
  color: #0277bd;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Sticky Checkout */
.c-sticky-checkout {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.c-sticky-left {
  display: flex;
  flex-direction: column;
}
.c-sticky-left small {
  font-size: 0.75rem;
  color: var(--ink-600);
}
.c-sticky-left strong {
  font-size: 1.4rem;
  color: var(--ink-900);
  font-weight: 900;
}
.c-checkout-btn {
  background: #006b4b;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 107, 75, 0.3);
}

.c-guarantee-box {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
}
.c-guarantee-box p {
  font-size: 0.75rem;
  color: var(--ink-600);
  line-height: 1.4;
  margin: 0;
}
.c-guarantee-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--ink-400);
  font-weight: 800;
}

/* HIDE TOP NAV ON CART PAGE (since it has its own mobile header) */
@media (max-width: 768px) {
  body[data-page="cart"] .site-header, .cart-page .site-header, .cart-layout .site-header { display: none !important; }
}

/* MATCH CART COLORS TO MOCKUP EXACTLY (GREEN THEME) */
.c-checkout-btn {
  background: #006b4b !important;
  box-shadow: 0 4px 12px rgba(0, 107, 75, 0.3) !important;
}
.c-qty-plus {
  background: #006b4b !important;
}
.c-cs-item button {
  color: #006b4b !important;
  background: #e6f6ee !important;
}
.c-coupon-input button {
  color: #006b4b !important;
  background: #e6f6ee !important;
}
.c-address-change {
  color: #006b4b !important;
}
.c-summary-total strong:last-child {
  color: #006b4b !important;
}
.c-note-header span {
  color: #006b4b !important;
}
.c-cs-header span {
  color: #006b4b !important;
}
.c-guarantee-box span {
  color: #006b4b !important;
}
.c-sticky-left span {
  color: #0f8f53 !important;
}

/* NEW ORDER TRACKING (ORDER.HTML) CSS */
body[data-page="order"] {
  background: #f4f7f9;
}
.track-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f4f7f9;
  padding-bottom: 24px;
}
.track-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.track-back {
  font-size: 1.4rem;
  color: var(--ink-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.track-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-900);
}

.track-banner {
  padding: 24px 20px;
  background: #0277bd;
  color: #fff;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(2, 119, 189, 0.2);
}
.track-banner--delivered {
  background: #006b4b;
  box-shadow: 0 4px 12px rgba(0, 107, 75, 0.2);
}
.track-banner--cancelled, .track-banner--rejected {
  background: #dc3545;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}
.track-banner-icon {
  font-size: 2.5rem;
  line-height: 1;
}
.track-banner-content {
  flex: 1;
}
.track-banner-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.track-banner-content h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.track-banner-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
  margin: 0;
}

.track-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -12px;
}

.track-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.track-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.track-card-header h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink-900);
}
.track-live-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #e7f7ff;
  color: #0277bd;
  padding: 4px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.track-live-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #0277bd;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Timeline */
.track-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.t-node {
  display: flex;
  gap: 12px;
  position: relative;
}
.t-node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
  z-index: 1;
}
.t-node--done:not(:last-child)::after {
  background: #006b4b;
}
.t-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 2;
  position: relative;
}
.t-node--done .t-icon {
  background: #006b4b;
}
.t-node--active .t-icon {
  background: #0277bd;
}
.t-node--future .t-icon {
  background: #e2e8f0;
  color: transparent;
}
.t-node--danger .t-icon {
  background: #dc3545;
}
.t-content {
  flex: 1;
  padding-bottom: 4px;
}
.t-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.t-node--future .t-content strong {
  color: var(--ink-400);
}
.t-content small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-600);
}

/* Items */
.t-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.t-item:last-child {
  border-bottom: none;
}
.t-item-qty {
  font-weight: 800;
  color: #0277bd;
  background: #e7f7ff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.t-item-info {
  flex: 1;
}
.t-item-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-900);
}
.t-item-info small {
  font-size: 0.75rem;
  color: var(--ink-600);
}
.t-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-900);
}

/* Totals */
.track-totals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-600);
}
.track-total-row--grand {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 1.1rem;
  color: var(--ink-900);
  font-weight: 900;
}
.track-total-row--grand strong {
  color: #006b4b;
}

/* Meta */
.track-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.t-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-meta-row span {
  font-size: 0.75rem;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.t-meta-row strong {
  font-size: 0.9rem;
  color: var(--ink-900);
  line-height: 1.4;
}

/* HIDE TOP NAV ON ORDER PAGE */
@media (max-width: 768px) {
  body[data-page="order"] .site-header { display: none !important; }
}

/* Override container padding for full width mobile layout */
@media (max-width: 768px) {
  body[data-page="order"] .container {
    padding: 0 !important;
    max-width: 100% !important;
  }
}

/* FIX ACTIVE ORDER TIMELINE WRAPPING ON MOBILE */
@media (max-width: 768px) {
  .active-order__steps {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .active-order__steps::-webkit-scrollbar {
    height: 4px;
  }
  .active-order__steps::-webkit-scrollbar-track {
    background: transparent;
  }
  .active-order__steps::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }
  .active-order__step {
    flex: 0 0 85px !important;
  }
  /* Fix the connecting line logic for flexbox */
  .active-order__step::before {
    left: -42.5px !important;
    right: auto !important;
    width: 85px !important;
  }
}
