@font-face {
  font-family: "Pelak";
  src: url("./fonts/PelakFA-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("./fonts/PelakFA-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("./fonts/PelakFA-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("./fonts/PelakFA-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pelak";
  src: url("./fonts/PelakFA-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-bg: #e9e9e9;
  --panel: #ffffff;
  --ink: #151515;
  --muted: #ffffff;
  --purple: #6c4c91;
  --purple-soft: rgba(108, 76, 145, 0.72);
  --shadow: 0 8px 13px rgba(0, 0, 0, 0.24);
  --radius-lg: 34px;
  --radius-md: 23px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Pelak", Tahoma, Arial, sans-serif;
  line-height: 1.4;
}

body.is-products-open {
  overflow: hidden;
}

body.is-detail-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 36px) clamp(20px, 6vw, 28px) 34px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  margin-bottom: 20px;
  padding: 15px 22px;
  background: var(--panel);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand-logo {
  width: min(70%, 150px);
  height: auto;
  display: block;
  transform: translateY(5px);
}

.slider-section {
  position: relative;
  margin-bottom: 22px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  border-radius: var(--radius-lg);
  background: #c7c1ba;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(42, 34, 43, 0.62) 45%);
  backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 45%);
  mask-image: linear-gradient(to bottom, transparent, black 45%);
}

.hero-copy {
  position: absolute;
  z-index: 1;
  inset-inline: 14px;
  bottom: 22px;
  color: #fff;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
}

.hero-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.hero-slide--loading {
  position: relative;
  opacity: 1;
  visibility: visible;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #d5d0ca, #8f847a);
}

.slider-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--purple-soft);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-control span {
  position: relative;
  width: 10px;
  height: 10px;
  display: block;
  overflow: hidden;
  border-color: #fff;
  border-style: solid;
  border-width: 0 1px 1px 0;
  color: transparent;
  
  font-size: 0;
}

.slider-control--prev {
  left: -23px;
}

.slider-control--prev span {
  left: 2px;
  transform: rotate(135deg);
}

.slider-control--next {
  right: -23px;
}

.slider-control--next span {
  right: 2px;
  transform: rotate(-45deg);
}

.slider-control:disabled {
  opacity: 0.45;
  cursor: default;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 22px;
  margin-bottom: 30px;
}

.category-card {
  font: inherit;
  min-width: 0;
  aspect-ratio: 1 / 1.03;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px 12px;
  overflow: hidden;
  border: 2px solid #171717;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.category-card img {
  width: min(58%, 70px);
  aspect-ratio: 1;
  object-fit: contain;
}

.category-card h3 {
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

.category-card--loading {
  min-height: 112px;
  background:
    radial-gradient(circle at 50% 38%, transparent 0 25px, rgba(108, 76, 145, 0.2) 26px 31px, transparent 32px),
    #fff;
}

.footer-panel {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  border-radius: 28px;
  background: #35333a;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.28);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    linear-gradient(135deg, #4b4852, #1f1d22);
  background-position: center;
  background-size: cover;
  filter: blur(2px);
  transform: scale(1.025);
}

.footer-content {
  position: relative;
  z-index: 1;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 26px;
  color: #fff;
  text-align: center;
}

.footer-content h2 {
  max-width: 100%;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.footer-content p {
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.footer-work-hour {
  margin-top: 6px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.footer-accent {
  width: 86px;
  height: 5px;
  margin: 27px 0 30px;
  border-radius: 999px;
  background: #ab65ff;
}

.social-links {
  width: min(100%, 260px);
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
}

.social-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
}

.social-link img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.bale-icon {
  width: 38px;
  height: 38px;
  display: block;
}

.footer-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-address:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.footer-address svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.products-view {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow-y: auto;
  background: var(--page-bg);
}

.products-view[hidden] {
  display: none;
}

.products-shell {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 36px) clamp(20px, 6vw, 28px) 34px;
}

.products-header {
  position: sticky;
  z-index: 2;
  top: 16px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 9px 62px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.24);
}

.products-header h1 {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.products-close {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  transform: translateY(-50%);
}

.products-close span,
.products-close span::after {
  width: 19px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: #fff;
}

.products-close span {
  transform: rotate(45deg);
}

.products-close span::after {
  content: "";
  transform: rotate(90deg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 15px;
}

.product-card {
  font: inherit;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.product-img-wrap {
  position: relative;
  width: 100%;
}

.product-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1.77;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #d6d6d6;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(179, 120, 255, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(179,120,255,0.3);
  pointer-events: none;
  direction: ltr;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.77;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #d6d6d6;
}

.product-info {
  min-height: 103px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 8px 17px;
  text-align: center;
}

.product-name {
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.product-code {
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.product-code-value {
  color: #b378ff;
}

.products-empty {
  grid-column: 1 / -1;
  margin: 60px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.detail-view {
  position: fixed;
  z-index: 30;
  inset: 0;
  overflow-y: auto;
  background: var(--page-bg);
}

.detail-view[hidden] {
  display: none;
}

.detail-shell {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(38px, 9vw, 50px) clamp(20px, 6vw, 28px) 45px;
}

.detail-header {
  position: sticky;
  z-index: 4;
  top: 16px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 8px 64px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.24);
}

.detail-header h1 {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-close {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  transform: translateY(-50%);
}

.detail-close span,
.detail-close span::after {
  width: 19px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: #fff;
}

.detail-close span {
  transform: rotate(45deg);
}

.detail-close span::after {
  content: "";
  transform: rotate(90deg);
}

.detail-gallery {
  position: relative;
  margin-bottom: 10px;
}

.detail-main-image {
  overflow: hidden;
  aspect-ratio: 1 / 1.14;
  border-radius: 13px;
  background: #d6d6d6;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

.image-zoom-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 160ms, transform 120ms;
}

.image-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.08);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-img-wrap {
  max-width: min(92vw, 700px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.detail-gallery-control {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--purple-soft);
  cursor: pointer;
}

.detail-gallery-control span {
  position: relative;
  width: 17px;
  height: 17px;
  display: block;
  border-color: #fff;
  border-style: solid;
  border-width: 0 3px 3px 0;
}

.detail-gallery-control--prev {
  left: 19px;
}

.detail-gallery-control--prev span {
  left: 3px;
  transform: rotate(135deg);
}

.detail-gallery-control--next {
  right: 19px;
}

.detail-gallery-control--next span {
  right: 3px;
  transform: rotate(-45deg);
}

.detail-gallery-control:disabled {
  opacity: 0.45;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.detail-thumb {
  aspect-ratio: 1.38 / 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #d6d6d6;
  cursor: pointer;
}

.detail-thumb.is-active {
  border-color: #b378ff;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.detail-specs {
  margin: 0 0 14px;
  padding: 22px 22px 18px;
  border-radius: 13px;
  background: #fff;
}

.detail-spec-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid #d8d8d8;
}

.detail-spec-row:last-child {
  border-bottom: 0;
}

.detail-spec-section-header .detail-spec-label {
  color: var(--accent, #b8872a);
  font-size: 13px;
  font-weight: 700;
  padding-top: 4px;
}

.detail-color-section {
  padding: 16px 0 12px;
  border-bottom: 1px solid #d8d8d8;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-color-section:last-child {
  border-bottom: 0;
}

.detail-color-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-color-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.detail-color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.color-chip {
  padding: 6px 16px;
  border-radius: 99px;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, color 180ms, transform 120ms;
  white-space: nowrap;
}

.color-chip:hover {
  border-color: #b8872a;
  background: #fdf6eb;
  color: #b8872a;
}

.color-chip.is-active {
  border-color: #b8872a;
  background: #b8872a;
  color: #fff;
  transform: scale(1.05);
}

.detail-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 32px;
}

.detail-size-chips-wrap,
.detail-size-info {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
}

.detail-size-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #555;
}

.detail-size-value {
  font-size: 13px;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

.detail-dim-group {
  display: flex;
  gap: 10px;
}

.dim-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.dim-item b {
  font-size: 13px;
  font-weight: 700;
}

.dim-item small {
  font-size: 9px;
  font-weight: 500;
  color: #999;
  direction: rtl;
}

.detail-size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-chip {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1.5px solid #d0d0d0;
  background: #f5f5f5;
  color: #333;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  direction: ltr;
  transition: border-color 150ms, background 150ms, color 150ms;
}

.size-chip:hover {
  border-color: #888;
}

.size-chip.is-active {
  border-color: #444;
  background: #222;
  color: #fff;
}

.detail-price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f6f0;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #ecdfc8;
}

.detail-price-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

.detail-price-value {
  font-size: 16px;
  font-weight: 800;
  color: #b8872a;
  direction: ltr;
  unicode-bidi: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.price-original {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  text-decoration: line-through;
}

.price-discounted {
  font-size: 16px;
  font-weight: 800;
  color: #b378ff;
}

.detail-spec-label,
.detail-spec-value {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.detail-spec-label {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}

.detail-spec-value {
  direction: ltr;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  unicode-bidi: isolate;
  font-feature-settings: "lnum" 1;
}

.detail-description {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 13px;
  background: #fff;
  font-size: 13px;
  line-height: 1.9;
  color: #444;
  white-space: pre-line;
}

.detail-buy-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.buy-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 13px;
  background: #fff;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1.5px solid #ebebeb;
  transition: transform 150ms, box-shadow 150ms;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.buy-button:active {
  transform: scale(0.97);
}

.buy-button-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.buy-button-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.buy-button-title {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-align: center;
}

.buy-button-subtitle {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}

.buy-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.copy-chip {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
  opacity: 0.45;
  line-height: 1;
  transition: opacity 0.15s;
}
.copy-chip:hover {
  opacity: 1;
}

.detail-order {
  position: relative;
  isolation: isolate;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #111;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  transition: transform 180ms ease;
}

.detail-order::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -45%;
  background: conic-gradient(from 0deg, #b378ff, #d0a0ff, #7eb8f7, #d0a0ff, #b378ff);
  animation: rotateOrderStroke 2.5s linear infinite;
}

.detail-order::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2.5px;
  border-radius: 11px;
  background: #fff;
}

.detail-order:active {
  transform: scale(0.98);
}

@keyframes rotateOrderStroke {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 370px) {
  .app-shell {
    padding-inline: 16px;
  }

  .category-grid {
    gap: 18px 14px;
  }

  .brand-bar {
    min-height: 62px;
    padding-inline: 18px;
  }

  .slider-control {
    width: 40px;
    height: 40px;
  }

  .products-shell {
    padding-inline: 16px;
  }

  .detail-shell {
    padding-inline: 16px;
  }

  .products-grid {
    gap: 16px 12px;
  }

  .detail-header {
    min-height: 61px;
    padding-inline: 61px;
  }

  .detail-header h1 {
    font-size: 21px;
  }

  .detail-specs {
    padding-inline: 17px;
  }

  .slider-control--prev {
    left: -18px;
  }

  .slider-control--next {
    right: -18px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    max-width: 520px;
  }

  .products-shell {
    max-width: 520px;
  }

  .detail-shell {
    max-width: 520px;
  }

  .hero-slider {
    min-height: 285px;
  }

  .category-grid {
    gap: 28px;
  }
}

/* ─── SPLASH SCREEN ──────────────────────────────────── */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f12;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.splash-logo {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(10px);
  animation: splashLogoIn 0.7s ease 0.1s forwards;
}

@keyframes splashLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

.splash-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  animation: splashFadeIn 0.5s ease 0.6s forwards;
}

@keyframes splashFadeIn {
  to { opacity: 1; }
}

.splash-check {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.chk-label {
  font-family: "Pelak", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.chk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

/* loading state */
.splash-check[data-state="loading"] .chk-dot {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  animation: chkPulse 1s ease-in-out infinite;
}

.splash-check[data-state="loading"] .chk-label {
  color: rgba(255,255,255,0.65);
}

@keyframes chkPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ok state */
.splash-check[data-state="ok"] .chk-dot {
  background: #7c5cbf;
  box-shadow: 0 0 10px rgba(124,92,191,0.55);
  animation: none;
}

.splash-check[data-state="ok"] .chk-label {
  color: rgba(255,255,255,0.9);
}

/* fail state */
.splash-check[data-state="fail"] .chk-dot {
  background: #c93030;
  box-shadow: 0 0 10px rgba(201,48,48,0.4);
  animation: none;
}

.splash-check[data-state="fail"] .chk-label {
  color: rgba(255,80,80,0.9);
}

.splash-msg {
  font-family: "Pelak", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  margin: 0;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: splashFadeIn 0.5s ease 1s forwards;
  min-height: 18px;
  transition: color 0.4s ease;
}
