/*
Theme Name: Armenian Megastore
Theme URI: https://armenianmegastore.com/
Author: Dendrite Corp
Description: Custom WordPress theme for Armenian Megastore.
Version: 0.2.1
Text Domain: ams
*/

:root {
	--ams-bg: #F0EEEB;
	--ams-panel: #F1EEE8;
	--ams-text: #333333;
	--ams-muted: #666666;
	--ams-navy: #1A3263;
	--ams-steel: #547792;
	--ams-gold: #FAB95B;
	--ams-border: #CCCCCC;
	--ams-border-strong: #B3B3B3;
	--ams-max: 1280px;
	--ams-pad: 32px;
	--ams-font-ui: "Public Sans", sans-serif;
	--ams-font-serif: "Newsreader", serif;
}

*, *::after, *::before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

body {
	font-family: var(--ams-font-ui);
	line-height: 1.5;
	color: var(--ams-text);
	background: var(--ams-bg);
}

a {
	color: var(--ams-navy);
	text-decoration: none;
}

a:hover {
	color: var(--ams-steel);
}

@keyframes ams-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ams-main {
	animation: ams-fade-in 0.3s ease;
	min-height: 50vh;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(240, 238, 235, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--ams-border);
}

.header-container {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 18px var(--ams-pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: inherit;
}

.header-brand:hover {
	color: inherit;
}

.header-brand__logo {
	width: 42px;
	height: 42px;
	border-radius: 4px;
	object-fit: contain;
	flex-shrink: 0;
}

.header-brand__logo img,
.custom-logo-link img {
	width: 42px;
	height: 42px;
	border-radius: 4px;
	object-fit: contain;
}

.header-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.header-brand__name {
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0.01em;
	color: var(--ams-text);
}

.header-brand__domain {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ams-muted);
}

.desktop-nav .nav-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	font-size: 14px;
}

.desktop-nav .nav-menu a {
	color: var(--ams-text);
	font-weight: 500;
}

.desktop-nav .nav-menu a:hover {
	color: var(--ams-steel);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--ams-border-strong);
	padding: 4px 2px;
}

.header-search button {
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	display: flex;
}

.header-search input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 13px;
	width: 90px;
	color: var(--ams-text);
	font-family: var(--ams-font-ui);
}

.header-cart {
	position: relative;
	display: flex;
	color: var(--ams-text);
}

.header-cart:hover {
	color: var(--ams-steel);
}

.header-cart__badge {
	position: absolute;
	top: -8px;
	right: -9px;
	background: var(--ams-gold);
	color: var(--ams-navy);
	font-size: 10px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.header-cart__badge.is-visible {
	display: flex;
}

/* Banner */
.home-banner {
	width: 100%;
	height: 260px;
	overflow: hidden;
}

.home-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hero */
.home-hero {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 56px var(--ams-pad) 40px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.eyebrow {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ams-steel);
	margin-bottom: 18px;
	font-weight: 600;
}

.home-hero h1 {
	font-weight: 600;
	font-size: 46px;
	line-height: 1.12;
	margin: 0 0 20px;
	letter-spacing: -0.01em;
}

.home-hero__blurb {
	font-family: var(--ams-font-serif);
	font-size: 16px;
	line-height: 1.7;
	max-width: 440px;
	margin: 0 0 28px;
}

.home-hero__media {
	border: 1px solid var(--ams-border);
	background: var(--ams-panel);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Buttons */
.btn {
	display: inline-block;
	background: var(--ams-navy);
	color: var(--ams-bg);
	border: none;
	padding: 13px 26px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: var(--ams-font-ui);
	font-weight: 600;
}

.btn:hover {
	background: var(--ams-steel);
	color: var(--ams-bg);
}

.btn--block {
	width: 100%;
	text-align: center;
}

/* Category strip */
.category-strip {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 8px var(--ams-pad) 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.category-card {
	border: 1px solid var(--ams-border);
	padding: 26px;
	display: block;
	color: inherit;
}

.category-card:hover {
	border-color: var(--ams-navy);
	color: inherit;
}

.category-card__title {
	font-weight: 600;
	font-size: 22px;
	margin-bottom: 6px;
}

.category-card__subtitle {
	font-family: var(--ams-font-serif);
	font-size: 14px;
	color: var(--ams-muted);
}

/* Product sections */
.home-section {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 8px var(--ams-pad) 56px;
	border-top: 1px solid var(--ams-border);
}

.home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 32px 0 28px;
}

.home-section__head h2 {
	font-weight: 600;
	font-size: 26px;
}

.home-section__view-all {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ams-steel);
	font-weight: 600;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
}

.product-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.product-card {
	display: block;
	color: inherit;
}

.product-card:hover {
	color: inherit;
}

.product-card__media {
	border: 1px solid var(--ams-border);
	overflow: hidden;
	margin-bottom: 12px;
	background: var(--ams-panel);
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: var(--ams-panel);
}

.product-card__eyebrow {
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ams-steel);
	margin-bottom: 4px;
	font-weight: 600;
}

.product-card__title {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 3px;
}

.product-card__artist {
	font-family: var(--ams-font-serif);
	font-size: 13px;
	color: var(--ams-muted);
	margin-bottom: 6px;
}

.product-card__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--ams-navy);
}

/* Archive / category */
.catalog-layout {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 40px var(--ams-pad) 80px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 48px;
}

.catalog-filters__label {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ams-muted);
	margin-bottom: 16px;
	font-weight: 600;
}

.catalog-filters__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	list-style: none;
}

.catalog-filters__list a {
	padding: 9px 10px;
	margin-left: -10px;
	font-size: 14px;
	border-radius: 3px;
	display: block;
	color: var(--ams-text);
	font-family: var(--ams-font-serif);
}

.catalog-filters__list a.is-active {
	background: var(--ams-gold);
	color: var(--ams-navy);
	font-weight: 600;
	font-family: var(--ams-font-ui);
}

.catalog-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--ams-border);
	padding-bottom: 20px;
}

.catalog-head h1 {
	font-weight: 600;
	font-size: 30px;
}

.catalog-head__count {
	font-family: var(--ams-font-serif);
	font-size: 14px;
	color: var(--ams-muted);
}

/* Single product */
.product-single {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 40px var(--ams-pad) 88px;
}

.breadcrumb {
	font-family: var(--ams-font-serif);
	font-size: 14px;
	color: var(--ams-muted);
	margin-bottom: 28px;
}

.product-single__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
}

.product-single__media {
	border: 1px solid var(--ams-border);
	background: var(--ams-panel);
	align-self: start;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-single__media img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.product-single__eyebrow {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ams-steel);
	margin-bottom: 14px;
	font-weight: 600;
}

.product-single h1 {
	font-weight: 600;
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 8px;
}

.product-single__artist {
	font-family: var(--ams-font-serif);
	font-size: 16px;
	color: var(--ams-muted);
	margin-bottom: 22px;
}

.product-single__price {
	font-size: 26px;
	font-weight: 700;
	color: var(--ams-navy);
	margin-bottom: 26px;
}

.product-single__blurb {
	font-family: var(--ams-font-serif);
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 32px;
	max-width: 480px;
}

.product-single__buy {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 36px;
}

.qty-control {
	display: flex;
	align-items: center;
	border: 1px solid var(--ams-border-strong);
}

.qty-control button {
	width: 36px;
	height: 42px;
	border: none;
	background: transparent;
	font-size: 16px;
	cursor: pointer;
	color: var(--ams-text);
}

.qty-control__value {
	width: 36px;
	text-align: center;
	font-size: 14px;
}

.product-single__meta {
	border-top: 1px solid var(--ams-border);
	padding-top: 20px;
	font-family: var(--ams-font-serif);
	font-size: 14px;
	color: var(--ams-muted);
	line-height: 1.8;
}

/* Prose pages */
.prose-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px var(--ams-pad) 96px;
}

.prose-page h1 {
	font-weight: 600;
	font-size: 34px;
	margin: 0 0 32px;
}

.prose-page p,
.prose-page .entry-content p {
	font-family: var(--ams-font-serif);
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 24px;
}

.prose-callout {
	border: 1px solid var(--ams-border);
	padding: 28px;
	background: var(--ams-panel);
	margin-top: 16px;
}

.prose-callout__title {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ams-steel);
	margin-bottom: 12px;
}

.prose-callout p {
	font-size: 15.5px;
	line-height: 1.75;
	margin: 0;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
}

.contact-phone,
.contact-email {
	font-size: 15px;
	color: var(--ams-navy);
	font-weight: 600;
	margin-bottom: 8px;
}

.ams-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ams-form input,
.ams-form textarea {
	border: 1px solid var(--ams-border-strong);
	padding: 12px 14px;
	font-size: 14px;
	outline: none;
	font-family: var(--ams-font-serif);
	background: #fff;
	color: var(--ams-text);
}

/* Cart */
.cart-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 48px var(--ams-pad) 88px;
}

.cart-page h1 {
	font-weight: 600;
	font-size: 30px;
	margin: 0 0 32px;
}

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

.cart-empty p {
	font-family: var(--ams-font-serif);
	font-size: 16px;
	margin-bottom: 20px;
}

.cart-layout {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 56px;
	align-items: start;
}

.cart-line {
	display: grid;
	grid-template-columns: 80px 1fr auto auto;
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--ams-border);
}

.cart-line__thumb {
	width: 80px;
	height: 80px;
	border: 1px solid var(--ams-border);
	overflow: hidden;
	background: var(--ams-panel);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-line__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cart-line__title {
	font-size: 14.5px;
	font-weight: 600;
	margin-bottom: 3px;
}

.cart-line__artist {
	font-family: var(--ams-font-serif);
	font-size: 13px;
	color: var(--ams-muted);
	margin-bottom: 8px;
}

.cart-line__remove {
	font-size: 12px;
	color: var(--ams-steel);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: var(--ams-font-ui);
}

.cart-line .qty-control button {
	width: 28px;
	height: 32px;
	font-size: 14px;
}

.cart-line .qty-control__value {
	width: 28px;
	font-size: 13px;
}

.cart-line__total {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ams-navy);
	min-width: 60px;
	text-align: right;
}

.cart-summary {
	border: 1px solid var(--ams-border);
	padding: 28px;
	background: var(--ams-panel);
}

.cart-summary h2 {
	font-weight: 600;
	font-size: 19px;
	margin-bottom: 20px;
}

.cart-summary__row {
	display: flex;
	justify-content: space-between;
	font-family: var(--ams-font-serif);
	font-size: 15px;
	margin-bottom: 10px;
}

.cart-summary__total {
	display: flex;
	justify-content: space-between;
	font-size: 18px;
	font-weight: 700;
	color: var(--ams-navy);
	padding-top: 16px;
	border-top: 1px solid var(--ams-border);
	margin: 8px 0 24px;
	font-family: var(--ams-font-ui);
}

.cart-checkout-error {
	color: #8b1a1a;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}

.cart-checkout-note {
	font-size: 0.85rem;
	opacity: 0.75;
	margin: 0.75rem 0 0;
}

.cart-checkout-fields {
	display: none;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.cart-checkout-fields.is-visible {
	display: flex;
}

.cart-confirm {
	max-width: 640px;
	margin: 0 auto;
	padding: 100px var(--ams-pad);
	text-align: center;
	display: none;
}

.cart-confirm.is-visible {
	display: block;
}

.cart-confirm__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid var(--ams-navy);
	color: var(--ams-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 28px;
	font-size: 24px;
}

.cart-confirm h1 {
	font-weight: 600;
	font-size: 28px;
	margin: 0 0 14px;
}

.cart-confirm p {
	font-family: var(--ams-font-serif);
	font-size: 16px;
	margin: 0 0 32px;
	line-height: 1.7;
}

.cart-view[hidden],
.cart-confirm[hidden] {
	display: none !important;
}

/* Search */
.search-page {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 40px var(--ams-pad) 80px;
}

.search-page h1 {
	font-weight: 600;
	font-size: 30px;
	margin: 0 0 8px;
}

.search-page__meta {
	font-family: var(--ams-font-serif);
	font-size: 14px;
	color: var(--ams-muted);
	margin-bottom: 32px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--ams-border);
	margin-top: 20px;
	font-family: var(--ams-font-serif);
}

.footer-inner {
	max-width: var(--ams-max);
	margin: 0 auto;
	padding: 40px var(--ams-pad);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-copy {
	font-size: 13px;
	color: var(--ams-muted);
}

.footer-links {
	list-style: none;
	display: flex;
	gap: 24px;
	font-size: 13px;
}

.footer-links a {
	color: var(--ams-muted);
}

.footer-links a:hover {
	color: var(--ams-steel);
}

.error-404 {
	text-align: center;
	padding: 4rem 1rem;
}

.error-404-title {
	font-size: 4rem;
	line-height: 1;
}

.error-404-link {
	display: inline-block;
	margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
	.home-hero,
	.product-single__grid,
	.cart-layout,
	.contact-grid,
	.catalog-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.product-grid,
	.product-grid--3,
	.category-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-hero h1 {
		font-size: 34px;
	}

	.desktop-nav {
		display: none;
	}

	.header-container {
		flex-wrap: wrap;
	}
}

@media (max-width: 560px) {
	:root {
		--ams-pad: 20px;
	}

	.product-grid,
	.product-grid--3,
	.category-strip {
		grid-template-columns: 1fr;
	}

	.cart-line {
		grid-template-columns: 64px 1fr;
		gap: 12px;
	}

	.cart-line__total,
	.cart-line .qty-control {
		grid-column: 2;
	}

	.home-banner {
		height: 160px;
	}
}
