/*
Theme Name: PlayHub
Theme URI: https://example.com/playhub
Author: You
Description: Dark gaming-store theme for WooCommerce — buy & sell new and pre-owned games, consoles, accessories and PC parts. Hero slider, category tiles, product carousels, sell banner, FAQ and WhatsApp button. Everything (brand, colours, sections, FAQ, contact) is editable in Appearance → Customize.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: playhub
Tags: e-commerce, dark, custom-logo, custom-menu, featured-images
WC requires at least: 7.0
*/

:root {
	/* Light (default) */
	--ph-bg: #ffffff;
	--ph-surface: #f4f5f7;
	--ph-card: #ffffff;
	--ph-card-2: #f8f9fb;
	--ph-border: #e4e6ea;
	--ph-text: #15171c;
	--ph-muted: #61656f;
	--ph-accent: #56be60;
	--ph-accent-ink: #26853a;
	--ph-accent-dark: #3f9a48;
	--ph-header: #ffffff;
	--ph-input: #ffffff;
	--ph-search: #f1f2f4;
	--ph-placeholder: #7a7e88;
	--ph-media: #f1f2f4;
	--ph-sell-bg: linear-gradient(120deg, #e9f7eb 0%, #f6f8f7 60%);
	--ph-sell-border: #cfe9d3;
	--ph-inset: #ffffff;
	--ph-shadow: 0 6px 22px rgba(20, 24, 32, .08);
	--ph-login-bg: #15171c;
	--ph-login-ink: #ffffff;
	--ph-glow: rgba(86,190,96,.06);
	--ph-gold: #a37e1f;
	--ph-radius: 16px;
	--ph-max: 1280px;
	--ph-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}
/* Dark mode (Customize → PlayHub Store → Brand & colours) */
body.ph-dark {
	--ph-bg: #000000;
	--ph-surface: #121317;
	--ph-card: #15161b;
	--ph-card-2: #1c1d23;
	--ph-border: #26282f;
	--ph-text: #f4f4f6;
	--ph-muted: #9b9da6;
	--ph-accent-ink: #56be60;
	--ph-header: #121317;
	--ph-input: #1f2027;
	--ph-search: #24262d;
	--ph-placeholder: #c9cad0;
	--ph-media: #0b0b0e;
	--ph-sell-bg: linear-gradient(120deg, #0f2a14 0%, #121317 55%);
	--ph-sell-border: #1f3b24;
	--ph-inset: rgba(0,0,0,.35);
	--ph-shadow: none;
	--ph-login-bg: #2a2c34;
	--ph-login-ink: #f4f4f6;
	--ph-glow: rgba(86,190,96,.10);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ph-bg);
	background-image: radial-gradient(1200px 600px at -10% 40%, var(--ph-glow), transparent 60%);
	background-attachment: fixed;
	color: var(--ph-text);
	font-family: var(--ph-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ph-accent-ink); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.ph-container { width: 100%; max-width: var(--ph-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.ph-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ph-header);
	border-bottom: 2px solid var(--ph-accent);
}
.admin-bar .ph-header { top: 32px; }
.ph-header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.ph-icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; display: inline-flex; color: var(--ph-text); border-radius: 8px; }
.ph-icon-btn:hover { background: var(--ph-card-2); }
.ph-logo { display: flex; align-items: center; flex-shrink: 0; }
.ph-logo img, .ph-logo .custom-logo { max-height: 44px; width: auto; }
.ph-logo__text {
	font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: -.5px; text-transform: uppercase;
	background: linear-gradient(90deg, var(--ph-text) 0%, var(--ph-text) 45%, var(--ph-accent-ink) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.ph-search { flex: 1; max-width: 640px; position: relative; }
.ph-search input[type="search"] {
	width: 100%; height: 40px; border-radius: 10px; border: 1px solid transparent;
	background: var(--ph-search); padding: 0 44px 0 14px; outline: none; color: var(--ph-text);
}
.ph-search input[type="search"]::placeholder { color: var(--ph-placeholder); font-weight: 500; }
.ph-search input[type="search"]:focus { border-color: var(--ph-accent); }
.ph-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ph-muted); cursor: pointer; padding: 6px; display: flex; }
.ph-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ph-cart-link { display: inline-flex; align-items: center; gap: 8px; position: relative; font-weight: 500; }
.ph-cart-count {
	position: absolute; top: -8px; left: 9px; min-width: 18px; height: 18px; padding: 0 5px;
	background: var(--ph-accent); color: #000; border-radius: 9px; font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.ph-cart-count:empty, .ph-cart-count[data-count="0"] { display: none; }
.ph-btn-login {
	background: var(--ph-login-bg); color: var(--ph-login-ink); padding: 8px 18px; border-radius: 10px; font-weight: 600;
}
.ph-btn-login:hover { opacity: .88; color: var(--ph-login-ink); }

/* Drawer */
.ph-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.ph-drawer.is-open { visibility: visible; }
.ph-drawer__overlay { position: absolute; inset: 0; background: rgba(10,12,16,.45); opacity: 0; transition: opacity .25s; }
.ph-drawer.is-open .ph-drawer__overlay { opacity: 1; }
.ph-drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw);
	background: var(--ph-surface); border-right: 1px solid var(--ph-border);
	transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding: 20px;
}
.ph-drawer.is-open .ph-drawer__panel { transform: none; }
.ph-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ph-drawer h4 { margin: 20px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ph-muted); }
.ph-drawer ul { list-style: none; margin: 0; padding: 0; }
.ph-drawer li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.ph-drawer li a:hover { background: var(--ph-card-2); color: var(--ph-text); }
.ph-drawer .sub-menu { padding-left: 14px; }
.ph-buysell { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-buysell a { text-align: center; padding: 10px; border-radius: 10px; background: var(--ph-card-2); font-weight: 600; }
.ph-buysell a.is-sell { background: var(--ph-accent); color: #000; }

/* ---------- Sections ---------- */
.ph-main { padding-bottom: 40px; }
.ph-section { margin-top: 56px; }
.ph-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.ph-section__title { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -.2px; }
.ph-view-more { color: var(--ph-accent-ink); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.ph-arrows { display: flex; gap: 8px; }
.ph-arrow {
	width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--ph-surface); color: var(--ph-text); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ph-border);
}
.ph-arrow:disabled { opacity: .35; cursor: default; }
.ph-arrow:not(:disabled):hover { background: var(--ph-accent); color: #000; }

/* Hero */
.ph-hero { margin-top: 40px; position: relative; }
.ph-hero__track { display: flex; overflow: hidden; border-radius: 20px; scroll-snap-type: x mandatory; }
.ph-hero__slide {
	flex: 0 0 100%; aspect-ratio: 1920 / 520; position: relative; scroll-snap-align: start;
	display: flex; align-items: center; overflow: hidden;
}
.ph-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.ph-hero__slide--text { padding: 0 6%; }
.ph-hero__slide--text > div { position: relative; z-index: 1; }
.ph-hero__art { position: absolute; right: 4%; top: 50%; transform: translateY(-50%) rotate(-12deg); width: 34%; max-width: 420px; color: rgba(255,255,255,.08); pointer-events: none; }
.ph-hero__art svg { width: 100%; height: auto; }
.ph-hero__slide--text::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(86,190,96,.22), transparent); pointer-events: none; }
.ph-hero__slide--text h2 { font-size: clamp(22px, 4vw, 52px); line-height: 1.05; margin: 0 0 10px; font-weight: 900; text-transform: uppercase; font-style: italic; }
.ph-hero__slide--text { color: #fff; }
.ph-hero__slide--text p { margin: 0 0 18px; color: rgba(255,255,255,.85); font-size: clamp(13px, 1.4vw, 18px); max-width: 520px; }
.ph-hero__slide--text .ph-btn { position: relative; }
.ph-hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.ph-hero__nav--prev { left: -12px; }
.ph-hero__nav--next { right: -12px; }
.ph-hero__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.ph-hero__dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.ph-hero__dots button.is-active { background: var(--ph-accent); width: 18px; border-radius: 4px; }

/* Buttons */
.ph-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 12px; font-weight: 600; cursor: pointer; border: 0;
	background: var(--ph-accent); color: #000;
}
.ph-btn:hover { background: #6ad374; color: #000; }
.ph-btn--ghost { background: transparent; color: var(--ph-text); border: 1.5px solid var(--ph-accent); }
.ph-btn--ghost:hover { background: var(--ph-accent); color: #000; }

/* Category tiles */
.ph-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-cat {
	background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 12px; height: 94px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	font-weight: 500; transition: background .2s, transform .2s;
}
.ph-cat:hover { background: var(--ph-card-2); color: var(--ph-text); transform: translateY(-2px); }
.ph-cat svg { width: 32px; height: 32px; }

/* Carousel */
.ph-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ph-carousel::-webkit-scrollbar { display: none; }
.ph-carousel > * { scroll-snap-align: start; }
.ph-carousel--wide { grid-auto-columns: calc((100% - 2 * 18px) / 3.2); }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Product card */
.ph-card {
	background: var(--ph-card); border-radius: var(--ph-radius); padding: 12px 12px 14px;
	display: flex; flex-direction: column; position: relative; min-width: 0;
	border: 1px solid var(--ph-border);
	transition: background .2s, box-shadow .2s;
}
.ph-card:hover { background: var(--ph-card-2); box-shadow: var(--ph-shadow); }
.ph-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--ph-media); margin: 0 6px; }
.ph-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ph-card__placeholder { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 14px; font-weight: 800; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
.ph-badge {
	position: absolute; top: 14px; right: 0; padding: 3px 8px;
	font-size: 11.5px; font-weight: 600; color: #fff; border-radius: 4px 0 0 4px; background: var(--ph-gold); z-index: 1;
}
.ph-badge--new { background: var(--ph-accent); color: #fff; }
.ph-badge--preorder { background: #496ade; }
.ph-badge--soldout { background: #555; }
.ph-card__title { font-size: 13.5px; font-weight: 500; margin: 14px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; line-height: 1.45; }
.ph-card__price { font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.ph-card__price-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-height: 18px; }
.ph-card__mrp { color: var(--ph-muted); text-decoration: line-through; }
.ph-card__save { color: var(--ph-text); font-weight: 500; }
.ph-card__actions { margin-top: auto; padding-top: 14px; }
.ph-card .ph-add, .ph-card .button, .woocommerce .ph-card a.button, .woocommerce ul.products li.product.ph-card .button {
	display: flex !important; width: 100%; justify-content: center; align-items: center;
	padding: 10px 12px !important; border-radius: 14px !important; font-weight: 600 !important; font-size: 13px !important;
	background: transparent !important; color: var(--ph-text) !important; border: 1.5px solid var(--ph-accent) !important; cursor: pointer; line-height: 1.2 !important;
}
.ph-card .ph-add:hover, .ph-card .button:hover, .woocommerce .ph-card a.button:hover, .woocommerce ul.products li.product.ph-card .button:hover { background: var(--ph-accent) !important; color: #000 !important; }
.ph-card .ph-add.loading { opacity: .6; }
.ph-card .ph-add.added::after { content: " ✓"; margin-left: 4px; }
.ph-card .added_to_cart { display: block; text-align: center; margin-top: 8px; font-size: 12px; color: var(--ph-accent); }

/* Compact "top picks" card */
.ph-pick {
	background: var(--ph-card); border-radius: var(--ph-radius); padding: 18px; display: grid; grid-template-columns: 1fr 96px; gap: 10px; min-height: 180px;
	border: 1px solid var(--ph-border);
}
.ph-pick:hover { background: var(--ph-card-2); box-shadow: var(--ph-shadow); }
.ph-pick__title { font-size: 13.5px; font-weight: 500; margin: 0 0 8px; line-height: 1.4; }
.ph-pick__row { font-size: 12px; display: flex; gap: 8px; }
.ph-pick__price { font-size: 18px; font-weight: 600; margin: 2px 0 8px; }
.ph-pick__cta { color: var(--ph-accent-ink); font-size: 12.5px; text-decoration: underline; }
.ph-pick__img { align-self: end; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--ph-media); }
.ph-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.ph-pick__img .ph-card__placeholder { font-size: 10px; padding: 6px; }

/* Sell banner */
.ph-sell {
	border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
	background: var(--ph-sell-bg); border: 1px solid var(--ph-sell-border);
}
.ph-sell h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; line-height: 1.15; }
.ph-sell p { color: var(--ph-muted); margin: 0 0 22px; }
.ph-sell__feed { background: var(--ph-inset); border: 1px solid var(--ph-border); border-radius: 14px; padding: 6px 16px; max-height: 250px; overflow: hidden; }
.ph-sell__feed li { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ph-border); font-size: 13.5px; }
.ph-sell__feed li:last-child { border-bottom: 0; }
.ph-sell__feed ul { margin: 0; padding: 0; }
.ph-sell__feed time { color: var(--ph-muted); white-space: nowrap; font-size: 12px; }
.ph-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ph-step { background: var(--ph-inset); border: 1px solid var(--ph-border); border-radius: 14px; padding: 18px; }
.ph-step b { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ph-accent); color: #000; align-items: center; justify-content: center; margin-bottom: 10px; }
.ph-step span { display: block; font-weight: 600; margin-bottom: 4px; }
.ph-step small { color: var(--ph-muted); }
.ph-reviews-link { display: inline-flex; gap: 8px; align-items: center; margin-left: 16px; color: var(--ph-muted); font-size: 14px; }
.ph-reviews-link strong { color: var(--ph-text); }

/* Assurances */
.ph-assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-assure__item { border: 1px solid var(--ph-border); background: var(--ph-surface); border-radius: 14px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.ph-assure__item svg { flex-shrink: 0; color: var(--ph-accent-ink); width: 30px; height: 30px; }
.ph-assure__item strong { display: block; margin-bottom: 2px; }
.ph-assure__item small { color: var(--ph-muted); font-size: 13px; }

/* FAQ */
.ph-faq { display: grid; gap: 10px; }
.ph-faq details { background: var(--ph-surface); border-radius: 12px; padding: 0 20px; border: 1px solid var(--ph-border); }
.ph-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; color: var(--ph-accent-ink); font-size: 22px; line-height: 1; transition: transform .2s; }
.ph-faq details[open] summary::after { transform: rotate(45deg); }
.ph-faq details > div { padding: 0 0 18px; color: var(--ph-muted); }

/* About */
.ph-about { background: var(--ph-surface); border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.ph-about p { margin: 0; color: var(--ph-text); max-width: 820px; }

/* Footer */
.ph-footer { background: var(--ph-surface); border-top: 2px solid var(--ph-accent); margin-top: 64px; padding: 48px 0 24px; }
.ph-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.ph-footer__brand p { color: var(--ph-muted); margin: 14px 0 4px; }
.ph-footer__brand strong { color: var(--ph-accent-ink); font-weight: 600; }
.ph-footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; color: var(--ph-text); }
.ph-footer ul { list-style: none; margin: 0; padding: 0; }
.ph-footer li { margin-bottom: 9px; }
.ph-footer li a, .ph-footer__contact a, .ph-footer__contact span { color: var(--ph-muted); font-size: 14px; }
.ph-footer li a:hover, .ph-footer__contact a:hover { color: var(--ph-accent-ink); }
.ph-footer__contact { display: grid; gap: 10px; }
.ph-footer__contact > * { display: flex; align-items: center; gap: 10px; }
.ph-social { display: flex; gap: 10px; margin-top: 14px; }
.ph-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--ph-card-2); display: inline-flex; align-items: center; justify-content: center; }
.ph-social a:hover { background: var(--ph-accent); color: #000; }
.ph-footer__bottom { border-top: 1px solid var(--ph-border); margin-top: 36px; padding-top: 20px; color: var(--ph-muted); font-size: 13px; text-align: center; }

/* WhatsApp */
.ph-whatsapp {
	position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
	background: #48c25a; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.ph-whatsapp:hover { color: #fff; transform: scale(1.06); }

/* ---------- Generic pages / blog ---------- */
.ph-page { padding-top: 36px; }
.ph-page__title { font-size: 30px; margin: 0 0 24px; }
.ph-content { background: var(--ph-surface); border-radius: 16px; padding: 32px; }
.ph-content a:not(.ph-btn):not(.button) { color: var(--ph-accent-ink); }
.ph-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ph-post { background: var(--ph-surface); border-radius: 16px; overflow: hidden; }
.ph-post__body { padding: 18px; }
.ph-post h2 { font-size: 18px; margin: 0 0 8px; }
.ph-post p { color: var(--ph-muted); margin: 0; }
.ph-empty { text-align: center; padding: 80px 0; }
.ph-empty h1 { font-size: 72px; margin: 0; color: var(--ph-accent); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .select2-container--default .select2-selection--single {
	background: var(--ph-input) !important; border: 1px solid var(--ph-border) !important; border-radius: 10px !important; color: var(--ph-text) !important; padding: 10px 12px; min-height: 42px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ph-text) !important; line-height: 40px !important; }
.select2-dropdown { background: var(--ph-input) !important; border-color: var(--ph-border) !important; color: var(--ph-text); }
label { color: var(--ph-text); }

/* ---------- WooCommerce ---------- */
.woocommerce .woocommerce-breadcrumb { color: var(--ph-muted) !important; font-size: 13px; margin: 0 0 18px !important; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ph-muted) !important; }
.woocommerce-products-header__title { font-size: 28px; margin: 0 0 16px; }
.woocommerce .woocommerce-result-count { color: var(--ph-muted); }
.woocommerce ul.products.ph-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 32px; padding: 0; list-style: none; }
.woocommerce ul.products.ph-loop::before, .woocommerce ul.products.ph-loop::after { display: none; }
.woocommerce ul.products.ph-loop li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 12px 12px 14px !important; text-align: left; }
.woocommerce ul.products.ph-loop li.product a img { margin: 0 !important; box-shadow: none; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { background: var(--ph-surface); border-radius: 8px; padding: 10px 14px !important; color: var(--ph-text); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ph-accent); color: #000; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce-page .button,
.wc-block-components-button:not(.is-link) {
	background: var(--ph-accent) !important; color: #000 !important; border-radius: 12px !important; font-weight: 600 !important; padding: 12px 22px !important; border: 0 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: #6ad374 !important; color: #000 !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	background: var(--ph-surface) !important; color: var(--ph-text) !important; border-top-color: var(--ph-accent) !important; border-radius: 10px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ph-accent) !important; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { background: var(--ph-surface); border-radius: 16px; padding: 24px; }
.woocommerce div.product .product_title { font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ph-text) !important; font-size: 30px !important; font-weight: 700; }
.woocommerce div.product p.price del { color: var(--ph-muted); font-size: 18px; font-weight: 400; opacity: 1; }
.woocommerce div.product p.price ins { text-decoration: none; }
.ph-single-save { display: inline-block; margin: 0 0 14px; background: rgba(86,190,96,.15); color: var(--ph-accent-ink); padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.ph-single-badge { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--ph-gold); color: #fff; }
.ph-single-badge.ph-badge--new { background: var(--ph-accent); }
.ph-single-badge.ph-badge--preorder { background: #496ade; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.woocommerce div.product form.cart .quantity .qty { width: 72px; text-align: center; }
.woocommerce div.product form.cart .button { flex: 1; max-width: 320px; padding: 14px 24px !important; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ph-text); }
.woocommerce div.product .product_meta { color: var(--ph-muted); font-size: 13px; border-top: 1px solid var(--ph-border); padding-top: 14px; }
.woocommerce div.product .product_meta a { color: var(--ph-accent-ink); }
.ph-trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.ph-trust-row div { background: var(--ph-surface); border-radius: 10px; padding: 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.ph-trust-row svg { color: var(--ph-accent-ink); width: 20px; height: 20px; flex-shrink: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 16px !important; display: flex; gap: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--ph-surface) !important; border: 0 !important; border-radius: 10px !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ph-text) !important; padding: 10px 18px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ph-accent) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #000 !important; }
.woocommerce div.product .woocommerce-tabs .panel { background: var(--ph-surface); padding: 24px; border-radius: 14px; color: var(--ph-text); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 22px; font-weight: 500; }
.woocommerce span.onsale { display: none; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--ph-accent); }

/* Cart / checkout / account */
.woocommerce table.shop_table { background: var(--ph-surface); border: 0 !important; border-radius: 14px !important; overflow: hidden; color: var(--ph-text); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--ph-border) !important; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--ph-surface); border-radius: 14px; padding: 20px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 12px; border-radius: 8px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--ph-accent); color: #000; }
.woocommerce-checkout #payment { background: var(--ph-card-2) !important; border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box { background: var(--ph-surface) !important; color: var(--ph-text) !important; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ph-surface) !important; }
.wc-block-cart, .wc-block-checkout { color: var(--ph-text); }
.wc-block-components-sidebar, .wc-block-components-totals-wrapper { border-color: var(--ph-border) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select select { background: var(--ph-input) !important; color: var(--ph-text) !important; border-color: var(--ph-border) !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label { color: var(--ph-muted) !important; }
.wp-block-woocommerce-empty-cart-block { color: var(--ph-text); }

/* Sell page */
.ph-sell-page .ph-steps { grid-template-columns: repeat(4, 1fr); margin: 24px 0 32px; }
.ph-sell-page .ph-step { background: var(--ph-surface); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ph-carousel { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
	.ph-carousel--wide { grid-auto-columns: calc((100% - 14px) / 2.2); }
	.ph-grid, .woocommerce ul.products.ph-loop { grid-template-columns: repeat(3, 1fr); }
	.ph-assure { grid-template-columns: repeat(2, 1fr); }
	.ph-footer__grid { grid-template-columns: 1fr 1fr; }
	.ph-sell { grid-template-columns: 1fr; }
	.ph-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.ph-container { padding: 0 14px; }
	.ph-header__inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px 14px; }
	.ph-search { order: 3; flex-basis: 100%; max-width: none; }
	.ph-cart-link span.ph-label { display: none; }
	.ph-hero { margin-top: 18px; }
	.ph-hero__slide { aspect-ratio: 16 / 9; }
	.ph-hero__nav { display: none; }
	.ph-hero__art { display: none; }
	.ph-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ph-carousel { grid-auto-columns: 46%; gap: 12px; }
	.ph-carousel--wide { grid-auto-columns: 82%; }
	.ph-grid, .woocommerce ul.products.ph-loop { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ph-section { margin-top: 40px; }
	.ph-section__title { font-size: 19px; }
	.ph-card__price { font-size: 17px; }
	.ph-steps, .ph-sell-page .ph-steps { grid-template-columns: 1fr; }
	.ph-sell { padding: 24px; }
	.ph-assure { grid-template-columns: 1fr; }
	.ph-about { grid-template-columns: 1fr; padding: 24px; }
	.ph-footer__grid { grid-template-columns: 1fr; }
	.ph-posts { grid-template-columns: 1fr; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
	.ph-content { padding: 20px; }
}
@media (max-width: 782px) { .admin-bar .ph-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Block cart/checkout polish */
.wc-block-components-quantity-selector { border-color: var(--ph-border) !important; border-radius: 10px !important; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { background: transparent !important; border: 0 !important; min-height: 0 !important; box-shadow: none !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: var(--ph-text) !important; }
.wc-blocks-components-select .wc-blocks-components-select__container { background: var(--ph-input) !important; border-radius: 10px !important; }
.wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 10px !important; }
.wc-blocks-components-select .wc-blocks-components-select__label { color: var(--ph-muted) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: var(--ph-input); border-color: var(--ph-border); }
.wc-block-components-sale-badge { background: rgba(86,190,96,.15) !important; color: var(--ph-accent) !important; border: 0 !important; }

/* Order received overview */
.woocommerce ul.order_details, .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 10px 0; padding: 0 !important; margin: 0 0 24px !important; }
.woocommerce ul.order_details li { border-right: 1px dashed var(--ph-border) !important; padding: 0 16px !important; margin: 0 !important; float: none !important; }
@media (max-width: 640px) {
	.woocommerce ul.order_details, .woocommerce-order-overview { display: grid; grid-template-columns: 1fr 1fr; }
	.woocommerce ul.order_details li { border-right: 0 !important; padding: 0 !important; }
	.woocommerce-order-received .ph-whatsapp, .woocommerce-checkout .ph-whatsapp { display: none; }
}
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none !important; }
