/*
Theme Name: Prime Media Shop
Theme URI: https://github.com/faisalalidev/primemediashop
Description: Storefront child theme for Prime Media Shop — a clean retail store styled after thestockifyhub.com. Navy + amber palette, custom hero, category tiles, trust badges, and newsletter.
Author: Prime Media Shop
Template: storefront
Version: 1.0.0
Text Domain: primemediashop
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
	--pms-navy: #14213d;
	--pms-navy-2: #1f2f52;
	--pms-amber: #fca311;
	--pms-amber-dark: #e8940c;
	--pms-green: #5f7350;      /* announcement bar */
	--pms-green-d: #55684a;
	--pms-gold: #c4a05c;       /* header background */
	--pms-gold-d: #b8934c;
	--pms-cream: #f4efe6;      /* hero background */
	--pms-ink: #1f2430;
	--pms-muted: #6b7280;
	--pms-line: #e8eaf0;
	--pms-bg-soft: #f6f7fb;
	--pms-red: #e63946;
	--pms-radius: 12px;
	--pms-shadow: 0 8px 24px rgba(20, 33, 61, .08);
	--pms-shadow-lg: 0 16px 40px rgba(20, 33, 61, .14);
}

/* Prevent horizontal overflow from full-bleed (100vw) sections vs. the scrollbar. */
html, body { overflow-x: hidden; max-width: 100%; }

body,
button,
input,
select,
textarea {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--pms-ink);
}

h1, h2, h3, h4, h5, h6,
.site-title {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--pms-navy);
	letter-spacing: -.01em;
}

a { color: var(--pms-navy); }
a:hover { color: var(--pms-amber-dark); }

/* ============================================================
   Announcement bar
   ============================================================ */
.pms-announcement {
	background: var(--pms-green);
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	overflow: hidden;
	white-space: nowrap;
}
.pms-announcement__track {
	display: inline-block;
	padding: .55rem 0;
	animation: pms-marquee 22s linear infinite;
}
.pms-announcement__track span { margin: 0 1.4rem; }
.pms-announcement__track span::before { content: "•"; color: rgba(255,255,255,.7); margin-right: 1.4rem; }
@keyframes pms-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ============================================================
   Header — gold/tan bar with white logo, centered search, right icons
   ============================================================ */
.site-header {
	background: var(--pms-gold);
	border-bottom: none;
	padding-top: 1.25em;
	padding-bottom: 1.25em;
}
.pms-logo { display: inline-flex; align-items: center; text-decoration: none; }
.pms-logo svg { display: block; height: 44px; width: auto; }
.site-header .site-branding { margin-bottom: 0; }

/* Search: white rounded pill — force the whole chain to fill its grid column. */
.site-header .site-search { margin-bottom: 0; }
.site-header .site-search,
.site-header .site-search .widget_product_search,
.site-header .site-search form.woocommerce-product-search { width: 100% !important; max-width: 100%; min-width: 0; }
.site-header .site-search input[type="search"],
.site-header .site-search input.search-field { width: 100% !important; }
.site-header form.woocommerce-product-search,
.site-header .search-form {
	position: relative;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0,0,0,.10);
	display: flex;
	align-items: center;
	padding: .15rem .3rem .15rem 1.2rem;
}
.site-header .woocommerce-product-search input[type="search"],
.site-header .search-form input[type="search"] {
	border: none;
	background: transparent;
	box-shadow: none;
	flex: 1;
	padding: .7rem .4rem;
	font-size: 1rem;
	color: var(--pms-ink);
}
.site-header .woocommerce-product-search button,
.site-header .search-form button {
	background: transparent;
	color: var(--pms-navy);
	border-radius: 999px;
	padding: .5rem .8rem;
	box-shadow: none;
}
.site-header .woocommerce-product-search button:hover { background: transparent; color: var(--pms-gold-d); transform: none; box-shadow: none; }

/* Header links / cart in white */
.site-header a,
.site-header .site-header-cart .cart-contents,
.site-header .secondary-navigation a { color: #fff; }
.site-header a:hover { color: #fff8ec; }
.site-header .site-header-cart .amount { color: #fff; }
.site-header .site-header-cart .count,
.site-header .site-header-cart .cart-contents-count { background: var(--pms-navy); color: #fff; }

/* Grid layout: logo (left) | search (center) | actions (right), nav spans a 2nd row.
   Scope with > so the nav's own nested .col-full is not affected. */
.site-header > .col-full {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 560px) 1fr;
	align-items: center;
	column-gap: 1.5rem;
	row-gap: 1.1rem;
}
/* Skip-links must stay out of the grid flow or they steal cells. */
.site-header .skip-link { position: absolute !important; }
.site-header .site-branding { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 0; }
.site-header .site-search { grid-column: 2; grid-row: 1; width: 100%; max-width: 560px; margin: 0; }
.pms-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 1.8rem; }
/* The primary nav is a sibling of .col-full (a direct child of .site-header), so it
   naturally renders as a full-width bar below — no grid placement needed. */
.pms-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	color: #fff !important;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: .82rem;
	text-decoration: none;
}
.pms-action svg { width: 26px; height: 26px; }
.pms-action:hover { color: #fff8ec !important; opacity: .9; }
.pms-action__cart { position: relative; display: inline-block; }
.pms-cart-count {
	position: absolute;
	top: -8px; right: -12px;
	background: var(--pms-navy);
	color: #fff;
	font-size: .68rem;
	min-width: 18px; height: 18px;
	border-radius: 999px;
	display: grid; place-items: center;
	padding: 0 4px;
}
@media (max-width: 860px) {
	.site-header > .col-full { grid-template-columns: auto 1fr; }
	.site-header .site-branding { grid-column: 1; grid-row: 1; }
	.pms-actions { grid-column: 2; grid-row: 1; }
	.site-header .site-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.pms-actions { gap: 1.1rem; }
}

/* Primary nav */
.storefront-primary-navigation {
	background: #fff;
	border-bottom: 1px solid var(--pms-line);
	box-shadow: 0 2px 10px rgba(20,33,61,.03);
}
.storefront-primary-navigation .col-full { display: flex; justify-content: center; }
.main-navigation { float: none; width: auto; }
.main-navigation ul { text-align: center; }
.main-navigation ul li a {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	color: var(--pms-navy);
	text-transform: none;
	padding-left: 1.1em;
	padding-right: 1.1em;
}
.main-navigation ul li a:hover { color: var(--pms-amber-dark); }
.main-navigation ul li:hover > a { color: var(--pms-amber-dark); }

/* ============================================================
   Buttons
   ============================================================ */
button, .button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce .button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--pms-navy);
	color: #fff;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	letter-spacing: .01em;
	padding: .7em 1.5em;
	border: none;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
button:hover, .button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce .button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--pms-amber);
	color: var(--pms-navy);
	transform: translateY(-1px);
	box-shadow: var(--pms-shadow);
}

/* ============================================================
   Hero
   ============================================================ */
.pms-hero {
	position: relative;
	background: var(--pms-cream);
	border-radius: 0;
	margin: 0 0 1rem;
	overflow: hidden;
	/* full-bleed out of the constrained content column */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.pms-hero__grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	align-items: center;
	gap: 2rem;
}
.pms-hero__copy { max-width: 30rem; }
.pms-hero h1 {
	color: var(--pms-navy);
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	line-height: 1.12;
	margin: 0 0 1.1rem;
	font-weight: 700;
}
.pms-hero p {
	font-size: 1.08rem;
	color: #4b5563;
	margin: 0 0 1.8rem;
}
.pms-hero__btns { display: flex; gap: .9rem; flex-wrap: wrap; }
.pms-hero .pms-btn {
	display: inline-block;
	background: var(--pms-navy);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	padding: .85rem 2.1rem;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid var(--pms-navy);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.pms-hero .pms-btn:hover { transform: translateY(-2px); box-shadow: var(--pms-shadow); }
.pms-hero .pms-btn.outline {
	background: transparent;
	color: var(--pms-navy);
}
.pms-hero .pms-btn.outline:hover { background: var(--pms-navy); color: #fff; }
.pms-hero__media img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
	.pms-hero__grid { grid-template-columns: 1fr; text-align: center; }
	.pms-hero__copy { max-width: none; margin: 0 auto; }
	.pms-hero__btns { justify-content: center; }
	.pms-hero__media { order: -1; }
}

/* Hide the "Home" page title on the homepage template. */
.page-template-template-homepage .entry-title,
.home.page .type-page > .entry-header { display: none; }

/* ============================================================
   Section headings (homepage)
   ============================================================ */
.pms-section-head { text-align: center; margin: 3rem 0 1.6rem; }
.pms-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .35rem; }
.pms-section-head p { color: var(--pms-muted); margin: 0; }
.storefront-product-section > h2.section-title,
section.storefront-product-section h2 {
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 1.6rem;
}

/* ============================================================
   Product cards
   ============================================================ */
ul.products li.product {
	background: #fff;
	border: 1px solid var(--pms-line);
	border-radius: var(--pms-radius);
	padding: 1rem 1rem 1.3rem !important;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--pms-shadow);
	border-color: transparent;
}
ul.products li.product .woocommerce-loop-product__title {
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--pms-navy);
	padding-top: .6em;
}
ul.products li.product .price { color: var(--pms-navy); font-weight: 700; }
ul.products li.product .price del { color: var(--pms-muted); font-weight: 400; }
ul.products li.product .price ins { color: var(--pms-red); text-decoration: none; }
.woocommerce span.onsale {
	background: var(--pms-red);
	border-radius: 999px;
	min-height: auto;
	min-width: auto;
	padding: .3em .8em;
	font-weight: 600;
}

/* Placeholder image tint so no-photo products still look intentional */
ul.products li.product img {
	border-radius: 8px;
	background: var(--pms-bg-soft);
}

/* ============================================================
   Shop By Category — heading with rules, subtitle, image cards
   ============================================================ */
.pms-cats { margin: 3.5rem 0; }
.pms-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin: 0 auto .4rem;
	max-width: 820px;
}
.pms-heading::before,
.pms-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d7d3c9;
}
.pms-heading h2 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	font-weight: 700;
	margin: 0;
	white-space: nowrap;
}
.pms-subhead { text-align: center; color: var(--pms-muted); margin: 0 auto 2rem; max-width: 640px; }
.pms-cats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
}
.pms-cat {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: var(--pms-shadow);
	text-decoration: none;
}
.pms-cat img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.pms-cat:hover img { transform: scale(1.05); }
.pms-cat__label {
	position: absolute;
	top: 1.3rem; left: 1.4rem; right: 1.4rem;
}
.pms-cat__label span {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: clamp(1.2rem, 2vw, 1.7rem);
	color: #fff;
	line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0,0,0,.45);
	display: inline;
	padding-bottom: .4rem;
	border-bottom: 3px solid var(--pms-gold);
}
@media (max-width: 900px) { .pms-cats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pms-cats__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Why-choose-us trust badges
   ============================================================ */
.pms-trust { background: var(--pms-bg-soft); padding: 3rem 0; margin: 3.5rem 0; }
.pms-trust__grid {
	max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.pms-trust__item { text-align: center; padding: 1.4rem 1rem; background: #fff; border-radius: var(--pms-radius); box-shadow: var(--pms-shadow); }
.pms-trust__icon {
	width: 54px; height: 54px; margin: 0 auto .8rem;
	display: grid; place-items: center;
	background: var(--pms-navy); color: var(--pms-amber);
	border-radius: 14px;
}
.pms-trust__icon svg { width: 26px; height: 26px; }
.pms-trust__item h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.pms-trust__item p { color: var(--pms-muted); font-size: .9rem; margin: 0; }
@media (max-width: 768px) { .pms-trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Newsletter
   ============================================================ */
.pms-newsletter {
	background: linear-gradient(135deg, var(--pms-navy) 0%, var(--pms-navy-2) 100%);
	color: #fff; border-radius: 18px; text-align: center;
	padding: 3.2rem 1.5rem; margin: 3.5rem 0;
}
.pms-newsletter h2 { color: #fff; margin: 0 0 .5rem; }
.pms-newsletter p { color: rgba(255,255,255,.82); margin: 0 0 1.6rem; }
.pms-newsletter form { display: inline-flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.pms-newsletter input[type="email"] {
	border: none; border-radius: 999px; padding: .85rem 1.3rem; min-width: 280px; color: var(--pms-ink);
}
.pms-newsletter button { background: var(--pms-amber); color: var(--pms-navy); }
.pms-newsletter button:hover { background: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	background: var(--pms-navy);
	color: rgba(255,255,255,.72);
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--pms-amber); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer .widget-title { color: #fff; }
.pms-footer-cta { text-align: center; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.pms-footer-cta strong { color: var(--pms-amber); }

/* ============================================================
   No sidebar — content full width everywhere
   ============================================================ */
.pms-no-sidebar #secondary,
.pms-no-sidebar .widget-area {
	display: none !important;
}
.pms-no-sidebar .content-area {
	width: 100% !important;
	float: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}
.pms-no-sidebar.woocommerce-page .content-area,
.pms-no-sidebar .site-main {
	width: 100% !important;
}

/* ============================================================
   Misc polish
   ============================================================ */
.pms-full { width: 100%; }
.col-full { max-width: 1200px; }

/* ============================================================
   Shop / category archive — filter sidebar (left) + breadcrumb
   ============================================================ */
.pms-has-filters .content-area { float: right; width: 74%; }
.pms-has-filters #secondary.pms-filters { float: left; width: 22%; margin-top: 0; }
@media (max-width: 768px) {
	.pms-has-filters .content-area,
	.pms-has-filters #secondary.pms-filters { float: none; width: 100%; }
}

/* Breadcrumb */
.woocommerce-breadcrumb {
	color: var(--pms-muted);
	font-size: .9rem;
	margin-bottom: 1.2rem;
}
.woocommerce-breadcrumb a { color: var(--pms-navy); font-weight: 600; }

/* Filter blocks */
.pms-filters .pms-filter { margin-bottom: 2rem; }
.pms-filters .pms-filter > h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 .9rem;
	padding-bottom: .6rem;
	border-bottom: 2px solid var(--pms-line);
	text-transform: uppercase;
	letter-spacing: .03em;
}
.pms-filters ul { list-style: none; margin: 0; padding: 0; }
.pms-filters ul.product-categories li { padding: .35rem 0; }
.pms-filters ul.product-categories a { color: var(--pms-ink); font-weight: 500; }
.pms-filters ul.product-categories a:hover { color: var(--pms-gold-d); }
.pms-filters ul.product-categories .count { color: var(--pms-muted); font-size: .85rem; }
.pms-filters .price_slider_wrapper { margin-top: .4rem; }
.pms-filters .price_slider_amount .button {
	background: var(--pms-navy); color: #fff; font-size: .85rem; padding: .5em 1.3em; float: right;
}
.pms-filters .ui-slider {
	background: var(--pms-line); height: 5px; border-radius: 999px; border: none; margin: .8rem 0 1.1rem;
}
.pms-filters .ui-slider .ui-slider-range { background: var(--pms-gold); }
.pms-filters .ui-slider .ui-slider-handle {
	background: var(--pms-navy); border: none; width: 16px; height: 16px; border-radius: 50%; top: -6px;
}
.pms-filters .price_slider_amount { font-size: .85rem; color: var(--pms-muted); }

/* Archive toolbar (result count + sort) */
.woocommerce-products-header__title.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.woocommerce-result-count { color: var(--pms-muted); }
.woocommerce-ordering select {
	border: 1px solid var(--pms-line); border-radius: 8px; padding: .5rem 1.8rem .5rem .8rem; background: #fff;
}

/* ============================================================
   Remove the gap between the header/nav and the hero slider
   ============================================================ */
.site-header { padding-bottom: 0; }               /* drop the gold strip below the nav */
.home #content.site-content,
.page-template-template-homepage #content.site-content { padding-top: 0; }
.home .site-main,
.page-template-template-homepage .site-main { margin-top: 0; padding-top: 0; }
.pms-hero { margin-top: 0; }
