/* Pak Fashion Point Toolkit — frontend styles (v2.0.0) */

:root {
	--pfp-pink: #d63384;
	--pfp-pink-dark: #a91e63;
	--pfp-ink: #2b2b2b;
	--pfp-muted: #777;
	--pfp-line: #eee;
	--pfp-wa: #25d366;
	--pfp-wa-dark: #1da851;
}

/* ---------- Buttons ---------- */
.pfp-btn {
	display: inline-block;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pfp-btn:hover { transform: translateY(-1px); }
.pfp-btn-primary { background: var(--pfp-pink); color: #fff; box-shadow: 0 6px 18px rgba(214,51,132,.35); }
.pfp-btn-primary:hover { background: var(--pfp-pink-dark); color: #fff; }
.pfp-btn-whatsapp { background: var(--pfp-wa); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.35); }
.pfp-btn-whatsapp:hover { background: var(--pfp-wa-dark); color: #fff; }
.pfp-btn-block { display: block; width: 100%; }

/* ---------- Cart button ---------- */
.pfp-cart-button {
	position: relative;
	background: #fff;
	border: 1px solid var(--pfp-line);
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--pfp-ink);
}
.pfp-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--pfp-pink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* ---------- Cart drawer ---------- */
.pfp-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
	z-index: 9998;
}
.pfp-drawer-overlay.open { opacity: 1; visibility: visible; }
.pfp-drawer {
	position: fixed;
	top: 0;
	right: -380px;
	width: 360px;
	max-width: 92vw;
	height: 100dvh;
	background: #fff;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	transition: right .28s ease;
	box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.pfp-drawer.open { right: 0; }
.pfp-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--pfp-line);
}
.pfp-drawer-head h3 { margin: 0; font-size: 17px; }
.pfp-cart-close {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--pfp-muted);
}
.pfp-drawer-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
.pfp-drawer-empty { color: var(--pfp-muted); text-align: center; margin-top: 30px; }
.pfp-drawer-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pfp-line);
}
.pfp-drawer-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.pfp-drawer-item-info { flex: 1; }
.pfp-drawer-item-info strong { display: block; font-size: 14px; }
.pfp-drawer-item-info small { color: var(--pfp-muted); }
.pfp-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.pfp-qty-btn {
	width: 26px; height: 26px;
	border: 1px solid var(--pfp-line);
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}
.pfp-drawer-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.pfp-remove { background: none; border: 0; font-size: 20px; color: var(--pfp-muted); cursor: pointer; }
.pfp-drawer-foot { padding: 16px 18px; border-top: 1px solid var(--pfp-line); }
.pfp-drawer-subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 4px; }
.pfp-drawer-note { font-size: 12px; color: var(--pfp-muted); text-align: center; margin: 6px 0 12px; }

/* ---------- Auto rails ---------- */
.pfp-rail-wrap { margin: 28px 0; overflow: hidden; }
.pfp-rail-title { font-size: 22px; margin: 0 0 14px; }
.pfp-rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.pfp-rail-track { display: flex; gap: 16px; width: max-content; animation: pfp-rail-scroll 32s linear infinite; }
.pfp-rail:hover .pfp-rail-track { animation-play-state: paused; }
@keyframes pfp-rail-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pfp-rail-card {
	flex: 0 0 210px;
	background: #fff;
	border: 1px solid var(--pfp-line);
	border-radius: 14px;
	padding: 14px;
	position: relative;
}
.pfp-rail-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 130px; text-decoration: none; color: var(--pfp-ink); }
.pfp-rail-cat-name { font-weight: 700; font-size: 16px; text-align: center; }
.pfp-rail-cat small { color: var(--pfp-muted); }
.pfp-product-card { display: flex; flex-direction: column; gap: 8px; }
.pfp-badge {
	position: absolute; top: 10px; left: 10px;
	background: var(--pfp-pink); color: #fff;
	font-size: 11px; font-weight: 700;
	padding: 3px 10px; border-radius: 999px;
}
.pfp-card-img img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; }
.pfp-card-title { font-weight: 600; font-size: 14px; color: var(--pfp-ink); text-decoration: none; }
.pfp-card-price { font-weight: 700; color: var(--pfp-pink-dark); }
.pfp-card-shade { width: 100%; padding: 7px; border: 1px solid var(--pfp-line); border-radius: 8px; }
.pfp-product-card .pfp-btn { padding: 10px 14px; font-size: 14px; }

/* ---------- Shades ---------- */
.pfp-shades { display: flex; flex-wrap: wrap; gap: 14px; }
.pfp-shade { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.pfp-shade-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pfp-line); display: inline-block; }

/* ---------- Social icons ---------- */
.pfp-social-icons { display: flex; gap: 10px; }
.pfp-social-icon {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #f7f7f7; color: var(--pfp-ink);
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.pfp-social-icon:hover { background: var(--pfp-pink); color: #fff; transform: translateY(-2px); }

/* ---------- Checkout ---------- */
.pfp-checkout-cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
@media (max-width: 760px) { .pfp-checkout-cols { grid-template-columns: 1fr; } }
.pfp-checkout h3 { margin-top: 0; }
.pfp-field { margin: 0 0 14px; }
.pfp-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.pfp-field input[type="text"], .pfp-field input[type="tel"], .pfp-field textarea {
	width: 100%; padding: 11px 13px;
	border: 1px solid #ddd; border-radius: 10px; font-size: 15px;
}
.pfp-field-error { color: #c00; font-size: 13px; }
.pfp-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.pfp-notice-error { background: #fdecea; color: #a31515; }
.pfp-cod-note {
	background: #f3faf5; border: 1px dashed var(--pfp-wa);
	color: #146c36; padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.pfp-summary-table { width: 100%; border-collapse: collapse; }
.pfp-summary-table td, .pfp-summary-table th { padding: 10px 4px; border-bottom: 1px solid var(--pfp-line); text-align: left; font-size: 14px; }
.pfp-summary-table .pfp-num { text-align: right; white-space: nowrap; }
.pfp-checkout-empty { text-align: center; padding: 40px 0; color: var(--pfp-muted); }

/* ---------- Order success ---------- */
.pfp-order-success { display: flex; justify-content: center; padding: 30px 0; }
.pfp-success-card {
	max-width: 520px; text-align: center;
	border: 1px solid var(--pfp-line); border-radius: 18px; padding: 36px 30px;
	box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.pfp-success-check {
	width: 64px; height: 64px; margin: 0 auto 14px;
	background: var(--pfp-wa); color: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 32px;
}
.pfp-success-hint { color: var(--pfp-muted); font-size: 14px; }

/* ---------- Fallback single product ---------- */
.pfp-single { max-width: 1080px; margin: 30px auto; padding: 0 18px; }
.pfp-single-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .pfp-single-cols { grid-template-columns: 1fr; } }
.pfp-single-media { position: relative; }
.pfp-single-media img { width: 100%; border-radius: 16px; }
.pfp-single-price { font-size: 26px; font-weight: 800; color: var(--pfp-pink-dark); margin: 8px 0 14px; }
.pfp-single-label { display: block; font-weight: 600; margin: 14px 0 6px; }
.pfp-single-shade, #pfp-single-qty { padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; }
.pfp-single-buy { display: flex; align-items: center; gap: 10px; margin: 16px 0; flex-wrap: wrap; }

/* ---------- Header nav fix (v2.0.1, belt-and-braces) ---------- */
@media (min-width: 1021px) {
	nav.main > ul { display:flex; flex-wrap:wrap; gap:8px 24px; align-items:center; justify-content:flex-end; margin:0; padding:0; }
	nav.main > ul li { list-style:none; margin:0; }
}