/* ========================================
   Gemstones Landing Page Styles
   Separate from main landing page
   ======================================== */

/* ----------------------------------------
   Hero Banner
   ---------------------------------------- */
.gemstones-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Reduce section spacing for gemstones page */
.gemstones-page .section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Best Sellers section - more space above View All button */
.best-sellers-cta {
  margin-top: var(--space-10);
}

.gemstones-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.gemstones-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gemstones-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.gemstones-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  max-width: 600px;
}

.gemstones-hero-tag {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--neutral-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.gemstones-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--neutral-white);
  line-height: 1.1;
  margin-bottom: var(--space-2);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gemstones-hero-subtitle {
  font-size: var(--text-xl);
  color: var(--neutral-white);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
}

.gemstones-hero-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

/* ----------------------------------------
   Wholesale Value Strip
   ---------------------------------------- */
.wholesale-strip {
  background: var(--cream);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: var(--space-6) 0;
}

.wholesale-strip-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.wholesale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: var(--space-2) var(--space-3);
  position: relative;
}

/* Vertical dividers between items */
.wholesale-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: rgba(212, 175, 55, 0.3);
}

.wholesale-highlight {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-gold-dark);
  line-height: 1.2;
}

.wholesale-label {
  font-size: var(--text-sm);
  color: var(--text-charcoal);
  margin-top: 2px;
}

/* CTA item styling */
.wholesale-item-cta {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}

.wholesale-link {
  font-size: var(--text-sm);
  color: var(--primary-gold-dark);
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.wholesale-link:hover {
  background: var(--primary-gold);
  color: var(--neutral-white);
}

/* End item - no right divider, can extend wider */
.wholesale-item-end .wholesale-highlight {
  white-space: nowrap;
}


/* ----------------------------------------
   Section Titles
   ---------------------------------------- */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  text-align: center;
  color: var(--text-charcoal);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   Categories Grid - Bento Box Layout
   ---------------------------------------- */
.gemstones-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: var(--space-4);
  max-width: 100%;
  margin: 0 auto;
}

/* All cards same size in 4x2 grid */
.gemstone-category-large {
  /* No special sizing - equal cards */
}

.gemstone-category-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gemstone-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.gemstone-category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gemstone-category-card:hover .gemstone-category-image {
  transform: scale(1.05);
}

.gemstone-category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 2;
}

.gemstone-category-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.gemstone-category-count {
  font-size: var(--text-base);
  color: var(--text-charcoal);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------
   Horizontal Scroll Bar (Other Collections)
   ---------------------------------------- */
.categories-scroll-wrapper {
  position: relative;
  margin: 0 calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
}

.categories-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--space-2) 0 var(--space-4) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) var(--cream-light);
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  height: 8px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: var(--cream-light);
  border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold-dark);
}

.category-square {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-square:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.category-square:hover img {
  transform: scale(1.1);
}

.category-square-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
  text-align: center;
}

.category-square-overlay h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--neutral-white);
  margin: 0 0 2px 0;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-square-overlay span {
  font-size: var(--text-xs);
  color: var(--primary-gold);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------
   Products Grid
   ---------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.product-badge.sale {
  background: #D4AF37;
  color: #fff;
}

.product-badge.new {
  background: var(--primary-gold);
  color: var(--neutral-white);
}

.product-card-body {
  padding: var(--space-4);
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-2);
  line-height: 1.4;
  /* Fixed 2-line height for consistent alignment */
  height: calc(var(--text-base) * 1.4 * 2);
  min-height: calc(var(--text-base) * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.product-card-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.product-card-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-gold-dark);
}

.product-card-price-original {
  font-size: var(--text-base);
  color: var(--neutral-500);
  text-decoration: line-through;
}

/* ----------------------------------------
   Savings Meter Section
   ---------------------------------------- */
.savings-meter-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  padding: var(--space-16) var(--space-4);
  text-align: center;
}

.savings-meter-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--neutral-white);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.savings-meter-subtitle {
  font-size: var(--text-lg);
  color: var(--primary-gold);
  margin-bottom: var(--space-12);
  letter-spacing: 0.02em;
}

/* The Meter/Thermometer */
.savings-meter {
  max-width: 700px;
  margin: 0 auto var(--space-10);
  padding: 0 var(--space-8);
}

.meter-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 100px 0 40px;
}

.meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-gold-dark) 0%, var(--primary-gold) 50%, var(--primary-gold-light) 100%);
  border-radius: 4px;
}

/* Tier Points/Markers */
.meter-point {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.meter-point[data-tier="1"] {
  left: 0%;
}

.meter-point[data-tier="2"] {
  left: 50%;
}

.meter-point[data-tier="3"] {
  left: 100%;
}

.meter-dot {
  width: 24px;
  height: 24px;
  background: var(--primary-gold);
  border: 4px solid #1a1a1a;
  border-radius: 50%;
  position: relative;
  left: -12px;
  box-shadow: 0 0 0 3px var(--primary-gold), 0 4px 12px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meter-point:hover .meter-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px var(--primary-gold-light), 0 6px 20px rgba(212, 175, 55, 0.6);
}

.meter-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

/* All labels above the track */
.meter-label {
  bottom: 40px;
}

/* Offset middle label slightly to prevent overlap */
.meter-point[data-tier="2"] .meter-label {
  bottom: 40px;
}

.meter-percent {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--neutral-white);
  line-height: 1.1;
}

.meter-threshold {
  display: block;
  font-size: var(--text-sm);
  color: var(--primary-gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Tier Info Cards */
.tier-info-cards {
  position: relative;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
}

.tier-info-card {
  width: 140px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tier-info-card:nth-child(1) {
  margin-left: -70px;
}

.tier-info-card:nth-child(3) {
  margin-right: -70px;
}

.tier-info-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.tier-info-card.featured {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.tier-info-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.tier-info-code {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.tier-info-detail {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------
   Explore Grid
   ---------------------------------------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.explore-card {
  display: block;
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.explore-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.explore-card:hover .explore-image {
  transform: scale(1.05);
}

.explore-content {
  padding: var(--space-4);
  text-align: center;
}

.explore-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: var(--space-1);
}

.explore-content p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin: 0;
}

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 1024px) {
  /* Wholesale Strip Tablet */
  .wholesale-strip-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
  }

  .wholesale-item {
    flex: 0 0 calc(33.33% - var(--space-2));
    padding: var(--space-2);
  }

  .wholesale-item:not(:last-child)::after {
    display: none;
  }

  .wholesale-highlight {
    font-size: var(--text-xl);
  }

  .gemstones-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 160px);
  }

  .category-square {
    width: 140px;
    height: 140px;
  }

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

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

@media (max-width: 768px) {
  /* Wholesale Strip Mobile */
  .wholesale-strip {
    padding: var(--space-4) 0;
  }

  .wholesale-strip-grid {
    flex-direction: column;
    gap: var(--space-3);
  }

  .wholesale-item {
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

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

  .wholesale-highlight {
    font-size: var(--text-lg);
  }

  .wholesale-label {
    font-size: var(--text-sm);
  }

  .wholesale-item-cta {
    flex-direction: column;
    padding: var(--space-3);
  }
/* Tier Info Cards Mobile */
  .tier-info-cards {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .tier-info-card {
    width: 100%;
    max-width: 200px;
    margin: 0 !important;
  }

  .gemstones-hero {
    min-height: 400px;
  }

  .gemstones-hero-title {
    font-size: 2.5rem;
  }

  /* Stack bento cards on mobile */
  .gemstones-categories-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-3);
  }

  .gemstone-category-card,
  .gemstone-category-card:nth-child(1),
  .gemstone-category-card:nth-child(2),
  .gemstone-category-card:nth-child(3),
  .gemstone-category-card:nth-child(4),
  .gemstone-category-card:nth-child(5),
  .gemstone-category-card:nth-child(6),
  .gemstone-category-card:nth-child(7) {
    grid-column: 1;
    grid-row: auto;
    height: 160px;
  }

  /* Smaller squares on mobile */
  .category-square {
    width: 120px;
    height: 120px;
  }

  .category-square-overlay {
    padding: var(--space-2);
  }

  .category-square-overlay h3 {
    font-size: var(--text-xs);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Savings Meter Mobile */
  .savings-meter {
    padding: 0 var(--space-4);
  }

  .meter-track {
    margin: 80px 0 30px;
  }

  .meter-percent {
    font-size: var(--text-lg);
  }

  .meter-threshold {
    font-size: var(--text-xs);
  }

  .meter-dot {
    width: 18px;
    height: 18px;
    left: -9px;
  }

  .meter-label {
    bottom: 30px;
  }

  .explore-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ----------------------------------------
   Active nav state
   ---------------------------------------- */
.nav-links a.active {
  color: var(--primary-gold);
  font-weight: 600;
}

/* ----------------------------------------
   Mobile Menu Toggle
   ---------------------------------------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-white);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--neutral-200);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
    font-size: var(--text-base);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-actions {
    display: none;
  }

  .nav {
    position: relative;
  }
}

/* ----------------------------------------
   Explore Other Collections - Larger Text
   ---------------------------------------- */
#explore .section-title {
  font-size: var(--text-4xl);
}

#explore .section-subtitle {
  font-size: var(--text-xl);
}
