/*
Theme Name: Althara - الثرى
Theme URI: https://example.com/althara
Author: Althara
Description: قالب متجر "الثرى" للعبايات والفساتين. يجمع الهوية السعودية الأصيلة بالتصميم العصري. متوافق مع WooCommerce، يدعم العربية (RTL)، ويُنشئ الصفحات والأقسام والقوائم تلقائياً عند التفعيل.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: althara
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, one-column, translation-ready
WC requires at least: 7.0
*/

/* ============ Brand tokens (من دليل الهوية) ============ */
:root {
	--sky: #BFD8E6;          /* السماوي - أساسي */
	--brown: #5B4639;        /* بني داكن - أساسي */
	--beige: #E8E1D8;        /* البيج - ثانوي */
	--blue-gray: #8EA7B5;    /* أزرق رمادي - ثانوي */
	--khaki: #A79B8B;        /* كاكي - ثانوي */
	--charcoal: #3A3A3A;     /* رمادي غامق - النصوص والأيقونات */
	--sky-soft: #E4EFF5;
	--paper: #F7F4F0;
	--white: #FFFFFF;
	--font-head: 'Playfair Display', 'Amiri', Georgia, serif;
	--font-body: 'Montserrat', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
	--radius: 4px;
	--wrap: 1200px;
	--shadow: 0 10px 30px rgba(58, 58, 58, .08);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	direction: rtl;
	text-align: right;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.8;
	color: var(--charcoal);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
a:hover { color: var(--blue-gray); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--brown);
	line-height: 1.35;
	margin: 0 0 .6em;
	font-weight: 700;
}
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; right: 10px; z-index: 9999; width: auto; height: auto; clip: auto;
	background: var(--brown); color: #fff; padding: 10px 16px;
}
:focus-visible { outline: 2px solid var(--blue-gray); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn, .button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wp-block-button__link {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 13px 30px;
	border: 1px solid var(--brown);
	border-radius: var(--radius);
	background: var(--brown);
	color: #fff;
	cursor: pointer;
	line-height: 1.4;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: var(--charcoal); border-color: var(--charcoal); color: #fff;
}
.btn-outline { background: transparent; color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--brown); color: #fff;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--charcoal); }

/* ============ Najdi triangles band (نقش مستوحى من العمارة النجدية) ============ */
.najdi-band {
	height: 22px;
	background-color: transparent;
	background-image:
		linear-gradient(135deg, transparent 50%, var(--brown) 50%),
		linear-gradient(225deg, transparent 50%, var(--brown) 50%);
	background-size: 22px 22px;
	background-position: 0 0, 0 0;
	background-repeat: repeat-x;
	opacity: .85;
}
.najdi-band.light {
	background-image:
		linear-gradient(135deg, transparent 50%, var(--khaki) 50%),
		linear-gradient(225deg, transparent 50%, var(--khaki) 50%);
	opacity: .55;
}

/* ============ Top bar & header ============ */
.topbar {
	background: var(--brown);
	color: var(--beige);
	font-size: 13px;
	text-align: center;
	padding: 7px 20px;
}
.topbar a { color: #fff; text-decoration: underline; }
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--beige);
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 84px;
}
.site-branding a { display: flex; align-items: center; gap: 12px; color: var(--charcoal); }
.site-branding .custom-logo { max-height: 64px; width: auto; }
.brand-mark svg { width: 46px; height: auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-words .en { font-family: var(--font-body); letter-spacing: .45em; font-size: 15px; font-weight: 500; direction: ltr; }
.brand-words .ar { font-family: var(--font-head); font-size: 20px; color: var(--brown); margin-top: 4px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul, .main-nav .menu { display: flex; gap: 6px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; color: var(--charcoal); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brown); }
.main-nav .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--sky); }
.main-nav .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 210px;
	background: #fff; border: 1px solid var(--beige); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; padding: 6px 0;
	display: block;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 9px 18px; font-size: 14px; }
.main-nav .sub-menu a:hover { background: var(--sky-soft); }
.main-nav .menu-item-has-children > a::after { content: " ▾"; font-size: 11px; color: var(--khaki); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; color: var(--charcoal); background: transparent; border: 0; padding: 0;
}
.icon-btn:hover { background: var(--sky-soft); color: var(--brown); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
	position: absolute; top: 2px; left: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--brown); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.menu-toggle { display: none; }

.header-search { display: none; background: var(--sky-soft); padding: 14px 0; border-top: 1px solid var(--beige); }
.header-search.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; padding: 12px 16px; border: 1px solid var(--beige); border-radius: var(--radius);
	font-family: var(--font-body); font-size: 15px; background: #fff;
}

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; z-index: 200;
		transform: translateX(100%); transition: transform .3s; padding: 80px 10px 30px; overflow-y: auto;
		box-shadow: var(--shadow);
	}
	.main-nav.is-open { transform: none; }
	.main-nav > ul, .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav a { padding: 12px 14px; border-bottom: 1px solid var(--beige); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 14px 0 0; }
	.nav-close { position: absolute; top: 18px; left: 18px; }
	.nav-overlay { position: fixed; inset: 0; background: rgba(58,58,58,.35); z-index: 150; display: none; }
	.nav-overlay.is-open { display: block; }
}
@media (min-width: 961px) { .nav-close, .nav-overlay { display: none !important; } }

/* ============ Hero ============ */
.hero {
	position: relative;
	background: var(--sky);
	overflow: hidden;
}
.hero-inner {
	display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
	padding: 90px 20px 100px;
}
.hero-kicker { display: inline-block; font-size: 13px; letter-spacing: .3em; color: var(--brown); margin-bottom: 18px; direction: ltr; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--charcoal); margin-bottom: 18px; }
.hero h1 span { color: var(--brown); }
.hero p { font-size: 18px; max-width: 520px; margin-bottom: 30px; color: var(--charcoal); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
	position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 6px 6px;
	background: linear-gradient(180deg, var(--beige), #d9cdbf);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .map-mark { width: 60%; color: var(--brown); opacity: .75; }
.hero-art::after {
	content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
	background-image:
		linear-gradient(135deg, transparent 50%, var(--brown) 50%),
		linear-gradient(225deg, transparent 50%, var(--brown) 50%);
	background-size: 26px 26px; background-repeat: repeat-x; opacity: .8;
}
.hero-ground { height: 46px; background: var(--khaki); }
@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; padding: 60px 20px 70px; text-align: center; }
	.hero p { margin-inline: auto; }
	.hero .actions { justify-content: center; }
	.hero-art { max-width: 340px; margin: 0 auto; }
}

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section.alt { background: var(--white); }
.section.beige { background: var(--beige); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow { display: block; font-size: 12px; letter-spacing: .35em; color: var(--khaki); margin-bottom: 10px; direction: ltr; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: #6b625a; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 280px; padding: 26px; border-radius: var(--radius); overflow: hidden;
	color: var(--charcoal); background: var(--sky-soft); isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 60%); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .tri { position: absolute; top: 22px; left: 22px; display: flex; gap: 5px; }
.cat-card .tri i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--brown); opacity: .7; }
.cat-card h3 { font-size: 24px; margin: 0 0 2px; }
.cat-card .en { font-size: 13px; letter-spacing: .15em; color: var(--khaki); direction: ltr; text-align: right; }
.cat-card .more { margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--brown); }
.cat-card.c1 { background: linear-gradient(160deg, #cfe2ec, #e9f2f7); }
.cat-card.c2 { background: linear-gradient(160deg, #e8e1d8, #f5f1ec); }
.cat-card.c3 { background: linear-gradient(160deg, #c9d3d9, #e6ecef); }
.cat-card.c4 { background: linear-gradient(160deg, #efe6d6, #f9f5ee); }
.cat-card.c5 { background: linear-gradient(160deg, #d8cfc4, #efe9e2); }
.cat-card.c6 { background: linear-gradient(160deg, #d4e3ea, #f0f5f8); }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { min-height: 200px; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { text-align: center; padding: 30px 20px; background: var(--paper); border-radius: var(--radius); border-top: 3px solid var(--sky); }
.value .ico { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--sky-soft); display: flex; align-items: center; justify-content: center; color: var(--brown); }
.value .ico svg { width: 28px; height: 28px; }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { font-size: 14.5px; color: #6b625a; margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story-art {
	aspect-ratio: 1; border-radius: var(--radius); background: var(--brown); color: var(--beige);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; overflow: hidden;
}
.story-art .map-mark { width: 46%; color: var(--beige); }
.story-art .brand-en { letter-spacing: .6em; font-size: 18px; direction: ltr; }
.story-art::before, .story-art::after {
	content: ""; position: absolute; left: 0; right: 0; height: 24px;
	background-image:
		linear-gradient(135deg, transparent 50%, var(--khaki) 50%),
		linear-gradient(225deg, transparent 50%, var(--khaki) 50%);
	background-size: 24px 24px; background-repeat: repeat-x; opacity: .6;
}
.story-art::before { top: 0; transform: rotate(180deg); }
.story-art::after { bottom: 0; }
.story h2 { font-size: clamp(26px, 3.2vw, 36px); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-art { max-width: 380px; margin: 0 auto; width: 100%; } }

/* Journey (UX plan) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { text-align: center; position: relative; padding: 0 6px; }
.step .ico { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; color: var(--charcoal); }
.step .ico svg { width: 36px; height: 36px; }
.step .num { display: block; font-family: var(--font-head); font-size: 26px; color: var(--brown); }
.step h3 { font-size: 17px; margin: 4px 0 6px; font-family: var(--font-body); color: var(--charcoal); }
.step p { font-size: 14px; color: #6b625a; margin: 0; }
.step:not(:last-child)::after { content: "←"; position: absolute; top: 30px; left: -14px; color: var(--khaki); font-size: 22px; }
@media (max-width: 960px) {
	.steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
	.step::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA strip */
.cta-strip { background: var(--blue-gray); color: #fff; text-align: center; padding: 60px 20px; }
.cta-strip h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-strip p { color: #eef3f6; max-width: 560px; margin: 0 auto 24px; }
.cta-strip .btn { background: #fff; color: var(--brown); border-color: #fff; }
.cta-strip .btn:hover { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ============ Page / content ============ */
.page-hero { background: var(--sky); padding: 56px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); color: var(--charcoal); margin: 0; }
.page-hero .crumbs { font-size: 13px; color: var(--brown); margin-top: 8px; }
.page-hero .crumbs a { color: var(--brown); }
.content-area { padding: 60px 0 80px; }
.entry-content { max-width: 820px; margin: 0 auto; background: #fff; padding: 46px; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content.wide { max-width: none; }
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content h3 { font-size: 20px; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-right: 22px; padding-left: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-right: 4px solid var(--sky); background: var(--sky-soft); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--beige); padding: 10px 12px; text-align: right; }
.entry-content th { background: var(--paper); }
@media (max-width: 600px) { .entry-content { padding: 26px 20px; } }

/* FAQ accordion (uses <details>) */
.faq details { border: 1px solid var(--beige); border-radius: var(--radius); margin-bottom: 12px; background: var(--paper); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--brown); list-style: none; position: relative; padding-left: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--khaki); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.contact-card { padding: 22px; background: var(--paper); border-radius: var(--radius); border-right: 3px solid var(--sky); }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p { margin: 0; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* Posts */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--beige); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px; }
.post-card h2 { font-size: 20px; }
@media (max-width: 860px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .posts-grid { grid-template-columns: 1fr; } }
.pagination, .woocommerce nav.woocommerce-pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--beige); background: #fff; border-radius: var(--radius); }
.pagination .current { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ============ WooCommerce ============ */
.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--khaki); margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--brown); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	background: #fff; border-radius: var(--radius); overflow: hidden; text-align: center;
	padding-bottom: 18px; box-shadow: 0 2px 0 var(--beige); transition: box-shadow .25s, transform .25s;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { margin: 0 0 14px !important; aspect-ratio: 3/4; object-fit: cover; background: var(--beige); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-body); font-size: 15.5px !important; font-weight: 600; color: var(--charcoal); padding: 0 12px !important;
}
.woocommerce ul.products li.product .price { color: var(--brown) !important; font-weight: 600; font-size: 15px !important; }
.woocommerce ul.products li.product .price del { color: var(--khaki); opacity: 1; }
.woocommerce ul.products li.product .button { margin-top: 10px; padding: 10px 20px; font-size: 13.5px; }
.woocommerce span.onsale {
	background: var(--brown); min-height: auto; min-width: auto; line-height: 1; padding: 7px 12px; border-radius: 2px;
	top: 12px !important; right: 12px !important; left: auto !important; margin: 0 !important; font-size: 12px;
}
@media (max-width: 960px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.woocommerce .woocommerce-result-count { color: var(--khaki); font-size: 14px; }
.woocommerce .woocommerce-ordering select, .woocommerce select, .woocommerce input.input-text, .woocommerce textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single {
	border: 1px solid var(--beige); border-radius: var(--radius); padding: 10px 12px; font-family: var(--font-body); background: #fff; min-height: 44px;
}
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; }
.shop-layout.no-sidebar { grid-template-columns: 1fr; }
.shop-sidebar .widget { background: #fff; padding: 22px; border-radius: var(--radius); margin-bottom: 20px; }
.shop-sidebar .widget-title { font-size: 18px; border-bottom: 1px solid var(--beige); padding-bottom: 10px; }
.shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.shop-sidebar li { padding: 6px 0; }
@media (max-width: 960px) { .shop-layout { grid-template-columns: 1fr; } .shop-sidebar { order: 2; } }

/* Single product */
.woocommerce div.product div.images img { border-radius: var(--radius); background: var(--beige); }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 36px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brown); font-size: 24px; font-weight: 600; }
.woocommerce div.product form.cart { margin: 20px 0; }
.woocommerce .quantity .qty { width: 72px; min-height: 48px; border: 1px solid var(--beige); border-radius: var(--radius); text-align: center; }
.woocommerce div.product form.cart .button { min-height: 48px; padding: 0 36px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 -1px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--paper); border-color: var(--beige); border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--charcoal); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs .panel { background: #fff; padding: 26px; border: 1px solid var(--beige); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce table.variations select { min-width: 200px; }
.althara-product-perks {
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; padding: 16px; background: var(--sky-soft); border-radius: var(--radius); font-size: 14px;
}
.althara-product-perks div { display: flex; gap: 8px; align-items: center; }
.althara-product-perks svg { width: 20px; height: 20px; flex: none; color: var(--brown); }
.althara-size-guide { margin: 6px 0 14px; font-size: 14px; }
.althara-size-guide summary { cursor: pointer; color: var(--brown); font-weight: 600; text-decoration: underline; }
.althara-size-guide table { width: 100%; border-collapse: collapse; margin-top: 10px; background: #fff; }
.althara-size-guide th, .althara-size-guide td { border: 1px solid var(--beige); padding: 7px; text-align: center; }
.althara-size-guide th { background: var(--paper); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--blue-gray) !important; background: #fff; border-radius: var(--radius); padding-right: 3.5em !important; padding-left: 2em !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue-gray) !important; right: 1.3em; left: auto !important; }
.woocommerce-error { border-top-color: #b4564b !important; }

/* Cart / checkout / account */
.woocommerce table.shop_table { border-color: var(--beige); border-radius: var(--radius); background: #fff; }
.woocommerce table.shop_table th { background: var(--paper); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review {
	background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--beige); color: var(--charcoal); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--sky-soft); color: var(--brown); font-weight: 600; }

/* ============ Footer ============ */
.site-footer { background: var(--charcoal); color: #cfcac4; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 20px 44px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 16px; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #cfcac4; }
.site-footer a:hover { color: var(--sky); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand .brand-words .en { color: #fff; }
.footer-brand .brand-words .ar { color: var(--sky); }
.footer-brand .brand-mark { color: var(--sky); }
.footer-brand p { margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #5a5a5a; display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--sky); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid #4b4b4b; padding: 18px 20px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pay-badges { display: flex; gap: 8px; }
.pay-badges span { border: 1px solid #5a5a5a; border-radius: 3px; padding: 2px 8px; font-size: 12px; direction: ltr; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* WhatsApp floating */
.wa-float {
	position: fixed; bottom: 22px; left: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
	background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* 404 */
.notfound { text-align: center; padding: 100px 20px; }
.notfound .big { font-family: var(--font-head); font-size: 110px; color: var(--sky); line-height: 1; }

/* WP core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--khaki); }
.sticky, .bypostauthor { }
