/* ============================================
   ThatQuote Components
   Mega Menu, Cart Drawer, Product Cards v2
   ============================================ */

/* ========================
   MEGA MENU
   ======================== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 45, 138, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 998;
  padding: 0;
  overflow: hidden;
}

.mega-menu.mega-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  gap: 32px;
}

/* Nav item active state */
.nav-item.mega-active > .nav-link::after {
  width: 100% !important;
}

/* ---- SHOP MEGA MENU ---- */

.mega-categories-col {
  flex: 0 0 260px;
  border-right: 1px solid rgba(0,0,0,0.05);
  padding-right: 32px;
}

.mega-trending-col {
  flex: 1;
  padding: 0 16px;
}

.mega-featured-col {
  flex: 0 0 260px;
}

.mega-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF2D8A;
  margin-bottom: 18px;
}

/* Category list */
.mega-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  color: #444;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 6px;
}

.mega-cat-link:hover {
  color: #FF2D8A;
  padding-left: 4px;
}

.mega-cat-icon {
  display: flex;
  align-items: center;
  color: #999;
  transition: color 0.2s;
  flex-shrink: 0;
}

.mega-cat-link:hover .mega-cat-icon {
  color: #FF2D8A;
}

.mega-cat-name {
  flex: 1;
}

.mega-cat-range {
  font-size: 11px;
  color: #bbb;
  font-weight: 400;
}

.mega-browse-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #FF2D8A;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  transition: gap 0.2s;
}

.mega-browse-all:hover {
  gap: 10px;
}

/* Trending products grid */
.mega-trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mega-trend-card {
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.mega-trend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255,45,138,0.12);
}

.mega-trend-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-trend-quote {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-align: center;
  padding: 10px;
  line-height: 1.4;
}

.mega-trend-info {
  padding: 10px 12px;
}

.mega-trend-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #333;
  margin-bottom: 2px;
}

.mega-trend-price {
  font-size: 12px;
  color: #FF2D8A;
  font-weight: 600;
}

/* Featured product */
.mega-featured-card {
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.mega-featured-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mega-featured-quote {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-align: center;
  padding: 20px;
  line-height: 1.5;
  max-width: 200px;
}

.mega-featured-info {
  padding: 16px 18px 20px;
}

.mega-featured-tag {
  font-size: 10px;
  font-weight: 700;
  color: #FF2D8A;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
}

.mega-featured-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a1a1a;
  margin: 4px 0;
}

.mega-featured-price {
  font-size: 14px;
  color: #FF2D8A;
  font-weight: 600;
  margin-bottom: 12px;
}

.mega-featured-price s {
  color: #ccc;
  font-weight: 400;
  margin-left: 6px;
}

/* ---- COLLECTIONS MEGA MENU ---- */

.mega-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 16px;
}

.mega-coll-tile {
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  border: 1px solid rgba(0,0,0,0.04);
}

.mega-coll-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255,45,138,0.15);
}

.mega-coll-img {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.mega-coll-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 60%);
  transition: opacity 0.3s;
}

.mega-coll-tile:hover .mega-coll-img-overlay {
  opacity: 0.6;
}

.mega-coll-info {
  padding: 12px 14px;
}

.mega-coll-info h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #333;
  margin-bottom: 2px;
}

.mega-coll-info p {
  font-family: 'Sacramento', cursive;
  font-size: 16px;
  color: #FF2D8A;
}

.mega-collections-footer {
  text-align: center;
  padding: 8px 40px 28px;
}

/* ========================
   NAV ACTIONS (Cart, Search)
   ======================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.nav-scrolled .nav-action-btn {
  color: #555;
}

.nav-action-btn:hover {
  background: rgba(255,255,255,0.15);
}

.nav-scrolled .nav-action-btn:hover {
  background: rgba(255,45,138,0.08);
  color: #FF2D8A;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #FF2D8A;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  font-family: 'Syne', sans-serif;
}

/* ========================
   CART DRAWER
   ======================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: white;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-title .header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #FF2D8A;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
}

.cart-close-btn:hover {
  background: #FF2D8A;
  color: white;
}

/* Cart progress bar */
.cart-progress {
  padding: 14px 24px;
  background: #FFF0F5;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.cart-progress-text {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  text-align: center;
}

.cart-progress-text strong {
  color: #FF2D8A;
  font-weight: 700;
}

.cart-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,45,138,0.12);
  overflow: hidden;
}

.cart-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF2D8A, #FF7043);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cart items container */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

/* Cart empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF0F5, #FFE4F0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cart-empty-icon svg {
  color: #FF2D8A;
  opacity: 0.5;
}

.cart-empty h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.cart-empty p {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-quote-mini {
  font-size: 8px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 4px;
  line-height: 1.3;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #333;
  line-height: 1.3;
}

.cart-item-meta {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

.cart-item-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-remove:hover {
  background: #fee;
  color: #e44;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 30px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
}

.cart-qty-btn:hover {
  background: #FFF0F5;
  color: #FF2D8A;
}

.cart-qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: #FF2D8A;
}

/* Cart footer */
.cart-drawer-footer {
  border-top: 1px solid #f0f0f0;
  padding: 20px 24px 24px;
  flex-shrink: 0;
  background: white;
}

.cart-totals {
  margin-bottom: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.cart-total-label {
  font-size: 13px;
  color: #888;
}

.cart-total-value {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.cart-total-row.total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #eee;
}

.cart-total-row.total .cart-total-label {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #1a1a1a;
}

.cart-total-row.total .cart-total-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #FF2D8A;
}

.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  background: #FF2D8A;
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(255,45,138,0.3);
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,45,138,0.4);
}

.cart-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #999;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.cart-continue:hover {
  color: #FF2D8A;
}

/* ========================
   PRODUCT CARD V2
   ======================== */
.product-card-v2 {
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.03);
}

.product-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 45, 138, 0.12);
}

.pc-image-wrap {
  position: relative;
  overflow: hidden;
}

.pc-image {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
  padding: 24px;
}

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

.pc-quote-overlay {
  font-family: 'Sacramento', cursive;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.4;
  max-width: 200px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  z-index: 2;
}

.pc-badge-bestseller { background: #FF2D8A; color: white; }
.pc-badge-new { background: #7EC8E3; color: white; }
.pc-badge-hot { background: #FF7043; color: white; }
.pc-badge-sale { background: #FFE066; color: #333; }

.pc-quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FF2D8A;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.product-card-v2:hover .pc-quick-add {
  opacity: 1;
  transform: translateY(0);
}

.pc-quick-add:hover {
  background: #FF2D8A;
  color: white;
}

.pc-quick-add.pc-added {
  background: #22c55e;
  color: white;
}

.pc-info {
  padding: 14px 18px 18px;
}

.pc-collection-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
}

.pc-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  margin: 4px 0 2px;
  line-height: 1.3;
}

.pc-category {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}

.pc-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-price {
  font-weight: 700;
  font-size: 15px;
  color: #FF2D8A;
}

.pc-compare {
  font-size: 13px;
  color: #ccc;
  text-decoration: line-through;
}

/* Product grid layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ========================
   SEARCH OVERLAY
   ======================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  max-width: 600px;
  width: 100%;
  padding: 0 24px;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 32px;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #FF2D8A;
}

.search-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
}

.search-close:hover {
  background: #FF2D8A;
  color: white;
}

.search-suggestions h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF2D8A;
  margin-bottom: 12px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #eee;
  background: white;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.search-tag:hover {
  border-color: #FF2D8A;
  color: #FF2D8A;
  background: #FFF0F5;
}

/* ========================
   FILTER TABS
   ======================== */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #eee;
  background: white;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover {
  border-color: #FF2D8A;
  color: #FF2D8A;
}

.filter-tab.active {
  background: #FF2D8A;
  border-color: #FF2D8A;
  color: white;
  box-shadow: 0 4px 15px rgba(255,45,138,0.25);
}

/* ========================
   PRODUCT MODAL
   ======================== */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 920px;
  max-width: 94vw;
  max-height: 90vh;
  background: white;
  border-radius: 28px;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.03);
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.25s;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.pm-close:hover {
  background: #FF2D8A;
  color: white;
  transform: rotate(90deg);
}

.pm-body {
  overflow-y: auto;
  max-height: 90vh;
}

.pm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

/* Left: Product Image */
.pm-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
}

.pm-quote-display {
  font-family: 'Sacramento', cursive;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  line-height: 1.4;
  max-width: 300px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.12);
  position: relative;
  z-index: 2;
}

.pm-badge-modal {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  z-index: 3;
}

.pm-badge-bestseller { background: #FF2D8A; color: white; }
.pm-badge-new { background: #7EC8E3; color: white; }
.pm-badge-hot { background: #FF7043; color: white; }
.pm-badge-sale { background: #FFE066; color: #333; }

/* Right: Product Details */
.pm-details-col {
  padding: 40px 36px 40px 32px;
  display: flex;
  flex-direction: column;
}

.pm-collection-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  text-decoration: none;
  transition: gap 0.2s;
  cursor: pointer;
}

.pm-collection-link:hover {
  gap: 9px;
}

.pm-product-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #1a1a1a;
  margin: 8px 0 4px;
  line-height: 1.2;
}

.pm-category {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

.pm-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.pm-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #FF2D8A;
}

.pm-compare-price {
  font-size: 18px;
  color: #ccc;
  text-decoration: line-through;
}

.pm-save-badge {
  padding: 3px 10px;
  border-radius: 50px;
  background: #FFF0F5;
  color: #FF2D8A;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

.pm-quote-text {
  font-family: 'Sacramento', cursive;
  font-size: 22px;
  color: #C9A0DC;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
  line-height: 1.4;
}

.pm-description {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Quantity Selector */
.pm-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pm-qty-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  font-family: 'Syne', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pm-qty-control {
  display: flex;
  align-items: center;
  border: 2px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.pm-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
  font-size: 18px;
}

.pm-qty-btn:hover {
  background: #FFF0F5;
  color: #FF2D8A;
}

.pm-qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  font-family: 'Syne', sans-serif;
}

/* Action Buttons */
.pm-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.pm-add-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  background: #FF2D8A;
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(255, 45, 138, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pm-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(255, 45, 138, 0.4);
}

.pm-add-btn.pm-added {
  background: #22c55e;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.3);
}

.pm-wishlist-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #eee;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: all 0.3s;
  flex-shrink: 0;
}

.pm-wishlist-btn:hover {
  border-color: #FF2D8A;
  color: #FF2D8A;
  background: #FFF0F5;
}

/* Related Products */
.pm-related {
  padding: 24px 36px 32px;
  background: #FAFAFA;
  border-top: 1px solid #f0f0f0;
}

.pm-related-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF2D8A;
  margin-bottom: 16px;
}

.pm-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pm-related-card {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.pm-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 45, 138, 0.1);
}

.pm-related-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.pm-related-quote {
  font-family: 'Sacramento', cursive;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1.3;
}

.pm-related-info {
  padding: 8px 10px 10px;
}

.pm-related-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-related-price {
  font-size: 12px;
  color: #FF2D8A;
  font-weight: 600;
  margin-top: 2px;
}

/* ========================
   CATEGORY BROWSE OVERLAY
   ======================== */
.cat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #FFFBF0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cat-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cat-overlay-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cat-overlay-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-overlay-title-row > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-overlay-icon svg {
  width: 28px;
  height: 28px;
  stroke: #FF2D8A;
  stroke-width: 1.5;
}

.cat-overlay-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #1a1a1a;
}

.cat-overlay-count {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #999;
  background: rgba(255, 45, 138, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.cat-overlay-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cat-overlay-close:hover {
  border-color: #FF2D8A;
  color: #FF2D8A;
}

.cat-overlay-price-range {
  font-size: 14px;
  color: #aaa;
  margin: 4px 0 12px;
  padding-left: 40px;
}

.cat-overlay-sort {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-sort-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #e8e8e8;
  background: white;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-sort-btn:hover {
  border-color: #FF2D8A;
  color: #FF2D8A;
}

.cat-sort-btn.active {
  background: #FF2D8A;
  color: white;
  border-color: #FF2D8A;
}

.cat-overlay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .cat-overlay-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 20px 48px;
  }
}

@media (max-width: 768px) {
  .cat-overlay-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 16px 40px;
  }

  .cat-overlay-header {
    padding: 16px 16px 12px;
  }

  .cat-overlay-title {
    font-size: 22px;
  }

  .cat-overlay-price-range {
    padding-left: 0;
  }
}

/* ========================
   SEARCH RESULTS
   ======================== */
.search-results {
  margin-top: 20px;
}

.search-results-count {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-bottom: 20px;
}

.search-no-results {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: #aaa;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .mega-menu {
    display: none !important;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

  .nav-actions {
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pc-info {
    padding: 10px 14px 14px;
  }

  .pc-name {
    font-size: 13px;
  }

  .pc-quote-overlay {
    font-size: 16px;
  }

  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }

  .product-modal {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translateY(20px);
  }

  .product-modal.open {
    transform: translateY(0);
  }

  .pm-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pm-image-col {
    padding: 32px 24px;
    min-height: 260px;
  }

  .pm-quote-display {
    font-size: 28px;
  }

  .pm-details-col {
    padding: 24px 20px 28px;
  }

  .pm-product-name {
    font-size: 22px;
  }

  .pm-price {
    font-size: 24px;
  }

  .pm-related {
    padding: 20px 20px 28px;
  }

  .pm-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-body {
    max-height: 100vh;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pc-quick-add span {
    display: none;
  }

  .pc-quick-add {
    left: auto;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
  }
}
