/* =========================================================
   COMING SOON header + PRODUCT SLIDER (3 cards visible)
   Load this file AFTER product-cards.css
   ========================================================= */

/* ---------- COMING SOON header ---------- */
.pd-head{
  max-width:1560px;margin:0 auto 34px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  padding:34px clamp(20px,4vw,56px);
  border-radius:24px;
  background:
    radial-gradient(ellipse 60% 120% at 70% 50%,rgba(31,111,255,.07),transparent 70%),
    linear-gradient(180deg,#f4f8ff 0%,#eaf2fd 100%);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 10px 30px rgba(31,111,255,.08);
}
.pd-head__tag{
  display:block;margin-bottom:6px;
  font-size:15px;font-weight:800;letter-spacing:.22em;color:#d0141c;
}
.pd-head__title{
  margin:0;font-size:clamp(34px,5vw,58px);font-weight:900;line-height:1.05;letter-spacing:-.03em;
  color:#0d1a4a;
}
.pd-head__title span{color:#3f7bf5}
.pd-head__text{margin:12px 0 0;font-size:clamp(15px,1.4vw,19px);color:#4a5371}

/* the three dots after "Soon" jump one by one */
.pd-dots i{display:inline-block;font-style:normal;animation:pdDot 1.4s ease-in-out infinite}
.pd-dots i:nth-child(2){animation-delay:.2s}
.pd-dots i:nth-child(3){animation-delay:.4s}
@keyframes pdDot{0%,60%,100%{transform:translateY(0);opacity:1}30%{transform:translateY(-10px);opacity:.5}}

.pd-head__btn{
  display:inline-flex;align-items:center;gap:10px;
  height:54px;padding:0 30px;border-radius:999px;
  background:linear-gradient(180deg,#5b8eff 0%,#3b6df0 100%);
  color:#fff;text-decoration:none;font-size:16px;font-weight:700;
  box-shadow:0 10px 24px rgba(31,111,255,.3);
  transition:transform .25s,filter .25s;
}
.pd-head__btn svg{width:20px;height:20px;transition:transform .25s}
.pd-head__btn:hover{transform:translateY(-2px);filter:brightness(1.06)}
.pd-head__btn:hover svg{transform:translateX(4px)}

/* ---------- SLIDER ---------- */
.pd-slider{
  position:relative;max-width:1560px;margin:0 auto;
  --pd-show:3;          /* how many cards are visible */
  --pd-gap:30px;        /* space between cards */
}
.pd-viewport{
  overflow:hidden;
  padding:16px 8px 30px;     /* room for the hover lift + glow */
  margin:-16px -8px -30px;
}
.pd-track{
  display:flex;gap:var(--pd-gap);
  transition:transform .7s cubic-bezier(.65,0,.35,1);
  will-change:transform;
}
.pd-track.no-anim{transition:none}
.pd-track > .pd-card{
  flex:0 0 calc((100% - (var(--pd-show) - 1) * var(--pd-gap)) / var(--pd-show));
}

/* arrows */
.pd-arrow{
  position:absolute;z-index:10;top:50%;transform:translateY(-50%);
  width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;
  background:#2c3441;color:#fff;
  box-shadow:0 8px 20px rgba(13,26,74,.25);
  transition:background .2s,transform .2s;
}
.pd-arrow svg{width:22px;height:22px}
.pd-arrow:hover{background:#1f6fff;transform:translateY(-50%) scale(1.08)}
.pd-arrow--prev{left:-26px}
.pd-arrow--next{right:-26px}

/* tablets: 2 cards */
@media (max-width:1100px){
  .pd-slider{--pd-show:2;--pd-gap:22px}
}
/* phones: 1 card */
@media (max-width:700px){
  .pd-slider{--pd-show:1;--pd-gap:16px}
  .pd-arrow{width:42px;height:42px}
  .pd-arrow--prev{left:-8px}
  .pd-arrow--next{right:-8px}
  .pd-head{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  .pd-track{transition:none}
  .pd-dots i{animation:none}
}


/* =========================================================
   SMALLER SIZE ("zoom out")
   ========================================================= */
.pd-section{padding:40px clamp(16px,3vw,40px) 50px}
.pd-head,.pd-slider{max-width:1180px}

.pd-head{padding:22px 34px;margin-bottom:26px;border-radius:20px}
.pd-head__tag{font-size:12px;margin-bottom:4px}
.pd-head__title{font-size:clamp(28px,3.4vw,40px)}
.pd-head__text{font-size:15px;margin-top:8px}
.pd-head__btn{height:44px;padding:0 22px;font-size:14px}
.pd-head__btn svg{width:17px;height:17px}

.pd-slider{--pd-gap:22px}
.pd-arrow{width:44px;height:44px}
.pd-arrow svg{width:18px;height:18px}
.pd-arrow--prev{left:-22px}
.pd-arrow--next{right:-22px}

/* card inside */
.pd-card .pd-media{padding-top:54px}
.pd-ribbon{width:134px;height:97px;top:-11px;left:-5px}
.pd-card .pd-media .pd-feats{margin-top:10px !important;padding:8px 6px}
.pd-feats li{font-size:11.5px;gap:5px}
.pd-feats svg{width:19px;height:19px}
.pd-feats li + li{padding-left:10px}
.pd-feats li + li::before{height:22px;margin-top:-11px}
.pd-tab{font-size:12.5px;height:38px !important}
.pd-tab--main svg{width:17px;height:17px}
.pd-tabs{margin-top:10px;padding-bottom:12px}
.pd-name{font-size:16px}
.pd-desc h4{font-size:14px}
.pd-desc p{font-size:13px}
.pd-btn{height:38px;font-size:12px}

@media (max-width:1100px){ .pd-slider{--pd-gap:18px} }
@media (max-width:700px){
  .pd-arrow{width:38px;height:38px}
  .pd-arrow--prev{left:-6px}
  .pd-arrow--next{right:-6px}
}

/* =========================================================
   NEW TAG ANIMATION – red glow, gentle swing, shine sweep
   ========================================================= */
.pd-ribbon{
  transform-origin:12% 10%;
  animation:pdRbSwing 3s ease-in-out infinite, pdRbGlow 1.6s ease-in-out infinite;
}
@keyframes pdRbSwing{
  0%,100%{transform:rotate(0deg)}
  50%    {transform:rotate(-3deg)}
}
@keyframes pdRbGlow{
  0%,100%{filter:drop-shadow(0 4px 6px rgba(150,10,16,.3))}
  50%    {filter:drop-shadow(0 0 10px rgba(255,30,40,.85)) drop-shadow(0 4px 6px rgba(150,10,16,.35))}
}
/* white shine running across the ribbon */
.pd-rb-sweep{animation:pdRbSweep 2.6s ease-in-out infinite}
@keyframes pdRbSweep{
  0%  {transform:skewX(-20deg) translateX(0)}
  60%,100%{transform:skewX(-20deg) translateX(260px)}
}

@media (prefers-reduced-motion:reduce){
  .pd-ribbon,.pd-rb-sweep{animation:none}
}


/* =========================================================
   PLAIN HEADER – no box, no border, no shadow
   ========================================================= */
.pd-head{
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
  margin-bottom:30px;
}


/* =========================================================
   TABS – equal width, even gap, lined up with the glow line
   (replaces all earlier tab rules)
   ========================================================= */
.pd-card .pd-tabs{
  display:flex !important;gap:0 !important;
  padding:0 !important;padding-bottom:12px !important;
  --tab-h:40px;      /* tab height */
  --tab-gap:10px;    /* gap between the two tabs */
}
.pd-card .pd-tab{
  flex:1 1 0 !important;min-width:0;
  justify-content:center;gap:8px;
  height:var(--tab-h) !important;
  padding:0 !important;
  font-size:13px;font-weight:600;color:#fff !important;
  background:transparent !important;box-shadow:none !important;
}
/* each tab = two slanted halves that overlap in the middle */
.pd-card .pd-tab::before,
.pd-card .pd-tab::after{
  content:"" !important;position:absolute;z-index:-1;top:0;bottom:0;
  width:auto !important;
  background:var(--tab-bg) !important;box-shadow:none !important;
}
.pd-card .pd-tab::before{left:-14px !important;right:calc(50% - 12px) !important;border-radius:10px 0 0 0 !important}
.pd-card .pd-tab::after{right:-14px !important;left:calc(50% - 12px) !important;border-radius:0 10px 0 0 !important}

/* BLUE – narrow at the top */
.pd-card .pd-tab--main{
  --tab-bg:linear-gradient(180deg,#5f8eff 0%,#3b5fe2 100%);
  margin:0 0 0 27px !important;
}
.pd-card .pd-tab--main::before{transform:skewX(-18deg)}
.pd-card .pd-tab--main::after{transform:skewX(18deg)}

/* DARK – wide at the top */
.pd-card .pd-tab--sub{
  --tab-bg:linear-gradient(180deg,#3d4655 0%,#2c3441 100%);
  margin:0 27px 0 calc(28px + var(--tab-gap)) !important;
}
.pd-card .pd-tab--sub::before{transform:skewX(18deg)}
.pd-card .pd-tab--sub::after{transform:skewX(-18deg)}
.pd-card .pd-tab--sub i{width:10px;height:10px;background:#e8101a !important}
.pd-card .pd-tab--main svg{width:17px;height:17px}

@media (max-width:380px){
  .pd-card .pd-tab{font-size:11.5px;gap:5px}
}


/* =========================================================
   BIGGER PRODUCT PICTURE – fills the full width of the box
   ========================================================= */
.pd-card .pd-media{
  padding:50px 0 8px !important;           /* no space on the left/right */
  overflow:hidden;
  max-width: 1180px;
}
.pd-card .pd-img{
  width:120% !important;
  margin:-14px 0 0 !important;
  aspect-ratio:1045/760;
  object-fit:contain !important;
  transform:scale(1.12); 
                    /* 1.12 = 12% bigger product */
}
.pd-card:hover .pd-img{transform:scale(1.18)}
.pd-card .pd-media .pd-feats{margin:10px 8px 0 !important}   /* bar keeps a small side gap */
.pd-card .pd-ribbon{z-index:4}

/* ===== WIDER CARDS ===== */
.pd-section{padding-left:20px !important;padding-right:20px !important}   /* less empty space at the page sides */
.pd-head,.pd-slider{max-width:1400px !important}                          /* bigger = wider cards */
.pd-slider{--pd-gap:18px}                                                 /* smaller gap = wider cards */
.pd-arrow--prev{left:-14px}
.pd-arrow--next{right:-14px}


/* ===== BOTH TABS THE SAME SHAPE (narrow top, wide bottom) ===== */
.pd-card .pd-tab--sub::before{transform:skewX(-18deg) !important}
.pd-card .pd-tab--sub::after{transform:skewX(18deg) !important}
.pd-card .pd-tab--sub{
  margin:0 27px 0 calc(41px + var(--tab-gap)) !important;
}


/* ===== RED BAR UNDER "LATEST PRODUCTS" ===== */
.pd-head__tag{
  position:relative;
  display:inline-block !important;
  padding-bottom:12px;          /* space between the text and the bar */
  margin-bottom:10px !important;/* space between the bar and "New Arrival" */
}
.pd-head__tag::after{
  content:"";
  position:absolute;left:0;bottom:0;
  width:90px;height:4px;        /* bar length + thickness */
  border-radius:4px;
  background:#d0141c;           /* bar colour */
}


/* ===== homepage card tabs: same colours as the buttons ===== */
/* "Hydraulic Products" = navy like View Details, "Hydraulic Jacks" = red like Get a Quote */
.pd-card .pd-tabs .pd-tab--main{--tab-bg:#1e2f6e !important}
.pd-card .pd-tabs .pd-tab--sub{--tab-bg:#d71f26 !important;background:transparent !important}
.pd-card .pd-tabs .pd-tab--sub i{background:#fff !important;box-shadow:0 0 6px rgba(255,255,255,.8)}
/* line under the tabs: navy → red to match */
.pd-card .pd-tabs::after{background:linear-gradient(90deg,#1e2f6e 0%,#2d46a0 45%,#d71f26 100%) !important;box-shadow:0 0 8px rgba(215,31,38,.35) !important}
