/* Our additions to the copied part-page design (product.css etc. stay as delivered). */

/* The site already loads Inter (next/font); the design asks for LCInter/Inter by name. */
.pp, .pp-dialog { font-family: inherit; }

/* Specifications grouped by category (Technical, Physical, ...): one heading row per group. */
.pp .pp-specs .pp-spec-group-head th { padding-top: 14px; padding-bottom: 6px; background: var(--soft); color: var(--ink);
	font-size: 12px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; text-align: left; }
.pp .pp-specs .pp-spec-group:first-of-type .pp-spec-group-head th { padding-top: 8px; }

/* Copy buttons next to the manufacturer and the description. */
.pp .pp-copy-value { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.pp .pp-copy-value > :first-child { min-width: 0; overflow-wrap: anywhere; }
.pp .pp-copy-value .pp-copy-mpn { flex-shrink: 0; }
.pp .pp-description-row .pp-copy-mpn { margin-top: 1px; }

/* "Already in your cart" popup: a part has one delivery option in the cart. */
.pp .pp-clash { width: min(440px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--border); border-radius: 14px;
	background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px #17200c33; }
.pp .pp-clash::backdrop { background: #17200c59; }
.pp .pp-clash h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 650; }
.pp .pp-clash p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pp .pp-clash p b { color: var(--ink); font-weight: 600; }
.pp .pp-clash-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp .pp-clash-actions .pp-primary { flex: 1 1 100%; justify-content: center; }
.pp .pp-clash-actions .pp-secondary { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
	min-height: 36px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.pp .pp-clash-actions .pp-secondary:hover { background: var(--soft); }

/* Packaging switch (Cut tape / Full reel): two cards like the delivery options. */
.pp .pp-pack { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 100%; border: 0; border-radius: 0; overflow: visible; margin: 2px 0 12px; }
.pp .pp-pack button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left;
	padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 12px;
	transition: border-color .15s, background-color .15s; }
.pp .pp-pack button b { font-size: 12.5px; font-weight: 650; }
/* wraps instead of "…" (25 Nov 2026): narrow tablets cut "10,000 pcs/reel · ₹0.2342" short; both tabs keep one height */
.pp .pp-pack button small { font-size: 11px; line-height: 1.35; color: var(--muted); max-width: 100%; overflow-wrap: anywhere; }
.pp .pp-pack button:not(:disabled):hover { border-color: var(--active); }
.pp .pp-pack button[aria-pressed="true"] { border-color: var(--active); background: var(--tint); color: var(--accent); font-weight: inherit;
	box-shadow: inset 0 0 0 1px var(--active); }
.pp .pp-pack button[aria-pressed="true"] small { color: var(--accent); }

/* Quantity box: room for the "Min 1,000" placeholder. */
.pp .pp-purchase .pp-step { max-width: 156px; }
.pp .pp-purchase .pp-step input { width: 80px; }

/* Buy box while the first price loads. */
.pp .pp-loading { display: grid; gap: 10px; margin: 4px 0 14px; }
.pp .pp-loading-bar { display: block; height: 14px; border-radius: 6px;
	background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%;
	animation: pp-shimmer 1.2s ease-in-out infinite; }
@keyframes pp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pp .pp-loading-bar { animation: none; } }

/* Cart notification: top right, below the sticky site header. Errors stay until closed. */
.pp .pp-toast { position: fixed; top: calc(76px + env(safe-area-inset-top)); right: 16px; z-index: 1600; display: flex; align-items: flex-start; gap: 10px;
	width: min(360px, calc(100vw - 32px)); padding: 12px 10px 12px 12px; border: 1px solid var(--border); border-left: 4px solid var(--green);
	border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 32px #17200c29; animation: pp-toast-in .22s ease-out; }
.pp .pp-toast[data-ok="false"] { border-left-color: #c2410c; }
.pp .pp-toast-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-wash); color: var(--green); }
.pp .pp-toast[data-ok="false"] .pp-toast-icon { background: #fdecdf; color: #c2410c; }
.pp .pp-toast-icon svg { width: 15px; height: 15px; }
.pp .pp-toast p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; }
.pp .pp-toast p b { display: block; font-weight: 650; margin-bottom: 1px; }
.pp .pp-toast p span { color: var(--muted); overflow-wrap: anywhere; }
.pp .pp-toast a { align-self: center; flex: none; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.pp .pp-toast a:hover { text-decoration: underline; }
.pp .pp-toast button { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.pp .pp-toast button:hover { background: var(--soft); }
.pp .pp-toast button svg { width: 14px; height: 14px; }
@keyframes pp-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { .pp .pp-toast { top: calc(64px + env(safe-area-inset-top)); } }

/* Spinner inside a button while the cart is being updated */
.pp .pp-spinner { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
	border-radius: 50%; animation: pp-spin .7s linear infinite; vertical-align: -2px; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp button[aria-busy="true"]:disabled { opacity: .85; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .pp .pp-spinner { animation-duration: 1.6s; } .pp .pp-toast { animation: none; } }

/* Part already in the cart */
.pp .pp-in-cart-line { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; font-size: 12.5px; color: var(--green); }
.pp .pp-in-cart-line svg { width: 15px; height: 15px; }
.pp .pp-in-cart-line b { font-weight: 650; }
.pp a.pp-primary { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.pp .pp-in-cart { display: flex; flex-direction: column; gap: 6px; }
.pp .pp-in-cart small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--green); }
.pp .pp-in-cart small svg { width: 13px; height: 13px; }
.pp .pp-in-cart .pp-view-cart { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 12px;
	border: 1px solid var(--active); border-radius: 8px; background: var(--tint); color: var(--accent); font-size: 12.5px; font-weight: 650; text-decoration: none; }
.pp .pp-in-cart .pp-view-cart:hover { background: #ffe9d4; }
.pp .pp-rec-buy .pp-in-cart { flex-direction: row; align-items: center; gap: 8px; margin-left: auto; }

/* Price breaks: quantity, unit price, extended price */
.pp .pp-slabs :is(th, td):nth-child(2) { text-align: right; }
.pp .pp-slabs td:nth-child(3) { color: var(--muted); font-variant-numeric: tabular-nums; }
.pp .pp-slabs tr[data-active] td:nth-child(3) { color: inherit; }
.pp .pp-slabs td { font-variant-numeric: tabular-nums; white-space: nowrap; }
