/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE STYLES  (all inner pages)
════════════════════════════════════════════════════════════════ */

/* ── Page Hero ── */
.page-hero {
  position: relative;
  height: 320px;
  background-image: url('images/banner-2.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,27,46,0.82) 0%, rgba(20,27,46,0.55) 60%, rgba(20,184,166,0.2) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

.page-hero__breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero__breadcrumb a:hover { color: #fff; }

.page-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.page-hero__sub {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* ── Page Section ── */
.page-section {
  padding: 80px 60px;
  position: relative;
  overflow: visible;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Centered page header ── */
.page-header-center {
  text-align: center;
  margin-bottom: 56px;
}

.page-header-center .section-subtitle {
  margin: 10px auto 0;
  text-align: center;
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-color: transparent;
}

.product-img-wrap {
  height: 220px;
  overflow: hidden;
  background: #f0fdfa;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img { transform: scale(1.06); }

.product-body {
  padding: 22px 24px 24px;
}

.product-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ── Sub-nav grid (category overview pages) ── */
.sub-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.sub-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-align: center;
  transition: all 0.25s ease;
}

.sub-nav-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20,184,166,0.15);
}

.sub-nav-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.sub-nav-card:hover .sub-nav-icon { background: #fff; }

/* ── About page layout ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

.about-img-col { position: relative; }

.about-img-frame {
  border-radius: 24px;
  height: 380px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(20,184,166,0.12);
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-frame:hover img { transform: scale(1.04); }

.about-stat-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid #f0f0f0;
  animation: float 4s ease-in-out infinite;
}

.about-stat-card--bl { bottom: -20px; left: -20px; }
.about-stat-card--tr { top: -16px; right: -16px; animation-delay: 1s; }

.about-stat-val {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.about-stat-lbl {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

/* ── Info cards (about page) ── */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #d1fae5;
  box-shadow: 0 4px 24px rgba(20,184,166,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(20,184,166,0.18);
}

.info-item { padding: 28px; }
.info-item--border { border-top: 1px solid #e6f7f5; }

.info-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
}

.info-bar {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 14px;
  animation: shimmer 2s ease infinite;
  background-size: 200% 100%;
}

.info-text {
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.8;
  margin: 0;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  color: #6b7280;
  font-size: 13.5px;
  line-height: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-frame { height: 280px; }
}

@media (max-width: 768px) {
  .page-hero { height: 240px; }
  .page-hero__content { padding: 0 24px; }
  .page-section { padding: 60px 24px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .sub-nav-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .sub-nav-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Category page layout (sidebar + grid) ── */
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Sidebar */
.cat-sidebar {
  position: sticky;
  top: 100px;
  z-index: 0;
  isolation: auto;
}

/* Prevent page content from creating stacking context above navbar */
.cat-layout,
.page-section,
.page-container {
  isolation: auto;
  z-index: auto;
}

.cat-sidebar__title {
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  border-radius: 8px 8px 0 0;
  text-transform: uppercase;
}

.cat-sidebar__list {
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.cat-sidebar__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.cat-sidebar__item:last-child { border-bottom: none; }

.cat-sidebar__item:hover,
.cat-sidebar__item--active {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 22px;
}

.cat-sidebar__item--active { font-weight: 700; }

.cat-sidebar__plus {
  font-size: 16px;
  color: #9ca3af;
  font-weight: 400;
}

/* Image grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.cat-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.cat-card__img-wrap {
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-card__img { transform: scale(1.06); }

.cat-card__label {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1e1b2e;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid #f3f4f6;
}

/* Breadcrumb */
.page-breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}

.page-breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
}

.page-breadcrumb__inner a {
  color: #6b7280;
  text-decoration: none;
}

.page-breadcrumb__inner a:hover { color: var(--primary); }

.page-breadcrumb__sep { color: #d1d5db; }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}
