@import url("/cv_modules/bootstrap-5.3.2/css/bootstrap.min.css");
@import url('/cv_modules/partials/prtl_header/navbar/css/navbar.css');
@import url('/cv_modules/partials/prtl_footer/css/footer.css');
@import url('/cv_modules/partials/prtl_item/css/item.css');

/* ══════════════════════════════════════════════════════════════════════════════
   Cenvamart Storefront — hom- prefix
   Light theme, Amazon-inspired layout
══════════════════════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eaeded;
}

.hom-main {
  flex: 1;
  overflow-x: hidden;
}

/* ── Shared section layout ─────────────────────────────────────────────────── */
.hom-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
}

.hom-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hom-section-title {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: #0F1111;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.hom-see-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #007185;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.13s ease;
}
.hom-see-all:hover { color: #c7511f; text-decoration: underline; }
.hom-see-all i { font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════════════════
   HERO CAROUSEL
══════════════════════════════════════════════════════════════════════════════ */

.hom-hero {
  position: relative;
  height: clamp(240px, 32vw, 400px);
  overflow: hidden;
  background: #eef2ff;
}

.hom-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hom-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.hom-hero-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hom-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.hom-hero-content {
  flex: 1;
  max-width: 520px;
}

.hom-hero-eyebrow {
  display: inline-block;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(8px, 1.2vw, 12px);
}

.hom-hero-title {
  font-size: clamp(22px, 3.8vw, 42px);
  font-weight: 800;
  color: #0F1111;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(8px, 1.2vw, 14px);
}

.hom-hero-sub {
  font-size: clamp(13px, 1.4vw, 15px);
  color: #565959;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  line-height: 1.55;
}

.hom-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hom-btn {
  display: inline-flex;
  align-items: center;
  padding: clamp(8px, 1.2vw, 11px) clamp(16px, 2.5vw, 24px);
  border-radius: 6px;
  font-size: clamp(13px, 1.3vw, 14px);
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.hom-btn--primary {
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.hom-btn--primary:hover { filter: brightness(0.9); color: #fff; }

.hom-btn--ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  font-weight: 600;
}
.hom-btn--ghost:hover { background: rgba(0,0,0,0.05); }

/* Decorative rings (subtle, no blobs) */
.hom-hero-deco {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  pointer-events: none;
  overflow: hidden;
}

.hom-hero-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.hom-hero-deco-ring--1 {
  width: clamp(200px, 32vw, 420px);
  height: clamp(200px, 32vw, 420px);
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
}

.hom-hero-deco-ring--2 {
  width: clamp(130px, 20vw, 260px);
  height: clamp(130px, 20vw, 260px);
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
}

.hom-hero-deco-dot {
  position: absolute;
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  border-radius: 50%;
  right: 30%;
  top: 15%;
}

/* Arrow controls */
.hom-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 72px;
  background: rgba(255,255,255,0.75);
  border: 1px solid #d5d9d9;
  color: #0F1111;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
  border-radius: 4px;
}
.hom-hero:hover .hom-hero-arrow { opacity: 1; }
.hom-hero-arrow:hover { background: rgba(255,255,255,0.95); }
.hom-hero-arrow--prev { left: 0; border-radius: 0 4px 4px 0; }
.hom-hero-arrow--next { right: 0; border-radius: 4px 0 0 4px; }

/* Dot indicators */
.hom-hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.hom-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hom-hero-dot--active {
  background: #0F1111;
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PROMO TILES — Amazon-style white cards
══════════════════════════════════════════════════════════════════════════════ */

.hom-promo {
  padding: clamp(16px, 2.5vw, 24px) 0;
  background: #eaeded;
}

.hom-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 16px);
}

.hom-promo-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s ease;
}
.hom-promo-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.14); }

.hom-promo-bar {
  height: 5px;
  flex-shrink: 0;
}

.hom-promo-body {
  padding: clamp(14px, 2vw, 20px) clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
}

.hom-promo-title {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  color: #0F1111;
  margin: 0 0 6px;
  line-height: 1.25;
}

.hom-promo-sub {
  font-size: clamp(11px, 1.1vw, 13px);
  color: #565959;
  margin: 0 0 12px;
  line-height: 1.45;
}

.hom-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}
.hom-promo-cta i { font-size: 11px; }

/* ══════════════════════════════════════════════════════════════════════════════
   DEAL STRIPS
══════════════════════════════════════════════════════════════════════════════ */

.hom-strip-section {
  padding: clamp(18px, 2.5vw, 28px) 0;
  background: #fff;
  border-bottom: 1px solid #d5d9d9;
}

.hom-strip-section:nth-child(even) {
  background: #f7f8f8;
}

.hom-strip-outer {
  position: relative;
}

.hom-strip-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 17vw, 200px);
  align-items: stretch;
  gap: clamp(8px, 1.2vw, 12px);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hom-strip-scroll::-webkit-scrollbar { display: none; }

.hom-card-wrap {
  min-width: 0;
}

/* Strip scroll progress bar */
.hom-strip-progress {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.hom-strip-progress-fill {
  height: 100%;
  width: 0%;
  background: #2563eb;
  border-radius: 2px;
  transition: width .15s ease;
}

/* Strip scroll arrows */
.hom-strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d5d9d9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #0F1111;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, box-shadow 0.15s ease;
}
.hom-strip-outer:hover .hom-strip-arrow:not(.hom-strip-arrow--hidden) {
  opacity: 1;
  pointer-events: auto;
}
.hom-strip-arrow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.hom-strip-arrow--left  { left:  -18px; }
.hom-strip-arrow--right { right: -18px; }
.hom-strip-arrow--hidden { opacity: 0 !important; pointer-events: none !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   RECENTLY VIEWED
══════════════════════════════════════════════════════════════════════════════ */

.hom-recent {
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BROWSE BY CATEGORY
══════════════════════════════════════════════════════════════════════════════ */

.hom-catgrid {
  padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px);
  background: #f7f8f9;
  border-bottom: 1px solid #d5d9d9;
}

.hom-catgrid .hom-section-title {
  margin-bottom: 20px;
}

/* Wrapper needs position:relative for the absolute arrows */
.hom-cat-outer {
  position: relative;
}

/* 2-row horizontal grid: items flow column-by-column */
.hom-cat-scroll {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 16px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.hom-cat-scroll::-webkit-scrollbar { display: none; }

.hom-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5d9d9;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hom-cat-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  border-color: #adb1b8;
}

.hom-cat-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eaed;
}

.hom-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.hom-cat-card:hover .hom-cat-img {
  transform: scale(1.05);
}

.hom-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.hom-cat-name {
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 600;
  color: #0F1111;
  text-align: center;
  line-height: 1.3;
  padding: 0 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hom-promo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hom-hero-sub  { display: none; }
  .hom-hero-deco { display: none; }

  .hom-promo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .hom-strip-arrow { display: none; }

  .hom-strip-scroll { grid-auto-columns: clamp(130px, 38vw, 170px); }
}

@media (max-width: 480px) {
  .hom-promo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .hom-hero-arrow { display: none; }

  .hom-strip-scroll { grid-auto-columns: clamp(130px, 42vw, 160px); }
}

@media (prefers-reduced-motion: reduce) {
  .hom-hero-slide  { transition: none; }
  .hom-btn         { transition: none; }
  .hom-promo-card  { transition: none; }
  .hom-cat-card    { transition: none; }
  .hom-cat-img     { transition: none; }
  .hom-strip-arrow { transition: none; }
}
