/*
Theme Name: Am-store
Template: blocksy
Version: 3.0.0
Text Domain: vieta-store-theme
Description: Vieta Store — mobile-first department-store layout (bottom tab bar, drawer menu, search, banners). LTR + RTL.
*/
/* =====================================================================
   Tokens
   ===================================================================== */
:root {
	--theme-palette-color-1: #111111;
	--theme-palette-color-2: #e0114a;
	--theme-palette-color-3: #111111;
	--theme-palette-color-4: #333333;
	--theme-palette-color-5: #e6e6e6;
	--theme-palette-color-6: #f4f4f4;
	--theme-palette-color-7: #ffffff;
	--theme-palette-color-8: #ffffff;
	--v-accent: #e0114a;
	--v-ink: #111;
	--v-soft: #f2f2f2;
	--v-gutter: 14px;
	--v-tab: 62px;
	--v-font: "Nunito Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang^="ar"] { --v-font: "IBM Plex Sans Arabic", "Nunito Sans", system-ui, sans-serif; }
body, button, input, select, textarea, h1, h2, h3, h4 { font-family: var(--v-font); }
body { background: #fff; color: var(--v-ink); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Hide theme header/footer chrome we replace; hide duplicate titles on home */
#header, header.ct-header, #trp-floater-ls, .trp-floating-switcher { display: none !important; }  /* language toggle lives in our header */
.home .hero-section, .home .page-title, .home .entry-header { display: none !important; }
.home .ct-container-full, .home article > .entry-content { padding-top: 0 !important; }
.home .entry-content > * { max-width: none; }

/* =====================================================================
   Header — phone first
   ===================================================================== */
.vh { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 1px 0 #eee; }
.vh-promo { background: var(--v-ink); color: #fff; font-size: 11.5px; text-align: center; padding: 6px var(--v-gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-bar { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px var(--v-gutter); max-width: 1320px; margin: 0 auto; min-height: 58px; }
.vh-burger { grid-area: burger; background: none; border: 0; padding: 8px; margin-inline-start: -8px; color: var(--v-ink); display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.vh-logo { grid-area: logo; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--v-ink); text-decoration: none; line-height: 1; }
.vh-logo span { color: var(--v-accent); }
.vh-nav { display: none; }
.vh-search { position: absolute; top: calc(100% + 1px); inset-inline: 0; display: flex; align-items: center; gap: 8px; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px var(--v-gutter); color: #777; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.vh-search::before { content: ""; position: absolute; inset: 8px var(--v-gutter); border-radius: 999px; background: var(--v-soft); z-index: -1; }
body.vh-search-open .vh-search { transform: translateY(0); opacity: 1; pointer-events: auto; }
.vh-search input[type=search] { border: 0 !important; background: transparent !important; box-shadow: none !important; height: 42px; width: 100%; font-size: 16px; /* 16px stops iOS zoom */ padding: 0 !important; }
.vh-icons { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 82px; margin-inline-start: auto; flex: 0 0 auto; }
.vh-icons > a { color: var(--v-ink); position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 42px; }
.vh-search-btn, .vh-icons .vh-cart { background: none; border: 0; color: var(--v-ink) !important; min-width: 40px; min-height: 42px; display: inline-flex !important; align-items: center; justify-content: center; padding: 0; visibility: visible !important; opacity: 1 !important; }
.vh-search-btn svg, .vh-icons .vh-cart svg { width: 22px; height: 22px; display: block; }
.vh-acc { display: none !important; }
.vh-langlink { display: none !important; font-size: 13px; font-weight: 700; color: var(--v-ink) !important; text-decoration: none; border: 1px solid #ddd; border-radius: 999px; padding: 5px 10px; min-height: 0 !important; }
.vh-count { position: absolute; top: 4px; inset-inline-end: 0; background: var(--v-accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.vh-count[data-count="0"] { display: none; }

@media (max-width: 999px) {
	.vh-bar { padding-inline-end: calc(var(--v-gutter) + 88px); }
	html[dir=rtl] .vh-bar { padding-inline-end: var(--v-gutter); padding-inline-start: calc(var(--v-gutter) + 88px); }
	.vh-icons { position: absolute !important; inset-inline-end: var(--v-gutter); top: 50%; transform: translateY(-50%); display: flex !important; align-items: center; justify-content: flex-end; gap: 4px; width: 84px; min-width: 84px; height: 42px; margin: 0; z-index: 5; visibility: visible !important; opacity: 1 !important; }
	html[dir=rtl] .vh-icons { inset-inline-end: auto; inset-inline-start: var(--v-gutter); }
	.vh-icons .vh-langlink, .vh-icons .vh-acc { display: none !important; }
	.vh-search-btn, .vh-icons .vh-cart { position: relative !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 50%; background: #fff !important; box-shadow: inset 0 0 0 1px #d9d9d9; color: var(--v-ink) !important; }
	.vh-search-btn svg, .vh-icons .vh-cart svg { display: none !important; }
	.vh-search-btn::before { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: absolute; inset-inline-start: 10px; top: 9px; }
	.vh-search-btn::after { content: ""; width: 8px; height: 2px; background: currentColor; border-radius: 2px; position: absolute; inset-inline-start: 24px; top: 25px; transform: rotate(45deg); transform-origin: center; }
	.vh-icons .vh-cart::before { content: ""; width: 17px; height: 16px; border: 2px solid currentColor; border-top-width: 0; border-radius: 0 0 4px 4px; position: absolute; inset-inline-start: 11px; top: 15px; }
	.vh-icons .vh-cart::after { content: ""; width: 10px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; position: absolute; inset-inline-start: 14px; top: 9px; }
}

/* Drawer (phones & tablets) */
.vh-drawer { position: fixed; inset: 0; z-index: 1001; pointer-events: none; }
.vh-drawer-in { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(84vw, 340px); background: #fff; padding: 56px 20px 24px; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; }
html[dir=rtl] .vh-drawer-in { transform: translateX(100%); }
.vh-drawer-in a { color: var(--v-ink); text-decoration: none; font-size: 18px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.vh-drawer-in a.vh-sale { color: var(--v-accent); }
.vh-drawer-in hr { border: 0; margin: 10px 0; }
.vh-drawer-in .vh-langlink { align-self: flex-start; margin-top: 12px; font-size: 15px; padding: 8px 16px; border-bottom: 1px solid #ddd; }
.vh-close { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 32px; line-height: 1; background: none; border: 0; width: 44px; height: 44px; color: var(--v-ink); }
.vh-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; z-index: -1; }
body.vh-open { overflow: hidden; }
body.vh-open .vh-drawer { pointer-events: auto; }
body.vh-open .vh-drawer-in { transform: none; }
body.vh-open .vh-scrim { opacity: 1; }

.gcc-wa { display: none !important; }
.vwhatsapp-contact { position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 10000; width: 58px; height: 58px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff !important; background: #25d366; text-decoration: none !important; box-shadow: 0 3px 15px rgba(0,0,0,.2); }
.vwhatsapp-contact:hover { background: #1ebd5a; color: #fff !important; }
.vwhatsapp-contact:focus-visible { outline: 3px solid var(--v-ink); outline-offset: 4px; }
.vwhatsapp-contact svg { display: block; }
.vwhatsapp-bubble { width: 38px; height: 38px; }
.vwhatsapp-phone { position: absolute; inset-inline-start: 17px; top: 17px; width: 19px; height: 19px; }
html[dir=rtl] .vwhatsapp-contact { inset-inline-end: auto; inset-inline-start: 20px; }
html[dir=rtl] .vwhatsapp-phone { inset-inline-start: auto; inset-inline-end: 17px; }
@media (max-width: 600px) {
	.vwhatsapp-contact { width: 56px; height: 56px; inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
	html[dir=rtl] .vwhatsapp-contact { inset-inline-end: auto; inset-inline-start: 14px; }
	.vwhatsapp-phone { inset-inline-start: 16px; top: 16px; }
	html[dir=rtl] .vwhatsapp-phone { inset-inline-start: auto; inset-inline-end: 16px; }
}
.gcc-demo { font-size: 11px; padding: 4px 10px; }

/* =====================================================================
   Home — phone-first shopping app layout
   ===================================================================== */
.vx-home { background: #fff; padding-bottom: 18px; }
.vx-hero { width: 100vw; margin-inline: calc(50% - 50vw); padding: 0; position: relative; overflow: hidden; background: #111; }
.vx-hero-track { display: flex; width: 100%; height: min(68vh, 560px); min-height: 430px; transition: transform .45s ease; will-change: transform; }
.vx-hero-track::-webkit-scrollbar { display: none; }
.vx-slide { flex: 0 0 100%; min-width: 100%; color: #fff !important; text-decoration: none; display: flex; align-items: flex-end; justify-content: center; position: relative; background-color: #111; background-position: center; background-size: cover; background-repeat: no-repeat; }
.vx-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0) 58%); }
.vx-hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 26px 56px; width: min(100%, 680px); margin: 0 auto; }
.vx-kicker { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; opacity: .92; margin-bottom: 8px; }
.vx-hero-in strong { display: block; color: #fff; font-size: clamp(34px, 10vw, 54px); line-height: .98; font-weight: 800; max-width: 11ch; text-shadow: 0 2px 18px rgba(0,0,0,.24); }
.vx-hero-in em { display: none; }
.vx-hero-in b { display: inline-flex; align-items: center; min-height: 46px; border-radius: 999px; background: #fff; color: var(--v-ink); padding: 0 25px; margin-top: 18px; font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.vx-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; font-size: 34px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.vx-prev { inset-inline-start: 14px; }
.vx-next { inset-inline-end: 14px; }
.vx-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 14px; }
.vx-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); }
.vx-dot.is-active { background: #fff; }
.vx-pause { border: 0; background: transparent; color: #fff; font-size: 13px; line-height: 1; padding: 0 0 0 2px; }
.vx-pause.is-paused { opacity: .55; }
.vx-service { width: 100vw; margin-inline: calc(50% - 50vw); padding: 14px 0; overflow: hidden; scrollbar-width: none; background: #111; color: #fff; }
.vx-service::-webkit-scrollbar { display: none; }
.vx-service-track { display: flex; width: max-content; gap: 30px; white-space: nowrap; animation: vx-marquee 28s linear infinite; will-change: transform; }
.vx-service span { flex: 0 0 auto; color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.vx-service span::before { content: "•"; color: rgba(255,255,255,.58); margin-inline-end: 30px; }
.vx-service span:first-child::before { display: none; }
@keyframes vx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir=rtl] .vx-service-track { animation-name: vx-marquee-rtl; }
@keyframes vx-marquee-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.vx-discover { max-width: 1320px; margin: 12px auto 0; }
.vx-sec { max-width: 1320px; margin: 20px auto 0; padding: 0 var(--v-gutter); }
.vx-sec h2 { font-size: 18px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.vx-sec h2 a { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--v-ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.vx-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 72px; gap: 9px; overflow-x: auto; padding-bottom: 4px; padding-inline: var(--v-gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
.vx-cats::-webkit-scrollbar, .vx-products::-webkit-scrollbar { display: none; }
.vx-cat { flex: 0 0 auto; min-width: 0; text-align: center; color: var(--v-ink); text-decoration: none; font-weight: 800; font-size: 11px; line-height: 1.15; scroll-snap-align: start; }
.vx-cat span { display: block; width: 58px; height: 58px; border-radius: 50%; background: var(--v-soft) center / cover; margin: 0 auto 5px; box-shadow: inset 0 0 0 1px #e6e6e6; }
.vx-cat-all span { display: flex; align-items: center; justify-content: center; background: var(--v-ink); color: #fff; font-size: 12px; }
.vx-products { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: minmax(124px, 38vw); gap: 12px 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 0 var(--v-gutter) 4px; margin-inline: calc(var(--v-gutter) * -1); scrollbar-width: none; }
.vx-prod { color: var(--v-ink); text-decoration: none; min-width: 0; scroll-snap-align: start; }
.vx-prod-img { display: block; background: var(--v-soft); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 6px; }
.vx-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-prod-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; font-size: 12.5px; font-weight: 800; line-height: 1.28; }
.vx-prod-price { display: block; margin-top: 3px; color: var(--v-ink); font-size: 12.5px; font-weight: 900; }
.vx-prod-price del { color: #8c8c8c; font-size: 11px; font-weight: 600; margin-inline-end: 3px; }
.vx-prod-price ins { color: var(--v-accent); text-decoration: none; }

/* =====================================================================
   Product grid & cards — 2 columns on phones
   ===================================================================== */
.woocommerce ul.products, ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 12px !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; background: #fff; text-align: start; }
.woocommerce ul.products li.product img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--v-soft); border-radius: 4px; margin-bottom: 8px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 0 0 4px !important; }
.woocommerce ul.products li.product .price { font-weight: 800; color: var(--v-ink); font-size: 14px; }
.woocommerce ul.products li.product .price del { color: #999; font-weight: 400; font-size: 12px; }
.woocommerce ul.products li.product .price ins { color: var(--v-accent); text-decoration: none; }
ul.products li.product .entry-meta, ul.products li.product .meta-categories { display: none !important; }
ul.products li.product .button { width: 100%; justify-content: center; font-size: 13px !important; min-height: 40px; padding: 8px 10px !important; }
.onsale { background: var(--v-accent) !important; border-radius: 4px !important; font-size: 11px !important; }
.button, .wp-element-button, button.single_add_to_cart_button { border-radius: 999px !important; font-weight: 700 !important; }

/* Single product, cart, checkout — comfortable touch targets */
.single-product .single_add_to_cart_button { width: 100%; min-height: 50px; font-size: 16px !important; }
.single-product form.cart .quantity { margin-bottom: 10px; }
.variations select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea { font-size: 16px !important; min-height: 46px; }
.woocommerce-cart .checkout-button, #place_order { width: 100%; min-height: 52px; font-size: 16px !important; }
.woocommerce table.shop_table_responsive tr td { padding: 8px 0 !important; }

/* Compact page titles on phones (shop, categories, pages) */
.hero-section { min-height: 0 !important; }
.hero-section .entry-header, .hero-section[data-type] > .ct-container { padding-block: 22px !important; min-height: 0 !important; }
.hero-section .page-title { font-size: 24px !important; margin: 0 !important; }
.woocommerce-products-header, .ct-breadcrumbs { font-size: 12px; }

/* =====================================================================
   Tablet ≥ 700px
   ===================================================================== */
@media (min-width: 700px) {
	:root { --v-gutter: 20px; }
	.woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px 18px !important; }
	.vx-hero-track { height: min(68vh, 620px); min-height: 500px; }
	.vx-cats { grid-auto-columns: 94px; gap: 14px; }
	.vx-cat { font-size: 13px; }
	.vx-cat span { width: 76px; height: 76px; }
	.vx-products { grid-auto-columns: minmax(150px, 22vw); gap: 16px 14px; }
	.vx-sec h2 { font-size: 24px; }
}

/* =====================================================================
   Desktop ≥ 1000px: full header, no tab bar
   ===================================================================== */
@media (min-width: 1000px) {
	.admin-bar .vh { top: 32px; }
	.vh-promo { font-size: 12px; }
	.vh-bar { position: static; display: flex; gap: 22px; padding: 12px 20px; }
	.vh-burger { display: none; }
	.vh-logo { font-size: 30px; }
	.vh-nav { display: flex; gap: 20px; }
	.vh-nav a { color: var(--v-ink); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
	.vh-nav a:hover { border-color: var(--v-ink); }
	.vh-nav a.vh-sale { color: var(--v-accent); }
	.vh-search { position: static; flex: 1; min-width: 180px; transform: none; opacity: 1; pointer-events: auto; border: 0; box-shadow: none; background: var(--v-soft); border-radius: 999px; padding: 0 14px; }
	.vh-search::before { display: none; }
	.vh-search input[type=search] { font-size: 14px; }
	.vh-search-btn { display: none; }
	.vh-icons { position: static; transform: none; gap: 10px; }
	.vh-langlink { display: inline-flex !important; }
	.vh-acc { display: inline-flex !important; }
	.vh-drawer { display: none; }
	.gcc-wa { display: none !important; }
	.vx-hero-track { height: min(68vh, 620px); min-height: 540px; }
	.vx-slide { background-size: cover; }
	.vx-slide::before { background: linear-gradient(0deg, rgba(0,0,0,.70), rgba(0,0,0,0) 58%); }
	.vx-hero-in { padding-bottom: 58px; }
	.vx-hero-in strong { font-size: clamp(56px, 5.8vw, 82px); }
	.vx-arrow { width: 48px; height: 48px; }
	.vx-prev { inset-inline-start: 24px; }
	.vx-next { inset-inline-end: 24px; }
	.vx-service { justify-content: center; }
	.vx-sec { margin-top: 44px; }
	.vx-discover { margin-top: 22px; }
	.vx-cats { grid-auto-columns: 120px; gap: 20px; padding-inline: 20px; }
	.vx-cat { font-size: 15px; }
	.vx-cat span { width: 104px; height: 104px; }
	.vx-products { grid-template-rows: auto; grid-auto-columns: minmax(170px, 1fr); grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 22px; }
	.woocommerce ul.products, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 32px 22px !important; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
	.hero-section .entry-header, .hero-section[data-type] > .ct-container { padding-block: 48px !important; }
	.hero-section .page-title { font-size: 34px !important; }
	ul.products li.product .button { width: auto; }
}

/* Keep the existing Arabic/English switch accessible in the mobile drawer. */
.vh-drawer-in .vh-langlink { display: inline-flex !important; }
