/* ==========================================================================
   Layout - Grid System & Page Structure
   ========================================================================== */

/* Site Container */
.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Centered Container */
.container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  view-transition-name: page-group;
}

/* ==========================================================================
   Cards Container - Staggered Layout (matching original)
   ========================================================================== */

.cards-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 650px;
  margin: 70px auto;
}

/* Product Cards - Absolute Positioning for Staggered Effect */
.product-card {
  position: absolute;
  width: var(--card-width);
  cursor: pointer;
}

/* Card 1 - Portrait (top left, tall) */
.product-card:nth-of-type(1) {
  left: 0;
  top: 80px;
  height: 460px;
}

/* Card 2 - Fashion (center-left, tallest) */
.product-card:nth-of-type(2) {
  left: 230px;
  top: 140px;
  height: 520px;
}

/* Card 3 - Food (center-right, medium) */
.product-card:nth-of-type(3) {
  left: 460px;
  top: 60px;
  height: 420px;
}

/* Card 4 - Nature (right, tall) */
.product-card:nth-of-type(4) {
  left: 690px;
  top: 0;
  height: 540px;
}

/* ==========================================================================
   Diagonal Decorators
   ========================================================================== */

.diagonal-decorator {
  position: absolute;
  width: 80px;
  height: 2px;
  background: var(--color-text-primary);
  transform: rotate(var(--diagonal-angle));
  opacity: 0.3;
  pointer-events: none;
}

/* Header diagonal lines (from top, different lengths like original) */
.header-diagonals {
  position: absolute;
  left: 340px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 0;
}

.header-line {
  width: 1px;
  background-color: var(--color-text-secondary);
  transform: rotate(20deg);
  transform-origin: top center;
  opacity: 0.5;
}

.header-line:nth-child(1) {
  height: 100px;
}

.header-line:nth-child(2) {
  height: 70px;
}

/* Decorators between cards */
.diagonal-decorator:nth-of-type(1) {
  left: 170px;
  top: 40px;
}

.diagonal-decorator:nth-of-type(2) {
  left: 630px;
  top: 520px;
}

/* ==========================================================================
   Mobile Responsive (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .cards-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .product-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: 350px;
  }

  .product-card:nth-of-type(1),
  .product-card:nth-of-type(2),
  .product-card:nth-of-type(3),
  .product-card:nth-of-type(4) {
    left: auto;
    top: auto;
    height: 350px;
  }

  .diagonal-decorator {
    display: none;
  }

  .header-diagonals {
    display: none;
  }

  .main-content {
    padding: var(--spacing-md) 0;
  }
}
