:root {
  --qtpie-black: #111111;
  --qtpie-dark: #1a1a1a;
  --qtpie-orange: #f26522;
  --qtpie-orange-dark: #d95518;
  --qtpie-gray: #f5f5f5;
  --qtpie-border: #e8e8e8;
  --qtpie-text: #333333;
  --qtpie-muted: #777777;
  --qtpie-white: #ffffff;
  --qtpie-font: "Nunito Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body.qtpie-home {
  margin: 0;
  font-family: var(--qtpie-font);
  color: var(--qtpie-text);
  background: var(--qtpie-white);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container-wide {
  width: min(1320px, 94%);
  margin: 0 auto;
}

/* Top bar */
.qtpie-topbar {
  background: var(--qtpie-black);
  color: #ccc;
  font-size: 12px;
  padding: 8px 0;
}

.qtpie-topbar .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qtpie-topbar a { color: #ddd; }
.qtpie-topbar a:hover { color: var(--qtpie-orange); }

/* Header */
.qtpie-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--qtpie-white);
  border-bottom: 1px solid var(--qtpie-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.qtpie-header-bar {
  position: relative;
}

.qtpie-header-inner,
.qtpie-header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

.qtpie-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--qtpie-black);
}

.qtpie-logo span { color: var(--qtpie-orange); }

.qtpie-nav-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.qtpie-nav-item {
  position: static;
}

.qtpie-nav-trigger,
.qtpie-nav-plain {
  background: none;
  border: 0;
  padding: 8px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--qtpie-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s;
}

.qtpie-nav-trigger i {
  font-size: 10px;
  transition: transform 0.2s;
}

.qtpie-nav-item.is-open .qtpie-nav-trigger,
.qtpie-nav-item:hover .qtpie-nav-trigger,
.qtpie-nav-trigger:hover {
  color: #9a7b4f;
}

.qtpie-nav-item.is-open .qtpie-nav-trigger i,
.qtpie-nav-item:hover .qtpie-nav-trigger i {
  transform: rotate(180deg);
}

.qtpie-nav-plain:hover {
  color: #9a7b4f;
}

.qtpie-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--qtpie-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 0 36px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.qtpie-nav-item.is-open .qtpie-mega-menu,
.qtpie-nav-item:hover .qtpie-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qtpie-mega-grid {
  width: min(1320px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px 16px;
}

.qtpie-mega-tile {
  text-align: center;
  text-decoration: none;
  color: var(--qtpie-black);
  transition: transform 0.15s;
}

.qtpie-mega-tile:hover {
  transform: translateY(-2px);
  color: #9a7b4f;
}

.qtpie-mega-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #f8f8f8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.qtpie-mega-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-mega-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  font-weight: 700;
  color: #9a7b4f;
  background: #f3f0eb;
}

.qtpie-mega-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
}

.qtpie-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qtpie-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--qtpie-border);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 200px;
  background: var(--qtpie-gray);
}

.qtpie-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.qtpie-icon-btn {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--qtpie-black);
  font-size: 18px;
  padding: 8px;
  transition: color 0.2s;
}

.qtpie-icon-btn:hover {
  color: #9a7b4f;
}

.qtpie-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

.qtpie-nav-backdrop { display: none; }

/* Hero */
.qtpie-hero {
  position: relative;
  min-height: 72vh;
  background: #0d1b2a;
  overflow: hidden;
}

.qtpie-hero .swiper-slide,
.qtpie-hero-slide {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.qtpie-hero-images-only .qtpie-hero-slide-fallback {
  background: linear-gradient(135deg, #1a1a1a 0%, #f26522 100%);
}

.qtpie-hero-images-only .swiper-slide {
  cursor: default;
}

.qtpie-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%);
}

.qtpie-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 560px;
  color: #fff;
}

.qtpie-hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qtpie-orange);
  margin-bottom: 12px;
}

.qtpie-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.qtpie-hero p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.qtpie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.qtpie-btn-primary {
  background: var(--qtpie-orange);
  color: #fff;
}

.qtpie-btn-primary:hover {
  background: var(--qtpie-orange-dark);
  color: #fff;
}

.qtpie-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.qtpie-btn-outline:hover {
  background: #fff;
  color: var(--qtpie-black);
}

.qtpie-hero .swiper-pagination-bullet-active { background: var(--qtpie-orange); }

/* Section common */
.qtpie-section {
  padding: 56px 0;
}

.qtpie-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.qtpie-section-title h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Featured categories (homepage hero row) */
.qtpie-featured-cats {
  padding: 20px 0 8px;
  background: #fff;
}

.qtpie-featured-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.qtpie-featured-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #111;
  transition: opacity .2s;
}

.qtpie-featured-item:hover {
  opacity: .85;
  text-decoration: none;
  color: #111;
}

.qtpie-featured-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f3;
}

.qtpie-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qtpie-featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #999;
  background: linear-gradient(135deg, #e8e8e8, #f8f8f8);
}

.qtpie-featured-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Quick categories (legacy) */
.qtpie-quick-cats {
  margin-top: -48px;
  position: relative;
  z-index: 5;
  padding-bottom: 0;
}

.qtpie-quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.qtpie-quick-cat {
  background: #fff;
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}

.qtpie-quick-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

.qtpie-quick-cat img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.qtpie-quick-cat span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Products carousel */
.qtpie-products-wrap {
  background: var(--qtpie-gray);
}

.qtpie-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.qtpie-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.qtpie-product-card .thumb {
  aspect-ratio: 3/4;
  background: #eee;
  overflow: hidden;
}

.qtpie-product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-product-card .info {
  padding: 16px;
}

.qtpie-product-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.qtpie-product-card .price {
  font-size: 15px;
  font-weight: 800;
  color: var(--qtpie-black);
}

.qtpie-product-card .price del {
  color: var(--qtpie-muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

.qtpie-product-card .cat-label {
  font-size: 11px;
  color: var(--qtpie-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Shop by category */
.qtpie-shop-categories {
  background: transparent;
}

.qtpie-shop-categories .qtpie-cat-tile .icon-wrap {
  background: transparent;
}

.qtpie-shop-categories .qtpie-cat-tile .qtpie-placeholder {
  background: transparent;
  color: var(--qtpie-black);
  border: 1px solid var(--qtpie-border);
  font-size: 28px;
}

/* Category icon grid */
.qtpie-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 16px;
}

.qtpie-cat-tile {
  text-align: center;
}

.qtpie-cat-tile .icon-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--qtpie-gray);
  margin-bottom: 10px;
}

.qtpie-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-cat-tile span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Product showcase slider (after Shop By Category) */
.qtpie-product-showcase-section {
  position: relative;
  width: 100%;
  padding: 0 0 40px;
  overflow: hidden;
}

.showcase-swiper {
  width: 100%;
}

.showcase-swiper .swiper-slide {
  height: auto;
}

.qtpie-showcase-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.qtpie-product-showcase-item {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f3f3;
  transition: opacity .2s;
}

.qtpie-product-showcase-item:hover {
  opacity: .92;
}

.qtpie-product-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.qtpie-product-showcase-item:hover img {
  transform: scale(1.04);
}

.qtpie-showcase-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.qtpie-showcase-nav button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--qtpie-border);
  background: rgba(255, 255, 255, .95);
  color: var(--qtpie-black);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  transition: border-color .2s, color .2s;
}

.qtpie-showcase-nav button:hover {
  border-color: var(--qtpie-orange);
  color: var(--qtpie-orange);
}

/* Lifestyle grid (legacy) */
.qtpie-lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 200px;
  gap: 8px;
}

.qtpie-lifestyle-grid .item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.qtpie-lifestyle-grid .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.qtpie-lifestyle-grid .item:hover img {
  transform: scale(1.06);
}

.qtpie-lifestyle-grid .item:nth-child(1) { grid-row: span 2; }
.qtpie-lifestyle-grid .item:nth-child(4) { grid-row: span 2; }

/* Activity carousel */
.qtpie-activity-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.qtpie-activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.qtpie-activity-card .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* YouTube featured video */
.qtpie-youtube-section {
  padding: 0;
  background: #000;
}

.qtpie-youtube-full {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.qtpie-youtube-full iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Reels carousel */
.qtpie-reels-section {
  padding: 48px 0 56px;
  background: #111;
}

.qtpie-section-title-light h2 {
  color: #fff;
}

.qtpie-section-title-light p {
  color: rgba(255, 255, 255, .65);
  margin: 10px 0 0;
  font-size: 15px;
}

.reels-swiper {
  width: 100%;
  padding: 0 16px;
}

.reels-swiper .swiper-slide {
  height: auto;
}

.qtpie-reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.qtpie-reel-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.qtpie-reel-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Features row (legacy) */
.qtpie-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--qtpie-border);
  border-bottom: 1px solid var(--qtpie-border);
}

.qtpie-feature i {
  font-size: 28px;
  color: var(--qtpie-orange);
  margin-bottom: 10px;
}

.qtpie-feature h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qtpie-feature p {
  margin: 0;
  font-size: 13px;
  color: var(--qtpie-muted);
}

/* Promo banners */
.qtpie-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.qtpie-promo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 380px;
}

.qtpie-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.qtpie-promo .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.55));
  color: #fff;
}

.qtpie-promo h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Brand / quality */
.qtpie-quality {
  background: var(--qtpie-black);
  color: #fff;
}

.qtpie-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.qtpie-quality-card {
  text-align: center;
}

.qtpie-quality-card .img-wrap {
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #222;
}

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

.qtpie-quality-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qtpie-quality-card p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}

/* Newsletter */
.qtpie-newsletter {
  background: var(--qtpie-gray);
  text-align: center;
}

.qtpie-newsletter form {
  display: flex;
  max-width: 480px;
  margin: 20px auto 0;
  gap: 8px;
}

.qtpie-newsletter input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--qtpie-border);
  border-radius: 4px;
  font-size: 14px;
}

/* Footer */
.qtpie-footer {
  background: var(--qtpie-black);
  color: #bbb;
  padding: 56px 0 24px;
}

.qtpie-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.qtpie-footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.qtpie-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qtpie-footer li { margin-bottom: 10px; }

.qtpie-footer a:hover { color: var(--qtpie-orange); }

.qtpie-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.qtpie-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  border-radius: 50%;
  margin-right: 8px;
}

.qtpie-social a:hover {
  border-color: var(--qtpie-orange);
  color: var(--qtpie-orange);
}

.qtpie-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f26522 0%, #ff9a5a 100%);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

/* Swiper nav */
.qtpie-swiper-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
}

.qtpie-swiper-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--qtpie-border);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.qtpie-swiper-nav button:hover {
  border-color: var(--qtpie-orange);
  color: var(--qtpie-orange);
}

/* Mobile */
@media (max-width: 991px) {
  body.qtpie-nav-open { overflow: hidden; }

  .qtpie-header-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }

  .qtpie-menu-toggle {
    display: block;
    grid-column: 1;
    font-size: 20px;
    padding: 4px 0;
  }

  .qtpie-logo {
    grid-column: 2;
    justify-self: center;
    position: static;
    transform: none;
    font-size: 24px;
  }

  .qtpie-header-actions {
    grid-column: 3;
    margin-left: 0;
    gap: 14px;
    font-size: 18px;
  }

  .qtpie-icon-wishlist { display: none; }

  .qtpie-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .qtpie-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .qtpie-nav-main {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 20px 24px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    border-top: 0;
  }

  .qtpie-nav-main.is-open {
    transform: translateX(0);
  }

  .qtpie-nav-item {
    border-bottom: 1px solid var(--qtpie-border);
  }

  .qtpie-nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
  }

  .qtpie-nav-plain {
    padding: 14px 0;
    border-bottom: 1px solid var(--qtpie-border);
  }

  .qtpie-mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 16px;
    display: none;
  }

  .qtpie-nav-item.is-open .qtpie-mega-menu {
    display: block;
  }

  .qtpie-mega-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
  }

  .qtpie-cat-grid { grid-template-columns: repeat(3, 1fr); }

  .qtpie-featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .qtpie-lifestyle-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .qtpie-promo-row,
  .qtpie-quality-grid,
  .qtpie-footer-grid {
    grid-template-columns: 1fr;
  }

  .qtpie-features { grid-template-columns: 1fr; }

  /* Fabrics become a horizontal slider on mobile/tablet */
  .qtpie-fabrics .qtpie-quality-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .qtpie-fabrics .qtpie-quality-grid::-webkit-scrollbar { height: 4px; }
  .qtpie-fabrics .qtpie-quality-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
  .qtpie-fabrics .qtpie-quality-card .img-wrap {
    aspect-ratio: auto;
    height: 250px;
  }
}

@media (max-width: 575px) {
  .qtpie-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .qtpie-hero,
  .qtpie-hero .swiper-slide,
  .qtpie-hero-slide {
    min-height: 250px;
    height: 250px;
  }

  .products-swiper .swiper-wrapper { align-items: stretch; }
  .products-swiper .swiper-slide { width: 200px; height: auto; }
  .products-swiper .qtpie-product-card-link { height: 100%; }

  .qtpie-product-card .thumb {
    aspect-ratio: auto;
    height: 230px;
  }

  .qtpie-product-card .info { padding: 10px 12px; }
  .qtpie-product-card .cat-label { font-size: 10px; }
  .qtpie-product-card h3 {
    font-size: 12px;
    margin: 0 0 6px;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .qtpie-product-card .price { font-size: 13px; }
  .qtpie-product-card .price del { font-size: 11px; }

  /* Top bar: only show shipping message, centered */
  .qtpie-topbar .container-wide {
    justify-content: center;
    text-align: center;
  }
  .qtpie-topbar .container-wide > *:not(:first-child) { display: none; }

  /* Featured categories scroll horizontally like the reference */
  .qtpie-featured-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .qtpie-featured-grid::-webkit-scrollbar { height: 4px; }
  .qtpie-featured-item {
    flex: 0 0 32%;
    scroll-snap-align: start;
  }
  .qtpie-featured-label { font-size: 12px; }

  .qtpie-showcase-nav button {
    width: 36px;
    height: 36px;
  }
  .qtpie-quick-cats { margin-top: -24px; }

  .qtpie-section { padding: 36px 0; }
  .qtpie-section-title { margin-bottom: 24px; }
  .qtpie-section-title h2 { font-size: 22px; }

  .qtpie-size-qty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .qtpie-size-qty-row { padding: 8px; }
  .qtpie-size-label { font-size: 12px; }
  .qtpie-size-qty-input { width: 56px; padding: 6px 4px; }
}

/* Shop pages */
.qtpie-shop-main { min-height: 50vh; }

.qtpie-shop-section { padding: 32px 0 56px; }

.qtpie-alert { margin-top: 16px; margin-bottom: 0; }

.qtpie-breadcrumb {
  font-size: 13px;
  color: var(--qtpie-muted);
  margin-bottom: 20px;
}

.qtpie-breadcrumb a { color: var(--qtpie-muted); text-decoration: none; }
.qtpie-breadcrumb a:hover { color: var(--qtpie-orange); }
.qtpie-breadcrumb span { margin: 0 6px; }

.qtpie-shop-head { margin-bottom: 28px; }
.qtpie-shop-head h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
}
.qtpie-shop-head p { margin: 0; color: var(--qtpie-muted); }

.qtpie-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.qtpie-shop-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}

.qtpie-shop-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.qtpie-shop-card-thumb {
  aspect-ratio: 3/4;
  background: #f3f3f3;
  overflow: hidden;
}

.qtpie-shop-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-shop-card-body { padding: 14px; }
.qtpie-shop-card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--qtpie-muted);
}
.qtpie-shop-card-body h3 {
  margin: 6px 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.qtpie-shop-card-price {
  font-size: 15px;
  font-weight: 800;
}
.qtpie-shop-card-price del {
  color: var(--qtpie-muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

.qtpie-product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.qtpie-product-card-link:hover { color: inherit; text-decoration: none; }

.qtpie-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.qtpie-product-main-image {
  aspect-ratio: 3/4;
  background: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
}

.qtpie-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.qtpie-product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f3f3;
  cursor: pointer;
}

.qtpie-product-thumb.is-active,
.qtpie-product-thumb:hover { border-color: var(--qtpie-orange); }

.qtpie-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-product-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--qtpie-orange);
  font-weight: 700;
  text-decoration: none;
}

.qtpie-product-info h1 {
  margin: 8px 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.qtpie-product-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.qtpie-product-prices .price {
  font-size: 24px;
  font-weight: 800;
}

.qtpie-product-prices del {
  color: var(--qtpie-muted);
  font-size: 16px;
}

.qtpie-product-prices .save {
  font-size: 12px;
  font-weight: 700;
  color: #1a7f37;
  background: #e8f5ec;
  padding: 4px 8px;
  border-radius: 4px;
}

.qtpie-form-group { margin-bottom: 18px; }
.qtpie-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.qtpie-size-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.qtpie-size-label-row label {
  margin-bottom: 0;
}

.qtpie-size-chart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--qtpie-border);
  border-radius: 50%;
  background: #fff;
  color: var(--qtpie-black);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.qtpie-size-chart-btn:hover {
  border-color: var(--qtpie-orange);
  color: var(--qtpie-orange);
}

.qtpie-size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.qtpie-size-chart-modal.is-open {
  opacity: 1;
  visibility: visible;
}

body.qtpie-modal-open { overflow: hidden; }

.qtpie-size-chart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.qtpie-size-chart-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
}

.qtpie-size-chart-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.qtpie-size-chart-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.qtpie-size-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--qtpie-muted);
}

.qtpie-size-qty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.qtpie-size-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--qtpie-border);
  border-radius: 4px;
  background: #fff;
}

.qtpie-size-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.qtpie-size-qty-input {
  width: 64px;
  padding: 8px 6px;
  border: 1px solid var(--qtpie-border);
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}

.qtpie-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qtpie-size-option input { display: none; }

.qtpie-size-option span {
  display: inline-block;
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--qtpie-border);
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.qtpie-size-option input:checked + span {
  border-color: var(--qtpie-black);
  background: var(--qtpie-black);
  color: #fff;
}

.qtpie-qty-input {
  width: 90px;
  padding: 10px 12px;
  border: 1px solid var(--qtpie-border);
  border-radius: 4px;
}

.qtpie-product-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.qtpie-btn-block { width: 100%; display: block; text-align: center; }

.qtpie-btn-outline-dark {
  background: transparent;
  color: var(--qtpie-black);
  border: 2px solid var(--qtpie-black);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.qtpie-btn-outline-dark:hover {
  background: var(--qtpie-black);
  color: #fff;
}

.qtpie-product-block {
  border-top: 1px solid var(--qtpie-border);
  padding-top: 16px;
  margin-top: 16px;
}

.qtpie-product-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.qtpie-product-block p {
  margin: 0;
  color: var(--qtpie-muted);
  line-height: 1.6;
}

.qtpie-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.qtpie-cart-btn { position: relative; }

.qtpie-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--qtpie-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.qtpie-cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.qtpie-cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--qtpie-border);
  align-items: start;
}

.qtpie-cart-item-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f3f3;
}

.qtpie-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qtpie-cart-item-info h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.qtpie-cart-item-info h3 a {
  color: inherit;
  text-decoration: none;
}

.qtpie-cart-item-info .meta {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--qtpie-muted);
}

.qtpie-cart-item-info .price {
  margin: 0;
  font-weight: 800;
}

.qtpie-cart-sizes {
  border: 1px solid var(--qtpie-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.qtpie-cart-sizes-head,
.qtpie-cart-size-row {
  display: grid;
  grid-template-columns: 1fr 70px 90px 32px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.qtpie-cart-sizes-head {
  background: #f6f6f6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--qtpie-muted);
}

.qtpie-cart-size-row {
  font-size: 13px;
  border-top: 1px solid var(--qtpie-border);
}

.qtpie-cart-size-row .size { font-weight: 700; }
.qtpie-cart-size-row .qty,
.qtpie-cart-size-row .amount { color: var(--qtpie-muted); }

.qtpie-cart-size-remove-form { margin: 0; }

.qtpie-cart-size-remove {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.qtpie-cart-size-remove:hover { color: #c00; }

.qtpie-cart-item-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qtpie-cart-remove {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--qtpie-muted);
  cursor: pointer;
  padding: 0 4px;
}

.qtpie-cart-remove:hover { color: #c00; }

.qtpie-checkout-product {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--qtpie-border);
}

.qtpie-checkout-sizes {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 4px;
}

.qtpie-checkout-sizes li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--qtpie-muted);
  margin-bottom: 2px;
}

.qtpie-cart-summary {
  background: var(--qtpie-gray);
  padding: 20px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}

.qtpie-cart-summary h3 { margin: 0 0 16px; font-size: 18px; }

.qtpie-cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qtpie-cart-note {
  font-size: 13px;
  color: var(--qtpie-muted);
  margin-bottom: 16px;
}

.qtpie-cart-note-warn {
  color: #b45309;
  font-weight: 600;
}

.qtpie-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Checkout */
.qtpie-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.qtpie-checkout-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.qtpie-tab {
  border: 1px solid var(--qtpie-border);
  background: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.qtpie-tab.is-active {
  background: var(--qtpie-black);
  color: #fff;
  border-color: var(--qtpie-black);
}

.qtpie-tab-panel { display: none; }
.qtpie-tab-panel.is-active { display: block; }

.qtpie-checkout-card {
  background: #fff;
  border: 1px solid var(--qtpie-border);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
}

.qtpie-checkout-card h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
}

.qtpie-logged-in { margin: 0; }

.qtpie-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qtpie-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--qtpie-border);
  border-radius: 4px;
  font-size: 14px;
}

.qtpie-checkout-summary {
  background: var(--qtpie-gray);
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.qtpie-checkout-summary h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.qtpie-checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--qtpie-border);
}

.qtpie-checkout-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
}

/* Order success */
.qtpie-order-success {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.qtpie-order-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #1a7f37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.qtpie-order-success h1 {
  font-size: 28px;
  font-weight: 800;
}

.qtpie-order-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--qtpie-border);
  border-radius: 8px;
  padding: 22px;
  margin: 24px 0;
}

.qtpie-order-card h3 { margin: 0 0 16px; }

.qtpie-order-ship {
  margin-top: 18px;
  border-top: 1px solid var(--qtpie-border);
  padding-top: 16px;
}

.qtpie-order-ship h4 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; }
.qtpie-order-ship p { margin: 0 0 4px; color: var(--qtpie-muted); }

@media (max-width: 991px) {
  .qtpie-shop-grid { grid-template-columns: repeat(3, 1fr); }
  .qtpie-product-detail { grid-template-columns: 1fr; }
  .qtpie-cart-layout { grid-template-columns: 1fr; }
  .qtpie-checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .qtpie-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qtpie-form-row { grid-template-columns: 1fr; }
  .qtpie-cart-item { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .qtpie-cart-sizes-head,
  .qtpie-cart-size-row {
    grid-template-columns: 1fr 56px 72px 28px;
    padding: 7px 8px;
    gap: 4px;
  }
}
