:root {
  --mp-orange: #16a34a;
  --mp-orange-dark: #0f7a36;
  --mp-amber: #effdf4;
  --mp-bg: #f5f5f5;
  --mp-text: #1f2937;
  --mp-muted: #6b7280;
  --mp-line: #e5e7eb;
  --mp-card: #ffffff;
  --mp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--mp-bg); color: var(--mp-text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.mp-main { padding: 16px 0 48px; }
.mp-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.mp-header { position: sticky; top: 0; z-index: 60; background: linear-gradient(135deg, var(--mp-orange), var(--mp-orange-dark)); color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10); }
.mp-text-btn { color: #fff; text-decoration: none; border: 0; background: transparent; cursor: pointer; padding: 10px 12px; border-radius: 12px; font: inherit; font-weight: 700; }
.mp-text-btn:hover { background: rgba(255,255,255,0.12); }
.mp-inline-form { display: inline; margin: 0; }
.mp-text-link { color: rgba(255,255,255,0.94); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 12px; }
.mp-text-link:hover { background: rgba(255,255,255,0.12); }
.mp-text-link-cta { background: #111827; }
.mp-text-link-cta:hover { background: #0b1220; }

.mp-topbar { padding: 12px 0 14px; }
.mp-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mp-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
.mp-topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.mp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mp-brand img { width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,0.18); padding: 6px; }
.mp-brand-text { min-width: 0; }
.mp-brand-title, .mp-brand-sub { display: block; }
.mp-brand-title { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.mp-brand-sub { font-size: 12px; opacity: 0.85; }

.mp-search-wrap { position: relative; flex: 1 1 auto; max-width: 720px; margin: 0 16px; }
.mp-search { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.mp-search input, .mp-toolbar-form input, .mp-toolbar-form select, .mp-form-grid input, .mp-form-grid select { width: 100%; min-width: 0; height: 48px; border: 1px solid transparent; border-radius: 14px; padding: 0 16px; font-size: 15px; }
.mp-search button, .mp-toolbar-form button, .mp-btn-primary, .mp-btn-secondary, .mp-add-cart, .mp-view-btn { height: 48px; border-radius: 14px; border: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }
.mp-search button, .mp-toolbar-form button, .mp-btn-primary, .mp-add-cart { background: #111827; color: #fff; }
.mp-btn-secondary, .mp-view-btn { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.mp-view-btn { background: #fff; color: var(--mp-text); border-color: var(--mp-line); }
.mp-search-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--mp-text); border-radius: 16px; box-shadow: var(--mp-shadow); display: none; overflow: hidden; z-index: 20; }
.mp-search-suggestions.active { display: block; }
.mp-search-suggestions a { display: block; padding: 12px 16px; text-decoration: none; border-top: 1px solid var(--mp-line); }
.mp-search-suggestions a:first-child { border-top: 0; }
.mp-search-suggestions strong, .mp-search-suggestions span { display: block; }
.mp-search-suggestions span { color: var(--mp-muted); font-size: 13px; margin-top: 4px; }

.mp-icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; text-decoration: none; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.16); }
.mp-icon-link:hover { background: rgba(255,255,255,0.18); }
.mp-icon { font-size: 20px; line-height: 1; }
.mp-icon-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #111827; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; border: 2px solid rgba(255,255,255,0.92); }
.mp-mobile-toggle { display: none; border: 0; background: rgba(255,255,255,0.16); color: #fff; font-size: 22px; border-radius: 14px; width: 42px; height: 42px; }

.mp-category-nav { display: flex; gap: 10px; overflow: auto; padding: 10px 12px; border-radius: 16px; background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(255,255,255,0.16); }
.mp-category-nav a { color: #0b1220; text-decoration: none; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,0.92); white-space: nowrap; font-weight: 700; }
.mp-category-nav a:hover { background: #ffffff; }

.mp-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; margin-top: 22px; }
.mp-hero-copy, .mp-highlight-card, .mp-sidebar-card, .mp-toolbar, .mp-product-card, .mp-info-panel, .mp-cart-main, .mp-order-summary, .mp-checkout-card, .mp-checkout-items, .mp-pdp-wrap, .mp-empty-card { background: var(--mp-card); border-radius: 24px; box-shadow: var(--mp-shadow); }
.mp-hero-copy { padding: 34px; background: linear-gradient(145deg, #fff7ed, #ffffff); }
.mp-hero-copy h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.02; margin: 14px 0; }
.mp-hero-copy p { color: var(--mp-muted); font-size: 16px; line-height: 1.6; margin: 0; max-width: 700px; }
.mp-pill { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(249, 115, 22, 0.1); color: var(--mp-orange-dark); font-size: 12px; font-weight: 700; }
.mp-pill-light { background: #f3f4f6; color: var(--mp-text); }
.mp-hero-actions, .mp-pdp-actions, .mp-product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mp-hero-actions { margin-top: 24px; }
.mp-hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.mp-hero-metrics div { background: #fff; border: 1px solid var(--mp-line); border-radius: 18px; padding: 16px; }
.mp-hero-metrics strong, .mp-hero-metrics span { display: block; }
.mp-hero-metrics strong { font-size: 24px; }
.mp-hero-metrics span { color: var(--mp-muted); margin-top: 6px; }
.mp-hero-panels { display: grid; gap: 14px; }
.mp-highlight-card { padding: 24px; }
.mp-highlight-card small, .mp-highlight-card strong, .mp-highlight-card span { display: block; }
.mp-highlight-card strong { font-size: 22px; margin: 10px 0 6px; }
.mp-highlight-card span { color: var(--mp-muted); line-height: 1.5; }
.mp-highlight-sale { background: linear-gradient(180deg, #fff, #fff4e6); }
.mp-highlight-delivery { background: linear-gradient(180deg, #fff, #eff6ff); }
.mp-highlight-pos { background: linear-gradient(180deg, #fff, #f0fdf4); }

.mp-section { margin-top: 26px; }
.mp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mp-section-head h2, .mp-section-head h1, .mp-toolbar h1 { margin: 4px 0 0; }
.mp-section-head a { color: var(--mp-orange-dark); font-weight: 700; text-decoration: none; }
.mp-section-kicker { color: var(--mp-orange-dark); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; }
.mp-flash-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mp-flash-timer { font-size: 16px; letter-spacing: 0.10em; }

.mp-category-grid, .mp-product-grid { display: grid; gap: 12px; }
.mp-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-category-card { display: grid; gap: 8px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--mp-shadow); text-decoration: none; }
.mp-category-card span { color: var(--mp-muted); font-size: 13px; }
.mp-category-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: #fff7ed; }

.mp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-product-card { overflow: hidden; border: 1px solid rgba(229, 231, 235, 0.9); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mp-product-card:hover { transform: translateY(-2px) scale(1.02); border-color: rgba(255, 102, 0, 0.34); box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16); }
.mp-product-link { text-decoration: none; color: inherit; display: block; }
.mp-product-media { position: relative; background: #fff7ed; aspect-ratio: 1 / 1; overflow: hidden; }
.mp-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-badge-sale { position: absolute; top: 10px; left: 10px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.mp-product-body { padding: 16px; }
.mp-product-body h3 { margin: 4px 0 10px; font-size: 15px; line-height: 1.25; min-height: 38px; }
.mp-product-category { font-size: 12px; color: var(--mp-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mp-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mp-price-row strong { font-size: 24px; color: var(--mp-orange-dark); }
.mp-price-row span { color: #9ca3af; text-decoration: line-through; }
.mp-product-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--mp-muted); font-size: 13px; }
.mp-product-actions { padding: 0 16px 16px; }
.mp-add-cart, .mp-view-btn { flex: 1; }
.mp-add-cart[disabled] { background: #d1d5db; cursor: not-allowed; }

.mp-dual-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp-info-panel { padding: 24px; }
.mp-info-panel h2, .mp-info-panel h3 { margin-top: 8px; }
.mp-info-panel p, .mp-info-panel li { color: var(--mp-muted); line-height: 1.6; }
.mp-info-panel ul { margin: 12px 0 0; padding-left: 18px; }
.mp-info-panel-accent { background: linear-gradient(145deg, #fff7ed, #fff); }

.mp-catalog-layout, .mp-cart-layout, .mp-checkout-layout { display: grid; gap: 18px; }
.mp-catalog-layout { grid-template-columns: 280px 1fr; align-items: start; }
.mp-sidebar { position: sticky; top: 20px; }
.mp-sidebar-card { padding: 18px; display: grid; gap: 8px; }
.mp-sidebar-card a { text-decoration: none; padding: 12px 14px; border-radius: 14px; color: var(--mp-text); }
.mp-sidebar-card a.active, .mp-sidebar-card a:hover { background: #fff7ed; color: var(--mp-orange-dark); }
.mp-toolbar { padding: 20px; display: grid; gap: 16px; }
.mp-toolbar p { margin: 8px 0 0; color: var(--mp-muted); }
.mp-toolbar-form { display: grid; grid-template-columns: 1.5fr 220px 180px 120px; gap: 10px; align-items: center; }
.mp-checkbox-inline { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #f9fafb; border-radius: 14px; min-height: 48px; }
.mp-checkbox-inline input { width: auto; height: auto; }

.mp-pdp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.mp-pdp-gallery { display: grid; gap: 12px; }
.mp-pdp-main-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--mp-line); background: #fff7ed; }
.mp-pdp-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mp-pdp-thumb { border: 2px solid transparent; background: transparent; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; }
.mp-pdp-thumb.active { border-color: var(--mp-orange); }
.mp-pdp-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.mp-pdp-info h1 { font-size: 36px; margin: 12px 0; }
.mp-pdp-tags, .mp-pdp-rating-row, .mp-service-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-pdp-rating-row { color: var(--mp-muted); }
.mp-pdp-price-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff7ed; border-radius: 20px; padding: 18px; margin: 18px 0; }
.mp-pdp-price-box strong { font-size: 34px; color: var(--mp-orange-dark); }
.mp-pdp-old-price { color: #9ca3af; text-decoration: line-through; }
.mp-pdp-description { color: var(--mp-muted); line-height: 1.7; }
.mp-pdp-buybox { border: 1px solid var(--mp-line); border-radius: 20px; padding: 18px; margin-top: 18px; display: grid; gap: 16px; }
.mp-qty-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--mp-line); border-radius: 14px; overflow: hidden; }
.mp-quantity-btn { width: 44px; height: 44px; border: 0; background: #fff; font-size: 22px; cursor: pointer; }
.mp-quantity-selector input { width: 60px; height: 44px; border: 0; text-align: center; font-weight: 700; }
.mp-stock-line { color: var(--mp-muted); }
.mp-stock-line.ok { color: #166534; }
.mp-stock-line.out { color: #991b1b; }
.mp-service-grid div { flex: 1; min-width: 160px; border: 1px solid var(--mp-line); border-radius: 18px; padding: 16px; }
.mp-service-grid strong, .mp-service-grid span { display: block; }
.mp-service-grid span { color: var(--mp-muted); margin-top: 4px; }

.mp-cart-layout { grid-template-columns: 1fr 340px; align-items: start; }
.mp-cart-main, .mp-order-summary, .mp-checkout-card, .mp-checkout-items { padding: 22px; }
.mp-cart-items { display: grid; gap: 12px; }
.mp-cart-row { display: grid; grid-template-columns: 92px 1fr 140px 40px; gap: 14px; align-items: center; border: 1px solid var(--mp-line); border-radius: 18px; padding: 12px; background: #fff; }
.mp-cart-row img, .mp-co-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: #fff7ed; }
.mp-cart-title { font-weight: 700; }
.mp-cart-sub { color: var(--mp-muted); font-size: 13px; margin-top: 6px; }
.mp-qty { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.mp-qty button, .mp-remove { border: 1px solid var(--mp-line); background: #fff; border-radius: 12px; width: 36px; height: 36px; cursor: pointer; }
.mp-order-summary { position: sticky; top: 20px; }
.mp-order-summary h3 { margin-top: 0; }
.mp-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.mp-sum-row.total { border-top: 1px solid var(--mp-line); margin-top: 6px; padding-top: 16px; font-size: 20px; }
.mp-full-width { width: 100%; margin-top: 14px; }

.mp-checkout-layout { grid-template-columns: 1fr 360px; align-items: start; }
.mp-checkout-main { display: grid; gap: 16px; }
.mp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-form-grid .wide { grid-column: 1 / -1; }
.mp-form-grid label span { display: block; font-weight: 700; margin-bottom: 8px; }
.mp-checkbox-stack span { display: flex !important; align-items: center; gap: 8px; }
.mp-checkout-items { display: grid; gap: 12px; }
.mp-co-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--mp-line); border-radius: 16px; padding: 12px; background: #fff; }
.mp-co-item strong, .mp-co-item small { display: block; }
.mp-co-item small { color: var(--mp-muted); margin-top: 4px; }
.mp-empty-card { padding: 32px; text-align: center; color: var(--mp-muted); }
.checkout-success, .checkout-error { margin-top: 12px; padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.checkout-success { background: #ecfdf5; color: #166534; }
.checkout-error { background: #fef2f2; color: #991b1b; }

.mp-footer { background: #111827; color: rgba(255,255,255,0.86); margin-top: 36px; }
.mp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; padding: 32px 0; }
.mp-footer h4, .mp-footer-brand { color: #fff; margin: 0 0 10px; }
.mp-footer-brand { font-size: 22px; font-weight: 800; }
.mp-footer-text { color: rgba(255,255,255,0.72); line-height: 1.6; }
.mp-footer a, .mp-footer span { display: block; color: rgba(255,255,255,0.82); text-decoration: none; margin-bottom: 8px; }

@media (min-width: 768px) {
  .mp-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .mp-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
  .mp-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mp-category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .mp-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .mp-hero, .mp-pdp-wrap, .mp-catalog-layout, .mp-cart-layout, .mp-checkout-layout, .mp-dual-panels { grid-template-columns: 1fr; }
  .mp-toolbar-form { grid-template-columns: 1fr; }
  .mp-sidebar { position: static; }
  .mp-order-summary { position: static; }
  .mp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mp-shell { width: min(100% - 20px, 1240px); }
  .mp-topbar-inner { flex-wrap: wrap; }
  .mp-search-wrap { width: 100%; flex: 0 0 100%; order: 3; margin: 6px 0 0; max-width: none; }
  .mp-search { grid-template-columns: 1fr 92px; }
  .mp-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mp-category-nav { display: none; flex-direction: column; padding: 10px 0 14px; }
  .mp-category-nav.active { display: flex; }
  .mp-hero-copy { padding: 22px; }
  .mp-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .mp-form-grid { grid-template-columns: 1fr; }
  .mp-cart-row { grid-template-columns: 72px 1fr; }
  .mp-qty { justify-content: flex-start; }
  .mp-footer-grid { grid-template-columns: 1fr; }
  .mp-main { padding-bottom: 92px; }
}

.mp-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--mp-line); display: none; z-index: 70; }
.mp-bottom-item { position: relative; flex: 1; display: grid; gap: 3px; place-items: center; padding: 10px 8px 12px; text-decoration: none; color: var(--mp-text); font-weight: 700; font-size: 11px; }
.mp-bottom-icon { font-size: 18px; }
.mp-bottom-badge { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mp-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }

@media (max-width: 760px) {
  .mp-bottom-nav { display: flex; }
}
