/*
Theme Name: Vieta 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 { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "burger logo icons" "search search search"; align-items: center; gap: 10px 8px; padding: 8px var(--v-gutter) 10px; max-width: 1320px; margin: 0 auto; }
.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 { grid-area: search; display: flex; align-items: center; gap: 8px; background: var(--v-soft); border-radius: 999px; padding: 0 14px; color: #777; }
.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 { grid-area: icons; display: flex; align-items: center; gap: 4px; }
.vh-icons > a { color: var(--v-ink); position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; }
.vh-acc { display: none !important; }
.vh-langlink { 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; }

/* 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; }

/* Bottom tab bar (phones) */
.vtab { position: fixed; bottom: 0; inset-inline: 0; z-index: 998; background: #fff; border-top: 1px solid #eee; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--v-tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.vtab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #444; text-decoration: none; font-size: 10.5px; font-weight: 700; position: relative; }
.vtab a .vh-count { top: 6px; inset-inline-end: calc(50% - 20px); }
.vtab-wa { color: #1ebe5b !important; }
body { padding-bottom: calc(var(--v-tab) + env(safe-area-inset-bottom)); }
.gcc-wa { display: none !important; }              /* floating button replaced by tab bar on phones */
.gcc-demo { font-size: 11px; padding: 4px 10px; }

/* =====================================================================
   Home — phone first
   ===================================================================== */
.vx-hero { min-height: 62vh; max-height: 560px; background: #d9d2c7 center 25% / cover no-repeat; display: flex; align-items: flex-end; position: relative; }
.vx-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); }
.vx-hero-in { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px var(--v-gutter) 28px; color: #fff; }
.vx-hero h1 { color: #fff; font-size: clamp(30px, 8.5vw, 60px); line-height: 1.05; font-weight: 800; margin: 6px 0 10px; }
.vx-hero p { color: #fff; font-size: 15px; max-width: 460px; margin: 0; }
.vx-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px !important; }
.vx-pill { display: inline-block; margin-top: 16px; background: #fff; color: var(--v-ink) !important; font-weight: 800; padding: 13px 28px; border-radius: 999px; text-decoration: none; letter-spacing: .04em; }
.vx-strip { background: var(--v-accent); color: #fff; text-align: center; font-weight: 800; font-size: 14px; padding: 12px var(--v-gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.vx-strip a { background: #fff; color: var(--v-accent); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: 12px; }
.vx-sec { max-width: 1320px; margin: 28px auto; padding: 0 var(--v-gutter); }
.vx-sec h2 { font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.vx-sec h2 a { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--v-ink); white-space: nowrap; }
.vx-cats { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--v-gutter) * -1); padding-inline: var(--v-gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
.vx-cats::-webkit-scrollbar { display: none; }
.vx-cat { flex: 0 0 auto; text-align: center; color: var(--v-ink); text-decoration: none; font-weight: 700; font-size: 13px; scroll-snap-align: start; }
.vx-cat span { display: block; width: 76px; height: 76px; border-radius: 50%; background: var(--v-soft) center / cover; margin: 0 auto 6px; }
.vx-duo { max-width: 1320px; margin: 28px auto; padding: 0 var(--v-gutter); display: grid; gap: 12px; }
.vx-tile { min-height: 240px; background: #ccc center / cover; display: flex; align-items: flex-end; color: #fff; text-decoration: none; position: relative; overflow: hidden; border-radius: 6px; }
.vx-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
.vx-tile span { position: relative; padding: 18px; font-size: 22px; font-weight: 800; line-height: 1.1; }
.vx-tile em { display: block; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.vx-trust { max-width: 1320px; margin: 28px auto; padding: 16px var(--v-gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; text-align: center; font-size: 13px; }
.vx-trust b { display: block; color: var(--v-ink); font-size: 13px; }

/* =====================================================================
   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-cat span { width: 110px; height: 110px; }
	.vx-duo { grid-template-columns: 1fr 1fr; }
	.vx-tile { min-height: 340px; }
	.vx-trust { grid-template-columns: repeat(4, 1fr); }
	.vx-sec h2 { font-size: 24px; }
	.vx-strip { font-size: 18px; }
}

/* =====================================================================
   Desktop ≥ 1000px: full header, no tab bar
   ===================================================================== */
@media (min-width: 1000px) {
	.admin-bar .vh { top: 32px; }
	.vh-promo { font-size: 12px; }
	.vh-bar { 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 { flex: 1; min-width: 180px; }
	.vh-search input[type=search] { font-size: 14px; }
	.vh-icons { gap: 10px; }
	.vh-acc { display: inline-flex !important; }
	.vtab, .vh-drawer { display: none; }
	body { padding-bottom: 0; }
	.gcc-wa { display: flex !important; }
	.vx-hero { min-height: 520px; align-items: center; }
	.vx-hero::before { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
	html[dir=rtl] .vx-hero::before { background: linear-gradient(-90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
	.vx-hero p { font-size: 17px; }
	.vx-sec { margin: 48px auto; }
	.vx-cats { gap: 28px; margin-inline: 0; padding-inline: 0; }
	.vx-cat { font-size: 15px; }
	.vx-cat span { width: 132px; height: 132px; }
	.vx-duo { gap: 20px; margin: 48px auto; }
	.vx-tile { min-height: 420px; border-radius: 0; }
	.vx-tile span { padding: 28px; font-size: 28px; }
	.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; }
}
