.pds-standalone-template,
.pds-standalone-template body {
	margin: 0;
	padding: 0;
}

:root {
	--pds-bg: #0d1522;
	--pds-surface: #131d2b;
	--pds-surface-2: #1b2635;
	--pds-surface-3: #0f1724;
	--pds-border: rgba(120, 150, 190, 0.14);
	--pds-primary: #56d7ff;
	--pds-primary-2: #2aa8ff;
	--pds-text: #f4f8ff;
	--pds-muted: #aeb8cb;
	--pds-muted-2: #91a0ba;
	--pds-price: #78ff52;
}

.pds-storefront {
	background: radial-gradient(circle at top, #182537 0%, var(--pds-bg) 45%);
	color: var(--pds-text);
	min-height: 100vh;
	padding: 28px 0 0;
}

.pds-main-shell {
	min-height: 60vh;
}

.pds-header,
.pds-filters,
.pds-grid,
.pds-cart-drawer {
	max-width: 1500px;
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
	box-sizing: border-box;
}

.pds-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pds-logo-container {
	text-decoration: none;
}

.pds-logo {
	color: var(--pds-primary);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.pds-logo-image {
	display: block;
	height: 58px;
	width: auto;
	max-width: min(320px, 40vw);
	object-fit: contain;
}

.pds-header-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.pds-header-link {
	color: var(--pds-muted);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.pds-header-link:hover {
	color: var(--pds-text);
}

.pds-cart-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--pds-border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	color: var(--pds-text);
	padding: 14px 20px;
	border-radius: 999px;
	cursor: pointer;
	min-height: 52px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.pds-cart-count {
	background: var(--pds-primary);
	color: #07131f;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 10px;
}

.pds-hero {
	max-width: 1180px;
	margin: 48px auto 42px;
	text-align: center;
}

.pds-hero h1 {
	margin: 0 0 18px;
	font-size: clamp(42px, 6vw, 78px);
	line-height: 1.05;
}

.pds-hero h1 span {
	color: var(--pds-primary);
}

.pds-hero p {
	margin: 0 auto;
	max-width: 760px;
	font-size: clamp(18px, 2vw, 26px);
	line-height: 1.55;
	color: var(--pds-muted);
}

.pds-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-bottom: 42px;
}

.pds-filter-btn {
	border: 1px solid var(--pds-border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--pds-muted);
	padding: 14px 32px;
	border-radius: 999px;
	font-size: 16px;
	cursor: pointer;
}

.pds-filter-btn.active {
	background: linear-gradient(135deg, var(--pds-primary), var(--pds-primary-2));
	color: #091522;
	font-weight: 700;
	box-shadow: 0 0 26px rgba(86, 215, 255, 0.28);
}

.pds-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	padding-bottom: 64px;
}

.pds-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 460px;
	padding: 24px;
	border: 1px solid var(--pds-border);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(13, 17, 28, 0.96), rgba(10, 15, 26, 0.96));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pds-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 6px 12px;
	border: 1px solid var(--pds-primary);
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.15;
	font-weight: 700;
	text-align: center;
	color: var(--pds-primary);
	background: rgba(86, 215, 255, 0.08);
	white-space: nowrap;
	margin-top: 10px;
	max-width: 100%;
}

.pds-card-header {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: start;
	gap: 16px;
	margin-bottom: 18px;
	min-height: 132px;
}

.pds-card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.pds-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pds-card-heading {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pds-card-title {
	margin: 0;
	font-size: clamp(22px, 2vw, 25px);
	line-height: 1.18;
	color: var(--pds-text);
	word-break: normal;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.pds-card-desc {
	flex: 1;
	color: var(--pds-muted);
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	max-width: 100%;
}

.pds-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
}

.pds-price {
	font-size: 28px;
	font-weight: 800;
	color: var(--pds-price);
}

.pds-price .woocommerce-Price-amount {
	color: inherit;
}

.pds-add-btn,
.pds-checkout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
	color: #111827;
	font-size: 16px;
	font-weight: 700;
	padding: 14px 28px;
	cursor: pointer;
	text-decoration: none;
	min-width: 154px;
	min-height: 56px;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.pds-add-btn.loading {
	opacity: 0.8;
	pointer-events: none;
}

.pds-btn-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(0, 0, 0, 0.18);
	border-top-color: #000;
	border-radius: 50%;
	animation: pds-spin 0.8s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes pds-spin {
	to {
		transform: rotate(360deg);
	}
}

.pds-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.42);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 9997;
}

.pds-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(420px, 100vw);
	height: 100vh;
	background: linear-gradient(180deg, #0e1724 0%, #101b2b 100%);
	border-left: 1px solid var(--pds-border);
	transform: translateX(100%);
	transition: transform 0.24s ease;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	padding: 24px 24px 26px;
	box-sizing: border-box;
	box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
}

.pds-cart-drawer.open,
.pds-cart-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.pds-cart-drawer.open {
	transform: translateX(0);
}

.pds-cart-header,
.pds-cart-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.pds-cart-header {
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pds-cart-header h3 {
	margin: 0;
	font-size: 30px;
	color: var(--pds-text);
}

.pds-cart-close {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--pds-text);
	font-size: 28px;
	cursor: pointer;
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.pds-cart-items {
	flex: 1;
	overflow: auto;
	padding: 18px 0 10px;
}

.pds-cart-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pds-cart-item-img img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	padding: 6px;
}

.pds-cart-item-name {
	font-weight: 700;
	font-size: 17px;
	line-height: 1.35;
	color: var(--pds-text);
}

.pds-cart-item-price,
.pds-cart-total-row {
	color: var(--pds-muted);
}

.pds-cart-item-price {
	margin-top: 8px;
	font-size: 15px;
	color: var(--pds-muted-2);
}

.pds-cart-item-qty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
}

.pds-qty-btn,
.pds-cart-item-remove {
	border: 1px solid var(--pds-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--pds-text);
	border-radius: 10px;
	padding: 4px 10px;
	cursor: pointer;
}

.pds-qty-val {
	min-width: 18px;
	text-align: center;
	color: var(--pds-text);
	font-weight: 700;
}

.pds-cart-item-remove {
	width: 38px;
	height: 38px;
	font-size: 22px;
	line-height: 1;
	border-radius: 12px;
}

.pds-cart-empty {
	color: var(--pds-muted);
	padding: 32px 0;
	text-align: center;
}

.pds-cart-footer {
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pds-cart-total-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.pds-cart-total-row strong {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pds-muted-2);
}

.pds-cart-total {
	font-size: 26px;
	font-weight: 800;
	color: var(--pds-text);
}

.pds-footer {
	padding: 18px 32px 28px;
}

.pds-footer-grid {
	max-width: 1500px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 28px;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 28px;
	background: linear-gradient(180deg, rgba(9, 14, 24, 0.94), rgba(12, 18, 30, 0.88));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pds-footer-card {
	padding: 6px 0;
}

.pds-footer-brand p {
	max-width: 44ch;
}

.pds-footer-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.pds-footer-pill-row span {
	display: inline-flex;
	align-items: center;
	padding: 9px 12px;
	border-radius: 999px;
	background: rgba(86, 215, 255, 0.08);
	border: 1px solid rgba(86, 215, 255, 0.18);
	color: var(--pds-primary);
	font-size: 13px;
	font-weight: 700;
}

.pds-footer h3,
.pds-footer h4 {
	margin: 0 0 14px;
	color: var(--pds-text);
}

.pds-footer p,
.pds-footer a,
.pds-footer-bottom {
	color: var(--pds-muted);
	text-decoration: none;
}

.pds-footer a {
	display: block;
	margin-bottom: 10px;
}

.pds-footer-bottom {
	max-width: 1500px;
	margin: 24px auto 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	text-align: center;
}

.pds-page-shell {
	padding: 24px 32px 12px;
}

.pds-page-main {
	max-width: 1320px;
	margin: 0 auto;
}

.pds-page-card {
	padding: 28px 32px;
	border-radius: 28px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(245, 248, 253, 0.985));
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
	color: #111827;
}

.pds-page-card .woocommerce,
.pds-page-card .woocommerce-checkout,
.pds-page-card .woocommerce-cart,
.pds-page-card .entry-content {
	color: #111827;
}

.pds-page-card .button,
.pds-page-card button,
.pds-page-card input[type="submit"],
.pds-page-card #place_order {
	border-radius: 999px !important;
	min-height: 52px;
	padding: 12px 26px !important;
}

.pds-page-card #place_order {
	background: linear-gradient(135deg, var(--pds-primary), var(--pds-primary-2)) !important;
	color: #07131f !important;
	font-weight: 800 !important;
	border: 0 !important;
}

.pds-page-card .wc-block-components-totals-item__value,
.pds-page-card .wc-block-components-formatted-money-amount {
	font-weight: 700;
}

@media (max-width: 1280px) {
	.pds-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.pds-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.pds-header,
	.pds-filters,
	.pds-grid,
	.pds-cart-drawer {
		padding-left: 18px;
		padding-right: 18px;
	}

	.pds-header-top {
		flex-direction: column;
		align-items: flex-start;
	}

	.pds-grid {
		grid-template-columns: 1fr;
	}

	.pds-card-title {
		font-size: 20px;
	}

	.pds-footer-grid {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.pds-page-shell {
		padding-left: 18px;
		padding-right: 18px;
	}

	.pds-page-card {
		padding: 20px 18px;
	}
}
