/* =============================================
   PPK Packaging — Products Pages Styles
   (category.html + detail.html)
   ============================================= */

/* ---------- Nav Dropdown ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown > .nav-link svg {
  transition: transform 0.3s ease;
}
.nav-dropdown:hover > .nav-link svg {
  transform: rotate(180deg);
}
.nav-dropdown:hover > .nav-link {
  color: var(--primary) !important;
}
.header:not(.scrolled) .nav-dropdown:hover > .nav-link {
  color: var(--white) !important;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 560px;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 20px 60px rgba(26,26,46,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}
.dropdown-col {
  padding: 24px 20px;
  border-right: 1px solid rgba(26,26,46,0.06);
}
.dropdown-col:last-child {
  border-right: none;
}
.dropdown-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.dropdown-col h4 a,
.dropdown-col h4 a:visited {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.dropdown-col h4 a:hover {
  color: var(--accent);
}
.dropdown-col a,
.dropdown-col a:visited {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  padding: 6px 0;
  transition: all 0.2s ease;
  line-height: 1.5;
}
.dropdown-col a:hover {
  color: var(--accent);
  padding-left: 8px;
}

/* Dropdown top accent line */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* ---------- Category Hero ---------- */
.cat-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}
.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.65) 50%, rgba(45,168,220,0.16) 100%);
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
  box-sizing: border-box;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  color: rgba(255,255,255,0.3);
}
.breadcrumb > span:last-child {
  color: var(--accent);
}
.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cat-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 560px;
}
.cat-hero-subtitle,
.cat-hero-rule {
  display: none;
}
.cat-hero-skincare,
.cat-hero-makeup,
.cat-hero-decoration {
  min-height: 430px;
  background: #02030a;
}
.cat-hero-skincare .cat-hero-bg,
.cat-hero-makeup .cat-hero-bg,
.cat-hero-decoration .cat-hero-bg {
  background-position: center right;
}
.cat-hero-skincare .cat-hero-overlay,
.cat-hero-makeup .cat-hero-overlay,
.cat-hero-decoration .cat-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.86) 25%, rgba(0,0,0,0.36) 48%, rgba(0,0,0,0.14) 66%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, rgba(5,8,20,0.35) 0%, rgba(5,8,20,0.04) 42%, rgba(5,8,20,0.45) 100%);
}
.cat-hero-skincare .cat-hero-content,
.cat-hero-makeup .cat-hero-content,
.cat-hero-decoration .cat-hero-content {
  width: min(390px, calc(100vw - 96px));
  max-width: 390px;
  margin-left: clamp(48px, 5.4vw, 96px);
  margin-right: auto;
  padding: 68px 0 72px;
}
.cat-hero-skincare .breadcrumb,
.cat-hero-makeup .breadcrumb,
.cat-hero-decoration .breadcrumb {
  display: none;
}
.cat-hero-skincare .cat-hero-title,
.cat-hero-makeup .cat-hero-title,
.cat-hero-decoration .cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 8px 32px rgba(0,0,0,0.55);
  text-transform: uppercase;
}
.cat-hero-skincare .cat-hero-subtitle,
.cat-hero-makeup .cat-hero-subtitle,
.cat-hero-decoration .cat-hero-subtitle {
  display: block;
  max-width: 340px;
  color: rgba(255,255,255,0.58);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin-bottom: 30px;
}
.cat-hero-skincare .cat-hero-rule,
.cat-hero-makeup .cat-hero-rule,
.cat-hero-decoration .cat-hero-rule {
  display: block;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.cat-hero-skincare .cat-hero-rule {
  background: linear-gradient(90deg, #30d158 0%, #2da8dc 100%);
  box-shadow: 0 0 18px rgba(48, 209, 88, 0.45);
}
.cat-hero-makeup .cat-hero-rule {
  background: linear-gradient(90deg, #ff375f 0%, #bf5af2 100%);
  box-shadow: 0 0 18px rgba(255, 55, 95, 0.45);
}
.cat-hero-decoration .cat-hero-rule {
  background: linear-gradient(90deg, #2da8dc 0%, #5e5ce6 45%, #bf5af2 100%);
  box-shadow: 0 0 18px rgba(94, 92, 230, 0.45);
}
.cat-hero-skincare .cat-hero-desc,
.cat-hero-makeup .cat-hero-desc,
.cat-hero-decoration .cat-hero-desc {
  max-width: 340px;
  color: rgba(255,255,255,0.62);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.1px;
}

/* ---------- Category Product Grid ---------- */
.cat-products {
  padding: 80px 0 100px;
  background: var(--cream);
}
.cat-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.cat-products-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
}
.cat-filter {
  display: flex;
  gap: 8px;
}
.cat-filter-btn {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 24px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}
.cat-filter-btn:hover,
.cat-filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.cat-filter-btn .zh {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.75;
  font-weight: 400;
}

.cat-card-tagline-zh {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin: 4px 0;
  letter-spacing: 0.5px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Category Card */
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(26, 26, 46, 0.05);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(45, 168, 220, 0.08), 0 1px 3px rgba(45, 168, 220, 0.05);
  border-color: rgba(45, 168, 220, 0.25);
}
.cat-card-img {
  height: 220px;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}
.cat-card-img-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #fff;
  display: block;
  transition: opacity 0.28s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}
.cat-card-img-primary {
  opacity: 1;
}
.cat-card-img-hover {
  opacity: 0;
}
.cat-card:hover .has-hover-image .cat-card-img-primary,
.cat-card:focus-visible .has-hover-image .cat-card-img-primary {
  opacity: 0;
}
.cat-card:hover .has-hover-image .cat-card-img-hover,
.cat-card:focus-visible .has-hover-image .cat-card-img-hover {
  opacity: 1;
}
.cat-card:hover .cat-card-img-element,
.cat-card:focus-visible .cat-card-img-element {
  transform: scale(1.05);
}
.cat-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cat-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  background: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(26, 26, 46, 0.08);
  z-index: 2;
}
.cat-card-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(94, 92, 230, 0.18);
  box-shadow: 0 10px 26px rgba(26, 26, 46, 0.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  color: var(--accent);
}
.cat-card:hover .cat-card-arrow,
.cat-card:focus-visible .cat-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateX(4px);
}
.cat-card-body {
  padding: 24px;
}
.cat-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.cat-card-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Category CTA ---------- */
.cat-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  text-align: center;
}
.cat-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.cat-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Detail Page ---------- */
.detail-hero {
  padding: 100px 0 60px;
  margin-top: 72px;
  background: var(--cream);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Gallery */
.detail-gallery {
  position: sticky;
  top: 100px;
}
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 12px;
  border: 1px solid rgba(26, 26, 46, 0.05);
  box-shadow: var(--shadow);
}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 26, 46, 0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  padding: 0;
  outline: none;
}
.gallery-nav-btn:hover {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(94, 92, 230, 0.15);
  transform: translateY(-50%) scale(1.05);
}
.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.gallery-nav-prev {
  left: 16px;
}
.gallery-nav-next {
  right: 16px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: opacity 0.4s ease;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
}
.gallery-thumb {
  width: 96px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 168, 220, 0.15);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* Detail Info */
.detail-info {
  padding-top: 0;
}
.detail-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid rgba(45,168,220,0.3);
  border-radius: 24px;
  margin-bottom: 20px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.detail-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.detail-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 36px;
}
.detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-actions .btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: all var(--transition);
}
.detail-actions .btn-outline:hover {
  background: var(--accent-light);
  color: var(--white);
  border-color: var(--accent-light);
  box-shadow: 0 8px 20px rgba(191, 90, 242, 0.25);
  transform: translateY(-2px);
}
.detail-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}
.detail-switcher button {
  min-width: 104px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.detail-switcher button.active {
  color: var(--white);
  background: var(--accent);
}
.detail-sku-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.detail-sku-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.detail-sku-heading span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-sku-heading strong {
  color: var(--primary);
  font-size: 15px;
}
.detail-sku-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.sku-option {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.sku-option.active,
.sku-option:hover {
  border-color: var(--accent);
  background: rgba(45,168,220,0.12);
  color: var(--accent);
}
.detail-sku-specs {
  display: grid;
  gap: 8px;
}
.detail-sku-specs div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.detail-sku-specs span {
  color: var(--text-muted);
}
.detail-sku-specs strong {
  color: var(--text);
  text-align: right;
}

/* Finish picker (Material / Color sub-options under a SKU) */
.detail-finish-list {
  margin: 16px 0 8px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-finish-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.detail-finish-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-finish-option {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.detail-finish-option:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.detail-finish-option.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-outline-dark {
  border: 1.5px solid var(--border);
  color: var(--text-light);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* SKU Variants */
.detail-variants-section {
  padding: 64px 0;
  background: var(--cream);
}
.detail-variants-section[hidden] {
  display: none;
}
.variant-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.variant-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.variant-card:hover,
.variant-card.active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.variant-card-img {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.variant-card-img img {
  width: calc(100% - 42px);
  height: calc(100% - 28px);
  object-fit: contain;
  background: #fff;
}
.variant-card-body {
  padding: 18px;
}
.variant-group {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.variant-card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}
.variant-specs {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

/* Specs & Features */
.detail-specs-section {
  padding: 80px 0;
  background: var(--cream);
}
.detail-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.detail-specs,
.detail-features {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 26, 46, 0.05);
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
}
.detail-specs h2,
.detail-features h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr {
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}
.specs-table tr:hover {
  background-color: rgba(45, 168, 220, 0.03);
}
.specs-table td {
  padding: 14px 12px;
  font-size: 14px;
}
.specs-table td:first-child {
  color: var(--text-light);
  font-weight: 500;
  width: 40%;
  letter-spacing: 0.5px;
  position: relative;
}
.specs-table tr:hover td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.specs-table td:last-child {
  color: var(--primary);
  font-weight: 600;
}

.features-list {
  list-style: none;
  padding: 0;
}
.features-list li {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}
.features-list li:last-child {
  border-bottom: none;
}
.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5ce6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Related */
.detail-related {
  padding: 80px 0;
  background: var(--cream);
}
.detail-related h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dropdown-menu {
    min-width: 580px;
  }
  .dropdown-inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .dropdown-col:nth-child(4),
  .dropdown-col:nth-child(5) {
    border-right: none;
  }
  .detail-hero-grid {
    gap: 40px;
  }
  .variant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15); /* Sleek semi-transparent dark background for mobile menu integration */
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 800px; /* Allow enough height for all categories vertically stacked */
  }
  .dropdown-inner {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }
  .dropdown-col {
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Light border for dark mobile background */
  }
  .dropdown-col:last-child {
    border-bottom: none;
  }
  .dropdown-col h4 {
    color: var(--white);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .dropdown-col a,
  .dropdown-col a:visited {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    padding: 8px 0;
    transition: all 0.2s ease;
  }
  .dropdown-col a:hover,
  .dropdown-col a:active {
    color: var(--accent);
    padding-left: 4px;
  }
  .dropdown-menu::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .cat-hero {
    min-height: 280px;
  }
  .cat-hero-skincare,
  .cat-hero-makeup,
  .cat-hero-decoration {
    min-height: 520px;
  }
  .cat-hero-skincare .cat-hero-bg,
  .cat-hero-makeup .cat-hero-bg,
  .cat-hero-decoration .cat-hero-bg {
    background-size: auto 100%;
    background-position: 58% center;
    opacity: 0.78;
  }
  .cat-hero-skincare .cat-hero-overlay,
  .cat-hero-makeup .cat-hero-overlay,
  .cat-hero-decoration .cat-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.56) 52%, rgba(0,0,0,0.34) 100%),
      linear-gradient(180deg, rgba(4,5,14,0.1) 0%, rgba(4,5,14,0.42) 100%);
  }
  .cat-hero-skincare .cat-hero-content,
  .cat-hero-makeup .cat-hero-content,
  .cat-hero-decoration .cat-hero-content {
    max-width: 340px;
    padding: 58px 0 64px;
    margin-left: 24px;
  }
  .cat-hero-skincare .cat-hero-title,
  .cat-hero-makeup .cat-hero-title,
  .cat-hero-decoration .cat-hero-title {
    letter-spacing: 2px;
    margin-bottom: 20px;
  }
  .cat-hero-skincare .cat-hero-subtitle,
  .cat-hero-makeup .cat-hero-subtitle,
  .cat-hero-decoration .cat-hero-subtitle {
    max-width: 280px;
    margin-bottom: 24px;
  }
  .cat-hero-skincare .cat-hero-desc,
  .cat-hero-makeup .cat-hero-desc,
  .cat-hero-decoration .cat-hero-desc {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.7;
  }
  .cat-products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .detail-gallery {
    position: static;
  }
  .detail-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .variant-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .gallery-thumb {
    width: 56px;
    height: 56px;
  }
}
