/*
 * Three Store — LamaSans typography foundation
 * Scope: default storefront only. Visual layout and commerce behavior are unchanged.
 */

@font-face {
    font-family: "LamaSans";
    src: url("../fonts/lama-sans/LamaSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "LamaSans";
    src: url("../fonts/lama-sans/LamaSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "LamaSans";
    src: url("../fonts/lama-sans/LamaSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "LamaSans";
    src: url("../fonts/lama-sans/LamaSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body.homepage-reimagined-storefront {
    --ts-font-primary: "LamaSans", "Graphik Arabic", "Noto Sans Arabic", "Geeza Pro", "Helvetica Neue", Arial, sans-serif;
    --ts-font-numeric: "LamaSans", "Helvetica Neue", Arial, sans-serif;

    --ts-weight-regular: 400;
    --ts-weight-medium: 500;
    --ts-weight-semibold: 600;
    --ts-weight-bold: 700;

    --ts-size-display: clamp(2.5rem, 1.875rem + 3.125vw, 4.5rem);
    --ts-size-page-title: clamp(2rem, 1.688rem + 1.563vw, 3rem);
    --ts-size-section-title: clamp(1.625rem, 1.43rem + .977vw, 2.25rem);
    --ts-size-section-subtitle: clamp(.9375rem, .898rem + .195vw, 1.0625rem);
    --ts-size-nav: clamp(.875rem, .836rem + .195vw, 1rem);
    --ts-size-mega-title: clamp(1.5rem, 1.305rem + .977vw, 2.125rem);
    --ts-size-mega-link: clamp(.875rem, .855rem + .098vw, .9375rem);
    --ts-size-product-title: clamp(.875rem, .836rem + .195vw, 1rem);
    --ts-size-product-meta: clamp(.75rem, .73rem + .098vw, .8125rem);
    --ts-size-price: clamp(1.125rem, 1.047rem + .391vw, 1.375rem);
    --ts-size-old-price: clamp(.8125rem, .793rem + .098vw, .875rem);
    --ts-size-button: clamp(.875rem, .855rem + .098vw, .9375rem);
    --ts-size-input: clamp(.9375rem, .918rem + .098vw, 1rem);
    --ts-size-badge: clamp(.6875rem, .668rem + .098vw, .75rem);
    --ts-size-body: clamp(.9375rem, .918rem + .098vw, 1rem);
    --ts-size-small: clamp(.8125rem, .793rem + .098vw, .875rem);
    --ts-size-caption: clamp(.6875rem, .668rem + .098vw, .75rem);
    --ts-size-footer-heading: clamp(.9375rem, .918rem + .098vw, 1rem);
    --ts-size-footer-link: clamp(.8125rem, .793rem + .098vw, .875rem);
    --ts-size-utility: clamp(.6875rem, .668rem + .098vw, .75rem);

    --ts-leading-display: 1.08;
    --ts-leading-heading: 1.2;
    --ts-leading-body: 1.65;
    --ts-leading-compact: 1.4;
    --ts-leading-product: 1.55;

    font-family: var(--ts-font-primary) !important;
    font-size: var(--ts-size-body);
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-body);
    font-synthesis: none;
}

html[dir="rtl"] body.homepage-reimagined-storefront {
    --ts-leading-display: 1.2;
    --ts-leading-heading: 1.32;
    --ts-leading-body: 1.8;
    --ts-leading-compact: 1.55;
    --ts-leading-product: 1.7;
}

body.homepage-reimagined-storefront,
body.homepage-reimagined-storefront button,
body.homepage-reimagined-storefront input,
body.homepage-reimagined-storefront select,
body.homepage-reimagined-storefront textarea,
body.homepage-reimagined-storefront option {
    font-family: var(--ts-font-primary) !important;
}

html[dir="rtl"] body.homepage-reimagined-storefront :where(
    h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, label,
    small, strong, span, li, td, th
) {
    letter-spacing: normal !important;
}

body.homepage-reimagined-storefront :where(p, li, td, th, label, .text-body, .text-muted) {
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront :where(p, .body-copy, .description) {
    font-size: var(--ts-size-body);
    line-height: var(--ts-leading-body);
}

body.homepage-reimagined-storefront :where(h1, .h1, .page-title) {
    font-size: var(--ts-size-page-title);
    font-weight: var(--ts-weight-bold) !important;
    line-height: var(--ts-leading-display);
    letter-spacing: -.025em;
}

body.homepage-reimagined-storefront :where(h2, .h2, .section-title) {
    font-size: var(--ts-size-section-title);
    font-weight: var(--ts-weight-semibold) !important;
    line-height: var(--ts-leading-heading);
    letter-spacing: -.018em;
}

body.homepage-reimagined-storefront :where(h3, h4, h5, h6, .h3, .h4, .h5, .h6, .widget-title) {
    font-weight: var(--ts-weight-semibold) !important;
    line-height: var(--ts-leading-heading);
}

body.homepage-reimagined-storefront :where(b, strong, .font-weight-bold, .font-weight-bolder) {
    font-weight: var(--ts-weight-semibold) !important;
}

body.homepage-reimagined-storefront :where(.btn, button, [type="button"], [type="submit"], [type="reset"]) {
    font-size: var(--ts-size-button);
    font-weight: var(--ts-weight-medium) !important;
    line-height: var(--ts-leading-compact);
}

body.homepage-reimagined-storefront :where(input, textarea, select, .form-control) {
    font-size: var(--ts-size-input);
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-compact);
}

body.homepage-reimagined-storefront :where(.badge, .badge-style, .navbar-tool-label) {
    font-size: var(--ts-size-badge);
    font-weight: var(--ts-weight-semibold) !important;
    line-height: 1.2;
}

body.homepage-reimagined-storefront :where(small, .small, .caption) {
    font-size: var(--ts-size-small);
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-compact);
}

body.homepage-reimagined-storefront :where(
    .navbar-nav .nav-link, .nav-link, .menu-link, .dropdown-item,
    .mobile-category-item-link, .header-language-trigger
) {
    font-size: var(--ts-size-nav);
    font-weight: var(--ts-weight-medium) !important;
    line-height: var(--ts-leading-compact);
}

body.homepage-reimagined-storefront :where(
    .product-title, .product-card .product-title, .product-card .card-title,
    .product-name, .product-details h1, .store-creative-product-title
) {
    font-size: var(--ts-size-product-title);
    font-weight: var(--ts-weight-medium) !important;
    line-height: var(--ts-leading-product);
}

body.homepage-reimagined-storefront :where(
    .product-meta, .product-card .text-muted, .product-brand,
    .store-creative-product-brand, .store-creative-product-commerce-rating
) {
    font-size: var(--ts-size-product-meta);
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-compact);
}

body.homepage-reimagined-storefront :where(
    .price, .product-price, .amount, .total-price, .text-accent, .text-price,
    .price-section, .total, .cz-product-price, .product-card .price,
    .product-card .product-price, .store-creative-product-price
) {
    font-family: var(--ts-font-numeric) !important;
    font-size: var(--ts-size-price);
    font-weight: var(--ts-weight-semibold) !important;
    line-height: 1.2;
    font-variant-numeric: tabular-nums lining-nums;
}

body.homepage-reimagined-storefront :where(
    del, .old-price, .product-card del, .product-card .old-price,
    .store-creative-product-old-price
) {
    font-size: var(--ts-size-old-price);
    font-weight: var(--ts-weight-regular) !important;
    line-height: 1.3;
    font-variant-numeric: tabular-nums lining-nums;
}

/* Header, search, navigation and mega menu */
body.homepage-reimagined-storefront .modern-announcement,
body.homepage-reimagined-storefront .modern-store-header :is(.topbar-link, .topbar-text) {
    font-size: var(--ts-size-utility) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-compact);
}

body.homepage-reimagined-storefront .header-search-compact .search-bar-input {
    font-size: var(--ts-size-input) !important;
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront .modern-navigation-bar .nav-link,
body.homepage-reimagined-storefront #navbarCollapse :is(.nav-link, .mobile-category-item-link) {
    font-size: var(--ts-size-nav) !important;
    font-weight: var(--ts-weight-medium) !important;
}

body.homepage-reimagined-storefront .reimagined-category-mega-tab {
    font-size: var(--ts-size-mega-link);
    font-weight: var(--ts-weight-medium);
}

body.homepage-reimagined-storefront .reimagined-category-mega-kicker {
    font-size: var(--ts-size-utility);
    font-weight: var(--ts-weight-semibold);
}

body.homepage-reimagined-storefront .reimagined-category-mega-panel-head h2 {
    font-size: var(--ts-size-mega-title);
    font-weight: var(--ts-weight-semibold);
    line-height: var(--ts-leading-heading);
    letter-spacing: -.018em;
}

body.homepage-reimagined-storefront :is(
    .reimagined-category-mega-view-all,
    .desktop-category-mega-menu-all-link,
    .desktop-brand-mega-menu-all-link
) {
    font-size: var(--ts-size-mega-link) !important;
    font-weight: var(--ts-weight-medium) !important;
}

body.homepage-reimagined-storefront .reimagined-category-mega-subcategory,
body.homepage-reimagined-storefront .reimagined-category-mega-product-copy strong {
    font-size: var(--ts-size-mega-link);
    font-weight: var(--ts-weight-medium);
    line-height: var(--ts-leading-product);
}

body.homepage-reimagined-storefront .reimagined-category-mega-product-copy > span {
    font-size: var(--ts-size-product-meta);
    font-weight: var(--ts-weight-semibold);
}

body.homepage-reimagined-storefront .desktop-brand-mega-menu-title {
    font-size: var(--ts-size-mega-link) !important;
    font-weight: var(--ts-weight-semibold) !important;
}

body.homepage-reimagined-storefront .desktop-brand-mega-menu-count {
    font-size: var(--ts-size-caption) !important;
    font-weight: var(--ts-weight-regular) !important;
}

/* Homepage section hierarchy */
body.homepage-reimagined-storefront :is(
    .home-modern-section-heading h2,
    .home-modern-featured-title,
    .home-modern-featured-deals-title,
    .home-modern-clearance-title,
    .home-modern-new-arrivals-heading h2,
    .home-modern-latest-products-heading h2,
    .home-modern-category-products-title,
    .home-modern-ranking-heading h2,
    .home-modern-brands-heading h2,
    .seller-list-title
) {
    font-size: var(--ts-size-section-title) !important;
    font-weight: var(--ts-weight-semibold) !important;
    line-height: var(--ts-leading-heading) !important;
    letter-spacing: -.018em;
}

body.homepage-reimagined-storefront :is(
    .home-modern-featured-subtitle,
    .home-modern-featured-deals-subtitle,
    .home-modern-clearance-subtitle,
    .home-modern-new-arrivals-heading p,
    .home-modern-latest-products-heading p,
    .home-modern-category-products-subtitle,
    .home-modern-ranking-heading p
) {
    font-size: var(--ts-size-section-subtitle) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-body) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-view-all,
    .home-modern-featured-view-all,
    .home-modern-featured-deals-view-all,
    .home-modern-clearance-view-all,
    .home-modern-new-arrivals-view-all,
    .home-modern-latest-products-view-all,
    .home-modern-category-products-view-all,
    .home-modern-ranking-view-all
) {
    font-size: var(--ts-size-button) !important;
    font-weight: var(--ts-weight-medium) !important;
}

body.homepage-reimagined-storefront .home-modern-benefit-content span,
body.homepage-reimagined-storefront .home-modern-category-title {
    font-size: var(--ts-size-small) !important;
    font-weight: var(--ts-weight-medium) !important;
    line-height: var(--ts-leading-product) !important;
}

/* Product card roles */
body.homepage-reimagined-storefront :is(.store-creative-product-discount, .store-creative-product-stock) {
    font-size: var(--ts-size-badge) !important;
    font-weight: var(--ts-weight-semibold) !important;
}

body.homepage-reimagined-storefront .store-creative-product-brand {
    font-size: var(--ts-size-product-meta) !important;
    font-weight: var(--ts-weight-medium) !important;
    letter-spacing: .035em;
}

body.homepage-reimagined-storefront .store-creative-product-title {
    font-size: var(--ts-size-product-title) !important;
    font-weight: var(--ts-weight-medium) !important;
    line-height: var(--ts-leading-product) !important;
}

body.homepage-reimagined-storefront .store-creative-product-commerce-rating {
    font-size: var(--ts-size-caption) !important;
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront .store-creative-product-price {
    font-size: var(--ts-size-price) !important;
    font-weight: var(--ts-weight-semibold) !important;
}

body.homepage-reimagined-storefront .store-creative-product-currency {
    font-size: var(--ts-size-caption) !important;
    font-weight: var(--ts-weight-medium) !important;
}

body.homepage-reimagined-storefront .store-creative-product-old-price {
    font-size: var(--ts-size-old-price) !important;
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront .store-creative-product-cart-button {
    font-size: var(--ts-size-button) !important;
    font-weight: var(--ts-weight-medium) !important;
}

/* Promotional and commerce modules */
body.homepage-reimagined-storefront .home-modern-flash-eyebrow {
    font-size: var(--ts-size-badge);
    font-weight: var(--ts-weight-semibold);
}

body.homepage-reimagined-storefront .home-modern-flash-title {
    font-size: var(--ts-size-display) !important;
    font-weight: var(--ts-weight-bold) !important;
    line-height: var(--ts-leading-display) !important;
    letter-spacing: -.025em;
}

body.homepage-reimagined-storefront .home-modern-flash-description {
    font-size: var(--ts-size-section-subtitle) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-body) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-time-unit .cz-countdown-value {
    font-size: var(--ts-size-price);
    font-weight: var(--ts-weight-bold);
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
}

body.homepage-reimagined-storefront .home-modern-flash-time-unit .cz-countdown-text {
    font-size: var(--ts-size-utility);
    font-weight: var(--ts-weight-medium);
}

body.homepage-reimagined-storefront :is(.home-modern-flash-button, .home-modern-flash-view-all) {
    font-size: var(--ts-size-button);
    font-weight: var(--ts-weight-medium);
}

body.homepage-reimagined-storefront .home-modern-flash-products-heading h3,
body.homepage-reimagined-storefront .home-modern-daily-deal-card .deal-bag-title h2 {
    font-size: var(--ts-size-section-title) !important;
    font-weight: var(--ts-weight-semibold) !important;
    line-height: var(--ts-leading-heading);
    letter-spacing: -.018em;
}

body.homepage-reimagined-storefront .home-modern-flash-products-heading p {
    font-size: var(--ts-size-small);
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront :is(.home-modern-daily-deal-discount, .home-modern-daily-deal-stock) {
    font-size: var(--ts-size-badge);
    font-weight: var(--ts-weight-semibold);
}

body.homepage-reimagined-storefront :is(
    .home-modern-daily-deal-name,
    .home-modern-new-arrival-content h3,
    .home-modern-horizontal-product-content h3
) {
    font-size: var(--ts-size-product-title) !important;
    font-weight: var(--ts-weight-medium) !important;
    line-height: var(--ts-leading-product) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-daily-deal-current,
    .home-modern-new-arrival-price,
    .home-modern-horizontal-product-prices
) {
    font-size: var(--ts-size-price);
    font-weight: var(--ts-weight-semibold);
    font-variant-numeric: tabular-nums lining-nums;
}

body.homepage-reimagined-storefront .home-modern-daily-deal-prices del {
    font-size: var(--ts-size-old-price);
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront .home-modern-daily-deal-rating {
    font-size: var(--ts-size-caption);
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront .home-modern-daily-deal-button {
    font-size: var(--ts-size-button);
    font-weight: var(--ts-weight-medium);
}

/* Newsletter and footer */
body.homepage-reimagined-storefront .store-footer-newsletter-copy h2 {
    font-size: var(--ts-size-section-title) !important;
    font-weight: var(--ts-weight-semibold) !important;
    line-height: var(--ts-leading-heading);
    letter-spacing: -.018em;
}

body.homepage-reimagined-storefront :is(.store-footer-newsletter-copy p, .store-footer-description) {
    font-size: var(--ts-size-small) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-body) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-form input {
    font-size: var(--ts-size-input) !important;
    font-weight: var(--ts-weight-regular) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-form button {
    font-size: var(--ts-size-button) !important;
    font-weight: var(--ts-weight-medium) !important;
}

body.homepage-reimagined-storefront :is(
    .store-footer-accordion-toggle,
    .store-footer-app-column h3,
    .store-footer-social-title
) {
    font-size: var(--ts-size-footer-heading) !important;
    font-weight: var(--ts-weight-semibold) !important;
    line-height: var(--ts-leading-heading);
}

body.homepage-reimagined-storefront :is(
    .store-footer-links-column a,
    .store-footer-contact-link,
    .store-footer-support-link
) {
    font-size: var(--ts-size-footer-link) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-body);
}

body.homepage-reimagined-storefront .store-footer-contact-link small,
body.homepage-reimagined-storefront .store-footer-bottom :is(p, a, li) {
    font-size: var(--ts-size-caption) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-compact);
}

/* Mobile navigation keeps the same scale and increases Arabic breathing room. */
body.homepage-reimagined-storefront .design-mobile-sheet-title {
    font-size: var(--ts-size-mega-title);
    font-weight: var(--ts-weight-semibold);
    line-height: var(--ts-leading-heading);
    letter-spacing: -.018em;
}

body.homepage-reimagined-storefront #navbarCollapse .dropdown-menu a {
    font-size: var(--ts-size-small) !important;
    font-weight: var(--ts-weight-regular) !important;
    line-height: var(--ts-leading-compact);
}

@media (max-width: 767.98px) {
    body.homepage-reimagined-storefront {
        --ts-size-display: clamp(2.25rem, 1.75rem + 2.5vw, 2.75rem);
        --ts-size-page-title: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
        --ts-size-section-title: clamp(1.5rem, 1.25rem + 1.25vw, 1.75rem);
        --ts-size-mega-title: clamp(1.375rem, 1.125rem + 1.25vw, 1.625rem);
    }
}
