/* ================================================================
   4RAU — Home Page Styles
   Extracted from home.blade.php inline <style> blocks
   All brand colors via design-system.css variables
================================================================ */

/* ── Hero: 2-column layout (slider left + 2 static images right) ── */
.hero-slider-section {
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.hero-layout {
  display: flex;
  height: 52vh;
  min-height: 300px;
  max-height: 520px;
}

/* ── Cột trái: Swiper chiếm 60% ── */
.hero-main {
  position: relative;
  flex: 0 0 60%;
  width: 60%;
  overflow: hidden;
}

.hero-swiper { width: 100%; height: 100%; }

.hero-swiper .swiper-slide { overflow: hidden; }

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 6s ease;
}

.hero-swiper .swiper-slide-active .hero-slide-img {
  transform: scale(1.04);
}

/* Navigation arrows — positioned inside .hero-main */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #222;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
}

.hero-prev { left: 18px; }
.hero-next { right: 18px; }

.hero-prev:hover,
.hero-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
}

/* Pagination dots — inside .hero-main */
.hero-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  opacity: 1;
  cursor: pointer;
  margin: 0;
  transition: background .25s ease, width .3s ease, border-radius .3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
  width: 26px;
  border-radius: 4px;
}

/* ── Cột phải: 2 ảnh tĩnh xếp dọc chiếm 40% ── */
.hero-side {
  flex: 0 0 40%;
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-side-item {
  flex: 1;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.hero-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}

.hero-side-item:hover .hero-side-img {
  transform: scale(1.05);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hero-layout        { height: 44vh; min-height: 260px; }
  .hero-main          { flex: 0 0 58%; width: 58%; }
  .hero-side          { flex: 0 0 42%; width: 42%; }
}

@media (max-width: 767.98px) {
  .hero-layout        { flex-direction: column; height: auto; min-height: auto; max-height: none; }
  .hero-main          { flex: none; width: 100%; height: 56vw; min-height: 220px; }
  .hero-side          { flex: none; width: 100%; flex-direction: row; height: 30vw; min-height: 130px; gap: 3px; }
  .hero-prev,
  .hero-next          { width: 34px; height: 34px; font-size: 12px; }
  .hero-prev          { left: 10px; }
  .hero-next          { right: 10px; }
}

@media (max-width: 575.98px) {
  .hero-main          { height: 62vw; }
  .hero-side          { height: 34vw; }
  .hero-prev,
  .hero-next          { display: none; }
}

/* ── Collection/service section container padding ──────────── */
.collection .container-fluid { padding-left: 30px; padding-right: 30px; }

/* ── Product slider card (Swiper — latest & bestseller) ──────── */
.new-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cp-border-light);
  border-radius: var(--cp-radius);
  overflow: hidden;
  background: #fff;
  padding: 10px;
  height: 100%;
  transition: box-shadow .22s ease;
}

.new-product-card:hover {
  box-shadow: var(--cp-shadow-card-hover);
}

.new-product-top {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.new-product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}

.new-product-card:hover .new-product-image {
  transform: scale(1.04);
}

.badge-sale,
.badge-soldout {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--cp-sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--cp-radius-pill);
  z-index: 10;
}

.badge-soldout {
  background: #374151;
}

.countdown {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 10;
  white-space: nowrap;
}

.new-product-info {
  margin-top: 10px;
  text-align: center;
}

.new-product-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cp-text-primary);
  line-height: 1.4;
  min-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.new-product-title a {
  color: inherit;
  text-decoration: none;
}

.new-product-title a:hover {
  color: var(--cp-primary);
}

.new-product-price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.new-product-price .old-price {
  text-decoration: line-through;
  font-size: 12px;
  color: var(--cp-text-muted);
}

.new-product-price .current-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-sale);
}

@media (max-width: 768px) {
  .new-product-title { font-size: 12.5px; min-height: auto; }
  .countdown { font-size: 11px; padding: 2px 6px; }
}

/* ── Home card CTA (icon-only add-to-cart + buy-now) ─────────── */
.npc-cta {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.npc-cta .btn-listing-cart,
.npc-cta .btn-buynow {
  flex: 1;
  padding: 8px 6px;
  font-size: 15px;
  border-radius: var(--cp-radius-sm, 8px);
}

@media (max-width: 575.98px) {
  .npc-cta .btn-listing-cart,
  .npc-cta .btn-buynow { font-size: 13px; padding: 7px 4px; }
}


/* ── Home body wrapper (~80% centered) ────────────────────────── */
.home-body {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Banner row (3 images side-by-side above categories) ─────── */
.home-banners-row {
  display: flex;
  gap: 4px;
  padding: 16px 20px 0;
}

.home-banner-item {
  flex: 1;
  overflow: hidden;
  display: block;
  border-radius: var(--cp-radius, 8px);
  line-height: 0;
}

.home-banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}

.home-banner-item:hover .home-banner-img {
  transform: scale(1.04);
}

@media (max-width: 767.98px) {
  .home-banners-row { padding: 10px 12px 0; gap: 3px; }
  .home-banner-img  { height: 120px; }
}

@media (max-width: 575.98px) {
  .home-banners-row { flex-direction: column; gap: 6px; }
  .home-banner-img  { height: 140px; }
}


/* ── Product slider navigation buttons ───────────────────────── */
.product-wrapper {
  position: relative;
}

.product-wrapper .swiper-prev,
.product-wrapper .swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  color: var(--cp-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.product-wrapper .swiper-prev { left: -18px; }
.product-wrapper .swiper-next { right: -18px; }

.product-wrapper .swiper-prev:hover,
.product-wrapper .swiper-next:hover {
  background: var(--cp-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(67,88,70,.35);
}

.product-wrapper .swiper-prev.swiper-button-disabled,
.product-wrapper .swiper-next.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .product-wrapper .swiper-prev,
  .product-wrapper .swiper-next {
    display: none;
  }
}


/* ── Category icons row ───────────────────────────────────────── */
.cat-icons-section { padding: 28px 0; }

.cat-icons-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-icon-prev,
.cat-icon-next {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cp-border-light);
  background: #fff;
  color: var(--cp-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  z-index: 2;
}

.cat-icon-prev:hover,
.cat-icon-next:hover {
  background: var(--cp-primary);
  color: #fff;
  border-color: var(--cp-primary);
}

.cat-icon-swiper { flex: 1; min-width: 0; }

.cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cp-text-primary);
  transition: color .2s;
}

.cat-icon-item:hover { color: var(--cp-primary); }

.cat-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cp-bg-light, #f5f5f5);
  border: 2px solid var(--cp-border-light, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--cp-primary);
  transition: background .22s, border-color .22s, color .22s;
}

.cat-icon-item:hover .cat-icon-circle {
  background: var(--cp-gradient);
  border-color: transparent;
  color: #fff;
}

.cat-icon-label {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .cat-icon-circle { width: 58px; height: 58px; font-size: 20px; }
  .cat-icon-label  { font-size: 11px; }
}


/* ── Trust bar ────────────────────────────────────────────────── */
.trust-bar-section {
  background: var(--cp-bg-light, #f9f9f9);
  border-top: 1px solid var(--cp-border-light, #ebebeb);
  border-bottom: 1px solid var(--cp-border-light, #ebebeb);
  padding: 22px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 32px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--cp-border-light, #ddd);
  flex-shrink: 0;
}

.trust-icon {
  font-size: 28px;
  color: var(--cp-primary);
  flex-shrink: 0;
  width: 42px;
  text-align: center;
}

.trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-text-primary);
  margin: 0 0 3px;
}

.trust-desc {
  font-size: 12.5px;
  color: var(--cp-text-muted);
  margin: 0;
}

@media (max-width: 767.98px) {
  .trust-divider   { display: none; }
  .trust-item      { padding: 10px 20px; min-width: 160px; }
  .trust-bar-inner { gap: 4px; }
}

@media (max-width: 575.98px) {
  .trust-bar-inner { flex-direction: column; align-items: flex-start; }
  .trust-item      { padding: 8px 16px; max-width: 100%; }
}


/* ── Wide promotional banners ─────────────────────────────────── */
.home-wide-banner {
  margin: 10px 0;
  overflow: hidden;
  line-height: 0;
}

.home-wide-banner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.home-wide-banner:hover .home-wide-banner__img {
  transform: scale(1.015);
}


/* ── Brand sections ───────────────────────────────────────────── */
.brand-section { background: #fafafa; }

/* Horizontal brand banner (nằm trên, full width) */
.brand-banner-hz {
  display: block;
  overflow: hidden;
  border-radius: var(--cp-radius, 8px);
  line-height: 0;
}

.brand-banner-hz__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}

.brand-banner-hz:hover .brand-banner-hz__img {
  transform: scale(1.02);
}

@media (max-width: 767.98px) {
  .brand-banner-hz__img { height: 160px; }
}

@media (max-width: 575.98px) {
  .brand-banner-hz__img { height: 130px; }
}


/* ── Blog editorial layout ───────────────────────────────────── */
.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card-title--sm { font-size: 15px; }
.blog-card-title--xs { font-size: 13.5px; }

.blog-card-desc {
  font-size: 13.5px;
  color: var(--cp-text-muted);
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card-desc--sm { font-size: 12.5px; }
.blog-card-desc--xs { font-size: 12px; }

.blog-featured__thumb {
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.blog-featured__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .45s ease;
}

.blog-featured:hover .blog-featured__img { transform: scale(1.04); }
.blog-featured__body { padding: 14px 0 0; }

.blog-side-list { justify-content: space-between; }
.flex-1 { flex: 1 1 0; }

.blog-side { gap: 16px; padding: 12px 0; }
.blog-side--sep { border-top: 1px solid #ebebeb; }

.blog-side__thumb {
  width: 96px; height: 96px;
  background: #eee;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-side__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}

.blog-side:hover .blog-side__img { transform: scale(1.06); }

.blog-tiles { border-top: 1px solid #f0f0f0; padding-top: 6px; }
.blog-tile { background: #fff; }

.blog-tile__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}

.blog-tile:hover .blog-tile__img { transform: scale(1.05); }
.blog-tile__body { padding: 9px 10px 11px; }

@media (min-width: 992px) {
  .blog-featured__thumb { aspect-ratio: unset; height: 300px; }
}

@media (max-width: 991.98px) {
  .blog-card-title     { font-size: 16px; }
  .blog-card-title--sm { font-size: 14px; }
  .blog-card-title--xs { font-size: 12.5px; }
  .blog-side-list { justify-content: flex-start; }
  .flex-1 { flex: none; }
  .blog-side { padding: 14px 0; }
  .blog-featured__body { padding-top: 10px; }
}

@media (max-width: 575.98px) {
  .blog-card-title     { font-size: 15px; }
  .blog-card-title--sm { font-size: 13.5px; }
  .blog-card-title--xs { font-size: 12.5px; }
  .blog-card-desc--sm  { display: none; }
  .blog-card-desc--xs  { display: none; }
  .blog-side__thumb    { width: 76px; height: 76px; }
}


/* ================================================================
   MOBILE GLOBAL REFINEMENTS (home page)
================================================================ */

/* Section padding tighter on mobile */
@media (max-width: 767.98px) {
  .features-product-area.section-padding-5,
  .brand-section.section-padding-5,
  .cat-icons-section,
  .trust-bar-section,
  .blog-area.section-padding-5 {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* Section header title size */
@media (max-width: 575.98px) {
  .section-header .section-title,
  .section-header h2,
  .section-header h3 {
    font-size: 18px;
  }
}

/* Product card: smaller padding on tiny screens */
@media (max-width: 575.98px) {
  .new-product-card {
    padding: 7px;
  }

  .new-product-top {
    padding: 6px;
  }

  .new-product-title {
    font-size: 12px;
    min-height: 34px;
  }

  .new-product-price .current-price {
    font-size: 13px;
  }
}

/* Trust bar: stack vertically on mobile */
@media (max-width: 575.98px) {
  .trust-bar-inner {
    flex-direction: column;
    gap: 16px;
  }

  .trust-divider {
    width: 60px;
    height: 1px;
    margin: 0 auto;
  }
}

/* Home body: remove excess side padding on mobile */
@media (max-width: 575.98px) {
  .home-body {
    overflow-x: hidden;
  }
}

/* Brand section: tighter spacing on mobile */
@media (max-width: 767.98px) {
  .brand-section .product-wrapper {
    margin-top: 12px !important;
  }
}
