/* =============== RESET & BASE =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* =============== Header =============== */
.header {
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 150px;
  position: relative;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  overflow: hidden;
}

/* FLEX HEADER CONTAINER */
.header-overlay {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-top: 1%;
}

/* LOGO LEFT */
.logo {
  position: relative;
  text-decoration: none;
  font-family: 'Marck Script', cursive;
  font-size: 40px;
  color: #242424;
  letter-spacing: -0.08em;
  z-index: 10;
}

/* DESKTOP ONLY — Legal link */
.legal-link-header {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: 0.2s;
  position: relative;
}

@media (max-width: 992px) {
  .legal-link-header {
    display: none !important;
  }
}

/* ============== Search Bar ============== */

.search-bar-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 20;
  margin-top: 40px;  
}

.search-bar {
  width: 700px;
  max-width: 100%;
  height: 55px;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.search-bar input {
  flex: 1;
  padding: 0 20px;
  border: none;
  font-size: 18px;
  outline: none;
}

.search-bar .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.search-bar .search-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ================================
   HEADER — TABLET & MOBILE MATCH
================================ */
@media (max-width: 1200px) {

  .header-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 0 20px;
  }

  .search-bar-wrapper {
    margin-top: 0;
    justify-content: flex-end;
  }

  .search-bar {
    width: 260px;
    height: 45px;
  }

  .legal-link-header {
    display: none !important;
  }
}

@media (max-width: 600px) {

  .header {
    height: 110px;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
  }

  .header-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
  }

  .logo {
    font-size: 30px;
  }

  .search-bar-wrapper {
    margin: 0;
    justify-content: flex-end;
  }

  .search-bar {
    width: 180px;
    height: 38px;
    border-radius: 16px;
  }

  .search-bar input {
    font-size: 14px;
    padding: 0 10px;
  }

  .search-bar .search-icon img {
    width: 16px;
    height: 16px;
  }

  .legal-link-header {
    display: none !important;
  }
}

/* =============== CATEGORY HERO =============== */
.category-hero {
  text-align: center;
  padding: 70px 20px 60px;
}

.category-hero h1 {
  font-weight: 900;
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.category-hero p {
  font-size: 18px;
  color: #555;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==============================
   SUBCATEGORY BLOCK
============================== */

.subcategory-block {
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* HEADER */
.subcategory-header {
  max-width: 1200px;
  margin: 0 auto 22px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.subcategory-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.subcategory-header p {
  font-size: 15px;
  color: #666;
  max-width: 580px;
  line-height: 1.6;
}

/* SEE MORE */
.see-more {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: #025aff;
  text-decoration: none;
}

.see-more:hover {
  text-decoration: underline;
}

/* ==============================
   HORIZONTAL IMAGE STRIP
============================== */

.subcategory-scroll {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* Premium scrollbar */
.subcategory-scroll::-webkit-scrollbar {
  height: 8px;
}

.subcategory-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.15)
  );
  border-radius: 8px;
}

/* IMAGE CARD */
.sub-image {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 4 / 5;   /* 🔥 portrait-friendly */
  border-radius: 18px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;              /* 🔥 IMPORTANT */
  isolation: isolate;            /* prevents paint bleed */
  box-shadow:
    0 10px 22px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.sub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
  transition: transform 0.4s ease;
}

.sub-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.sub-image:hover img {
  transform: scale(1.08);
}

/* ==============================
   POPULAR STRIPS
============================== */

.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 20px;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

/* IMAGE CARD */
.image-card {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.image-card:hover {
  transform: translateY(-4px);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================
   COMPACT STRIP (POPULAR SECTIONS)
============================== */

.compact-strip .sub-image {
  width: 360px;           /* 🔽 smaller */
  aspect-ratio: 4 / 2.5;
  border-radius: 14px;
}

.compact-strip .sub-image img {
  object-fit: cover;
}

/* Tablet */
@media (max-width: 768px) {
  .compact-strip .sub-image {
    width: 235px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .compact-strip .sub-image {
    width: 320px;
  }
}


/* =============== EXPLORE MORE =============== */
.explore-more {
  display: inline-block;
  margin: 24px 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: #025aff;
  text-decoration: none;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: 90px;
  padding: 56px 20px 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

/* Centered container */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Summary text */
.category-summary p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
}

/* Copyright */
.footer-copy {
  font-size: 14px;
  color: #777;
}

/* Mobile */
@media (max-width: 600px) {
  .category-summary p {
    font-size: 14px;
  }
}

/* HIDE HORIZONTAL SCROLLBAR – KEEP SCROLL FUNCTION */
.subcategory-scroll,
.horizontal-scroll {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge */
}

.subcategory-scroll::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 14px;
  }

  .search-bar {
    width: 100%;
  }

  .subcategory-header {
    flex-direction: column;
  }

  .see-more {
    align-self: flex-start;
    margin-top: 6px;
  }

  .sub-image {
    width: 170px;
  }

  .image-card {
    width: 350px;
  }
}

@media (max-width: 480px) {
  .sub-image {
    width: 145px;
  }

  .image-card {
    width: 335px;
  }
}
/* ================= SKELETON ================= */

.sub-image {
  position: relative;
  overflow: hidden;
  background: #f1f1f1;
}

/* Skeleton box */
.sub-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #eeeeee 25%,
    #f5f5f5 37%,
    #eeeeee 63%
  );
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  z-index: 1;
}

/* Hide skeleton when loaded */
.sub-image.loaded::before {
  display: none;
}

/* Image fade-in */
.sub-image img {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.sub-image.loaded img {
  opacity: 1;
  transform: scale(1);
}

@keyframes skeletonShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
/* ==============================
   STANDALONE SECTION FIX
============================== */

.standalone-section {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.standalone-section h2 {
  padding: 0 20px;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subcategory-scroll,
.horizontal-scroll {
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
/* ===== Scroll Wrapper ===== */
.scroll-wrapper {
  position: relative;
}

/* ================= Scroll Wrapper ================= */
.scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* ================= Glass Arrow Button ================= */
.glass-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 52px;
  height: 52px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);

  cursor: pointer;
  z-index: 50;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease, background 0.25s ease;
}

/* visible when JS adds .show */
.glass-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* positions */
.glass-btn.left {
  left: 6px;
}

.glass-btn.right {
  right: 6px;
}

/* arrow icon */
.glass-btn .arrow-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #212121;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 🔥 LEFT ARROW → flip icon ONLY */
.glass-btn.left .arrow-icon {
  transform: scaleX(-1);
}
/* hover */
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* desktop only */
@media (max-width: 992px) {
  .glass-btn {
    display: none !important;
  }
}
