* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --mini-navy: #192a3a;
  --mini-red: #df4024;
  --mini-paper: #fffdf9;
  --mini-soft: #f6f2ec;
}

.soft-shadow {
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.08);
}

.image-cover {
  background: #f7f4ed;
}

.brand-hero {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(246, 242, 236, 0.98)),
    radial-gradient(circle at 90% 8%, rgba(223, 64, 36, 0.12), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(25, 42, 58, 0.08), transparent 30%);
}

.brand-main {
  background: linear-gradient(180deg, #fffdf9 0%, #fbfaf7 100%);
}

.section-breaker {
  position: relative;
  border-bottom: 1px solid rgba(25, 42, 58, 0.08);
}

.section-breaker::after {
  content: "";
  position: absolute;
  inset-inline: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--mini-red), var(--mini-navy), transparent);
  transform: translateY(50%);
}

.brand-logo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(42vw, 210px);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.header-watermark-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(68vw, 620px);
  height: 92px;
  object-fit: contain;
  opacity: 0.055;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: grayscale(0.25);
}

.header-tagline {
  font-family: "Amiri", "Aref Ruqaa", "Noto Naskh Arabic", serif;
  letter-spacing: 0;
}

.case-image-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  height: auto;
}

.case-image-shell {
  background: transparent !important;
}

.product-card .case-image-shell {
  overflow: visible;
}

.product-card .case-image-shell img {
  transform: scale(1.62);
}

.product-card:hover .case-image-shell img {
  transform: scale(1.68);
}

.product-card {
  animation: card-rise 520ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(32, 33, 36, 0.12);
}

.hero-carousel {
  animation: card-rise 620ms ease both;
}

.hero-carousel-controls {
  position: absolute;
  inset-inline: 12px;
  top: 50%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-carousel-controls button {
  display: grid;
  height: 42px;
  width: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mini-navy);
  box-shadow: 0 12px 28px rgba(25, 42, 58, 0.12);
  pointer-events: auto;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-carousel-controls button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hero-carousel-controls button:first-child svg {
  transform: rotate(180deg);
}

.hero-slide-media {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(300px, 48vw, 560px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.hero-slide-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: hero-image-fit 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform, filter;
}

.hero-slide-copy {
  animation: hero-copy-soft 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform;
}

.verified-mark {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #1877f2;
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.22);
}

.verified-mark svg {
  stroke-width: 3;
}

.mini-fire-icon {
  display: inline-block;
  width: 18px;
  height: 22px;
  flex: 0 0 auto;
  background: url("/assets/brand/mini-flame-outline.png") center / contain no-repeat;
}

.new-arrivals-section {
  overflow: hidden;
}

.new-arrivals-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 92%);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.new-arrivals-track-single {
  grid-auto-flow: row;
  grid-auto-columns: initial;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.new-arrival-card {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(175px, 0.98fr) 1fr;
  gap: clamp(12px, 3vw, 18px);
  align-items: center;
  border-radius: 8px;
  background: #fff;
  padding: clamp(16px, 4vw, 38px);
  scroll-snap-align: start;
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.08);
  animation: arrival-fade 620ms ease both;
}

.new-arrival-media {
  display: grid;
  min-height: 300px;
  place-items: center;
}

.new-arrival-case-frame {
  width: min(60vw, 340px);
  aspect-ratio: 4 / 5;
  height: auto;
}

.new-arrival-photo-frame {
  width: 100%;
  min-height: 340px;
}

.new-arrival-details {
  display: grid;
  gap: 10px;
  align-content: center;
}

.new-arrival-details h3 {
  color: var(--mini-navy);
  font-size: clamp(1.45rem, 6vw, 2.35rem);
  font-weight: 900;
  line-height: 1.2;
}

.new-arrival-details p {
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.7;
}

.new-arrival-price {
  justify-self: start;
  width: fit-content;
}

.new-arrivals-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.new-arrivals-dot {
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: rgba(25, 42, 58, 0.16);
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.new-arrivals-dot-active {
  width: 34px;
  background: var(--mini-red);
}

@media (max-width: 640px) {
  .hero-slide-media {
    height: clamp(330px, 78vw, 470px);
  }

  .new-arrivals-track {
    grid-auto-columns: minmax(0, 100%);
  }

  .new-arrival-card {
    grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1fr);
    min-height: 0;
    gap: 10px;
    align-items: center;
    padding: 16px;
  }

  .new-arrival-media {
    min-height: 250px;
  }

  .new-arrival-case-frame {
    width: min(46vw, 230px);
  }

  .new-arrival-details h3 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .new-arrival-details p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 360px) {
  .new-arrival-card {
    grid-template-columns: 136px 1fr;
    gap: 8px;
    padding: 12px;
  }

  .new-arrival-media {
    min-height: 240px;
  }

  .new-arrival-case-frame {
    width: 150px;
  }

  .new-arrival-details {
    gap: 8px;
  }

  .new-arrival-details h3 {
    font-size: 1.28rem;
  }

  .new-arrival-details p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

.category-featured-icon {
  width: 60px;
  height: 60px;
  color: #fff;
  background: var(--mini-red);
  box-shadow: none;
}

.category-standard-icon {
  width: 60px;
  height: 60px;
  color: var(--mini-navy);
  background: #f1f6f4;
}

.category-standard-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.mini-fire-icon-card {
  width: 28px;
  height: 35px;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding-bottom: 4px;
}

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
  border: 1px solid rgba(25, 42, 58, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--mini-navy);
  padding: 0 14px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

@media (max-width: 640px) {
  .category-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.category-chip:hover {
  transform: translateY(-1px);
  background: #edf7fc;
}

.category-chip-active {
  background: var(--mini-navy);
  color: #fff;
}

.upload-dropzone {
  display: flex;
  min-height: 84px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed rgba(25, 42, 58, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(223, 64, 36, 0.08), transparent 24%),
    linear-gradient(135deg, #edf7fc, #fffdf9);
  padding: 14px;
  color: var(--mini-navy);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.upload-dropzone:hover {
  border-color: rgba(223, 64, 36, 0.55);
  box-shadow: 0 14px 34px rgba(25, 42, 58, 0.09);
  transform: translateY(-1px);
}

.mockup-widget {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.mockup-stage {
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 10%, rgba(223, 64, 36, 0.09), transparent 26%),
    linear-gradient(145deg, #e2f3fb, #fffdf9 62%, #f6f2ec);
  box-shadow: inset 0 0 0 1px rgba(25, 42, 58, 0.06);
}

.mockup-canvas {
  display: block;
  width: min(58%, 220px);
  height: auto;
  cursor: grab;
  filter: drop-shadow(0 22px 32px rgba(25, 42, 58, 0.16));
  touch-action: none;
  user-select: none;
}

.mockup-canvas:active {
  cursor: grabbing;
}

.mockup-controls {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(25, 42, 58, 0.06);
}

.mockup-hint {
  margin: 0;
  border-radius: 8px;
  background: rgba(226, 243, 251, 0.72);
  color: rgba(25, 42, 58, 0.72);
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.8;
}

.mockup-layer-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(25, 42, 58, 0.08);
  border-bottom: 1px solid rgba(25, 42, 58, 0.08);
  padding: 10px 0;
}

.mockup-layer-title {
  margin: 0;
  color: var(--mini-navy);
  font-size: 13px;
  font-weight: 900;
}

.mockup-layer-item {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}

.mockup-layer-button {
  min-height: 42px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(25, 42, 58, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--mini-navy);
  font-weight: 900;
  text-align: right;
}

.mockup-layer-button-active {
  border-color: var(--mini-red);
  background: #fff7f2;
  color: var(--mini-red);
}

.mockup-layer-remove {
  display: grid;
  height: 42px;
  width: 42px;
  place-items: center;
  border: 1px solid rgba(226, 57, 34, 0.18);
  border-radius: 8px;
  background: #fff3f1;
  color: var(--mini-red);
}

.mockup-controls label {
  display: grid;
  gap: 6px;
  color: var(--mini-navy);
  font-size: 13px;
  font-weight: 900;
}

.mockup-controls input[type="range"] {
  accent-color: var(--mini-red);
  cursor: pointer;
}

.mockup-controls input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.mockup-text-tools {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(25, 42, 58, 0.08);
  padding-top: 10px;
}

.mockup-text-tools input[type="text"],
.mockup-text-tools select {
  min-height: 42px;
  border: 1px solid rgba(25, 42, 58, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--mini-navy);
  font-weight: 800;
}

.mockup-text-tools input[type="color"] {
  height: 42px;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(25, 42, 58, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.order-summary-card,
.order-image-card {
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.08);
}

.order-image-card h3 {
  margin-bottom: 12px;
  font-weight: 900;
}

.order-image-card img {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8faf9;
}

.admin-order-card {
  display: grid;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(25, 42, 58, 0.08);
  border-radius: 8px;
  padding: 14px;
}

.admin-order-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-order-actions button {
  width: 100%;
}

.admin-new-arrival-row,
.admin-pick-product {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(25, 42, 58, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-new-arrival-row {
  grid-template-columns: 76px 1fr auto;
}

.admin-new-arrival-row img,
.admin-pick-product img {
  width: 76px;
  height: 88px;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f5f0;
}

.admin-pick-product {
  width: 100%;
  text-align: right;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.admin-pick-product:hover {
  transform: translateY(-1px);
}

.admin-pick-product-active {
  border-color: var(--mini-red);
  background: rgba(223, 64, 36, 0.06);
}

.admin-pick-product small {
  display: block;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.insight-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.insight-stat-card {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(32, 33, 36, 0.08);
}

.insight-stat-card span {
  color: rgba(0, 0, 0, 0.56);
  font-size: 13px;
  font-weight: 900;
}

.insight-stat-card strong {
  color: var(--mini-navy);
  font-size: 24px;
  font-weight: 900;
  word-break: break-word;
}

.insight-chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(25, 42, 58, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: right;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.insight-chart-row:hover,
.insight-chart-row-active {
  border-color: rgba(223, 64, 36, 0.32);
  background: #fffaf7;
  transform: translateY(-1px);
}

.insight-chart-label {
  color: var(--mini-navy);
  font-size: 13px;
  font-weight: 900;
}

.insight-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 42, 58, 0.08);
}

.insight-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mini-navy), var(--mini-red));
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  width: min(520px, calc(100vw - 32px));
  gap: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: 0 24px 70px rgba(25, 42, 58, 0.18);
  border: 1px solid rgba(25, 42, 58, 0.08);
}

.cookie-banner h3 {
  margin: 0;
  font-weight: 900;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.8;
  font-size: 14px;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes best-seller-fade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
}

@keyframes hero-image-fit {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-copy-soft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes arrival-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.focus-ring:focus {
  outline: 3px solid rgba(22, 133, 122, 0.25);
  outline-offset: 2px;
}

.menu-popover {
  transform-origin: top left;
}

.site-content {
  min-height: 100vh;
  transition: transform 300ms ease;
  will-change: transform;
}

.site-content-shifted {
  transform: translateX(min(84vw, 380px));
}

.mobile-drawer-panel {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 640px) {
  .soft-shadow {
    box-shadow: 0 12px 32px rgba(32, 33, 36, 0.07);
  }

  .brand-logo-button {
    width: 116px;
  }

  .brand-logo {
    height: 72px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  .insight-chart-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .new-arrivals-track {
    grid-auto-columns: minmax(920px, 92%);
  }

  .new-arrivals-track-single {
    grid-auto-columns: initial;
  }

  .new-arrival-card {
    min-height: 640px;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }

  .new-arrival-media {
    min-height: 560px;
  }

  .new-arrival-case-frame {
    width: min(40vw, 520px);
  }

  .new-arrival-photo-frame {
    min-height: 520px;
  }

  .mockup-canvas {
    width: min(68%, 260px);
  }

  .admin-order-card {
    grid-template-columns: 1fr 180px minmax(360px, 1.25fr);
  }

  .admin-order-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* MiniStore second-level case category menu */
.case-subcategory-menu {
  position: relative;
  z-index: 25;
}


/* MiniStore: clickable horizontal second-level case categories */
.filter-panel,
.case-subcategory-panel {
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.category-chip-row,
.case-subcategory-row {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  padding: 2px 0 10px;
  pointer-events: auto;
}

.category-chip,
.case-subcategory-chip {
  position: relative;
  z-index: 70;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid rgba(25, 42, 58, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--mini-navy);
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-chip-active,
.case-subcategory-chip-active {
  background: var(--mini-navy);
  color: #fff;
}

.case-subcategory-panel {
  isolation: isolate;
}

.case-subcategory-panel + * {
  position: relative;
  z-index: 1;
}


/* MiniStore: cleaner product classification badges */
.product-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.4;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  border-radius: 8px;
  background: rgba(25, 42, 58, 0.06);
  color: rgba(25, 42, 58, 0.72);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.product-badge-main {
  background: #f1f6f4;
  color: var(--mini-navy);
}

.product-badge-highlight {
  background: #fff4c7;
  color: var(--mini-navy);
}

@media (max-width: 640px) {
  .product-badge-list {
    gap: 5px;
  }

  .product-badge {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 10px;
  }
}


/* MiniStore: show category buttons in multiple rows, no horizontal scroll */
.category-chip-row,
.case-subcategory-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding: 2px 0 8px;
  scrollbar-width: none;
  touch-action: auto;
}

.category-chip-row::-webkit-scrollbar,
.case-subcategory-row::-webkit-scrollbar {
  display: none;
}

.category-chip,
.case-subcategory-chip {
  flex: 0 1 auto;
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .category-chip-row,
  .case-subcategory-row {
    flex-wrap: wrap !important;
    overflow: visible !important;
    overflow-x: visible !important;
    padding-bottom: 8px;
  }

  .category-chip,
  .case-subcategory-chip {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 14px;
  }
}


/* MiniStore: UV category card */
.category-panel-disabled {
  cursor: not-allowed;
  opacity: 0.96;
}

.category-panel-disabled:hover {
  transform: none;
}

.category-coming-badge {
  background: #efe7ff;
  color: #6d28d9;
}

.category-uv-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  color: #fff;
}

.category-uv-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}


/* MiniStore: show UV uploaded logo clearly */
.category-uv-icon {
  background: #8b3ff2;
  overflow: hidden;
}

.category-uv-logo {
  width: 52px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: none !important;
}


/* MiniStore: cleaned UV logo icon */
.category-uv-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  overflow: hidden;
}

.category-uv-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: none !important;
}


/* MiniStore: make UV icon match the other category icons */
.category-uv-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  overflow: hidden;
}

.category-uv-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
  display: block;
  filter: none !important;
}


/* MiniStore: enlarge UV logo to match sibling category icons */
.category-uv-icon {
  width: 60px;
  height: 60px;
  padding: 0;
}

.category-uv-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: none !important;
}


/* MiniStore: normalize home category cards layout and icon sizing */
.category-panel {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  height: 100%;
}

.category-panel-head {
  min-height: 72px;
}

.category-panel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.category-panel-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.category-panel-text {
  min-height: 88px;
}

.category-panel-action {
  min-height: 28px;
}

.category-featured-icon,
.category-standard-icon,
.category-uv-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.category-featured-icon {
  background: var(--mini-red);
  color: #fff;
}

.category-standard-icon {
  background: #f1f6f4;
  color: var(--mini-navy);
}

.category-standard-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.3;
}

.category-uv-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  overflow: hidden;
}

.category-uv-logo {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.category-coming-badge {
  align-self: flex-start;
  background: #efe7ff;
  color: #6d28d9;
}

.mini-fire-icon-card {
  width: 34px;
  height: 42px;
}

@media (max-width: 767px) {
  .category-panel {
    min-height: 300px;
  }

  .category-panel-head {
    min-height: 64px;
  }

  .category-panel-title {
    min-height: auto;
  }

  .category-panel-text {
    min-height: auto;
  }

  .category-featured-icon,
  .category-standard-icon,
  .category-uv-icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .category-standard-icon svg,
  .category-uv-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .mini-fire-icon-card {
    width: 30px;
    height: 38px;
  }
}


/* MiniStore: align category cards + make UV icon match the others */
.category-panel {
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-panel-head {
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.category-panel-badge-slot {
  min-width: 96px;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: flex-start;
}

.category-badge-placeholder {
  visibility: hidden;
  display: inline-flex;
  min-width: 72px;
  min-height: 28px;
}

.category-panel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.category-panel-title {
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  line-height: 1.35;
}

.category-panel-text {
  min-height: 96px;
  line-height: 1.85;
}

.category-panel-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.category-featured-icon,
.category-standard-icon,
.category-uv-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.category-standard-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.3;
}

.category-uv-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  overflow: hidden;
}

.category-uv-logo {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.category-coming-badge {
  align-self: flex-start;
  background: #efe7ff;
  color: #6d28d9;
}

@media (max-width: 767px) {
  .category-panel {
    min-height: 300px;
  }

  .category-panel-head {
    min-height: 76px;
  }

  .category-panel-badge-slot {
    min-width: 82px;
  }

  .category-panel-title,
  .category-panel-text {
    min-height: auto;
  }

  .category-featured-icon,
  .category-standard-icon,
  .category-uv-icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .category-standard-icon svg {
    width: 36px;
    height: 36px;
  }

  .category-uv-logo {
    width: 46px !important;
    height: 46px !important;
  }
}


/* MiniStore: custom icon for design-order hero */
.design-order-hero-icon {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}


/* MiniStore: visible custom case hero icon */
.design-order-hero-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 1;
  filter: none !important;
}


/* MiniStore: align product cards regardless of image size */
.product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.product-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
}

.product-card .case-image-frame,
.product-card .image-cover:not(.case-image-shell) {
  width: 100%;
  height: 270px;
  min-height: 270px;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
}

.product-card .case-image-shell {
  overflow: hidden;
}

.product-card .case-image-shell img {
  max-width: 100%;
  max-height: 100%;
  transform: scale(1.48);
}

.product-card:hover .case-image-shell img {
  transform: scale(1.54);
}

.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card-title-row {
  min-height: 66px;
}

.product-card-title {
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-badges {
  align-content: flex-start;
  min-height: 62px;
}

.product-card-description {
  min-height: 48px;
}

.product-card-actions {
  margin-top: auto;
}

@media (max-width: 640px) {
  .product-card-media {
    min-height: 240px;
  }

  .product-card .case-image-frame,
  .product-card .image-cover:not(.case-image-shell) {
    height: 240px;
    min-height: 240px;
  }

  .product-card-title-row,
  .product-card-title,
  .product-card-badges,
  .product-card-description {
    min-height: auto;
  }
}


/* MiniStore: UV icon user-cropped final */
.category-uv-icon {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.category-uv-logo {
  width: 70px !important;
  height: auto !important;
  max-width: 70px !important;
  max-height: 68px !important;
  object-fit: contain;
  display: block;
  filter: none !important;
  transform: none !important;
}

@media (max-width: 767px) {
  .category-uv-icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .category-uv-logo {
    width: 62px !important;
    max-width: 62px !important;
    max-height: 60px !important;
  }
}


/* MiniStore: keep filters/search under the sticky header */
header.sticky {
  z-index: 120 !important;
}

.filter-panel,
.case-subcategory-panel,
.case-subcategory-menu {
  z-index: 2 !important;
}

.category-chip-row,
.case-subcategory-row {
  z-index: 3 !important;
}

.category-chip,
.case-subcategory-chip {
  z-index: 4 !important;
}
