@import url(
    "https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap"
);

/*
|--------------------------------------------------------------------------
| Variables
|--------------------------------------------------------------------------
*/

:root {
    --primary: #6f4b32;
    --primary-dark: #24170f;
    --primary-light: #a77855;
    --gold: #c99a5b;
    --gold-light: #ddb373;
    --cream: #f8f3ed;
    --white: #ffffff;
    --text: #241d18;
    --muted: #776d65;
    --border: #e9dfd5;
    --header-accent: #493444;
    --shadow: 0 18px 50px rgba(42, 26, 15, 0.10);
    --radius: 22px;
    --transition: 0.28s ease;
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Cairo", Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
}

body,
button,
input {
    font-family: "Cairo", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    border: 0;
    outline: 0;
}

button {
    appearance: none;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-top: 5px solid var(--header-accent);
    border-bottom: 1px solid rgba(111, 75, 50, 0.10);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(36, 23, 15, 0.05);
    backdrop-filter: blur(15px);
}

.header-container {
    width: min(1440px, calc(100% - 32px));
    min-height: 94px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.brand {
    position: relative;
    z-index: 5;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 13px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--white);
    background: #000000;
    box-shadow:
        0 6px 18px rgba(36, 23, 15, 0.17),
        0 0 0 4px rgba(201, 154, 91, 0.08);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transform: scale(1.16);
}

.logo-text {
    color: var(--gold);
    font-size: 25px;
    font-weight: 800;
}

.brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--primary-dark);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-tagline {
    display: block;
    margin-top: 3px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.brand-text > span {
    display: block;
    margin-top: 3px;
    color: var(--primary-light);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.8px;
    direction: ltr;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Desktop Navigation
|--------------------------------------------------------------------------
*/

.desktop-nav {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 12px;
    color: #51483f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
    background: rgba(111, 75, 50, 0.09);
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 2px;
    border-radius: 5px;
    background: var(--gold);
}

/*
|--------------------------------------------------------------------------
| Header Actions
|--------------------------------------------------------------------------
*/

.header-actions {
    position: relative;
    z-index: 6;
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 9px;
}

/*
|--------------------------------------------------------------------------
| Language Switcher
|--------------------------------------------------------------------------
*/

.language-switcher {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 3px;
    padding: 4px 6px;
    border: 1px solid rgba(111, 75, 50, 0.16);
    border-radius: 100px;
    background: var(--white);
    box-shadow: 0 7px 20px rgba(42, 26, 15, 0.08);
}

.language-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(36, 23, 15, 0.18);
}

.language-button {
    min-width: 42px;
    min-height: 31px;
    padding: 4px 9px;
    border-radius: 100px;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.language-button:hover {
    color: var(--primary);
    background: rgba(111, 75, 50, 0.08);
}

.language-button.active {
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );
    box-shadow: 0 5px 14px rgba(111, 75, 50, 0.24);
}

.language-divider {
    width: 1px;
    height: 17px;
    flex-shrink: 0;
    background: var(--border);
}

/*
|--------------------------------------------------------------------------
| Mobile Menu Button
|--------------------------------------------------------------------------
*/

.menu-button {
    width: 46px;
    height: 46px;
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 14px;
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(36, 23, 15, 0.16);
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background: var(--white);
    transition: var(--transition);
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/*
|--------------------------------------------------------------------------
| Mobile Navigation
|--------------------------------------------------------------------------
*/

.mobile-nav {
    width: min(1440px, calc(100% - 32px));
    display: none;
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
}

.mobile-nav a {
    min-width: 0;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--primary-dark);
    background: #f6f0ea;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--white);
    background: var(--primary);
}

/*
|--------------------------------------------------------------------------
| Home Hero
|--------------------------------------------------------------------------
*/

.home-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 650;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #1a100b;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
}

/* إزالة أي طبقات تعتيم */
.home-hero::before,
.home-hero::after {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0;
    color: var(--white);
}

.hero-content::before,
.hero-content::after {
    display: none !important;
}

.hero-content > * {
    max-width: 570px;
    margin-inline-start: auto;
}

.hero-small {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    max-width: max-content;
    padding: 5px 15px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 100px;
    color: var(--white);
    background: rgba(20, 12, 8, 0.20);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(3px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.90);
}

.hero-content h1 {
    max-width: 620px;
    margin-top: 12px;
    color: var(--white);
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2px;
    text-shadow:
        0 4px 14px rgba(0, 0, 0, 0.95),
        0 1px 3px rgba(0, 0, 0, 1);
}

.hero-content h1 em {
    display: block;
    color: var(--gold-light);
    font-style: normal;
    text-shadow:
        0 4px 14px rgba(0, 0, 0, 0.95),
        0 1px 3px rgba(0, 0, 0, 1);
}

.hero-content p {
    max-width: 560px;
    margin-top: 24px;
    color: var(--white);
    font-size: clamp(15px, 1.5vw, 19px);
    text-shadow:
        0 3px 9px rgba(0, 0, 0, 1),
        0 1px 2px rgba(0, 0, 0, 1);
}

.hero-button {
    min-width: 170px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: max-content;
    margin-top: 34px;
    padding: 12px 25px;
    border-radius: 100px;
    color: var(--primary-dark);
    background: var(--gold);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.30);
    transition: var(--transition);
}

.hero-button:hover {
    transform: translateY(-3px);
    background: var(--gold-light);
}

/*
|--------------------------------------------------------------------------
| Section Heading
|--------------------------------------------------------------------------
*/

.section-heading {
    max-width: 700px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading > span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-heading h2 {
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.25;
}

.section-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
}

/*
|--------------------------------------------------------------------------
| Categories
|--------------------------------------------------------------------------
*/

.categories-section {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0 110px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.category-card {
    min-width: 0;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(111, 75, 50, 0.08);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(42, 26, 15, 0.15);
}

.category-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #392519,
            #9b806c
        );
}

.category-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(36, 23, 15, 0.25),
            transparent 55%
        );
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.06);
}

.category-image.image-error {
    background:
        linear-gradient(
            135deg,
            #24170f,
            #89694e
        );
}

.category-fallback-icon {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 64px;
}

.category-content {
    padding: 24px 24px 26px;
}

.category-content h3 {
    color: var(--primary-dark);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
}

.category-content > span {
    display: block;
    margin-top: 1px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.category-content p {
    min-height: 52px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.category-link b {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cream);
    transition: var(--transition);
}

.category-card:hover .category-link b {
    color: var(--white);
    background: var(--primary);
}

/*
|--------------------------------------------------------------------------
| Category Hero
|--------------------------------------------------------------------------
*/

.category-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 650;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    padding:
        clamp(30px, 4vw, 52px)
        max(24px, calc((100% - 1240px) / 2));
    color: var(--white);
    background-color: var(--primary-dark);
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
}

.category-hero::before,
.category-hero::after {
    display: none !important;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 700px);
    padding: 0;
    background: transparent;
}

.back-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 100px;
    color: var(--white);
    background: rgba(20, 12, 8, 0.20);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(3px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.90);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
    background: var(--white);
}

.category-hero-content h1 {
    color: var(--white);
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    line-height: 1.15;
    text-shadow:
        0 4px 14px rgba(0, 0, 0, 1),
        0 1px 3px rgba(0, 0, 0, 1);
}

.category-hero-content > span {
    display: block;
    margin-top: 4px;
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 700;
    direction: ltr;
    text-shadow:
        0 3px 9px rgba(0, 0, 0, 1),
        0 1px 2px rgba(0, 0, 0, 1);
}

.category-hero-content p {
    max-width: 580px;
    margin-top: 14px;
    color: var(--white);
    font-size: 16px;
    text-shadow:
        0 3px 9px rgba(0, 0, 0, 1),
        0 1px 2px rgba(0, 0, 0, 1);
}

/*
|--------------------------------------------------------------------------
| Products
|--------------------------------------------------------------------------
*/

.products-section {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
}

.products-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.products-toolbar > div:first-child > span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.products-toolbar h2 {
    color: var(--primary-dark);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.3;
}

.search-box {
    width: min(100%, 390px);
}

.search-box input {
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    background: var(--white);
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(42, 26, 15, 0.05);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(167, 120, 85, 0.12);
}

.search-box input::placeholder {
    color: #a59b93;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    min-width: 0;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 19px;
    border: 1px solid rgba(111, 75, 50, 0.08);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(42, 26, 15, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 120, 85, 0.30);
    box-shadow: 0 16px 40px rgba(42, 26, 15, 0.10);
}

.product-card[hidden] {
    display: none !important;
}

.product-code {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--primary);
    background: var(--cream);
    font-size: 13px;
    font-weight: 800;
}

.product-info {
    min-width: 0;
    flex: 1;
}

.product-info h3 {
    overflow-wrap: anywhere;
    color: var(--primary-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.product-info p {
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
    direction: ltr;
}

.product-price {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    direction: ltr;
    text-align: center;
}

.product-price small {
    display: block;
    margin-top: -2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-sizes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 4px;
}

.product-sizes span {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 100px;
    color: var(--primary);
    background: var(--cream);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.empty-result {
    display: none;
    padding: 50px 20px;
    margin-top: 20px;
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
}

.empty-result strong {
    display: block;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 800;
}

.empty-result p {
    margin-top: 4px;
    color: var(--muted);
}

/*
|--------------------------------------------------------------------------
| Other Categories
|--------------------------------------------------------------------------
*/

.other-categories {
    width: 100%;
    padding: 80px max(20px, calc((100% - 1240px) / 2));
    background: #efe6dc;
}

.mini-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.mini-categories a {
    min-width: 0;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 19px;
    border: 1px solid rgba(111, 75, 50, 0.08);
    border-radius: 16px;
    background: var(--white);
    transition: var(--transition);
}

.mini-categories a:hover {
    transform: translateY(-3px);
    border-color: rgba(111, 75, 50, 0.22);
    box-shadow: 0 12px 30px rgba(42, 26, 15, 0.08);
}

.mini-categories strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 800;
}

.mini-categories small {
    display: block;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 10px;
    direction: ltr;
}

.mini-categories b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--primary);
    background: var(--cream);
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 65px max(20px, calc((100% - 1240px) / 2));
    color: rgba(255, 255, 255, 0.78);
    background: var(--primary-dark);
}

.site-footer h3 {
    color: var(--white);
    font-size: 25px;
    font-weight: 800;
}

.site-footer strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 800;
}

.site-footer p {
    margin-top: 5px;
    font-size: 13px;
}

.site-footer a:hover {
    color: var(--gold);
}

.copyright {
    width: 100%;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.60);
    background: #1a100b;
    font-size: 12px;
    text-align: center;
    direction: ltr;
}

/*
|--------------------------------------------------------------------------
| Not Found
|--------------------------------------------------------------------------
*/

.not-found {
    min-height: calc(100vh - 94px);
    display: grid;
    place-items: center;
    padding: 60px 20px;
    text-align: center;
}

.not-found span {
    display: block;
    color: var(--gold);
    font-size: clamp(70px, 13vw, 150px);
    font-weight: 800;
    line-height: 1;
}

.not-found h1 {
    margin-top: 16px;
    color: var(--primary-dark);
    font-size: 34px;
    font-weight: 800;
}

.not-found p {
    margin-top: 8px;
    color: var(--muted);
}

.not-found a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 10px 25px;
    border-radius: 100px;
    color: var(--white);
    background: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| RTL / LTR
|--------------------------------------------------------------------------
*/

html[dir="rtl"] .brand-text {
    align-items: flex-start;
    text-align: right;
}

html[dir="ltr"] .brand-text {
    align-items: flex-start;
    text-align: left;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .category-hero-content,
html[dir="rtl"] .category-content,
html[dir="rtl"] .product-info,
html[dir="rtl"] .mini-categories,
html[dir="rtl"] .site-footer {
    text-align: right;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .category-hero-content,
html[dir="ltr"] .category-content,
html[dir="ltr"] .product-info,
html[dir="ltr"] .mini-categories,
html[dir="ltr"] .site-footer {
    text-align: left;
}

html[dir="rtl"] .hero-content > * {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

html[dir="ltr"] .hero-content > * {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

html[dir="rtl"] .category-hero-content {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

html[dir="ltr"] .category-hero-content {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

html[dir="rtl"] .category-hero-content > span,
html[dir="rtl"] .product-info p,
html[dir="rtl"] .mini-categories small {
    text-align: right;
}

html[dir="ltr"] .category-hero-content > span,
html[dir="ltr"] .product-info p,
html[dir="ltr"] .mini-categories small {
    text-align: left;
}

html[dir="rtl"] .search-box input {
    text-align: right;
}

html[dir="ltr"] .search-box input {
    text-align: left;
}

html[dir="ltr"] .product-card {
    direction: ltr;
}

html[dir="ltr"] .product-sizes {
    align-items: flex-start;
}

html[dir="ltr"] .category-link b,
html[dir="ltr"] .mini-categories b {
    transform: rotate(180deg);
}

/*
|--------------------------------------------------------------------------
| Navigation Breakpoint
|--------------------------------------------------------------------------
*/

@media (max-width: 1360px) {
    .header-container {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .header-actions {
        margin-inline-start: auto;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .header-container {
        width: calc(100% - 24px);
        min-height: 86px;
        gap: 10px;
    }

    .brand-logo {
        width: 61px;
        height: 61px;
        min-width: 61px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .brand-text > span {
        font-size: 7px;
        letter-spacing: 1.4px;
    }

    .language-switcher {
        min-height: 40px;
        padding: 3px 4px;
    }

    .language-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .language-button {
        min-width: 37px;
        min-height: 29px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .menu-button {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .mobile-nav {
        width: calc(100% - 24px);
    }

    .mobile-nav.open {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero {
        aspect-ratio: auto;
        min-height: 560px;
        background-size: cover !important;
        background-position: center center !important;
        align-items: flex-end;
    }

    .hero-content {
        padding: 52px 0;
    }

    .hero-content > * {
        max-width: 620px;
        margin-inline-start: 0;
        margin-inline-end: 0;
    }

    .category-hero {
        aspect-ratio: auto;
        min-height: 400px;
        padding: 42px 24px;
        background-size: cover !important;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .mini-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .site-header {
        border-top-width: 4px;
    }

    .header-container {
        width: calc(100% - 18px);
        min-height: 79px;
        gap: 6px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-width: 1.5px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-tagline {
        font-size: 8px;
    }

    .brand-text > span {
        font-size: 6px;
        letter-spacing: 1px;
    }

    .header-actions {
        gap: 5px;
    }

    .language-switcher {
        min-height: 37px;
        padding: 3px;
    }

    .language-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .language-divider {
        display: none;
    }

    .language-button {
        min-width: 31px;
        min-height: 27px;
        padding: 3px 5px;
        font-size: 8px;
    }

    .menu-button {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    .mobile-nav {
        width: calc(100% - 18px);
        padding-bottom: 12px;
    }

    .mobile-nav.open {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .home-hero {
        min-height: 500px;
        background-size: cover !important;
        background-position: 55% center !important;
        align-items: flex-end;
    }

    .hero-content {
        width: calc(100% - 28px);
        padding: 42px 0;
    }

    .hero-content > * {
        max-width: 100%;
        margin-inline-start: 0;
        margin-inline-end: 0;
    }

    .hero-small {
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 12vw, 54px);
        letter-spacing: -1px;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 14px;
    }

    .hero-button {
        min-width: 155px;
        min-height: 50px;
        font-size: 14px;
    }

    .categories-section {
        width: calc(100% - 20px);
        padding: 65px 0 80px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-image {
        height: 210px;
    }

    .category-hero {
        min-height: 340px;
        padding: 28px 16px;
        background-size: cover !important;
    }

    .products-section {
        width: calc(100% - 20px);
        padding: 60px 0;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-box {
        width: 100%;
    }

    .products-grid,
    .mini-categories,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer {
        gap: 30px;
        padding: 55px 24px;
    }
}

/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {
    .header-container {
        width: calc(100% - 14px);
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-tagline {
        font-size: 7px;
    }

    .brand-text > span {
        font-size: 5.5px;
        letter-spacing: 0.7px;
    }

    .language-icon {
        display: none;
    }

    .language-switcher {
        padding: 2px;
    }

    .language-button {
        min-width: 29px;
        padding-inline: 4px;
    }

    .menu-button {
        width: 37px;
        height: 37px;
    }

    .home-hero {
        min-height: 470px;
    }

    .category-hero {
        min-height: 310px;
    }
}

/*
|--------------------------------------------------------------------------
| Very Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {
    .header-container {
        width: calc(100% - 10px);
        gap: 4px;
    }

    .brand {
        gap: 6px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .brand-text strong {
        font-size: 11px;
    }

    .brand-tagline {
        font-size: 6px;
    }

    .brand-text > span {
        display: none;
    }

    .language-button {
        min-width: 27px;
        min-height: 26px;
        padding: 2px 3px;
        font-size: 7px;
    }

    .menu-button {
        width: 35px;
        height: 35px;
    }

    .home-hero {
        min-height: 440px;
    }

    .category-hero {
        min-height: 290px;
    }
}
/*
|--------------------------------------------------------------------------
| Final Brand Design
|--------------------------------------------------------------------------
*/

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    overflow: hidden;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: #000;
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transform: scale(1.14);
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.08;
}

.brand-title {
    color: var(--primary-dark);
    font-size: 29px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-subtitle {
    display: block;
    margin-top: 5px;
    color: #a96f3f;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-en {
    display: block;
    margin-top: 6px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    direction: ltr;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| QR Code
|--------------------------------------------------------------------------
*/

.qr-section {
    padding: 80px 20px;
    background: #efe6dc;
}

.qr-card {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 35px 25px;
    border: 1px solid rgba(111, 75, 50, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(42, 26, 15, 0.12);
    text-align: center;
}

.qr-label {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.qr-card h2 {
    margin-top: 5px;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 800;
}

.qr-code {
    width: 244px;
    min-height: 244px;
    display: grid;
    place-items: center;
    margin: 25px auto;
    padding: 10px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    background: #ffffff;
}

.qr-code img,
.qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

.qr-card p {
    color: var(--muted);
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Brand Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .brand {
        gap: 11px;
    }

    .brand-logo {
        width: 61px;
        height: 61px;
        min-width: 61px;
    }

    .brand-title {
        font-size: 21px;
    }

    .brand-subtitle {
        margin-top: 3px;
        font-size: 11px;
    }

    .brand-en {
        margin-top: 4px;
        font-size: 8px;
        letter-spacing: 2px;
    }
}

@media (max-width: 640px) {
    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .brand-en {
        font-size: 6px;
        letter-spacing: 1.2px;
    }

    .qr-section {
        padding: 55px 14px;
    }

    .qr-card {
        padding: 28px 18px;
    }

    .qr-card h2 {
        font-size: 23px;
    }

    .qr-code {
        width: 220px;
        min-height: 220px;
    }
}

@media (max-width: 400px) {
    .brand-logo {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .brand-title {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 8px;
    }

    .brand-en {
        display: none;
    }

    .qr-code {
        width: 200px;
        min-height: 200px;
    }
}