/* =========================================================
   COD STORE — DESIGN SYSTEM
   Modern, minimal, premium, mobile-first.
   All colors/spacing/radii are CSS variables so the theme,
   Elementor's Custom CSS, or the Customizer can override them
   without touching this file.
   ========================================================= */

:root {
	/* --- Brand colors (overridable via Customizer, see inc/customizer.php) --- */
	--brand-background: #F8F8F6;
	--brand-surface: #FFFFFF;
	--brand-text: #171717;
	--brand-muted: #6B7280;
	--brand-primary: #111827;
	--brand-primary-contrast: #FFFFFF;
	--brand-accent: #B5652E;      /* premium terracotta CTA — swap freely */
	--brand-accent-contrast: #FFFFFF;
	--brand-success: #1F7A4D;
	--brand-error: #B3261E;
	--brand-border: #E7E5E1;

	/* --- Layout --- */
	--brand-radius: 14px;
	--brand-radius-sm: 8px;
	--brand-radius-lg: 22px;
	--container-width: 1240px;
	--btn-radius: 999px;

	/* --- Typography --- */
	--font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-display: 'Fraunces', Georgia, serif;

	/* --- Shadows --- */
	--shadow-sm: 0 1px 2px rgba(17,24,39,0.06);
	--shadow-md: 0 8px 24px rgba(17,24,39,0.08);
	--shadow-lg: 0 20px 48px rgba(17,24,39,0.12);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--brand-background);
	color: var(--brand-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--brand-text); }
p { margin: 0 0 1em; color: var(--brand-text); }
hr.divider { border: none; border-top: 1px solid var(--brand-border); margin: 24px 0; }
.screen-reader-text {
	position: absolute !important; clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 9999;
	background: var(--brand-primary); color: #fff; padding: 10px 16px; border-radius: var(--brand-radius-sm);
}
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}
.section-padding { padding: 56px 0; }
@media (min-width: 900px) { .section-padding { padding: 88px 0; } }

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.section-heading h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-link { color: var(--brand-accent); font-weight: 600; white-space: nowrap; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--btn-radius);
	font-weight: 700;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
	text-align: center;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-primary { background: var(--brand-accent); color: var(--brand-accent-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.icon-btn {
	background: none; border: none; cursor: pointer; color: var(--brand-text);
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
}
.icon-btn:hover { background: var(--brand-border); }

/* =========================================================
   HEADER
   ========================================================= */
.shama-lux-announcement-bar {
	background: var(--brand-accent);
	color: var(--brand-accent-contrast);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 9px 12px;
}
@media (min-width: 700px) { .shama-lux-announcement-bar { font-size: 14px; padding: 10px 16px; } }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(248,248,246,.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--brand-border);
}
.site-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 76px;
}
.site-branding img { max-height: 44px; width: auto; }
@media (min-width: 700px) { .site-branding img { max-height: 54px; } }
.site-title-link { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.primary-nav { display: none; }
.primary-menu { display: flex; gap: 32px; }
.primary-menu a { font-weight: 600; font-size: 15px; }
.primary-menu a:hover { color: var(--brand-accent); }
.header-actions { display: flex; align-items: center; gap: 4px; }

@media (min-width: 960px) {
	.primary-nav { display: block; }
	.mobile-menu-toggle { display: none; }
}

.header-search-panel { border-top: 1px solid var(--brand-border); background: var(--brand-surface); }
.header-search-panel[hidden] { display: none; }
.header-search-form { display: flex; gap: 8px; padding: 14px 20px; max-width: var(--container-width); margin: 0 auto; }
.search-field { flex: 1; padding: 12px 16px; border-radius: var(--brand-radius-sm); border: 1px solid var(--brand-border); font-family: var(--font-body); font-size: 15px; }
.search-submit { padding: 12px 20px; border-radius: var(--brand-radius-sm); border: none; background: var(--brand-primary); color: #fff; font-weight: 700; cursor: pointer; }

.mobile-menu-panel { background: var(--brand-surface); border-bottom: 1px solid var(--brand-border); }
.mobile-menu-panel[hidden] { display: none; }
.mobile-menu { padding: 8px 20px 20px; display: flex; flex-direction: column; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--brand-border); font-weight: 600; }
@media (min-width: 960px) { .mobile-menu-panel { display: none !important; } }

/* =========================================================
   HERO
   ========================================================= */
.hero-section { padding: 40px 0 20px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand-accent); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-size: clamp(30px, 5vw, 54px); margin-bottom: 18px; }
.hero-subtitle { color: var(--brand-muted); font-size: 18px; max-width: 46ch; margin-bottom: 28px; }
.hero-image, .hero-image-placeholder {
	width: 100%; aspect-ratio: 4/3; border-radius: var(--brand-radius-lg);
	background: linear-gradient(135deg, #EEEAE3, #DED7CB);
	object-fit: cover;
}
@media (min-width: 900px) {
	.hero-inner { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 700px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
.category-card { position: relative; display: block; border-radius: var(--brand-radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); }
.category-card-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.category-card:hover .category-card-image { transform: scale(1.06); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.category-card-label { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; }
.category-card-label span { display: block; }
.category-card-label span:first-child { font-weight: 700; font-size: 17px; }
.category-card-count { font-size: 12px; opacity: .85; }

/* =========================================================
   PRODUCT GRID / CARD
   ========================================================= */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 700px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.products-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .products-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.product-card {
	background: var(--brand-surface);
	border-radius: var(--brand-radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow .25s ease, transform .25s ease;
	display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-media { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: #F1EFEA; }
.product-card-image { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.product-card-image-main { position: relative; }
.product-card-image-hover { position: absolute; inset: 0; opacity: 0; }
.product-card-media:hover .product-card-image-main { opacity: 0; }
.product-card-media:hover .product-card-image-hover { opacity: 1; transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; z-index: 2; }
.badge-sale { background: var(--brand-error); color: #fff; }
.badge-featured { background: var(--brand-primary); color: #fff; }
.badge-outofstock { background: #fff; color: var(--brand-muted); border: 1px solid var(--brand-border); left: auto; right: 10px; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-cat { font-size: 12px; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .03em; }
.product-card-title { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 0; }
.product-card-price { font-weight: 700; font-size: 16px; margin: 2px 0 8px; }
.product-card-price ins { text-decoration: none; color: var(--brand-accent); margin-left: 6px; }
.product-card-price del { color: var(--brand-muted); font-weight: 500; }
.product-card-cta { margin-top: auto; }

.cod-rating { display: flex; align-items: center; gap: 6px; }
.cod-rating-stars {
	--rating: 0;
	display: inline-block; width: 90px; height: 16px;
	background: linear-gradient(90deg, var(--brand-accent) calc(var(--rating) / 5 * 100%), var(--brand-border) calc(var(--rating) / 5 * 100%));
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'><text x='0' y='16' font-size='18'>★★★★★</text></svg>") repeat-x;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'><text x='0' y='16' font-size='18'>★★★★★</text></svg>") repeat-x;
}
.cod-rating-count { font-size: 12px; color: var(--brand-muted); }

/* =========================================================
   PROMO BANNER
   ========================================================= */
.promo-banner { background: var(--brand-primary); color: #fff; }
.promo-banner-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 48px 0; }
.promo-banner h2 { color: #fff; font-size: clamp(22px,3vw,32px); }
.promo-banner p { color: rgba(255,255,255,.8); }
@media (min-width: 800px) { .promo-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (min-width: 800px) { .benefits-grid { grid-template-columns: repeat(4,1fr); } }
.benefit-card { text-align: left; }
.benefit-card svg { color: var(--brand-accent); margin-bottom: 12px; }
.benefit-card h3 { font-size: 16px; font-family: var(--font-body); margin-bottom: 4px; }
.benefit-card p { color: var(--brand-muted); font-size: 14px; margin: 0; }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .reviews-grid { grid-template-columns: repeat(3,1fr); } }
.review-card { background: var(--brand-surface); border-radius: var(--brand-radius); padding: 24px; box-shadow: var(--shadow-sm); margin: 0; }
.review-text { font-style: italic; color: var(--brand-text); margin: 10px 0 14px; }
.review-author { font-weight: 700; font-size: 14px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-container { max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--brand-surface); border: 1px solid var(--brand-border); border-radius: var(--brand-radius-sm); padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--brand-accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--brand-muted); }

/* =========================================================
   SHOP ARCHIVE
   ========================================================= */
.archive-title { font-size: clamp(26px,3.5vw,38px); margin-bottom: 6px; }
.shop-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 240px 1fr; } }
.shop-sidebar .widget { margin-bottom: 28px; }
.shop-sidebar h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.shop-sidebar ul li { margin-bottom: 8px; }
.shop-sidebar a { color: var(--brand-muted); }
.shop-sidebar a:hover { color: var(--brand-accent); }
.shop-toolbar { margin-bottom: 20px; color: var(--brand-muted); font-size: 14px; }
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brand-border); }
.woocommerce-pagination .current { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */
.breadcrumbs { font-size: 13px; color: var(--brand-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--brand-muted); }
.product-conversion-layout {
	display: grid;
	gap: 32px;
	background: var(--brand-surface);
	border-radius: var(--brand-radius-lg);
	padding: 20px;
	box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) {
	.product-conversion-layout { grid-template-columns: 1.1fr 1fr; padding: 36px; gap: 48px; }
}

/* WooCommerce default gallery, restyled */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { border-radius: var(--brand-radius); overflow: hidden; }
.woocommerce-product-gallery img { border-radius: var(--brand-radius); }
.flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; padding: 0; }
.flex-control-thumbs li { list-style: none; width: 72px; }
.flex-control-thumbs img { border-radius: var(--brand-radius-sm); cursor: pointer; opacity: .7; border: 2px solid transparent; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--brand-accent); }

.product-title { font-size: clamp(26px,3vw,36px); margin-bottom: 8px; }
.product-price-block { font-size: 26px; font-weight: 700; margin: 12px 0; }
.product-price-block ins { text-decoration: none; color: var(--brand-accent); margin-left: 10px; }
.product-price-block del { color: var(--brand-muted); font-size: 18px; }
.product-short-desc { color: var(--brand-muted); margin-bottom: 16px; }
.cod-trust-mini { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--brand-success); font-weight: 600; margin-bottom: 8px; }
.product-full-desc { margin-top: 32px; }
.product-full-desc h2 { font-size: 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #14140F; color: #D9D6CE; margin-top: 40px; }
.footer-trust-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; padding: 32px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 800px) { .footer-trust-strip { grid-template-columns: repeat(4,1fr); } }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.trust-item svg { color: var(--brand-accent); flex-shrink: 0; }
.footer-main { display: grid; gap: 32px; padding: 48px 20px; }
@media (min-width: 800px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col h4, .footer-widget-title { color: #fff; font-family: var(--font-body); font-size: 15px; margin-bottom: 14px; }
.footer-logo-text { font-family: var(--font-display); font-size: 22px; color: #fff; }
.footer-desc { color: #A8A498; font-size: 14px; }
.footer-menu { display: flex; flex-direction: column; gap: 10px; }
.footer-menu a, .footer-col p { color: #A8A498; font-size: 14px; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px; text-align: center; font-size: 13px; color: #726E63; }

/* =========================================================
   GENERIC PAGE / BLOG
   ========================================================= */
.generic-post-list { display: grid; gap: 32px; }
@media (min-width: 700px) { .generic-post-list { grid-template-columns: repeat(2,1fr); } }
.generic-post-card { background: var(--brand-surface); border-radius: var(--brand-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.generic-post-thumb img { aspect-ratio: 16/10; object-fit: cover; }
.generic-post-title { padding: 16px 16px 0; font-size: 18px; }
.generic-post-excerpt { padding: 8px 16px 16px; color: var(--brand-muted); font-size: 14px; }
