/* =====================================================
   Xumia Homepage – Professional Frontend Styles v1.1
   ===================================================== */

:root {
  --xhp-orange: #ff5500;
  --xhp-orange-dark: #e64a00;
  --xhp-orange-light: #fff3eb;
  --xhp-red: #ff2d2d;
  --xhp-text: #1a1a1a;
  --xhp-muted: #6b7280;
  --xhp-border: #e5e7eb;
  --xhp-bg: #f8f9fb;
  --xhp-card-bg: #ffffff;
  --xhp-radius: 12px;
  --xhp-shadow: 0 4px 18px rgba(0,0,0,.06);
  --xhp-shadow-hover: 0 10px 28px rgba(0,0,0,.1);
  --xhp-transition: .25s cubic-bezier(.4,0,.2,1);
}

.xumia-homepage {
  font-family: inherit;
  color: var(--xhp-text);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
  line-height: 1.5;
}

/* ---------- Search ---------- */
.xhp-searchbar {
  margin: 20px 0 24px;
  position: relative;
  z-index: 50;
}

.xhp-search-form {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.xhp-search-inner {
  display: flex;
  align-items: center;
  background: var(--xhp-card-bg);
  border: 1px solid var(--xhp-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--xhp-shadow);
  transition: border-color var(--xhp-transition), box-shadow var(--xhp-transition);
}

.xhp-search-inner:focus-within {
  border-color: var(--xhp-orange);
  box-shadow: 0 0 0 3px rgba(245,130,32,.15);
}

.xhp-search-icon {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--xhp-muted);
}

.xhp-search-input {
  flex: 1;
  border: 0;
  padding: 15px 14px;
  font-size: 15px;
  outline: none;
  min-width: 0;
  background: transparent;
  color: var(--xhp-text);
}

.xhp-search-input::placeholder {
  color: #9ca3af;
}

.xhp-search-btn {
  border: 0;
  background: var(--xhp-orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 0 26px;
  height: 100%;
  min-height: 50px;
  cursor: pointer;
  transition: background var(--xhp-transition);
  white-space: nowrap;
}

.xhp-search-btn:hover {
  background: var(--xhp-orange-dark);
}

/* Live search results dropdown */
.xhp-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--xhp-card-bg);
  border: 1px solid var(--xhp-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
}

.xhp-search-results[hidden] {
  display: none !important;
}

.xhp-sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--xhp-text);
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}

.xhp-sr-item:last-child {
  border-bottom: 0;
}

.xhp-sr-item:hover {
  background: var(--xhp-orange-light);
}

.xhp-sr-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
  flex-shrink: 0;
}

.xhp-sr-info {
  flex: 1;
  min-width: 0;
}

.xhp-sr-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xhp-sr-price {
  font-size: 13px;
  color: var(--xhp-orange);
  font-weight: 700;
  margin-top: 2px;
}

.xhp-sr-price del {
  color: var(--xhp-muted);
  font-weight: 400;
  margin-right: 4px;
}

.xhp-sr-empty {
  padding: 20px;
  text-align: center;
  color: var(--xhp-muted);
  font-size: 14px;
}

/* ---------- Hero ---------- */
.xhp-hero {
  height: var(--xhp-hero-height, 420px);
  min-height: 280px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 36px;
}

.xhp-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  text-decoration: none;
  color: #fff;
}

.xhp-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.xhp-overlay {
  display: none;
}

.xhp-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 40px 8%;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.xhp-kicker {
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 800;
  opacity: .9;
}

.xhp-hero-copy h1 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  margin: 10px 0 12px;
  font-weight: 800;
}

.xhp-hero-copy p {
  font-size: 16px;
  max-width: 460px;
  opacity: .95;
  margin: 0 0 18px;
}

.xhp-hero-btn {
  display: inline-block;
  background: var(--xhp-orange);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  text-shadow: none;
  transition: background var(--xhp-transition), transform var(--xhp-transition);
}

.xhp-slide:hover .xhp-hero-btn {
  background: var(--xhp-orange-dark);
  transform: translateY(-1px);
}

.xhp-prev,
.xhp-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--xhp-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background var(--xhp-transition), transform var(--xhp-transition);
}

.xhp-prev:hover,
.xhp-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.xhp-prev { left: 16px; }
.xhp-next { right: 16px; }

.xhp-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}

.xhp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  margin: 0 4px;
  cursor: pointer;
  transition: all .3s;
}

.xhp-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 5px;
}

/* ---------- Section headers ---------- */
.xhp-section,
.xhp-cats {
  margin: 40px 0;
}


.xhp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.xhp-section-head h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
}

.xhp-section-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xhp-carousel-prev,
.xhp-carousel-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--xhp-border);
  background: var(--xhp-card-bg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--xhp-text);
  transition: all var(--xhp-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.xhp-carousel-prev:hover,
.xhp-carousel-next:hover {
  border-color: var(--xhp-orange);
  color: var(--xhp-orange);
  background: var(--xhp-orange-light);
}

.xhp-see-all {
  color: var(--xhp-orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-left: 6px;
  white-space: nowrap;
}

.xhp-see-all span {
  font-size: 16px;
}

/* ---------- Categories ---------- */
.xhp-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.xhp-cat {
  background: var(--xhp-card-bg);
  border: 1px solid var(--xhp-border);
  border-radius: var(--xhp-radius);
  padding: 14px 10px;
  text-decoration: none;
  color: var(--xhp-text);
  text-align: center;
  transition: transform var(--xhp-transition), box-shadow var(--xhp-transition), border-color var(--xhp-transition);
}

.xhp-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--xhp-shadow-hover);
  border-color: transparent;
}

.xhp-cat-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #f3f4f6 center/cover no-repeat;
  margin-bottom: 10px;
}

.xhp-cat strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}



/* ---------- Ratings (more prominent) ---------- */
.xhp-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 13px;
  min-height: 18px;
}

.xhp-rating .star-rating {
  font-size: 13px !important;
  height: 1.1em;
  width: 5.5em;
  letter-spacing: 0.05em;
}

.xhp-rating .star-rating span::before,
.xhp-rating .star-rating::before {
  color: #fbbf24;
}

.xhp-rating-count {
  color: var(--xhp-muted);
  font-size: 12px;
  font-weight: 500;
}

.xhp-rating-empty {
  color: #d1d5db;
  font-size: 12px;
}

/* ---------- Flash Sale / Deal of the Day ---------- */
.xhp-flash {
  margin: 36px 0;
  background: linear-gradient(135deg, #ff5500 0%, #ff2d2d 100%);
  border-radius: 16px;
  padding: 20px 20px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.xhp-flash::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}

.xhp-flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.xhp-flash-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xhp-flash-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.xhp-flash-badge {
  background: #fff;
  color: #ff2d2d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.xhp-flash-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.xhp-flash-timer span {
  background: rgba(0,0,0,.25);
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.xhp-flash .xhp-carousel-wrap {
  position: relative;
  z-index: 1;
}

/* flash cards inherit unified .xhp-card styles */

.xhp-flash .xhp-section-nav .xhp-carousel-prev,
.xhp-flash .xhp-section-nav .xhp-carousel-next {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.xhp-flash .xhp-section-nav .xhp-carousel-prev:hover,
.xhp-flash .xhp-section-nav .xhp-carousel-next:hover {
  background: #fff;
  color: #ff5500;
  border-color: #fff;
}

.xhp-flash .xhp-see-all {
  color: #fff;
}

.xhp-flash .xhp-see-all:hover {
  opacity: .85;
}

.xhp-flash-sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff2d2d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}



/* ---------- Orange panel (same as Flash Sale) for ALL product sections ---------- */
.xhp-panel {
  margin: 36px 0 !important;
  background: linear-gradient(135deg, #ff5500 0%, #ff2d2d 100%) !important;
  border-radius: 16px !important;
  padding: 20px 20px 24px !important;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.xhp-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}

.xhp-panel .xhp-panel-head,
.xhp-panel .xhp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.xhp-panel .xhp-panel-title h2,
.xhp-panel .xhp-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -.02em;
}

.xhp-panel .xhp-see-all {
  color: #fff !important;
}

.xhp-panel .xhp-see-all:hover {
  opacity: .85;
}

.xhp-panel .xhp-carousel-prev,
.xhp-panel .xhp-carousel-next {
  background: rgba(255,255,255,.2) !important;
  border-color: rgba(255,255,255,.35) !important;
  color: #fff !important;
}

.xhp-panel .xhp-carousel-prev:hover,
.xhp-panel .xhp-carousel-next:hover {
  background: #fff !important;
  color: #ff5500 !important;
  border-color: #fff !important;
}

.xhp-panel .xhp-carousel-wrap {
  position: relative;
  z-index: 1;
  background: transparent !important;
  padding: 0 !important;
}

.xhp-panel .xhp-card {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.1) !important;
}

@media (max-width: 700px) {
  .xhp-panel {
    margin: 24px 0 !important;
    padding: 16px 12px 18px !important;
    border-radius: 12px !important;
  }
  .xhp-panel .xhp-panel-title h2,
  .xhp-panel .xhp-section-head h2 {
    font-size: 17px !important;
  }
}



/* Up to X% Off badge on section titles */
.xhp-panel-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.xhp-flash-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.xhp-upto {
  display: inline-block;
  background: #ff2d2d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.xhp-upto-light {
  background: rgba(255,255,255,.95);
  color: #c41e00;
}

.xhp-panel-light .xhp-upto {
  background: #c41e00;
  color: #fff;
}

/* HOT badge + animated fire */
.xhp-flash-badge {
  background: #fff !important;
  color: #ff2d2d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.xhp-fire {
  display: inline-block;
  animation: xhp-fire-bounce 0.7s ease-in-out infinite alternate;
  transform-origin: center bottom;
  font-size: 14px;
  line-height: 1;
}

@keyframes xhp-fire-bounce {
  0%   { transform: scale(1) translateY(0) rotate(-6deg); }
  50%  { transform: scale(1.2) translateY(-2px) rotate(6deg); }
  100% { transform: scale(1.05) translateY(-1px) rotate(-3deg); }
}

/* Dark orange = Flash Sale + Deal of the Day */
.xhp-flash,
.xhp-deal-day {
  background: linear-gradient(135deg, #e64a00 0%, #c41e00 100%) !important;
}

/* Light orange = all other product sections */
.xhp-panel-light {
  background: linear-gradient(135deg, #ffb380 0%, #ff9966 100%) !important;
}

.xhp-panel-light .xhp-panel-title h2,
.xhp-panel-light .xhp-section-head h2 {
  color: #1a1a1a !important;
}

.xhp-panel-light .xhp-see-all {
  color: #9a3412 !important;
  font-weight: 700;
}

.xhp-panel-light .xhp-carousel-prev,
.xhp-panel-light .xhp-carousel-next {
  background: rgba(255,255,255,.7) !important;
  border-color: rgba(255,255,255,.9) !important;
  color: #9a3412 !important;
}

.xhp-panel-light .xhp-carousel-prev:hover,
.xhp-panel-light .xhp-carousel-next:hover {
  background: #fff !important;
  color: #ff5500 !important;
  border-color: #fff !important;
}

.xhp-panel-light::before {
  background: rgba(255,255,255,.15) !important;
}

/* ---------- Official Store badge ---------- */
.xhp-official {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .02em;
}

/* ---------- Stock indicator ---------- */
.xhp-stock {
  font-size: 12px;
  font-weight: 600;
  color: #ff2d2d;
  margin-bottom: 4px;
}

.xhp-stock-ok {
  color: #16a34a;
}

/* ---------- Promo banner row ---------- */
.xhp-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.xhp-promo-tile {
  display: block;
  aspect-ratio: 16/7;
  border-radius: 12px;
  background: #f3f4f6 center/cover no-repeat;
  transition: transform var(--xhp-transition), box-shadow var(--xhp-transition);
  overflow: hidden;
}

.xhp-promo-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--xhp-shadow-hover);
}

@media (max-width: 700px) {
  .xhp-promo-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0;
  }
  .xhp-promo-tile {
    aspect-ratio: 16/6;
    border-radius: 10px;
  }
  .xhp-official {
    font-size: 9px;
    padding: 2px 5px;
  }
  .xhp-stock {
    font-size: 11px;
  }
}

/* ---------- Brands ---------- */
.xhp-brands {
  margin: 40px 0;
}

.xhp-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.xhp-brand {
  background: var(--xhp-card-bg);
  border: 1px solid var(--xhp-border);
  border-radius: var(--xhp-radius);
  padding: 16px 12px;
  text-decoration: none;
  color: var(--xhp-text);
  text-align: center;
  transition: transform var(--xhp-transition), box-shadow var(--xhp-transition), border-color var(--xhp-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.xhp-brand:hover {
  transform: translateY(-3px);
  box-shadow: var(--xhp-shadow-hover);
  border-color: transparent;
}

.xhp-brand-img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f3f4f6 center/contain no-repeat;
  border: 1px solid #f0f0f0;
}

.xhp-brand strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .xhp-brand-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .xhp-brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .xhp-brands {
    margin: 28px 0;
  }
  .xhp-brand-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .xhp-brand-grid::-webkit-scrollbar {
    display: none;
  }
  .xhp-brand {
    min-width: 110px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 12px 10px;
  }
  .xhp-brand-img {
    width: 56px;
    height: 56px;
  }
}

/* ---------- Product Carousel ---------- */
.xhp-carousel-wrap {
  overflow: hidden;
  position: relative;
}

.xhp-products.xhp-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.xhp-products.xhp-carousel::-webkit-scrollbar {
  display: none;
}

/* Unified product card — same look in every section (including Flash Sale) */
.xumia-homepage .xhp-card,
.xhp-flash .xhp-card,
.xhp-section .xhp-card {
  flex: 0 0 calc((100% - 64px) / 5) !important;
  min-width: 0 !important;
  scroll-snap-align: start;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}

.xumia-homepage .xhp-card:hover,
.xhp-flash .xhp-card:hover,
.xhp-section .xhp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.xhp-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f9fafb;
  overflow: hidden;
}

.xhp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.xhp-card:hover .xhp-img img {
  transform: scale(1.05);
}

.xhp-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  z-index: 2;
}

.xhp-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.xhp-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--xhp-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  min-height: 38px;
  margin-bottom: 6px;
}

.xhp-name:hover {
  color: var(--xhp-orange);
}

.xhp-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 12px;
}

.xhp-rating .star-rating {
  font-size: 12px;
  height: 1em;
  width: 5.2em;
}

.xhp-rating-count {
  color: var(--xhp-muted);
  font-size: 11px;
}

.xhp-price {
  margin: 4px 0 12px;
  font-weight: 800;
  font-size: 15px;
  color: var(--xhp-text);
}

.xhp-price del {
  opacity: .5;
  font-size: 12px;
  font-weight: 500;
  margin-right: 5px;
}

.xhp-price ins {
  text-decoration: none;
  color: var(--xhp-orange);
}

/* Add to cart button */
.xhp-actions {
  margin-top: auto;
}

.xumia-homepage .xhp-actions .button,
.xumia-homepage .xhp-cart,
.xhp-flash .xhp-cart,
.xhp-section .xhp-cart {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  border-radius: 8px !important;
  padding: 11px 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  background: #ff5500 !important;
  color: #fff !important;
  border: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  line-height: 1.2 !important;
  min-height: 40px;
  box-shadow: none !important;
}

.xhp-cart:hover {
  background: var(--xhp-orange-dark);
  transform: translateY(-1px);
}

.xhp-cart.loading {
  opacity: .7;
  pointer-events: none;
}

.xhp-cart.added {
  background: #16a34a;
}

/* ---------- Trust Features ---------- */
.xhp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--xhp-border);
  border: 1px solid var(--xhp-border);
  border-radius: var(--xhp-radius);
  overflow: hidden;
  margin-top: 48px;
}

.xhp-feature {
  background: var(--xhp-card-bg);
  padding: 24px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.xhp-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--xhp-orange-light);
  color: var(--xhp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.xhp-feature b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.xhp-feature span {
  font-size: 12px;
  color: var(--xhp-muted);
}

/* ---------- Notice ---------- */
.xhp-notice {
  padding: 20px;
  background: var(--xhp-orange-light);
  border: 1px solid var(--xhp-orange);
  border-radius: 10px;
  text-align: center;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1200px) {
  .xhp-card {
    flex: 0 0 calc((100% - 48px) / 4);
  }
  .xhp-cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  .xhp-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
  .xhp-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .xhp-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .xumia-homepage {
    padding: 0 12px 32px;
  }

  .xhp-searchbar {
    margin: 12px 0 16px;
  }

  .xhp-search-btn {
    padding: 0 16px;
    font-size: 13px;
  }

  .xhp-hero {
    height: 280px;
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .xhp-hero-copy {
    padding: 24px 50px 24px 22px;
  }

  .xhp-hero-copy h1 {
    font-size: 26px;
  }

  .xhp-hero-copy p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .xhp-hero-btn {
    padding: 11px 20px;
    font-size: 14px;
  }

  .xhp-prev,
  .xhp-next {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .xhp-section,
  .xhp-cats {
    margin: 28px 0;
  }

  .xhp-section-head h2 {
    font-size: 18px;
  }

  .xumia-homepage .xhp-card,
  .xhp-flash .xhp-card,
  .xhp-section .xhp-card,
  .xhp-black-dec .xhp-card,
  .xhp-card {
    flex: 0 0 min(46%, 168px) !important;
    min-width: 148px !important;
    max-width: 180px !important;
  }

  .xhp-products.xhp-carousel {
    gap: 10px !important;
  }

  .xhp-cat-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .xhp-cat-grid::-webkit-scrollbar {
    display: none;
  }

  .xhp-cat {
    min-width: 100px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 8px;
  }

  .xhp-cat-img {
    margin-bottom: 8px;
  }

  .xhp-card-body {
    padding: 8px 10px 10px !important;
  }

  .xhp-name {
    font-size: 12px !important;
    min-height: 32px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
    word-break: break-word;
  }

  .xhp-price {
    font-size: 13px !important;
    flex-wrap: wrap;
  }
  .xhp-price del {
    font-size: 11px !important;
  }

  .xhp-stock-left {
    font-size: 11px !important;
    white-space: nowrap;
  }

  .xhp-rating,
  .xhp-rating-count,
  .xhp-rating-empty {
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .xhp-actions .button,
  .xhp-cart {
    font-size: 11px !important;
    padding: 9px 6px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .xhp-cart-text {
    display: inline !important;
  }

  .xhp-features {
    margin-top: 32px;
  }

  .xhp-feature {
    padding: 18px 14px;
  }
}


@media (max-width: 700px) {
  .xhp-flash {
    margin: 24px 0;
    padding: 16px 12px 18px;
    border-radius: 12px;
  }
  .xhp-flash-title h2 {
    font-size: 17px;
  }
  .xhp-flash-timer {
    font-size: 12px;
    width: 100%;
    justify-content: flex-start;
  }
  .xhp-flash-timer span {
    padding: 5px 8px;
    min-width: 36px;
  }
  .xhp-rating {
    margin-bottom: 6px;
  }
  .xhp-rating .star-rating {
    font-size: 12px !important;
  }
  .xhp-card {
    flex: 0 0 calc((100% - 10px) / 2);
  }
  .xhp-products.xhp-carousel {
    gap: 10px;
  }
  .xhp-name {
    font-size: 12.5px;
    min-height: 32px;
    -webkit-line-clamp: 2;
  }
  .xhp-price {
    font-size: 13.5px;
    margin: 2px 0 10px;
  }
  .xhp-actions .button,
  .xhp-cart {
    font-size: 12px;
    padding: 9px 4px;
    border-radius: 8px;
  }
  .xhp-search-inner {
    border-radius: 12px;
  }
  .xhp-search-input {
    padding: 13px 10px;
    font-size: 14px;
  }
  .xhp-search-btn {
    min-height: 46px;
    padding: 0 14px;
  }
  .xhp-hero {
    height: 260px;
    border-radius: 12px;
  }
  .xhp-section-head {
    margin-bottom: 12px;
  }
  .xhp-section-head h2 {
    font-size: 17px;
  }
  .xhp-carousel-prev,
  .xhp-carousel-next {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .xhp-card {
    flex: 0 0 72%;
  }
}


/* Hero image-only mode */
.xhp-hero .xhp-prev,
.xhp-hero .xhp-next,
.xhp-hero .xhp-dots,
.xhp-hero .xhp-hero-copy,
.xhp-hero .xhp-overlay {
  display: none !important;
}

/* ---------- Quick service tiles ---------- */
.xhp-quick-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}

.xhp-qtile {
  background: #fff;
  border: 1px solid var(--xhp-border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--xhp-text);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.xhp-qtile:hover {
  transform: translateY(-3px);
  box-shadow: var(--xhp-shadow-hover);
}

.xhp-qtile-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.xhp-qtile strong {
  font-size: 13px;
  font-weight: 700;
}

.xhp-qtile small {
  font-size: 11px;
  color: var(--xhp-muted);
}

/* ---------- Essentials grid ---------- */
.xhp-essentials {
  margin: 28px 0 36px;
  background: #fff8f3;
  border-radius: 16px;
  padding: 20px 16px 24px;
}

.xhp-essentials-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #c2410c;
  margin: 0 0 18px;
}

.xhp-essentials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.xhp-ess-item {
  text-align: center;
  text-decoration: none;
  color: var(--xhp-text);
}

.xhp-ess-img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fff center/cover no-repeat;
  border: 2px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.xhp-ess-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .xhp-quick-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .xhp-essentials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .xhp-quick-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .xhp-qtile {
    padding: 12px 8px;
  }
  .xhp-essentials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .xhp-ess-img {
    width: 56px;
    height: 56px;
  }
  .xhp-essentials-title {
    font-size: 16px;
  }
}


/* ---------- Black December ---------- */
.xhp-black-dec {
  margin: 28px 0;
  padding: 20px 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #2d1f00 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.xhp-black-dec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,85,0,.25), transparent 55%);
  pointer-events: none;
}
.xhp-black-dec .xhp-flash-head,
.xhp-black-dec .xhp-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.xhp-black-dec-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.xhp-black-dec-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}
.xhp-bd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #111;
  border: 1px solid #ff5500;
  color: #ff5500;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.xhp-black-dec .xhp-upto {
  background: #ff5500;
  color: #fff;
}
.xhp-black-dec .xhp-flash-timer,
.xhp-black-dec .xhp-bd-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.xhp-black-dec .xhp-bd-timer span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,85,0,.4);
  padding: 6px 8px;
  border-radius: 8px;
  min-width: 40px;
  text-align: center;
}
.xhp-black-dec .xhp-see-all { color: #ffb380; }
.xhp-black-dec .xhp-carousel-prev,
.xhp-black-dec .xhp-carousel-next {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
}
.xhp-bd-live-tag {
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.xhp-bd-msg {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin: 0 0 12px;
}

@media (max-width: 700px) {
  .xhp-black-dec {
    padding: 16px 12px 18px;
    border-radius: 12px;
  }
  .xhp-black-dec-title h2 { font-size: 17px; }
  .xumia-homepage .xhp-card,
  .xhp-flash .xhp-card,
  .xhp-section .xhp-card,
  .xhp-black-dec .xhp-card {
    flex: 0 0 152px !important;
    min-width: 152px !important;
    max-width: 168px !important;
  }
  .xhp-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
  .xhp-section-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .xhp-section-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .xumia-homepage .xhp-card,
  .xhp-flash .xhp-card,
  .xhp-section .xhp-card,
  .xhp-black-dec .xhp-card {
    flex: 0 0 140px !important;
    min-width: 140px !important;
  }
}


/* v2.3.0 — hide leftover search + tighter mobile */
.xumia-homepage .xhp-searchbar { display: none !important; }

@media (max-width: 640px) {
  .xumia-homepage {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .xhp-section-head h2,
  .xhp-sec-title,
  .xumia-homepage .xhp-section h2 {
    font-size: 16px !important;
  }
  .xhp-products,
  .xhp-carousel,
  .xhp-product-row {
    gap: 8px !important;
  }
  .xhp-product-card,
  .xhp-card {
    min-width: 140px !important;
  }
  .xhp-hero {
    border-radius: 12px !important;
    min-height: 140px !important;
  }
}





/* ========== Xumia Shop shortcode v2.6.1 ========== */
.xhp-shop{max-width:1200px;margin:0 auto;padding:10px 10px 36px;box-sizing:border-box;width:100%}
.xhp-shop *{box-sizing:border-box}
.xhp-shop-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px;flex-wrap:wrap}
.xhp-shop-title{margin:0;font-size:1.25rem;font-weight:800;color:#1a1a1a}
.xhp-shop-count{margin:0;font-size:12px;color:#6b7280}
.xhp-shop-toolbar{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.xhp-shop-search{display:flex;width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.xhp-shop-search input{flex:1;border:0;padding:12px 12px;font-size:15px;outline:none;min-width:0;background:#fff}
.xhp-shop-btn{appearance:none;border:0;background:#ff5500;color:#fff;font-weight:800;padding:0 14px;cursor:pointer;white-space:nowrap}
.xhp-shop-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.xhp-shop-filters select{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px;background:#fff;font-size:13px;font-weight:600;color:#374151}
.xhp-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.xhp-shop-card{background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.xhp-shop-card .xhp-img{display:block;position:relative;aspect-ratio:1/1;background:#f9fafb;overflow:hidden}
.xhp-shop-card .xhp-img img{width:100%;height:100%;object-fit:cover;display:block}
.xhp-shop-card .xhp-card-body{padding:8px 8px 10px;display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.xhp-shop-card .xhp-name{font-size:12px;line-height:1.3;color:#1a1a1a;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em;word-break:break-word}
.xhp-shop-card .xhp-price{font-size:13px;font-weight:800;color:#1a1a1a}
.xhp-shop-card .xhp-price del{font-size:11px;color:#9ca3af;font-weight:500;margin-right:3px}
.xhp-shop-card .xhp-price ins{text-decoration:none;color:#ff5500}
.xhp-shop-cart,.xhp-shop-card button.xhp-shop-cart{
  margin-top:auto;display:block;width:100%;text-align:center;background:#fff3eb;color:#ff5500;
  font-weight:800;font-size:11px;padding:8px 6px;border-radius:8px;text-decoration:none;border:0;cursor:pointer;
  appearance:none;font-family:inherit;
}
.xhp-shop-cart:hover,.xhp-shop-card button.xhp-shop-cart:hover{background:#ff5500;color:#fff}
.xhp-shop-cart.loading{opacity:.6;pointer-events:none}
.xhp-shop-cart.added{background:#dcfce7;color:#166534}
.xhp-shop-empty{background:#fff;border:1px dashed #e5e7eb;border-radius:12px;padding:24px 14px;text-align:center;color:#6b7280}
.xhp-shop-pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:18px}
.xhp-shop-pager a{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#374151;text-decoration:none;font-weight:700;font-size:12px;padding:0 8px}
.xhp-shop-pager a.is-active{background:#ff5500;border-color:#ff5500;color:#fff}
@media(min-width:600px){
  .xhp-shop{padding:14px 14px 40px}
  .xhp-shop-toolbar{flex-direction:row;align-items:center;flex-wrap:wrap}
  .xhp-shop-search{flex:1;min-width:220px}
  .xhp-shop-filters{display:flex;width:auto}
  .xhp-shop-filters select{width:auto;min-width:140px}
  .xhp-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .xhp-shop-card .xhp-name{font-size:13px}
  .xhp-shop-card .xhp-price{font-size:14px}
  .xhp-shop-cart{font-size:12px}
}
@media(min-width:900px){
  .xhp-shop-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .xhp-shop-title{font-size:1.4rem}
}
@media(min-width:1200px){
  .xhp-shop-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}


/* XHP_CARD_CLICKABLE */
.xhp-card[data-product-url]{cursor:pointer}
.xhp-card[data-product-url] a.xhp-img,
.xhp-card[data-product-url] a.xhp-name{cursor:pointer}


/* Essentials service tiles */
.xhp-ess-item.xhp-ess-service{
  background:linear-gradient(180deg,#fff8f3 0%,#ffffff 100%);
  border:1px solid #ffe0cc;
}
.xhp-ess-item.xhp-ess-service:hover{
  border-color:#ff8a3d;
  box-shadow:0 8px 22px rgba(255,90,31,.12);
  transform:translateY(-2px);
}
.xhp-ess-icon{
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  font-size:24px;line-height:1;
  background:#fff4ee;
  margin:0 auto 8px;
  box-shadow:0 2px 8px rgba(255,90,31,.08);
}
.xhp-ess-item.xhp-ess-service .xhp-ess-name{
  font-weight:700;
  color:#1c242a;
}
@media (max-width:640px){
  .xhp-ess-icon{width:44px;height:44px;font-size:20px}
}
