/* NEW PRODUCT CARD on the products page (products.html only) */
/* =========================================================
   NEW PRODUCT CARD – home page only (New Arrival + Coming Soon)
   Loaded only by index.html. Card styles come from product-card.css.
   ========================================================= */
/* ===== PRODUCT CARD ===== */
:root{
  --pc-navy:#1f3a93;
  --pc-navy-dark:#0f1f66;
  --pc-blue:#3a6fe0;
  --pc-red:#d62828;
  --pc-text:#14215e;
  --pc-muted:#5a6178;
  --pc-line:#dfe5f0;
}

/* Two separate bordered sections inside the card */
.pc-media,.pc-info{
  border:1.5px solid #8eaaf0 !important;box-sizing:border-box;
  box-shadow:0 0 0 3px rgba(91,130,235,.10),0 0 14px rgba(70,115,235,.32),0 10px 24px rgba(20,40,110,.16);
  animation-name:pcSecGlow;animation-duration:3.2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;
}
@keyframes pcSecGlow{
  0%,100%{box-shadow:0 0 0 3px rgba(91,130,235,.10),0 0 14px rgba(70,115,235,.32),0 10px 24px rgba(20,40,110,.16)}
  50%{box-shadow:0 0 0 3px rgba(91,130,235,.2),0 0 24px rgba(70,115,235,.5),0 10px 24px rgba(20,40,110,.16)}
}
/* gap between title box and description box */
.pc-info .pc-box+.pc-box{margin-top:6px}
.pc-info .pc-sep-full{margin:6px 16px 6px 0} /* starts at the left border, stripe lines up with the title stripe */
.pc-info .pc-sep-full+.pc-features{margin-top:0}

.pc-info{
  margin-top:10px;padding:2px 10px 10px;
  border:1.5px solid #c9d5ec;border-radius:16px;
  background:#fff;
}
.pc-info .pc-meta{margin:8px 2px 6px}

/* Card */
.pc-card{
  background:#fff;border-radius:24px;padding:18px 18px 22px;
  border:1.5px solid #8eaaf0;
  box-shadow:
    0 0 0 3px rgba(91,130,235,.12),      /* soft outer ring */
    0 0 18px rgba(70,115,235,.35),       /* blue glow */
    0 22px 50px rgba(20,40,110,.22),     /* drop shadow */
    0 3px 8px rgba(20,40,110,.10);
  transition:transform .35s ease,box-shadow .35s ease;
}
.pc-card:hover{
  transform:translateY(-6px)!important;
  box-shadow:0 0 0 3px rgba(91,130,235,.2),0 0 28px rgba(70,115,235,.5),0 30px 64px rgba(20,40,110,.28),0 3px 8px rgba(20,40,110,.1);
}
@keyframes pcCardGlow{
  0%,100%{box-shadow:0 0 0 3px rgba(91,130,235,.12),0 0 18px rgba(70,115,235,.35),0 22px 50px rgba(20,40,110,.22),0 3px 8px rgba(20,40,110,.10)}
  50%{box-shadow:0 0 0 3px rgba(91,130,235,.22),0 0 30px rgba(70,115,235,.55),0 22px 50px rgba(20,40,110,.22),0 3px 8px rgba(20,40,110,.10)}
}

/* ---------- Picture area ---------- */
.pc-media{
  position:relative;height:430px;border-radius:16px 16px 6px 6px;overflow:hidden;
  background:#fff url("images/pc-bg-wave.jpg") center 70% / cover no-repeat;
  animation:pcWave 9s ease-in-out infinite alternate,pcSecGlow 3.2s ease-in-out infinite;
}
.pc-img{
  position:absolute;left:50%;top:58%;transform:translate(-50%,-50%);
  width:64%;height:auto;z-index:2;
  animation:pcFloat 4s ease-in-out infinite;
  filter:drop-shadow(0 16px 14px rgba(10,25,80,.28));
  transition:transform .45s ease;
}
.pc-card:hover .pc-img{animation-duration:2.4s}

/* Animations */
@keyframes pcFloat{
  0%,100%{transform:translate(-50%,-50%)}
  50%{transform:translate(-50%,-55%)}
}
@keyframes pcWave{
  0%{background-position:45% 70%}
  100%{background-position:55% 70%}
}
.pc-card{animation:pcIn .8s ease both,pcCardGlow 3.2s ease-in-out .8s infinite}
.pc-card:hover{animation-play-state:running,paused}
@keyframes pcIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .pc-img,.pc-media,.pc-info,.pc-card,.pc-new,.pc-new-shine,.pc-spark{animation:none}
  .pc-spark{opacity:1}
}

/* halftone dot frame: dots grow bigger & darker toward the edges */
.pc-dots,.pc-dots::before,.pc-dots::after{
  position:absolute;inset:0;pointer-events:none;
  background-size:11px 11px;background-position:0 0;
}
.pc-dots{z-index:1;display:none} /* dots now come from the wallpaper */
.pc-dots::before,.pc-dots::after{content:""}
/* layer 1 – small, light dots (inner ring) */
.pc-dots{
  background-image:radial-gradient(circle,rgba(110,140,230,.55) 1.2px,transparent 1.7px);
  -webkit-mask:radial-gradient(ellipse 62% 70% at 50% 46%,transparent 58%,#000 78%);
          mask:radial-gradient(ellipse 62% 70% at 50% 46%,transparent 58%,#000 78%);
}
/* layer 2 – medium dots */
.pc-dots::before{
  background-image:radial-gradient(circle,rgba(70,100,210,.75) 2px,transparent 2.5px);
  -webkit-mask:radial-gradient(ellipse 62% 70% at 50% 46%,transparent 72%,#000 90%);
          mask:radial-gradient(ellipse 62% 70% at 50% 46%,transparent 72%,#000 90%);
}
/* layer 3 – large, dark dots (outer edge) */
.pc-dots::after{
  background-image:radial-gradient(circle,rgba(38,58,170,.92) 2.9px,transparent 3.4px);
  -webkit-mask:radial-gradient(ellipse 62% 70% at 50% 46%,transparent 86%,#000 102%);
          mask:radial-gradient(ellipse 62% 70% at 50% 46%,transparent 86%,#000 102%);
}

/* Ribbon – navy with slanted end + red & blue edge lines */
.pc-ribbon{
  position:absolute;top:0;left:0;z-index:3;
  display:flex;align-items:center;gap:12px;
  height:54px;padding:0 34px 0 20px;
  color:#fff;font-weight:500;font-size:15px;letter-spacing:.4px;white-space:nowrap;
}
.pc-ribbon>*{position:relative;z-index:1}
.pc-ribbon::before{ /* navy body */
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,#0c1a55 0%,#16297f 30%,#2c4fc0 70%,#5b8af2 100%);
  clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%);
  box-shadow:0 4px 8px rgba(15,31,102,.25);
}
.pc-ribbon::after{ /* three slanted bands: light blue | white | red */
  content:"";position:absolute;top:0;left:calc(100% - 1px);width:24px;height:100%;
  background:linear-gradient(90deg,#c8392c 0 33.3%,#ffffff 33.3% 66.6%,#7d9cf2 66.6% 100%);
  transform:skewX(-12.5deg);transform-origin:top left;
  box-shadow:6px 4px 12px rgba(15,31,102,.35);
}
.pc-ribbon-icon{width:26px;height:26px;flex:none}
.pc-stripe-rib{width:58px;height:6px;margin-left:4px;background:linear-gradient(90deg,#8fb0ff 0 44%,#ffffff 44% 54%,#e0362c 54% 100%)}

/* In stock */
.pc-stock{
  flex:none;
  display:flex;align-items:center;gap:7px;
  padding:7px 14px;border-radius:30px;
  background:#e7f6e9;border:1px solid #cbeacd;
  color:#1e7b32;font-weight:500;font-size:15px;
  box-shadow:0 4px 10px rgba(30,123,50,.12);
}
.pc-stock svg{width:20px;height:20px}
.pc-stock circle{fill:#1e8e3e}
.pc-stock path{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Middle row: logo + text | In Stock ---------- */
.pc-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 2px 10px}
.pc-category{display:flex;align-items:center;gap:10px;min-width:0}
.pc-cat-logo{
  width:34px;height:34px;border-radius:9px;flex:none;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#4a6fd6,var(--pc-navy-dark));
  box-shadow:0 4px 10px rgba(15,31,102,.3);
}
.pc-cat-logo svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pc-cat-text{color:#111a3f;font-weight:500;font-size:19px;letter-spacing:.2px}

/* NEW tag – red & gold corner ribbon (top-right) */
.pc-new{
  position:absolute;top:-5px;right:-5px;z-index:4;
  width:132px;height:132px;pointer-events:none;
  transform-origin:top right;
  filter:drop-shadow(-4px 6px 8px rgba(120,10,10,.35));
  animation:pcNewIn .9s cubic-bezier(.2,1.4,.4,1) .3s both, pcNewSwing 4s ease-in-out 1.4s infinite;
}
.pc-new svg{width:100%;height:100%;display:block;overflow:visible}
.pc-new-shine{animation:pcShine 3s ease-in-out 1.2s infinite}
.pc-spark{transform-box:fill-box;transform-origin:center;opacity:0;animation:pcTwinkle 2.4s ease-in-out infinite}
.pc-spark.s1{animation-delay:.6s}
.pc-spark.s2{animation-delay:1.4s}
.pc-spark.s3{animation-delay:2s}

@keyframes pcNewIn{
  from{transform:scale(0) rotate(-20deg);opacity:0}
  to{transform:scale(1) rotate(0);opacity:1}
}
@keyframes pcNewSwing{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.05)}
}
@keyframes pcShine{
  0%{transform:rotate(25deg) translateX(0)}
  60%,100%{transform:rotate(25deg) translateX(190px)}
}
@keyframes pcTwinkle{
  0%,100%{opacity:0;transform:scale(.3) rotate(0)}
  50%{opacity:1;transform:scale(1.2) rotate(45deg)}
}

/* ---------- Stripe accent (identical everywhere) ---------- */
.pc-stripe{
  display:inline-block;flex:none;width:64px;height:4px;
  background:linear-gradient(90deg,#7d9cf2 0 44%,#ffffff 44% 54%,#c8392c 54% 100%);
  transform:skewX(-35deg);
}

/* ---------- Info boxes with glass shine ---------- */
.pc-box{
  display:flex;gap:16px;padding:12px 16px;border-radius:12px;
  border:1px solid #d6dff0;
  background:
    linear-gradient(120deg,transparent 62%,rgba(225,232,245,.55) 62% 70%,transparent 70% 76%,rgba(225,232,245,.4) 76% 82%,transparent 82%),
    linear-gradient(180deg,#ffffff,#f6f8fc);
  box-shadow:0 4px 14px rgba(20,40,110,.06);
}
.pc-icon{
  flex:none;width:76px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  border-right:1px solid var(--pc-line);padding-right:16px;
}
.pc-tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  width:58px;padding:9px 0;border-radius:12px;
  background:linear-gradient(180deg,#ffffff,#f1f4fa);
  border:1px solid #e2e7f1;
  box-shadow:0 6px 14px rgba(20,40,110,.10),inset 0 1px 0 #fff;
}
.pc-tile-sm{width:58px;padding:11px 0}
.pc-cube{width:34px;height:34px;fill:var(--pc-navy-dark)}
.pc-barcode{
  width:36px;height:26px;
  background:repeating-linear-gradient(90deg,var(--pc-navy-dark) 0 2px,transparent 2px 3px,var(--pc-navy-dark) 3px 4px,transparent 4px 6px);
}
.pc-doc{width:28px;height:28px;fill:none;stroke:#8a3a2a;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.pc-body{flex:1;min-width:0}
.pc-box:not(.pc-desc) .pc-body{display:flex;flex-direction:column;justify-content:center;text-align:left}
.pc-title{margin:0 0 8px;color:var(--pc-text);font-size:19px;font-weight:500;line-height:1.3;letter-spacing:0}
.pc-sku{margin:10px 0 0;color:var(--pc-muted);font-weight:400;font-size:17px}

/* ---------- Separator lines (both the same) ---------- */
.pc-sep{display:flex;align-items:center;gap:4px}
.pc-sep-line{flex:1;height:1px;background:linear-gradient(90deg,#c3cde0,#dfe5f0)}
.pc-sep-full{margin:8px 0}

.pc-desc h4{margin:0 0 6px;color:var(--pc-text);font-size:19px;font-weight:500}
.pc-desc p{margin:0;color:#2c3a78;font-size:15.5px;line-height:1.55}

/* ---------- Features ---------- */
.pc-features{
  list-style:none;margin:6px 0 8px;padding:8px 6px;
  border:1px solid #d6dff0;border-radius:12px;
  display:grid;grid-template-columns:repeat(3,1fr);
  background:linear-gradient(180deg,#ffffff,#f5f7fc);
  box-shadow:0 4px 14px rgba(20,40,110,.06);
}
.pc-features li{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 6px;min-width:0}
/* visible separator: navy line fading at both ends, with a red centre dot */
.pc-features li+li::before{
  content:"";position:absolute;left:0;top:-2px;bottom:-2px;width:2px;border-radius:2px;
  background:linear-gradient(180deg,rgba(31,58,147,0),rgba(31,58,147,.55) 25%,rgba(31,58,147,.55) 75%,rgba(31,58,147,0));
}
.pc-features li+li::after{
  content:"";position:absolute;left:-2px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;
  background:var(--pc-red);box-shadow:0 0 0 2px #fff;
}
.pc-fi{
  flex:none;width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--pc-blue),var(--pc-navy-dark));
  box-shadow:0 4px 10px rgba(15,31,102,.3);
}
.pc-fi svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pc-ft{color:var(--pc-muted);font-size:12.5px;line-height:1.3}
.pc-ft b{display:block;font-weight:500;color:var(--pc-text);font-size:13.5px;white-space:nowrap}

/* ---------- Buttons (light → dark) ---------- */
.pc-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pc-btn{
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;gap:10px;
  height:40px;border-radius:12px;text-decoration:none;
  color:#fff;font-weight:400;font-size:17px;
  transition:transform .25s ease,filter .25s ease;
}
.pc-btn svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pc-btn .pc-chev{width:17px;height:17px;stroke-width:2;transition:transform .25s ease}
.pc-btn-blue{
  border:1px solid transparent;
  background:
    linear-gradient(270deg,#5b8af2 0%,#2c4fc0 40%,#16297f 75%,#0c1a55 100%) padding-box,
    linear-gradient(180deg,#0a144d 0%,#1a2c86 50%,#3a5ad0 100%) border-box;
  box-shadow:0 5px 12px rgba(19,42,124,.25),inset 0 0 0 1px rgba(255,255,255,.18);
}
.pc-btn-red{
  border:1px solid transparent;
  background:
    linear-gradient(270deg,#f2604f 0%,#d02e20 40%,#93140b 75%,#5e0904 100%) padding-box,
    linear-gradient(180deg,#4a0703 0%,#7d120a 50%,#c23a2a 100%) border-box;
  box-shadow:0 5px 12px rgba(143,16,16,.25),inset 0 0 0 1px rgba(255,255,255,.18);
}
/* bottom white slanted strip */
.pc-btn::before,.pc-btn::after{content:"";position:absolute;bottom:0;height:3px;background:rgba(255,255,255,.75)}
.pc-btn::before{left:0;width:46%;clip-path:polygon(0 0,100% 0,calc(100% - 6px) 100%,0 100%)}
.pc-btn::after{left:calc(46% + 4px);width:16px;clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%)}
.pc-btn:hover{transform:translateY(-2px);filter:brightness(1.08)}
.pc-btn:hover .pc-chev{transform:translateX(3px)}

@media (max-width:420px){
  .pc-media{height:290px}
  .pc-ribbon{font-size:13px;height:48px}
  .pc-title{font-size:17px}
  .pc-features{grid-template-columns:1fr;gap:10px}
  .pc-features li{justify-content:flex-start}
  .pc-features li+li{border-top:1px solid var(--pc-line);padding-top:10px}
  .pc-features li+li::before,.pc-features li+li::after{display:none}
  .pc-btn{font-size:16px;height:52px}
}

/* Title + SKU: left-aligned, vertically centered */
.pc-box:not(.pc-desc){align-items:stretch}
.pc-box:not(.pc-desc) .pc-body{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  text-align:left;
}
.pc-box:not(.pc-desc) .pc-sep{align-self:stretch}
.pc-box:not(.pc-desc) .pc-title{margin:0 0 10px}
.pc-box:not(.pc-desc) .pc-sku{margin:10px 0 0}



/* ===== products page grid: same card as the home page ===== */
#ctGrid{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr)) !important;gap:22px !important}
#ctGrid.is-list{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr)) !important}
#ctGrid > .pc-card{min-width:0;box-sizing:border-box;font-family:'Barlow',Arial,sans-serif;cursor:pointer;padding:12px 12px 14px;animation:pcCardGlow 3.2s ease-in-out infinite}
#ctGrid > .pc-card *{box-sizing:border-box}
#ctGrid > .pc-card .pc-media{height:auto;aspect-ratio:540/390}
#ctGrid > .pc-card .pc-img{object-fit:contain;max-height:78%}
#ctGrid > .pc-card .pc-noimg{position:absolute;inset:0;margin:auto;width:fit-content;height:fit-content;font-size:84px;color:#1f3a93;opacity:.25;z-index:2}
#ctGrid > .pc-card .pc-ribbon span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
#ctGrid > .pc-card .pc-info{margin-top:8px;padding:0 8px 8px}
#ctGrid > .pc-card .pc-meta{margin:6px 2px 4px}
#ctGrid > .pc-card .pc-cat-logo{width:28px;height:28px;border-radius:8px}
#ctGrid > .pc-card .pc-cat-logo svg{width:16px;height:16px}
#ctGrid > .pc-card .pc-cat-text{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ctGrid > .pc-card .pc-stock{padding:4px 10px;font-size:13px;gap:5px;white-space:nowrap}
#ctGrid > .pc-card .pc-stock svg{width:16px;height:16px}
#ctGrid > .pc-card .pc-stock.is-request{color:#1f3a93;background:#e8eefc;border-color:#c5d3f5}
#ctGrid > .pc-card .pc-stock.is-request circle{fill:#1f3a93}
#ctGrid > .pc-card .pc-box{padding:8px 12px;gap:12px}
#ctGrid > .pc-card .pc-info .pc-box+.pc-box{margin-top:4px}
#ctGrid > .pc-card .pc-tile{width:46px;padding:7px 0;gap:6px;border-radius:10px}
#ctGrid > .pc-card .pc-cube{width:26px;height:26px}
#ctGrid > .pc-card .pc-barcode{width:28px;height:20px}
#ctGrid > .pc-card .pc-doc{width:22px;height:22px}
#ctGrid > .pc-card .pc-title,#ctGrid > .pc-card .pc-box:not(.pc-desc) .pc-title{font-size:16px;line-height:1.25;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#ctGrid > .pc-card .pc-sku,#ctGrid > .pc-card .pc-box:not(.pc-desc) .pc-sku{font-size:14px;margin:6px 0 0}
#ctGrid > .pc-card .pc-desc h4{font-size:16px;margin:0 0 3px}
#ctGrid > .pc-card .pc-desc p{font-size:13.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#ctGrid > .pc-card .pc-sep-full,#ctGrid > .pc-card .pc-info .pc-sep-full{margin:4px 16px 4px 0}
#ctGrid > .pc-card .pc-features{margin:4px 0 6px;padding:5px 4px}
#ctGrid > .pc-card .pc-features li{gap:6px;padding:2px 4px}
#ctGrid > .pc-card .pc-fi{width:28px;height:28px}
#ctGrid > .pc-card .pc-fi svg{width:15px;height:15px}
#ctGrid > .pc-card .pc-ft{font-size:11px;line-height:1.2;min-width:0}
#ctGrid > .pc-card .pc-ft b{font-size:12px;white-space:normal}
#ctGrid > .pc-card .pc-actions{gap:10px}
#ctGrid > .pc-card .pc-btn{height:36px;font-size:15px;gap:7px;border-radius:10px}
#ctGrid > .pc-card .pc-btn svg{width:17px;height:17px}
#ctGrid > .pc-card .pc-btn .pc-chev{width:14px;height:14px}
#ctGrid > .pc-card.is-opening{transform:scale(1.03)}
/* NEW tag (ticked as NEW in the admin panel) */
#ctGrid > .pc-card .ct-newtag{position:absolute;top:14px;right:-34px;z-index:5;width:130px;padding:5px 0;transform:rotate(45deg);text-align:center;font:800 13px/1 'Barlow',Arial,sans-serif;letter-spacing:1.5px;color:#fff;background:linear-gradient(90deg,#c50f16,#ff2a22,#c50f16);box-shadow:0 4px 10px rgba(160,10,10,.4)}
