@font-face {
    font-family: Vazirmatn;
    src: url(compact-assets/vazirmatn-arabic-400-normal.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url(compact-assets/vazirmatn-arabic-700-normal.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --rayan-bg: #0b1410;
    --rayan-panel: #14231b;
    --rayan-ink: #f4f0e7;
    --rayan-muted: #b8c0b6;
    --rayan-gold: #e4c68b;
    --rayan-line: #c5a76e42;
    --rayan-font: Vazirmatn, Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body.rayan-site {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    color: var(--rayan-ink);
    background: radial-gradient(ellipse at 67% 20%, #172a1f, var(--rayan-bg) 70%);
    font: 400 16px/1.65 var(--rayan-font);
}
.rayan-site a { color: inherit; }
.rayan-site a:focus-visible, .rayan-site button:focus-visible, .rayan-site input:focus-visible, .rayan-site select:focus-visible {
    outline: 2px solid var(--rayan-gold);
    outline-offset: 3px;
}
.rayan-site button, .rayan-site input, .rayan-site select { font-family: inherit; }
.rayan-site img { max-inline-size: 100%; }
.rayan-site main { flex: 1; }
.rayan-shell { width: min(calc(100% - 72px), 1250px); margin-inline: auto; }
.rayan-header { border-bottom: 1px solid var(--rayan-line); background: #0c1711; }
.rayan-header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rayan-header a, .rayan-footer a, .rayan-department, a.rayan-button { text-decoration: none; }
.rayan-brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 17px; }
.rayan-brand img { width: 34px; height: 40px; object-fit: contain; }
.rayan-brand strong { color: var(--rayan-gold); }
.rayan-nav, .rayan-actions { display: flex; align-items: center; }
.rayan-nav { gap: clamp(16px, 3vw, 44px); }
.rayan-nav a, .rayan-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
.rayan-nav a:hover, .rayan-actions a:hover { color: var(--rayan-gold); }
.rayan-actions { gap: 6px; }
.rayan-actions a { min-width: 44px; }
.rayan-account { border: 1px solid var(--rayan-line); border-radius: 4px; padding-inline: 14px; }
.rayan-bag { position: relative; width: 17px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; }
.rayan-bag::before { content: ""; position: absolute; inset: -6px 4px auto; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.rayan-home { padding-block: clamp(22px, 4.6vw, 68px) clamp(34px, 5.8vw, 90px); }
.rayan-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    overflow: hidden;
    min-height: clamp(355px, 38vw, 500px);
    border: 1px solid var(--rayan-line);
    border-radius: 6px;
    background: #112118;
    box-shadow: 0 28px 64px -46px #000;
}
.rayan-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: clamp(30px, 5.5vw, 80px);
    background: radial-gradient(ellipse at right bottom, #1e3729, transparent 75%);
}
.rayan-hero h1 { margin: 0; font-size: clamp(39px, 5vw, 77px); line-height: 1.23; font-weight: 700; }
.rayan-hero h1 em { display: block; color: var(--rayan-gold); font-style: normal; }
.rayan-hero p { margin: 18px 0 27px; max-inline-size: 31ch; color: var(--rayan-muted); font-size: clamp(14px, 1.4vw, 17px); }
.rayan-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 51px;
    padding: 9px 18px;
    border-radius: 4px;
    background: linear-gradient(105deg, #f4db9f, #cfac68);
    color: #241b0d !important;
    font-weight: 700;
    font-size: 15px;
    box-shadow: inset 0 1px #fff7d6aa, 0 6px 24px #080d0a77;
    transition: filter 160ms ease;
}
.rayan-button:hover { filter: brightness(1.08); }
.rayan-button span, .rayan-department-arrow { font-size: 22px; line-height: 1; }
.rayan-hero-art { position: relative; min-width: 0; min-height: 100%; background: radial-gradient(ellipse at center, #244634, #0c1812); }
.rayan-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 54%; }
.rayan-hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, #112118 0%, transparent 24%); }
.rayan-departments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rayan-department {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    min-height: 132px;
    padding: 17px 18px;
    border: 1px solid var(--rayan-line);
    border-radius: 6px;
    background: linear-gradient(125deg, #1b3024, #101b15 80%);
    transition: border-color 160ms ease, background-color 160ms ease;
}
.rayan-department:hover { border-color: var(--rayan-gold); }
.rayan-department-copy { display: grid; align-content: center; gap: 3px; }
.rayan-department strong { font-size: clamp(17px, 2vw, 23px); }
.rayan-department small { color: var(--rayan-muted); font-size: 13px; }
.rayan-department img { width: clamp(55px, 7.4vw, 110px); height: 87px; object-fit: contain; filter: drop-shadow(0 8px 14px #0008); }
.rayan-department:first-child img, .rayan-department:last-child img { object-fit: cover; border-radius: 4px; }
.rayan-department-arrow { color: var(--rayan-gold); }
.rayan-footer { border-top: 1px solid var(--rayan-line); background: #0c1711; color: var(--rayan-muted); font-size: 13px; }
.rayan-footer-inner { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rayan-footer a { color: var(--rayan-gold); }
.rayan-content { padding-block: clamp(24px, 5vw, 65px); }
.rayan-content h1 { margin-block: 0 18px; font-size: clamp(28px, 4vw, 45px); }
.rayan-content .woocommerce-breadcrumb { color: var(--rayan-muted); }
.rayan-content .woocommerce-breadcrumb a { color: var(--rayan-muted); }
.rayan-content .woocommerce-info, .rayan-content .woocommerce-message, .rayan-content .woocommerce-error {
    background: var(--rayan-panel);
    color: var(--rayan-ink);
    border-top-color: var(--rayan-gold);
}
.rayan-content input.input-text, .rayan-content textarea, .rayan-content select {
    border: 1px solid var(--rayan-line);
    border-radius: 4px;
    background: var(--rayan-panel);
    color: var(--rayan-ink);
    min-height: 44px;
    padding: 8px 10px;
}
.rayan-content .woocommerce a.button, .rayan-content .woocommerce button.button, .rayan-content .woocommerce input.button,
.rayan-content a.button, .rayan-content .wc-block-components-button:not(.is-link) {
    background: var(--rayan-gold);
    color: #241b0d;
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.screen-reader-text:focus { width: auto; height: auto; clip-path: none; z-index: 10000; padding: 12px; background: var(--rayan-bg); }
@media (max-width: 900px) {
    .rayan-shell { width: calc(100% - 40px); }
    .rayan-header-inner { min-height: 70px; gap: 12px; }
    .rayan-nav { gap: 18px; }
    .rayan-hero-copy { padding: 36px; }
    .rayan-department { gap: 8px; padding-inline: 13px; }
}
@media (max-width: 680px) {
    .rayan-shell { width: calc(100% - 28px); }
    .rayan-header-inner { min-height: 62px; }
    .rayan-nav { display: none; }
    .rayan-brand { font-size: 15px; gap: 8px; }
    .rayan-brand img { width: 28px; height: 35px; }
    .rayan-account { padding-inline: 8px; }
    .rayan-hero { grid-template-columns: 1fr; min-height: 0; }
    .rayan-hero-art { grid-row: 1; min-height: 0; aspect-ratio: 16 / 9; }
    .rayan-hero-art::after { background: linear-gradient(0deg, #112118 0%, transparent 24%); }
    .rayan-hero-copy { padding: 7px 20px 22px; }
    .rayan-hero h1 { font-size: clamp(30px, 8.8vw, 52px); }
    .rayan-hero p { margin: 7px 0 15px; }
    .rayan-departments { grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
    .rayan-department { min-height: 83px; padding: 9px 14px; }
    .rayan-department-copy { flex: 1; }
    .rayan-department img { width: 64px; height: 58px; }
    .rayan-department-arrow { margin-inline-start: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .rayan-button, .rayan-department { transition: none; }
}

.rayan-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 20px 32px;
    margin-block: 22px;
    padding: clamp(18px, 4vw, 32px);
    border: 1px solid #c9a96f61;
    border-radius: 12px;
    color: #f4eee1;
    background: #162a24;
    scroll-margin-top: 20px;
}
.rayan-login h2 { margin: 0 0 6px; color: #ebcc89; font-size: clamp(19px, 3vw, 26px); }
.rayan-login p { margin: 0; color: #c4d0c5; }
.rayan-login form[hidden] { display: none; }
.rayan-login label { display: block; margin-bottom: 7px; font-weight: 700; }
.rayan-login-row { display: flex; align-items: stretch; gap: 9px; }
.rayan-login input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 8px 11px;
    border: 1px solid #bc9e686b;
    border-radius: 7px;
    color: #f4eee1;
    background: #101f1a;
    font: inherit;
}
.rayan-login .rayan-button { min-height: 46px; margin: 0; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rayan-login .rayan-button:disabled { opacity: .58; cursor: wait; }
.rayan-code-entry { display: grid; gap: 14px; }
.rayan-otp-boxes { position: relative; min-width: 0; }
.rayan-otp-digits { display: none; }
.rayan-otp-boxes.is-enhanced .rayan-otp-digits {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 1.7vw, 9px);
}
.rayan-otp-digits span {
    display: grid; place-items: center; min-height: clamp(47px, 13vw, 61px);
    border: 1px solid #aa92676e; border-radius: 11px; color: #f9e1ac;
    background: linear-gradient(155deg, #203329, #121f19 75%);
    font-size: clamp(19px, 5vw, 27px); font-weight: 700; font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px #ffffff0a;
}
.rayan-otp-digits span:empty::after { content: ''; width: 11px; height: 1px; background: #bcae8a; opacity: .62; }
.rayan-login .rayan-otp-boxes.is-enhanced input {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: text;
}
.rayan-otp-boxes:focus-within .rayan-otp-digits span.is-current { border-color: #f3ce85; box-shadow: 0 0 0 2px #e6bd6c45; }
.rayan-otp-boxes:has(input[aria-invalid=true]) .rayan-otp-digits span { border-color: #ffb0a5; }
.rayan-login-tools { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-block-start: 4px; }
.rayan-login-tools button { min-height: 44px; border: 0; padding: 0; color: #ebcc89; background: transparent; font: inherit; cursor: pointer; }
.rayan-login-tools a { display: inline-flex; align-items: center; min-height: 44px; color: #ebcc89; }
.rayan-login-tools button:disabled { color: #b8c5b9; cursor: default; }
.rayan-login .rayan-login-status { margin-top: 9px; font-size: 13px; }
.rayan-login-status:empty { display: none; }
.rayan-shop-rates { margin-block: 24px 32px; padding: 18px; border: 1px solid #9b824e; border-radius: 12px; background: #132720; }
.rayan-shop-rates h2 { margin: 0 0 14px; color: #ebcc89; }
.rayan-shop-rates h2 small { margin-inline-start: 8px; color: #c1d7c6; font-size: .65em; }
.rayan-shop-rates-scroll { overflow: auto; }
.rayan-shop-rates table { border-collapse: collapse; width: 100%; min-width: 590px; text-align: start; }
.rayan-shop-rates :is(td, th) { padding: 9px 12px; border-block-end: 1px solid #9b824e50; text-align: start; white-space: nowrap; }
.rayan-shop-rates th { color: #ebcc89; }
.rayan-shop-rates [data-direction=up] { color: #79dda4; }
.rayan-shop-rates [data-direction=down] { color: #ff9d91; }
.rayan-login .rayan-login-status.is-error { color: #ffb0a5; }
@media (max-width: 640px) { .rayan-login { grid-template-columns: 1fr; } }
