/* Additions for the live Laravel site (on top of style.css from the design) */

/* --- skeleton / placeholder loading --- */
@keyframes pb-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.sk .im, .sk i, .sk-block, .img-wait:not(.loaded), .pcard .im:not(.loaded) {
  background: linear-gradient(90deg, var(--soft) 0, #e9e9ee 40%, var(--soft) 80%) var(--soft);
  background-size: 800px 100%; animation: pb-shimmer 1.3s linear infinite;
}
.sk { pointer-events: none; }
.sk .bd { display: grid; gap: 8px; padding-top: 14px; }
.sk i { display: block; height: 12px; border-radius: 6px; }
.sk .l1 { width: 86%; height: 14px; } .sk .l2 { width: 58%; } .sk .l3 { width: 40%; }
.pcard .im img, .img-wait img { opacity: 0; transition: opacity .35s, transform .35s; }
.pcard .im.loaded img, .img-wait.loaded img { opacity: 1; }
.sk-block { position: absolute; inset: 0; }
.pcard.in { animation: pb-in .35s ease both; }
@keyframes pb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grid-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--mute); background: var(--soft); border-radius: var(--r); }

/* product card "add to order" button */
.pcard .add { position: absolute; right: 10px; bottom: 10px; height: 34px; padding: 0 12px; border-radius: 99px; border: 0; background: #fff; color: var(--ink); font: 600 12.5px var(--font); display: flex; align-items: center; gap: 5px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, background .2s; }
.pcard .add .ico { width: 15px; height: 15px; }
.pcard:hover .add, .pcard .add:focus-visible, .pcard .add.done { opacity: 1; transform: none; }
.pcard .add:hover { background: var(--red); color: #fff; }
.pcard .add.done { background: var(--green); color: #fff; }
@media (hover: none) { .pcard .add { opacity: 1; transform: none; } }

/* --- header bits --- */
.topbar .tl a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tl { display: flex; gap: 20px; }
.badge[hidden] { display: none !important; }
.flash { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #e8f8ee; color: #137a40; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 200; opacity: 0; transition: opacity .2s, transform .2s; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / .2); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #ff8a8a; white-space: nowrap; }

/* --- listing --- */
.list-head { padding: 8px 0 4px; } .list-head h1 { font-size: 36px; font-weight: 800; } .list-head p { color: var(--mute); margin: 6px 0 0; }
.cat-hero .cat-banner { display: flex; align-items: center; justify-content: center; background: #fff; padding: 10px; }
.cat-hero .cat-banner img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 14px; }
.fcat { display: flex; justify-content: space-between; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.fcat em { font-style: normal; color: var(--mute); font-size: 12.5px; }
.fcat:hover { background: var(--soft); } .fcat.on { background: var(--red-soft); color: var(--red); font-weight: 700; }
.sortf select { height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 10px; font: 600 14px var(--font); background: #fff; margin-left: 6px; }
.sortf label { font-size: 14px; color: var(--mute); }
.pager span.off { min-width: 40px; height: 40px; display: grid; place-items: center; color: var(--line-2); }
.pager .ico { width: 16px; height: 16px; }

/* --- product page --- */
.gallery .th img { cursor: pointer; }
.gallery .main.img-wait img { opacity: 0; } .gallery .main.loaded img { opacity: 1; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--line-2); } .noimg .ico { width: 80px; height: 80px; }
.qty-in { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; height: 48px; }
.qty-in button { width: 44px; height: 100%; border: 0; background: var(--soft); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty-in input { width: 100px; height: 100%; border: 0; text-align: center; font: 700 16px var(--font); -moz-appearance: textfield; }
.qty-in input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-in.sm { height: 38px; } .qty-in.sm button { width: 34px; font-size: 17px; } .qty-in.sm input { width: 64px; font-size: 14.5px; }
.ta-in, .line-form textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: 14.5px/1.5 var(--font); resize: vertical; }
.ta-in:focus, .line-form textarea:focus, .f input:focus, .f select:focus, .f textarea:focus, .qty-in:focus-within { outline: none; border-color: var(--ink); }
.buy button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.add-msg { min-height: 22px; margin: 10px 0 0; font-weight: 600; color: var(--green); }
.add-msg a { color: var(--red); margin-left: 6px; }
.details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.details h3 { font-size: 22px; margin-bottom: 10px; }

/* --- forms (order list + quote) --- */
.f input, .f select, .f textarea { height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: 14.5px var(--font); color: var(--ink); background: #fff; width: 100%; }
.f textarea { height: auto; padding: 12px 14px; resize: vertical; }
.f.full { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.err-box { background: #fdecec; color: #a11a1a; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form-card button.btn, .place-form button.btn { border: 0; cursor: pointer; font: 700 16px var(--font); }

/* --- order list --- */
.list-top { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 8px; gap: 20px; flex-wrap: wrap; }
.list-top h1 { font-size: 34px; font-weight: 800; } .list-top h1 span { color: var(--mute); font-weight: 600; font-size: 20px; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mute); }
.progress span:not(.ln) { display: flex; gap: 8px; align-items: center; } .progress i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-style: normal; font-size: 13px; }
.progress .on { color: var(--ink); } .progress .on i { background: var(--red); color: #fff; } .progress .ln { width: 30px; height: 2px; background: var(--line-2); }
.citem { grid-template-columns: 130px 1fr; }
.citem > a { width: 130px; height: 130px; border-radius: 14px; overflow: hidden; display: block; }
.citem h3 a:hover { color: var(--red); }
.citem .line-form { margin-top: 10px; display: grid; gap: 8px; max-width: 520px; }
.citem .acts { align-items: center; margin-top: 0; }
.citem .acts .link, .citem .rm { background: none; border: 0; padding: 0; cursor: pointer; font: 600 13.5px var(--font); }
.citem .rm { color: var(--mute); margin-top: 8px; } .citem .rm:hover { color: var(--red); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 20px; }
.summary h3 { font-size: 22px; margin-bottom: 6px; } .sumnote { color: var(--mute); font-size: 14px; margin: 0 0 16px; }
.place-form { display: grid; gap: 12px; }
.trust-row { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--mute); margin-top: 14px; } .trust-row .ico { width: 15px; height: 15px; }
.empty-state { text-align: center; padding: 70px 20px; background: var(--soft); border-radius: var(--r-lg); margin: 20px 0 40px; }
.empty-state .ico { width: 54px; height: 54px; color: var(--red); } .empty-state h2 { margin: 12px 0 8px; } .empty-state p { color: var(--ink-2); max-width: 520px; margin: 0 auto 22px; }
.placed { max-width: 640px; margin: 50px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 28px; box-shadow: var(--shadow); }
.placed .ok { width: 68px; height: 68px; border-radius: 50%; background: #e8f8ee; color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; } .placed .ok .ico { width: 34px; height: 34px; }
.placed h1 { font-size: 30px; margin-bottom: 10px; } .placed p { color: var(--ink-2); }
.placed-items { text-align: left; background: var(--soft); border-radius: 14px; padding: 12px 18px; margin: 20px 0 24px; }
.placed-items div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); } .placed-items div:last-child { border: 0; }

/* scrolling rails really scroll on the live site */
@media (max-width: 760px) {
  .topbar .tl { display: none; }
  .pgrid.scroll, .units, .subcats, .tabs { overflow-x: auto !important; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .pgrid.scroll > * { scroll-snap-align: start; }
  .pgrid.scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; }
  .list-head h1, .list-top h1 { font-size: 26px; } .progress { display: none; }
  .cart { grid-template-columns: 1fr; } .summary { position: static; }
  .citem { grid-template-columns: 90px 1fr; gap: 14px; } .citem > a { width: 90px; height: 90px; }
  .details { grid-template-columns: 1fr; gap: 24px; }
  .frow { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; }
}
.gallery.single { grid-template-columns: 1fr; }

/* ---- Home: full-width slider, separator banners, category title signs (as on printbazaar.in) ---- */
.hero.hero-full { padding: 0; }
.hero-full .hero-main { border-radius: 0; }
/* banner 20% lower than the image; trims the thin frame baked into the slide images */
.hero-full .slider { aspect-ratio: 1857/670; }
.hero-full .slider .slide { overflow: hidden; }
.hero-full .slider .slide img { object-fit: cover; object-position: center 30%; transform: scale(1.012); }
.sep-banner { display: block; background: #000; line-height: 0; }
.sep-banner img { width: 100%; height: auto; display: block; }
.cat-sec { padding-top: 34px; }
.cat-title { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; text-align: center; }
.cat-title .sign { display: block; width: min(560px, 100%); margin: -34px auto 0; }
.cat-title .sign img { width: 100%; height: auto; display: block; }
.cat-title h2 { font-size: 30px; font-weight: 800; }
.cat-title .link { position: absolute; right: 0; bottom: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .hero-full .hero-main { border-radius: 0; }
  .cat-sec { padding-top: 22px; }
  .cat-title { margin-bottom: 14px; }
  .cat-title .sign { margin-top: -22px; width: 92%; }
  .cat-title .link { position: static; margin-top: 6px; }
}

/* ---- Privacy, terms, sitemap ---- */
.legal-hero { background: var(--red-soft); padding: 48px 0 40px; }
.legal-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.1; margin: 6px 0 8px; }
.legal-hero p { color: var(--ink-2); font-size: 17px; margin: 0; }
.legal { max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--ink-2); padding: 12px 0 40px; }
.legal h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 32px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 20px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--ink); }
.legal .upd { font-size: 14px; color: var(--mute); }
.legal .upd strong { margin-right: 6px; }
.legal .note { background: var(--red-soft); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 8px; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 32px; padding: 8px 0 48px; }
.sitemap h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.sitemap ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.sitemap li { padding: 4px 0; }
.sitemap a:hover { color: var(--red); }
.foot-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .fb-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .legal-hero { padding: 30px 0 26px; } .legal-hero h1 { font-size: 30px; } }

/* ---- Mega menu: links only, using the full width ---- */
.mega .wrap.mega-full { display: block; padding-top: 26px; padding-bottom: 22px; }
.mega .mega-links { display: block; columns: 5 200px; column-gap: 32px; }
.mega .mega-links li { break-inside: avoid; padding: 5px 0; }
.mega-foot { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: flex; justify-content: flex-end; }

/* ---- Bigger logo ---- */
.mainbar .logo img { height: 62px; width: auto; }
@media (max-width: 760px) { .mainbar .logo img { height: 42px; } }

/* ---- Shop by category: spread the circles across the full width ---- */
@media (min-width: 761px) {
  .cat-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
  .cat-rail .ci { width: 100%; max-width: 200px; margin-left: auto; margin-right: auto; }
  .cat-rail a { font-size: 16px; }
  .cat-rail small { font-size: 13.5px; }
}

/* ---- Section title signs: one consistent hanging sign in CSS (replaces the mixed sign images) ---- */
.cat-sec { padding-top: 0; }
.cat-title { padding-top: 34px; margin-bottom: 22px; }
.hang-sign { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: #9b1b1e; color: #fff; padding: 8px 46px 9px; border-radius: 12px; box-shadow: 0 6px 16px rgb(155 27 30 / .25); max-width: 100%; }
.hang-sign::before, .hang-sign::after { content: ""; position: absolute; top: -34px; width: 3px; height: 34px; background: var(--red); }
.hang-sign::before { left: 22px; } .hang-sign::after { right: 22px; }
.hang-sign h2 { font-family: var(--head); font-size: 17px; font-weight: 800; line-height: 1.2; color: #fff; margin: 0; }
.hang-sign span { display: flex; flex-wrap: wrap; justify-content: center; font-size: 11px; font-weight: 600; color: rgb(255 255 255 / .9); line-height: 1.3; }
.hang-sign span i { font-style: normal; }
.hang-sign span i + i::before { content: "|"; margin: 0 5px; opacity: .6; }
.hang-sign:hover { background-color: #b71c1c; }
/* the two white "holes" of the sign */
.cat-title .hang-sign { background-image: radial-gradient(circle at 20px 50%, #fff 0 7px, transparent 7.5px), radial-gradient(circle at calc(100% - 20px) 50%, #fff 0 7px, transparent 7.5px); }
@media (max-width: 760px) {
  .cat-title { padding-top: 24px; margin-bottom: 14px; }
  .hang-sign { padding: 7px 40px 8px; border-radius: 12px; }
  .hang-sign::before, .hang-sign::after { top: -24px; height: 24px; }
  .hang-sign::before { left: 18px; } .hang-sign::after { right: 18px; }
  .hang-sign h2 { font-size: 17px; }
  .hang-sign span { font-size: 11px; }
  .hang-sign span i + i::before { margin: 0 5px; }
  .hang-sign span i:nth-child(n+4) { display: none; }
  .cat-title .hang-sign { background-image: radial-gradient(circle at 17px 50%, #fff 0 6px, transparent 6.5px), radial-gradient(circle at calc(100% - 17px) 50%, #fff 0 6px, transparent 6.5px); }
}

/* ---- Our clients: working sector filter ---- */
.client-filter button { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; font: 600 14px var(--font); color: var(--ink-2); background: #fff; cursor: pointer; white-space: nowrap; }
.client-filter button:hover { border-color: var(--ink); }
.client-filter button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
#client-logos > div.hide { display: none !important; }
@media (max-width: 760px) {
  #client-logos > div:nth-child(n+13) { display: grid; }
  .client-filter button { height: 34px; font-size: 13px; padding: 0 13px; }
}

/* ---- Category page header: text across the full width, no sign image ---- */
.cat-hero.cat-hero-wide { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 40px; }
.cat-hero-wide .t { padding: 0; flex: 1; }
.cat-hero-wide h1 { font-size: 30px; margin-bottom: 8px; }
.cat-hero-wide p { max-width: 820px; margin: 0; }
.cat-hero-wide .acts { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 760px) {
  .cat-hero.cat-hero-wide { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 18px; }
  .cat-hero-wide .acts { flex-wrap: wrap; }
  .cat-hero-wide h1 { font-size: 20px; }
}

/* ---- Home: two rows of products per section (desktop 5 x 2; mobile scrolls sideways in 2 rows) ---- */
.pgrid.rows2 { row-gap: 26px; }
@media (max-width: 760px) {
  .pgrid.scroll.rows2 { grid-template-rows: auto auto; row-gap: 16px; }
}

/* ---- Product page: thumbnails in a row below the main photo (like printbazaar.in) ---- */
.gallery { grid-template-columns: 1fr; }
.gallery .th { order: 2; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; }
.gallery .th img { flex: 0 0 auto; width: 84px; height: 84px; }
.gallery .th img.on { border-color: var(--red); }
@media (max-width: 760px) { .gallery .th img { width: 64px; height: 64px; } }
.gallery .g-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; z-index: 2; opacity: .92; transition: transform .15s, opacity .15s; }
.gallery .g-arr:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }
.gallery .g-arr.l { left: 14px; } .gallery .g-arr.r { right: 14px; }
.gallery .g-arr .ico { width: 20px; height: 20px; }
@media (max-width: 760px) { .gallery .g-arr { width: 36px; height: 36px; } .gallery .g-arr.l { left: 8px; } .gallery .g-arr.r { right: 8px; } }
