/* TROTIX Storefront — layers on Blocksy. Palette: orange #FF6A00, black #111, light gray #F5F5F5. */
:root {
	--tsf-orange: #FF6A00;
	--tsf-orange-text: #B84C00;
	--tsf-black: #111111;
	--tsf-steel: #666666;
	--tsf-light: #F5F5F5;
	--tsf-line: #E5E5E5;
	--tsf-r: 14px;

	/* Blocksy button tokens: orange background + BLACK text (contrast ~6.6:1) */
	--theme-button-text-initial-color: #111111;
	--theme-button-text-hover-color: #FFFFFF;
	--theme-button-background-initial-color: #FF6A00;
	--theme-button-background-hover-color: #111111;
}

/* ---------- Announcement bar ---------- */
.trotix-announce { position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 4.5rem; background: var(--tsf-orange); color: var(--tsf-black); font-weight: 700; font-size: .9375rem; text-align: center; line-height: 1.4; }
.trotix-announce__lang { position: absolute; inset-inline-end: 1rem; color: var(--tsf-black); font-weight: 700; font-size: .8125rem; text-decoration: underline; }
@media (max-width: 600px) { .trotix-announce { padding-inline: 1rem; font-size: .8125rem; } .trotix-announce__lang { position: static; } }

/* ---------- Header ---------- */
#header { flex: 0 0 auto !important; background: #fff; border-bottom: 1px solid var(--tsf-line); }
#header [data-row] { background: #fff !important; --theme-border-color: transparent; }
#header .site-title a, #header .site-title { color: var(--tsf-black) !important; font-weight: 800; letter-spacing: .02em; }
/* The starter's transparent header takes the header out of the flow: put it back */
#header > div { position: relative !important; }
#header [data-row] { min-height: 72px; }
#header a, #header .ct-menu-link, #header .ct-icon, #header .ct-cart-item, #header .ct-search-item, #header .ct-header-trigger { color: var(--tsf-black) !important; }
#header svg { fill: currentColor; }
#header .ct-menu-link:hover, #header .current-menu-item > .ct-menu-link { color: var(--tsf-orange-text) !important; }
#header .site-title, #header .site-title a { font-size: 1.75rem; line-height: 1.2; }
#header .site-branding { padding-block: 0; }
/* Logo (approved O2-B, design-system/logo): the text logo stays in the markup for screen readers and SEO,
   the mark is drawn as its background. viewBox 505.72 × 120 → width = height × 4.2143. Min height 24px. */
#header .site-title a {
	display: block; height: 32px; width: calc(32px * 4.2143);
	background: url("logo/trotix-logo-color-on-light.svg") no-repeat center / contain;
	font-size: 0 !important; line-height: 0 !important; color: transparent !important; letter-spacing: 0;
}
@media (max-width: 689.98px) { #header .site-title a { height: 28px; width: calc(28px * 4.2143); } }

/* ---------- Home: title + category chips ---------- */
.trotix-home-title { text-align: center; margin-block: 2rem 1.5rem; }
.trotix-home-title h1, .trotix-home-title h2 { display: inline-block; font-weight: 800; padding-bottom: .35rem; background: linear-gradient(var(--tsf-orange), var(--tsf-orange)) bottom / 100% 6px no-repeat; }
.trotix-home-title p { color: var(--tsf-steel); margin: .5rem 0 0; }

.trotix-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.trotix-chip { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--tsf-line); border-radius: var(--tsf-r); text-decoration: none; color: var(--tsf-black); transition: border-color .15s, box-shadow .15s; }
.trotix-chip:hover, .trotix-chip:focus-visible { border-color: var(--tsf-orange); box-shadow: 0 0 0 2px var(--tsf-orange) inset; }
.trotix-chip__icon { flex: none; color: var(--tsf-black); display: inline-flex; }
.trotix-chip__text { display: flex; flex-direction: column; flex: 1; min-width: 90px; }
.trotix-chip__text strong, .trotix-chip__text small { overflow-wrap: normal; word-break: normal; }
.trotix-chip__text strong { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.trotix-chip__text small { color: var(--tsf-steel); font-size: .8125rem; }
.trotix-chip__radio { flex: none; width: 22px; height: 22px; border: 2px solid var(--tsf-line); border-radius: 50%; }
.trotix-chip:hover .trotix-chip__radio { border-color: var(--tsf-orange); }
@media (max-width: 782px) {
	.trotix-chips { display: flex; overflow-x: auto; gap: .75rem; padding-bottom: .5rem; scroll-snap-type: x proximity; }
	.trotix-chip { flex: 0 0 220px; scroll-snap-align: start; }
}

/* ---------- Product cards ---------- */
ul.products li.product, .products .product { background: #fff; border: 1px solid var(--tsf-line); border-radius: var(--tsf-r); padding: 0 0 .75rem; overflow: hidden; }
ul.products li.product .ct-media-container, ul.products li.product img { border-radius: 0; }
ul.products li.product .woocommerce-loop-product__title { font-size: .9375rem; font-weight: 700; padding: .35rem .85rem 0; text-align: start; margin: 0; }
ul.products li.product .ct-woo-card-extra { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .85rem 0; margin: 0; }
ul.products li.product .price { font-weight: 800; color: var(--tsf-black); }
ul.products li.product .price del { color: var(--tsf-steel); font-weight: 500; }
/* Round orange cart button (icon only) */
ul.products li.product .ct-woo-card-extra .button, ul.products li.product .add_to_cart_button, ul.products li.product .product_type_variable, ul.products li.product .product_type_simple {
	flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%;
	font-size: 0; line-height: 0; color: transparent; overflow: hidden; border: 0;
	background: var(--tsf-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h8.8a1 1 0 0 0 1-.8L20 8H6'/%3E%3Ccircle cx='9' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E") center / 22px no-repeat;
}
ul.products li.product .ct-woo-card-extra .button:hover { background-color: var(--tsf-black); filter: invert(0); }
ul.products li.product .added_to_cart { display: none; }

/* ---------- Product page ---------- */
.single-product .product_title { font-weight: 800; }
.single-product .summary .price { color: var(--tsf-orange-text); font-weight: 800; font-size: 1.5rem; }
.single-product .star-rating { color: #F5B301; }
/* Description as plain text under the card: hide tab navigation and the reviews tab */
.single-product .woocommerce-tabs ul.tabs, .single-product .woocommerce-tabs .wc-tabs { display: none !important; }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--reviews, .single-product .woocommerce-tabs .woocommerce-Tabs-panel--additional_information { display: none !important; }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description { display: block !important; padding-top: .5rem; }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description > h2 { display: none; }
.single-product .product_meta { display: none; }
.single-product .flex-control-thumbs img, .single-product .ct-product-gallery .ct-media-container { border-radius: 12px; }

/* ---------- Footer: quiet, dark ---------- */
.ct-footer [data-row] { --theme-text-color: #fff; }

/* Accessible focus */
:focus-visible { outline: 3px solid var(--tsf-black); outline-offset: 2px; }

/* ---------- Card layout: image / title / [price | round cart button] ---------- */
ul.products li.product { display: grid !important; grid-template-columns: 1fr auto; align-items: center; row-gap: .25rem; }
ul.products li.product > figure, ul.products li.product > .woocommerce-loop-product__title, ul.products li.product > h2 { grid-column: 1 / -1; }
ul.products li.product > .price { grid-column: 1; padding: 0 .85rem; margin: 0; }
ul.products li.product > .ct-woo-card-actions { grid-column: 2; padding-inline-end: .85rem; margin: 0; }
ul.products li.product .ct-woo-card-actions .button, ul.products li.product .ct-woo-card-actions a {
	display: inline-flex; flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%;
	font-size: 0; line-height: 0; color: transparent; overflow: hidden; border: 0;
	background: var(--tsf-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h8.8a1 1 0 0 0 1-.8L20 8H6'/%3E%3Ccircle cx='9' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E") center / 22px no-repeat;
}
ul.products li.product .ct-woo-card-actions .button:hover { background-color: #111; }

/* ---------- Typography: one clean sans stack (Arabic + Latin), replaces the starter's serif headings ---------- */
body, h1, h2, h3, h4, h5, h6, .site-title, .ct-menu-link, .woocommerce-loop-product__title, .ct-footer h3, .ct-footer .widget-title, button, input, select, textarea {
	font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif !important;
}
.ct-footer { background: #111; color: #d9d9d9; }
.ct-footer a { color: #fff; }
.ct-footer h3 { color: #fff; font-size: 1.125rem; }
/* Footer brand: the first widget's «TROTIX» heading shows the white-text mark on the dark footer */
.ct-footer [data-column="widget-area-1"] .ct-widget:first-child > h3:first-child {
	height: 32px; width: calc(32px * 4.2143); margin-bottom: .75rem;
	background: url("logo/trotix-logo-color-on-dark.svg") no-repeat center / contain;
	font-size: 0 !important; line-height: 0; color: transparent;
}
.ct-footer [data-row] { border-color: #333; }
