/* =============================================================
   Tayyab Organics — Single Product Summary Styles
   File: /yourtheme/assets/css/product-summary.css
   Enqueued via: functions.php (see instructions below)
============================================================= */

/* ── Scope & CSS variables ── */
.wc-cpg *, .wc-cpg *::before, .wc-cpg *::after {
	box-sizing: border-box;
}
.wc-cpg {
	--green:   #1a6b2f;
	--green2:  #2a8c42;
	--red:     #c0392b;
	--gray:    #777;
	--text:    #1a1a1a;
	--border:  #e2e2e2;
	font-family: 'DM Sans', sans-serif;
	color: var(--text);
	max-width: 480px;
}

/* ── Guarantee ticker ── */
.cpg-ticker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.cpg-ticker-line {
	width: 26px;
	height: 2px;
	background: var(--green);
	border-radius: 2px;
	flex-shrink: 0;
}
.cpg-ticker-msg {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--green);
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.cpg-ticker-msg.out { opacity: 0; transform: translateY(-5px); }
.cpg-ticker-msg.in  { opacity: 1; transform: translateY(0); }

/* ── Title ── */
.cpg-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(1.55rem, 2.8vw, 2rem);
	font-weight: 800;
	line-height: 1.13;
	color: var(--text);
	margin-bottom: 14px;
}

/* ── Quality badge ── */
.cpg-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--green);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 30px;
	margin-bottom: 18px;
}
.cpg-badge svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* ── Price ── */
.cpg-price-now {
	font-size: 1.95rem;
	font-weight: 700;
	color: var(--red);
	letter-spacing: -0.02em;
	line-height: 1;
}
.cpg-price-was {
	font-size: 0.95rem;
	color: var(--gray);
	text-decoration: line-through;
	margin-top: 3px;
}
.cpg-ship {
	font-size: 12px;
	color: var(--gray);
	margin-top: 6px;
	margin-bottom: 24px;
}
.cpg-ship a { color: var(--green); }

/* ── Buttons ── */
.cpg-btn {
	display: block;
	width: 100%;
	border-radius: 12px;
	padding: 14px 20px;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.18s, color 0.18s, transform 0.12s;
	letter-spacing: 0.01em;
	margin-bottom: 10px;
}
.cpg-btn-outline {
	background: #fff;
	color: var(--text);
	border: 2px solid var(--text);
}
.cpg-btn-outline:hover  { background: var(--text); color: #fff; transform: translateY(-1px); }
.cpg-btn-outline:active { transform: translateY(0); }

.cpg-btn-solid {
	background: var(--green);
	color: #fff;
	border: none;
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(26, 107, 47, 0.20);
	margin-bottom: 22px;
}
.cpg-btn-solid:hover  { background: var(--green2); color: #fff; transform: translateY(-1px); }
.cpg-btn-solid:active { transform: translateY(0); }

/* ── Delivery card ── */
.cpg-delivery {
	display: flex;
	align-items: stretch;
	background: #f7f7f5;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 22px;
}
.cpg-d-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 14px 10px;
}
.cpg-d-item + .cpg-d-item { border-left: 1px solid var(--border); }
.cpg-d-icon  { font-size: 22px; }
.cpg-d-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.cpg-d-date  { font-size: 13px; font-weight: 600; color: var(--text); }
.cpg-d-arrow { display: flex; align-items: center; padding: 0 6px; color: var(--green); font-size: 18px; font-weight: 700; flex-shrink: 0; }

/* ── Payment logos ── */
.cpg-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--gray);
	margin-bottom: 12px;
}
.cpg-pays {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex-wrap: wrap;
}
.cpg-pay {
	background: #f2f2f2;
	border: 1px solid #e5e5e5;
	border-radius: 7px;
	padding: 5px 9px;
	font-size: 11px;
	font-weight: 700;
	color: #333;
	letter-spacing: 0.03em;
}
.cpg-pay.mc   { color: #eb001b; }
.cpg-pay.visa { color: #1a1f71; }
.cpg-pay.pp   { color: #00843d; }
.cpg-pay.jc   { color: #cc0000; }
.cpg-pay.ep   { color: #5cb85c; }
.cpg-pay.cod  { background: #fffbe6; border-color: #f5c518; color: #b8860b; }

/* ── Trust bars ── */
.cpg-trust-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 22px;
}

/* Row 1 — shipping promises */
.cpg-trust-ship {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
}
.cpg-trust-item {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 14px;
	font-size: 13px;
	color: var(--text);
	line-height: 1.35;
}
.cpg-trust-item svg {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--green);
}
.cpg-trust-divider {
	width: 1px;
	background: var(--border);
	flex-shrink: 0;
}

/* Row 2 — four feature badges */
.cpg-trust-badges {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
}
.cpg-trust-badge {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--text);
	text-align: center;
	border-right: 1px solid var(--border);
}
.cpg-trust-badge:last-child { border-right: none; }
.cpg-trust-badge svg {
	width: 22px;
	height: 22px;
	color: var(--green);
}

/* ── Toast notification ── */
.cpg-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%) translateY(60px);
	background: #1a6b2f;
	color: #fff;
	padding: 11px 22px;
	border-radius: 30px;
	font-family: 'DM Sans', sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
	opacity: 0;
	z-index: 9999;
	pointer-events: none;
	white-space: nowrap;
}
.cpg-toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}