body { font-family: 'Tajawal', sans-serif; font-size: 16px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cairo', sans-serif; }
.tuareg-home { overflow: hidden; background: var(--th-background, #fbf8f2); color: var(--th-text, #342e29); }
.tuareg-brand-name { display: inline-block; color: #584336; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.site-header { background: #fffdf9; }
.site-header .container { gap: 18px; }
.main-navigation li { position: relative; }
.main-navigation a { display: inline-flex; align-items: center; gap: 7px; }
.tuareg-menu-icon { flex: 0 0 19px; width: 19px; height: 19px; color: #ae805b; }
.main-navigation .sub-menu { display: none; position: absolute; z-index: 20; top: 100%; inset-inline-start: 0; min-width: 180px; padding: 12px; background: #fffdf9; box-shadow: 0 12px 28px rgba(50,35,25,.12); }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { display: block; }
.main-navigation .sub-menu li + li { margin-top: 8px; }
.site-footer { background: #493a31; }
.tuareg-home *, .tuareg-home *::before, .tuareg-home *::after { box-sizing: border-box; }
.th-hero { position: relative; background: #675143; color: #fff; }
.th-hero-slide { position: relative; min-height: clamp(480px, 65vw, 660px); display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 80% 25%, #c9a98c, transparent 55%), linear-gradient(125deg, var(--th-hero-background, #483b33), #95745b); }
.th-hero-slide:not(:has(.th-hero-image))::before { content: ""; position: absolute; width: 46%; height: 85%; inset-inline-end: 4%; bottom: -18%; border: 1px solid rgba(255,255,255,.24); border-radius: 48% 48% 0 0; transform: rotate(-12deg); box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025); }
.th-hero-slide[hidden] { display: none; }
.th-hero-image, .th-hero-shade { position: absolute; inset: 0; }
.th-hero-image { background-size: cover; background-position: center; }
.th-hero-shade { background: linear-gradient(90deg, rgba(35,27,22,.32), rgba(35,27,22,.72)); }
html[dir="ltr"] .th-hero-shade { background: linear-gradient(90deg, rgba(35,27,22,.72), rgba(35,27,22,.32)); }
.th-hero-content { width: 100%; position: relative; z-index: 1; padding-top: 80px; padding-bottom: 110px; }
.th-hero-content h1 { color: var(--th-hero-title, #fff); max-width: 720px; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.25; margin: 12px 0 20px; letter-spacing: -.025em; }
.th-eyebrow, .th-section-label { color: #ead3ba; font-weight: 700; font-size: .85rem; letter-spacing: .08em; }
.th-hero-description { max-width: 560px; color: var(--th-hero-description, #f5e9db); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.9; }
.th-button, .th-text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    padding: 9px 11px 9px 22px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.th-button {
    margin-top: 20px;
    color: var(--th-button-text, #fff);
    background: var(--th-button-background, rgba(28, 25, 24, .58));
    box-shadow: 0 12px 30px rgba(20,15,12,.22), inset 0 1px rgba(255,255,255,.22);
}
.th-button > span, .th-text-link > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-size: 1.05rem;
    transition: transform .25s ease;
}
.th-button:hover, .th-button:focus-visible {
    color: var(--th-button-text, #fff);
    background: rgba(28,25,24,.76);
    border-color: rgba(255,255,255,.78);
    box-shadow: 0 16px 35px rgba(20,15,12,.3), inset 0 1px rgba(255,255,255,.28);
    transform: translateY(-3px);
}
.th-button:hover > span, .th-button:focus-visible > span,
.th-text-link:hover > span, .th-text-link:focus-visible > span { transform: translate(2px, -2px); }
.th-button:focus-visible, .th-text-link:focus-visible { outline: 3px solid #e9a45f; outline-offset: 4px; }
@supports (background: color-mix(in srgb, #fff, transparent)) {
    .th-button { background: color-mix(in srgb, var(--th-button-background, #1c1918) 48%, rgba(28,25,24,.6)); }
    .th-button:hover, .th-button:focus-visible { background: color-mix(in srgb, var(--th-button-background, #1c1918) 60%, rgba(28,25,24,.78)); }
}
.th-slider-controls { position: absolute; z-index: 2; bottom: 28px; inset-inline: 0; display: flex; align-items: center; gap: 12px; color: #fff; }
.th-slider-controls button { background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; width: 38px; height: 38px; color: #fff; cursor: pointer; }
.th-slider-controls button:hover, .th-slider-controls button:focus-visible { background: #fff; color: #493a30; }
.th-slider-controls span { font-size: .8rem; direction: ltr; }
.th-motion-fade .th-hero-slide.is-active { animation: th-enter .6s ease both; }
.th-motion-fade .th-hero-slide.is-active .th-hero-content > * { animation: th-rise .8s .12s both; }
@keyframes th-enter { from { opacity: .3; } to { opacity: 1; } }
@keyframes th-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.th-ticker { overflow: hidden; background: var(--th-ticker-background, #d2b493); color: var(--th-ticker-text, #382f29); padding: 15px 0; }
.th-ticker-track { display: flex; width: max-content; animation: th-scroll 28s linear infinite; direction: ltr; }
.th-ticker:hover .th-ticker-track { animation-play-state: paused; }
.th-ticker-group { display: flex; flex-shrink: 0; }
.th-ticker-group > span { padding: 0 22px; font-weight: 700; white-space: nowrap; }
.th-ticker i { font-style: normal; margin-inline-start: 35px; color: var(--th-ticker-text, #725743); }
@keyframes th-scroll { to { transform: translateX(-25%); } }
.th-features { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 60px; padding-bottom: 60px; gap: 32px; }
.th-feature { display: flex; align-items: center; gap: 16px; border-inline-start: 1px solid #e2d7ca; padding-inline-start: 24px; }
.th-feature-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #e8d8c6; border-radius: 15px; background: #f5ebe0; color: var(--th-accent, #9a7455); }
.th-feature-icon svg { display: block; width: 27px; height: 27px; }
.th-features h3 { color: var(--th-heading, #332d28); font-size: 1.1rem; margin: 0 0 3px; }
.th-features p, .th-section-heading p { color: var(--th-text, #776c63); margin: 0; }
.th-product-section { padding-top: 55px; padding-bottom: 80px; border-top: 1px solid #e9ded1; }
.th-category-section { padding-top: 60px; padding-bottom: 75px; }
.th-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.th-category-card { position: relative; min-height: 270px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: var(--th-category-text, #fff); background: linear-gradient(145deg, var(--th-category-background, #b9987c), #6c5344); border-radius: 4px; transition: transform .25s ease, box-shadow .25s ease; }
.th-category-1 { background: linear-gradient(145deg, var(--th-category-background, #b6a593), #645b51); }
.th-category-2 { background: linear-gradient(145deg, var(--th-category-background, #d3b89b), #8d6f58); }
.th-category-card:hover, .th-category-card:focus-visible { color: var(--th-category-text, #fff); transform: translateY(-5px); box-shadow: 0 16px 30px rgba(55,40,30,.16); }
.th-category-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; transition: transform .5s ease; }
.th-category-card:has(.th-category-image)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(25,20,17,.7)); }
.th-category-card:hover .th-category-image { transform: scale(1.05); }
.th-category-number, .th-category-caption { position: relative; z-index: 1; }
.th-category-number { font-size: .8rem; opacity: .8; }
.th-category-caption { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.th-category-caption strong { font-family: 'Cairo', sans-serif; font-size: 1.4rem; color: var(--th-category-text, #fff); }
.th-category-caption span { white-space: nowrap; }
.th-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.th-section-heading .th-section-label { color: var(--th-accent, #ab805e); }
.th-section-heading h2 { color: var(--th-heading, #372d27); font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 6px 0; }
.th-text-link {
    color: #553b2a;
    background: rgba(255,255,255,.62);
    border-color: rgba(156,115,81,.32);
    box-shadow: 0 9px 24px rgba(75,48,30,.08), inset 0 1px rgba(255,255,255,.9);
    white-space: nowrap;
}
.th-text-link > span { color: #704a30; background: rgba(185,137,96,.13); border-color: rgba(156,115,81,.22); }
.th-text-link:hover, .th-text-link:focus-visible {
    color: #39271b;
    background: rgba(255,255,255,.88);
    border-color: rgba(156,115,81,.58);
    box-shadow: 0 14px 28px rgba(75,48,30,.14), inset 0 1px #fff;
    transform: translateY(-3px);
}
.th-page-content { padding-top: 45px; padding-bottom: 70px; }
.tuareg-home .woocommerce ul.products li.product { box-sizing: border-box; }
@media (max-width: 700px) {
    .site-header .container { justify-content: center !important; }
    .main-navigation { width: 100%; overflow-x: auto; }
    .main-navigation ul { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .main-navigation .sub-menu { position: static; box-shadow: none; }
    .th-hero-slide { min-height: 480px; }
    .th-hero-content { padding-inline: 24px; }
    .th-features { grid-template-columns: 1fr; gap: 24px; padding-inline: 24px; }
    .th-section-heading { align-items: start; flex-direction: column; }
    .th-product-section, .th-page-content { padding-inline: 24px; }
    .th-category-section { padding-inline: 24px; }
    .th-category-grid { grid-template-columns: 1fr; gap: 14px; }
    .th-category-card { min-height: 180px; }
    .tuareg-home .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
    .tuareg-home .woocommerce ul.products li.product { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .th-ticker-track, .th-motion-fade .th-hero-slide.is-active, .th-motion-fade .th-hero-slide.is-active .th-hero-content > * { animation: none; }
    .th-category-card, .th-category-image, .th-button, .th-text-link, .th-button > span, .th-text-link > span { transition: none; }
    .th-button:hover, .th-button:focus-visible, .th-text-link:hover, .th-text-link:focus-visible { transform: none; }
}

/* Keep products in one scrollable row on the homepage and catalog archives. */
.tuareg-home .th-product-section .woocommerce ul.products,
.woocommerce .tuareg-shop-main ul.products {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 66px) / 4);
    gap: 22px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: #b69377 #f3e9df;
    padding: 8px 2px 18px;
}
.tuareg-home .th-product-section .woocommerce ul.products::before,
.tuareg-home .th-product-section .woocommerce ul.products::after { display: none; content: none; }
.tuareg-home .th-product-section .woocommerce ul.products li.product,
.woocommerce .tuareg-shop-main ul.products li.product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #eee4d9;
    scroll-snap-align: start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tuareg-home .th-product-section .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.woocommerce .tuareg-shop-main ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.tuareg-home .th-product-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #3e3028;
    font-size: 1.05rem;
    line-height: 1.6;
}
.tuareg-home .th-product-section .woocommerce ul.products li.product .price,
.woocommerce .tuareg-shop-main ul.products li.product .price {
    margin-top: auto;
    color: #846143;
    font-weight: 700;
}
.tuareg-home .th-product-section .woocommerce ul.products li.product .button {
    align-self: center;
    max-width: 100%;
    background: #765540;
    color: #fff;
    font: inherit;
    font-weight: 700;
    white-space: normal;
}
.tuareg-home .th-product-section .woocommerce ul.products li.product .button:hover,
.tuareg-home .th-product-section .woocommerce ul.products li.product .button:focus-visible { background: #533b2d; color: #fff; }
.tuareg-home .th-product-section .woocommerce ul.products li.product:hover,
.woocommerce .tuareg-shop-main ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: #dac4af;
    box-shadow: 0 15px 32px rgba(75, 48, 30, .14);
}
.tuareg-home .th-product-section .woocommerce ul.products li.product img,
.woocommerce .tuareg-shop-main ul.products li.product img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: filter .25s ease;
}
.tuareg-home .th-product-section .woocommerce ul.products li.product:hover img,
.woocommerce .tuareg-shop-main ul.products li.product:hover img { filter: brightness(.94); }
.tuareg-home .th-product-section .woocommerce ul.products:focus-visible,
.woocommerce .tuareg-shop-main ul.products:focus-visible { outline: 2px solid #9c6b47; outline-offset: 3px; }
@media (max-width: 900px) {
    .tuareg-home .th-product-section .woocommerce ul.products,
    .woocommerce .tuareg-shop-main ul.products { grid-auto-columns: calc((100% - 44px) / 3); }
}
@media (max-width: 700px) {
    .tuareg-home .th-product-section .woocommerce ul.products,
    .woocommerce .tuareg-shop-main ul.products { grid-auto-columns: minmax(160px, 44%); gap: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .tuareg-home .th-product-section .woocommerce ul.products li.product,
    .woocommerce .tuareg-shop-main ul.products li.product,
    .tuareg-home .th-product-section .woocommerce ul.products li.product img,
    .woocommerce .tuareg-shop-main ul.products li.product img { transition: none; }
    .tuareg-home .th-product-section .woocommerce ul.products li.product:hover,
    .woocommerce .tuareg-shop-main ul.products li.product:hover { transform: none; }
}
