/* =========================================
   CRAFTY MAMMIES — Gifts Page
   ========================================= */

/* Page hero pink variant (reuses layout.css .page-hero) */
.page-hero--pink {
  background: var(--pink-pale);
  padding: 64px 80px;
  min-height: auto;
  display: flex;
  align-items: center;
}

.page-hero--pink .page-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 20px;
}

.page-hero--pink .page-hero-sub {
  font-size: 16px;
  color: var(--grey);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
}

.page-hero--pink .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── OCCASION BAR ── */
.occasion-bar {
  background: var(--white);
  border-bottom: 1px solid #f0d6e8;
  padding: 16px 80px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.occasion-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.occasion-pills {
  display: flex;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--pink-pale);
  border: 1px solid #f0d6e8;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.pill:hover {
  background: var(--pink-light);
  border-color: var(--pink);
}

/* ── CATEGORIES ── */
.categories-section {
  padding: var(--space-2xl) 80px;
  background: var(--grey-light);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  border-color: var(--pink-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-card--large {
  grid-column: span 2;
  flex-direction: row;
}

.category-card--large .category-img {
  width: 50%;
  flex-shrink: 0;
}

.category-card--large .category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}

.category-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--pink-pale);
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img img { transform: scale(1.04); }

.category-img.category-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-info { padding: 24px 28px 28px; }

.category-info h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.category-info p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── HOW TO ORDER ── */
.how-to-order {
  padding: var(--space-2xl) 80px;
  background: var(--white);
}

.order-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
  justify-content: center;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
  flex: 1;
}

.order-step-num {
  width: 64px;
  height: 64px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.order-step-content h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--black);
}

.order-step-content p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
}

.order-step-arrow {
  font-size: 24px;
  color: var(--pink-light);
  padding: 0 16px;
  align-self: flex-start;
  margin-top: 24px;
}

.order-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.order-cta p { font-size: 14px; color: var(--grey); }

.inline-link {
  color: var(--pink);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.inline-link:hover {
  color: var(--pink-dark);
  text-decoration: underline;
}

/* ── INSTAGRAM STRIP ── */
.insta-section {
  background: var(--pink-pale);
  padding: var(--space-xl) 80px;
}

.insta-embed-wrap {
  margin-top: 40px;
  min-height: 280px;
}

.insta-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  background: var(--pink-light);
  border-radius: var(--radius-lg);
  border: 2px dashed #e0a8c8;
}

.insta-fallback p { font-size: 14px; color: var(--grey); }
.insta-fallback a { color: var(--pink); font-weight: 500; text-decoration: none; }
.insta-fallback a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-hero--pink { padding: 64px 48px; }
  .occasion-bar { padding: 16px 48px; }
  .categories-section, .how-to-order, .insta-section { padding: var(--space-xl) 48px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card--large { grid-column: span 2; }
}

@media (max-width: 768px) {
  .page-hero--pink { padding: 48px 24px; min-height: auto; }
  .occasion-bar { padding: 12px 20px; }
  .categories-section, .how-to-order, .insta-section { padding: 56px 20px; }
  .categories-grid { grid-template-columns: 1fr; }
  .category-card--large { grid-column: span 1; flex-direction: column; }
  .category-card--large .category-img { width: 100%; }
  .category-card--large .category-info { padding: 24px 28px 28px; }
  .order-steps { flex-direction: column; align-items: center; gap: 32px; }
  .order-step-arrow { display: none; }
  .order-step { max-width: 100%; }
}

/* ── BESTSELLERS BANNER ── */
.bestsellers-banner {
  background: var(--black);
  padding: 64px 80px;
  position: relative;
  overflow: hidden;
}

.bestsellers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.bestsellers-text .section-eyebrow { display: block; margin-bottom: 12px; }

.bestsellers-text h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.bestsellers-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 28px;
}

.bestsellers-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--pink);
}

/* ── PRODUCT SECTIONS ── */
.product-section {
  padding: 72px 80px;
  background: var(--white);
}

.product-section--alt { background: var(--grey-light); }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #efefef;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(234, 114, 164, 0.12);
  border-color: var(--pink-light);
}

.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pink-pale);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-info h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-card-info p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.product-card-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.product-card-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--pink);
  transition: color var(--transition);
}

.product-card:hover .product-card-cta { color: var(--pink-dark); }

/* Section sub-heading */
.section-sub {
  font-size: 15px;
  color: var(--grey);
  max-width: 560px;
  margin: 12px auto 0;
  line-height: 1.7;
}

/* Hen & Stag section */
.hen-stag-section { background: var(--black); }
.hen-stag-section .section-eyebrow { color: var(--pink); }
.hen-stag-section .section-title { color: var(--white); }
.hen-stag-section .section-sub { color: rgba(255,255,255,0.55); }
.hen-stag-section .product-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.hen-stag-section .product-card:hover { border-color: var(--pink); box-shadow: 0 16px 40px rgba(234,114,164,0.2); }
.hen-stag-section .product-card-info h3 { color: var(--white); }
.hen-stag-section .product-card-info p  { color: rgba(255,255,255,0.55); }

.hen-stag-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hen-stag-cta p { font-size: 15px; color: rgba(255,255,255,0.5); }

/* ── SHOP PAGE ── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.shop-count { font-size: 13px; color: var(--grey); }

/* ── PAGINATION ── */
.shop-pagination,
.woocommerce-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.shop-pagination ul,
.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-pagination ul li,
.woocommerce-pagination ul li {
  display: flex;
}

.shop-pagination ul li a,
.shop-pagination ul li span,
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.shop-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #eee;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  transition: all 0.2s;
}

.shop-pagination ul li span.current,
.shop-pagination ul li a:hover,
.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover,
.shop-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current,
.shop-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

.pill--active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

.shop-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--grey);
}

.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination ul.page-numbers li {
  display: flex !important;
  list-style: none;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #eee;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  transition: all 0.2s;
}

.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce-pagination ul.page-numbers li a:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bestsellers-banner { padding: 56px 48px; }
  .bestsellers-inner { gap: 40px; }
  .product-section { padding: 56px 48px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .bestsellers-banner { padding: 48px 20px; }
  .bestsellers-inner { grid-template-columns: 1fr; gap: 32px; }
  .bestsellers-img { display: none; }
  .product-section { padding: 48px 20px; }
  .product-grid,
  .product-grid--4,
  .product-grid--3,
  .product-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}