/* ============================================================
   Aina Saga — Lavender Glow Shop Section
   ============================================================ */

/* --- Section Background --- */
.shop-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f4eaff 0%, #f9f6ff 100%);
  display: flex;
  justify-content: center;
}

.shop-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); /* FIXED */
  gap: 28px;
}


/* ============================================================
   Product Card
   ============================================================ */

.product-card {
  display: flex;
  align-items: stretch;
  gap: 24px;
  background: #ffffff;
  border-radius: 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Gradient Glow Border --- */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, #b000ff, #ff00b8);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* --- Hover Glow --- */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(176, 0, 255, 0.18);
}
.product-card:hover::before {
  opacity: 0.9;
}

/* --- Left: Image --- */
/* --- Thumbnail: make card smaller by reducing height --- */
.product-thumb {
  width: 100%;
  padding: 14px;
  background:transparent;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;        /* <-- SMALLER THUMBNAIL HEIGHT */
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.45s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

/* --- Right: Info Panel --- */
.product-meta {
  width: 52%;
  padding: 34px 36px 60px; /* <-- increased bottom space */
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(176, 0, 255, 0.08);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* --- Title --- */
.product-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: #0a002b;
  text-transform: uppercase;
  letter-spacing: 0.5rem;  /* reduced spacing for readability */
  line-height: 0.5;
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  word-break: break-word;
}

/* --- Price --- */
.product-price {
  font-size: 1.1rem;
  color: #6b15ff;
  font-weight: 700;
  margin-top: 8px;
}

/* --- Button --- */
.product-actions {
  margin-top: auto;        /* keeps button aligned bottom internally */
  padding-top: 20px;
  margin-bottom: 20px;     /* <-- extra breathing room like membership cards */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.buy-now {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(90deg, #b000ff, #ff00b8);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 0, 200, 0.25);
  transition: all 0.25s ease;
  margin-bottom: 10px;     /* <-- pushes button upward slightly */
  margin-right: 10px;
}

.buy-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 0, 200, 0.35);
}

/* --- Optional description text --- */
.product-desc {
  color: #6b5f7f;
  font-size: 0.95rem;
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.85;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* --- Tablet --- */
@media (max-width: 1100px) {
  .shop-container {
    gap: 30px;
  }

  .product-card {
    gap: 16px;
  }

  .product-title {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
  }

  .product-meta {
    padding: 26px;
  }
}
/* ============================================================
   SUPER COMPACT MOBILE SHOP — AINA SAGA
   ============================================================ */

@media (max-width: 700px) {

  .shop-container {
    grid-template-columns: 1fr;
    padding: 0 14px; /* Slightly wider padding */
    gap: 22px;
  }

  /* CARD */
  .product-card {
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
    padding: 0;
  }

  .product-card::before {
    border-radius: 16px;
    padding: 1.2px;
  }

  /* THUMBNAIL */
  .product-thumb {
    width: 100%;
    height: 130px !important;
    padding: 6px;
    border-radius: 14px;
  }

  .product-thumb img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;   /* <-- THIS FIXES THE Y INDEX */
  }

  /* META (Right panel) */
  .product-meta {
    width: 100%;
    padding: 14px 18px 24px !important; 
    /* TOP 14px — LEFT & RIGHT 18px — BOTTOM 24px */
    border-radius: 14px;
  }

  /* TITLE */
  .product-title {
    font-size: 1rem !important;
    letter-spacing: 0.015rem !important;
    line-height: 1.28 !important;
    margin-bottom: 8px !important;
  }

  /* PRICE */
  .product-price {
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    font-size: 0.95rem !important;
  }

  /* BUTTON WRAPPER */
  .product-actions {
    width: 100%;
    display: flex;
    justify-content: center !important;
    padding-top: 10px;
    margin-bottom: 10px;
  }

  /* BUY NOW BUTTON */
  .buy-now {
    width: 85% !important;
    margin: 0 auto !important;        /* FORCE perfect centering */
    padding: 12px 0;
    font-size: 0.92rem;
    border-radius: 28px;
  }
}

/* Very small devices */
@media (max-width: 480px) {

  .product-thumb {
    height: 110px !important;
  }

  .product-meta {
    padding: 12px 16px 20px !important;
  }

  .product-title {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .buy-now {
    width: 90% !important;
    padding: 10px 0;
  }
}


