/* --- New Arrivals Heading --- */
.sti-newarrivals-heading {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 1.5rem 0;
}

/* Wrapper when heading is on the left or right */
.sti-newarrivals-wrapper.position-left .sti-heading-products,
.sti-newarrivals-wrapper.position-right .sti-heading-products {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

/* Heading when displayed vertically */
.sti-newarrivals-wrapper.position-left .side-heading,
.sti-newarrivals-wrapper.position-right .side-heading {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  margin-top: 10%;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Keep cards grid layout */
.sti-heading-products .cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
}

/* Optional: adjust alignment */
.sti-newarrivals-wrapper.position-left .side-heading {
  order: 0;
}
.sti-newarrivals-wrapper.position-right .side-heading {
  order: 2;
}

/* --- Cards container --- */
.cards-row{
  max-width:1280px;
  margin:28px auto;
  padding:18px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

/* --- Individual card --- */
.card {
  display:flex;
  align-items:center;
  gap:28px;
  background:#f7eef0;
  border-radius:14px;
  padding:34px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(15,25,40,0.06);
  min-height:220px;
}

/* Text + button area */
.card .left{
  flex:0 0 46%;
  padding-right:6px;  
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Aligns Shop Now at bottom */
  height: 100%;
}

/* Headline animation only */
.card h3{
  margin:0 0 18px 0;
  font-size:18px !important;
  line-height:1.18;
  color:#2d1f05;
  letter-spacing:0.2px;
  font-weight:700;
  transition:transform .25s cubic-bezier(.25,.8,.25,1);
}

/* Hover only moves text (not button) */
.card .left:hover h3{
  transform:translateY(-6px);
}

/* Button (constant, no hover movement) */
.cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  background:#664A2F;
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  box-shadow:0 6px 12px rgba(201,74,74,0.15);
  transition:background .18s;
}

.cta:hover{
  background:#FFFF00; /* only color change, no movement */
}

/* Image area */
.card .media{
  flex:1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
}
.card .media img{
  width:420px;
  max-width:100%;
  height:220px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 6px 14px rgba(10,20,30,0.04);
  z-index:2;
}

/* Responsive */
@media (max-width:980px){
  .cards-row{ grid-template-columns:repeat(2,1fr); padding:14px; gap:16px; }
  .card .media img{ height:200px; }
}
@media (max-width:640px){
  .cards-row{ grid-template-columns:1fr; padding:12px; gap:14px; }
  .card{ flex-direction:row; padding:22px; gap:18px; }
  .card .left{ flex:0 0 52%; }
  .card .media img{ width:160px; height:120px; border-radius:8px; }
  .card h3{ font-size:20px; }
  .cta{ padding:8px 14px; }
}
