/*
Theme Name: Al Fakher
Template: kadence
Description: الثيم الفرعي لموقع الفاخر — كل التعديلات هنا.
Author: Al Fakher
Version: 1.9.5
Text Domain: alfakher
*/

/* Store pages in the landing page's black + gold. The landing page itself drops this file. */

:root {
	--global-palette1: #c9a24b;
	--global-palette2: #e3c173;
	--global-palette3: #f3eee2;
	--global-palette4: #e8e2d3;
	--global-palette5: #b9b2a1;
	--global-palette6: #8a8270;
	--global-palette7: #2a2721;
	--global-palette8: #131210;
	--global-palette9: #0f0e0c;
	--global-palette-btn-bg: #c9a24b;
	--global-palette-btn-bg-hover: #e3c173;
	--global-palette-btn: #0f0e0c;
	--global-palette-btn-hover: #0f0e0c;
	--af-line: #2a2721;
	--af-card: #171512;
}

body,
.site,
.content-bg,
.site-header,
.site-main-header-wrap .site-header-row-container-inner,
.entry.content-bg,
body.content-style-unboxed .site {
	background: #0f0e0c;
	color: var(--global-palette5);
}

body,
button,
input,
select,
textarea,
.button,
.woocommerce .button {
	font-family: Tajawal, system-ui, sans-serif;
}

h1, h2, h3, h4,
.entry-title,
.product_title,
.site-title {
	font-family: Amiri, serif;
	color: var(--global-palette3);
}

/* Top strip + header */
.af-strip { background: #c9a24b; color: #0f0e0c; text-align: center; padding: 10px 16px; font: 800 14px/1.5 Tajawal, sans-serif; }
.site-header { border-bottom: 1px solid var(--af-line); }
.site-title { font-size: 34px !important; font-weight: 700; }
.site-title::after { content: "AL FAKHER"; font: 700 12px Tajawal, sans-serif; letter-spacing: 2px; color: #c9a24b; margin-inline-start: 10px; }
.site-branding a { text-decoration: none; }
#site-navigation,
.mobile-toggle-open-container,
.header-cart-wrap,
.header-mobile-cart-wrap,
.search-toggle-open-container { display: none !important; }

/* Page title banners (cart, checkout) */
.entry-hero-container-inner,
.entry-hero .hero-section-overlay { background: #131210 !important; }
.entry-hero { border-bottom: 1px solid var(--af-line); }

/* Breadcrumbs, links */
.kadence-breadcrumbs, .kadence-breadcrumbs a { color: var(--global-palette6); }
a { color: #c9a24b; }
a:hover { color: #e3c173; }

/* Product page */
.woocommerce div.product .product_title { font-size: 34px; line-height: 1.3; }
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price { font-family: Amiri, serif; color: #c9a24b !important; font-size: 30px; }
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images img { background: #171512; border-radius: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-tabs.wc-tabs-wrapper { background: #171512 !important; border-color: var(--af-line) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--global-palette5); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #c9a24b; }
.product_meta { color: var(--global-palette6); }

/* Product gallery: native swipe (flexslider is off — its RTL swipe stops halfway) */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
	flex: 0 0 100%; width: 100% !important; max-width: none; margin: 0 !important; padding: 0 !important; scroll-snap-align: center; float: none;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) img { height: auto; }
.af-gal-dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 0; }
.af-gal-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(201, 162, 75, .3); cursor: pointer; }
.af-gal-dots button.is-on { background: #c9a24b; }

/* Buy button (landing page form) */
.af-store-buy.button,
.woocommerce .af-store-buy.button {
	display: flex; align-items: center; justify-content: center; width: 100%; max-width: 420px; min-height: 56px; margin: 18px 0 8px;
	background: #c9a24b !important; color: #0f0e0c !important; border: 0; border-radius: 4px;
	font: 800 18px/1.3 Tajawal, sans-serif; text-decoration: none;
}
.af-store-buy.button:hover { background: #e3c173 !important; }
.woocommerce ul.products li.product .af-store-buy.button { min-height: 46px; font-size: 16px; margin-top: 10px; }
.af-store-note { font-size: 14px; color: var(--global-palette6); margin: 0 0 18px; }
.af-store-video { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid rgba(201, 162, 75, .35); margin: 0 0 20px; background: #000; }

/* Shop grid cards */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .product-details { background: #171512; border-color: var(--af-line); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--global-palette3); font-family: Tajawal, sans-serif; font-weight: 800; }

/* Forms, tables (cart, checkout, thank-you) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea,
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-blocks-components-select__select {
	background: #0f0e0c !important; color: var(--global-palette3) !important; border: 1px solid #3a362d !important; border-radius: 4px;
}
.wc-block-components-text-input label,
.wc-blocks-components-select__label { color: var(--global-palette6) !important; }
.woocommerce table.shop_table,
.woocommerce-order-overview,
.woocommerce-order-details,
.woocommerce-customer-details address,
.wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-panel,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	background: #171512 !important; border-color: var(--af-line) !important; color: var(--global-palette5);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-color: var(--af-line) !important; }
.woocommerce-order-overview strong,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.woocommerce-Price-amount { color: #c9a24b; }
.woocommerce-thankyou-order-received,
.woocommerce-notice--success { font-family: Amiri, serif; font-size: 28px; color: var(--global-palette3); }
.wc-block-components-button:not(.is-link),
.woocommerce #payment #place_order,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	background: #c9a24b !important; color: #0f0e0c !important; font-weight: 800;
}

/* Footer: Kadence's rows hidden, our short footer shown */
.site-footer .site-footer-wrap { display: none; }
.af-store-footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	max-width: 1120px; margin: 0 auto; padding: 28px 24px; border-top: 1px solid var(--af-line);
	font: 14px Tajawal, sans-serif; color: var(--global-palette6);
}
.af-store-footer-logo { font: 700 22px Amiri, serif; color: var(--global-palette3); }

/* Thank-you page offer */
.af-upsell {
	display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center;
	margin: 0 0 32px; padding: 24px; background: #171512; border: 1px solid #c9a24b; border-radius: 8px;
}
.af-upsell .af-upsell-img { width: 100%; max-width: 180px; height: auto; border-radius: 6px; }
.af-upsell-body { display: flex; flex-direction: column; gap: 10px; }
.af-upsell-eyebrow { font: 700 13px Tajawal, sans-serif; letter-spacing: 1px; color: #c9a24b; }
.af-upsell-title { margin: 0; font: 700 28px/1.35 Amiri, serif; color: var(--global-palette3); }
.af-upsell-text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--global-palette5); }
.af-upsell form { margin: 6px 0 0; }
.af-upsell-btn {
	width: 100%; max-width: 380px; min-height: 56px; border: 0; border-radius: 4px; cursor: pointer;
	background: #c9a24b; color: #0f0e0c; font: 800 18px Tajawal, sans-serif;
}
.af-upsell-btn:hover { background: #e3c173; }
.af-upsell-btn:disabled { opacity: .7; cursor: default; }
.af-upsell-skip { margin: 0; font-size: 13px; color: var(--global-palette6); }
.af-upsell-done { display: block; font-size: 16px; color: var(--global-palette3); }
.af-upsell-done strong { color: #c9a24b; }
@media (max-width: 600px) {
	.af-upsell { grid-template-columns: minmax(0, 1fr); padding: 18px; }
	.af-upsell .af-upsell-img { max-width: 160px; margin: 0 auto; }
	.af-upsell-title { font-size: 24px; }
	.af-upsell-btn { max-width: none; }
}
