/* ============ DP SHOP — Instagram feed (autoplay + plynne rozwijanie w pionowa karte) ============ */
.dp-ig{
  position:relative; left:50%; transform:translateX(-50%);
  width:min(1360px, 96vw); margin:8px auto 46px;
  background:transparent !important;
  box-sizing:border-box;
}
.dp-ig *{ box-sizing:border-box; }
.dp-ig .products-section-title{ padding:0 2px 20px !important; }
/* przebij zebra-tlo motywu (.page-home section:nth-of-type(2n)) — id wygrywa */
#index .dp-ig, body#index .dp-ig, .page-home section.dp-ig{ background:transparent !important; }

.dp-ig-grid{
  display:grid; grid-template-columns:repeat(6, 1fr); gap:14px;
}

/* komorka trzyma miejsce w siatce; kafel „wyrasta" z niej przy hover */
.dp-ig-cell{ position:relative; aspect-ratio:1 / 1; }

.dp-ig-tile{
  position:absolute; top:50%; left:50%; transform:translate(-50%, -50%);
  width:100%; height:100%;
  display:block; text-decoration:none; outline:none;
  border-radius:16px; overflow:hidden; background:#ececef;
  box-shadow:0 5px 16px rgba(20,20,40,.10);       /* lekki cien jak pod kartami produktow */
  z-index:1;
  transition:width .3s cubic-bezier(.22,.9,.3,1.12),
             height .3s cubic-bezier(.22,.9,.3,1.12),
             box-shadow .3s ease, border-radius .3s ease;
}
.dp-ig-thumb{ position:absolute; inset:0; overflow:hidden; border-radius:inherit; }
.dp-ig-media{ width:100%; height:100%; object-fit:cover; display:block; }

/* znaczek reel/video — ukryty (bez ikony play na miniaturach) */
.dp-ig-play{ display:none !important; }

/* podpis — nakladka na dole filmu (nie pod nim); ukryty w siatce */
.dp-ig-cap{
  position:absolute; left:0; right:0; bottom:0; z-index:4;
  max-height:56%; overflow-y:auto; overscroll-behavior:contain;
  padding:40px 12px 13px; color:#ffffff !important;
  font-size:12.5px; line-height:1.5; font-weight:800; text-align:left;
  text-shadow:-0.5px -0.5px 0 rgba(0,0,0,.8), 0.5px -0.5px 0 rgba(0,0,0,.8), -0.5px 0.5px 0 rgba(0,0,0,.8), 0.5px 0.5px 0 rgba(0,0,0,.8), 0 1px 4px rgba(0,0,0,.9);
  background:linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.9) 40%, rgba(0,0,0,.55) 74%, rgba(0,0,0,0) 100%);
  opacity:0; transform:translateY(10px);
  transition:opacity .26s ease, transform .3s cubic-bezier(.22,.9,.3,1.12);
  pointer-events:none;
}
.dp-ig-cap p{ margin:0; color:#ffffff !important; text-shadow:inherit; }
.dp-ig-cap::-webkit-scrollbar{ width:5px; }
.dp-ig-cap::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.45); border-radius:5px; }

/* ===== HOVER: plynne rozwiniecie w pionowa karte (jak telefon), podpis nalozony na film ===== */
@media (hover:hover) and (pointer:fine){
  .dp-ig-cell:hover{ z-index:50; }
  .dp-ig-cell:hover .dp-ig-tile{
    width:calc(100% + 46px);
    height:min(444px, 74vh);
    border-radius:18px;
    box-shadow:0 26px 60px rgba(40,25,80,.36);
  }
  .dp-ig-cell:hover .dp-ig-play{ opacity:0; }
  .dp-ig-cell:hover .dp-ig-cap{ opacity:1; transform:translateY(0); pointer-events:auto; }
}

/* ===== przycisk CTA — u gory, po lewej (pod tytulem sekcji) ===== */
.dp-ig-cta{ text-align:left; margin:-6px 2px 24px; }
.dp-ig-btn{
  display:inline-flex; align-items:center; gap:12px;
  padding:9px 22px 9px 9px; border-radius:999px; text-decoration:none; color:#fff !important;
  background:linear-gradient(95deg,#feda75 0%,#fa7e1e 24%,#d62976 52%,#962fbf 76%,#4f5bd5 100%);
  box-shadow:0 8px 22px rgba(214,41,118,.30), inset 0 0 0 1px rgba(255,255,255,.22);
  transition:transform .25s ease, box-shadow .25s ease !important; /* !important bije motywowy a{transition:color} */
}
/* prosta animacja przy najechaniu — tylko lekkie uniesienie (tekst zostaje bialy) */
.dp-ig-btn:hover, .dp-ig-btn:focus, .dp-ig-btn:active{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(214,41,118,.38), inset 0 0 0 1px rgba(255,255,255,.28); color:#fff !important;
}
.dp-ig-btn:active{ transform:translateY(0); }
.dp-ig-btn-ic{
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.dp-ig-btn-ic svg{ display:block; }
.dp-ig-btn-tx{ display:flex; flex-direction:column; line-height:1.14; text-align:left; }
.dp-ig-btn-sub{ font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; opacity:.92; }
.dp-ig-btn-handle{ font-size:15px; font-weight:800; letter-spacing:.01em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:991px){
  .dp-ig-grid{ grid-template-columns:repeat(4, 1fr); gap:11px; }
  .dp-ig-tile{ border-radius:13px; }
  @media (hover:hover) and (pointer:fine){
    .dp-ig-cell:hover .dp-ig-tile{ height:min(400px, 72vh); width:calc(100% + 36px); }
  }
}
@media (max-width:767px){
  .dp-ig{ width:100%; margin:4px auto 30px; }
  .dp-ig-grid{ grid-template-columns:repeat(3, 1fr); gap:8px; }
  .dp-ig-tile{ border-radius:11px; box-shadow:0 3px 10px rgba(20,20,40,.10); }
  .dp-ig-tile:active{ transform:translate(-50%,-50%) scale(.97); }
  .dp-ig-play{ width:19px; height:19px; top:6px; right:6px; }
  .dp-ig-cta{ margin:-2px 0 18px; }
  .dp-ig-btn{ gap:10px; padding:8px 18px 8px 8px; }
  .dp-ig-btn-ic{ width:30px; height:30px; }
  .dp-ig-btn-sub{ font-size:9.5px; }
  .dp-ig-btn-handle{ font-size:14px; }
}
