
/* ==============================
   AESTRA | Main Stylesheet
   ============================== */

:root {
    --color-text: #26231f;
    --color-muted: #817970;
    --color-background: #ffffff;
    --color-soft: #f4f0eb;
    --color-border: #e9e4de;
    --color-accent: #a18a72;
    --container-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.8;
}

body,
input,
button {
    font-family: Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-size: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

/* نوار اطلاع‌رسانی */

.announcement {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    color: #fff;
    background: #272522;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2px;
}

/* سربرگ */

.site-header {
    width: 100%;
    max-width: var(--container-width);
    min-height: 94px;
    margin: 0 auto;
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 4px;
}

.search-form {
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    background: #faf9f7;
}

.search-form input {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border: 0;
    outline: 0;
    color: var(--color-text);
    background: transparent;
    font-size: 12px;
}

.search-form button {
    width: 48px;
    align-self: stretch;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 25px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
    font-size: 12px;
}

.header-actions a {
    transition: color 0.2s ease;
}

.header-actions a:hover {
    color: var(--color-accent);
}

.header-actions span {
    margin-right: 4px;
}

.menu-toggle {
    display: none;
}

/* منوی اصلی */

.main-navigation {
    min-height: 51px;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-top: 1px solid #f0ede9;
    border-bottom: 1px solid #f0ede9;
    font-size: 12px;
}

.main-navigation a {
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* بنر اصلی */

.hero {
    position: relative;
    isolation: isolate;
    width: 92%;
    max-width: 1320px;
    min-height: 465px;
    margin: 28px auto 0;
    padding: 7%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #d6c8b9 0%,
        #e9e0d7 46%,
        #f5f0ea 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 490px;
}

.hero-eyebrow,
.section-eyebrow {
    display: block;
    color: #86735f;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.65;
    font-weight: 800;
}

.hero p {
    max-width: 360px;
    margin: 0;
    color: #625a52;
    font-size: 13px;
    line-height: 2.4;
}

.hero-decoration {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(89, 74, 59, 0.14);
    pointer-events: none;
}

.hero-decoration span:first-child {
    font-family: Georgia, serif;
    font-size: clamp(180px, 25vw, 330px);
    font-weight: 400;
    line-height: 1;
}

.hero-decoration span:last-child {
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 5px;
}

/* دکمه‌ها */

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 25px;
    font-size: 12px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.button-dark {
    margin-top: 24px;
    color: #fff;
    background: #26231f;
}

.button-dark:hover {
    background: #51483f;
}

.button-light {
    margin-top: 12px;
    color: #26231f;
    background: #fff;
}

.button-light:hover {
    background: #eae2d8;
}

/* بخش‌های عمومی */

.section {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 62px 5%;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 700;
}

.text-link {
    flex-shrink: 0;
    padding-bottom: 5px;
    color: var(--color-muted);
    font-size: 11px;
}

.text-link:hover {
    color: var(--color-text);
}

/* دسته‌بندی‌ها */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.category-card {
    min-height: 165px;
    padding: 22px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-soft);
    border: 1px solid transparent;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.category-card:hover {
    background: #eee6dd;
    border-color: #dfd2c4;
    transform: translateY(-3px);
}

.category-number {
    margin-bottom: 7px;
    color: #9b8874;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

.category-card strong {
    font-size: 15px;
    font-weight: 700;
}

.category-caption {
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 11px;
}

/* کارت محصولات */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    display: block;
}

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1ede8;
}

.product-placeholder {
    color: #d1c7bc;
    font-family: Georgia, serif;
    font-size: clamp(65px, 10vw, 120px);
    transition:
        transform 0.4s ease,
        color 0.4s ease;
}

.product-card:hover .product-placeholder {
    color: #b9a997;
    transform: scale(1.06);
}

.product-label {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 5px 10px;
    color: #fff;
    background: #282522;
    font-size: 10px;
}

.product-details {
    padding: 13px 2px 5px;
}

.product-details h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 400;
}

.product-price {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

/* بنر کالکشن */

.collection-banner {
    margin: 0 auto;
    width: 90%;
    max-width: 1290px;
    padding: 48px 20px;
    color: #fff;
    background: #282622;
    text-align: center;
}

.collection-banner .section-eyebrow {
    color: #c7b39b;
}

.collection-banner h2 {
    margin: 12px 0;
    font-size: 27px;
}

.collection-banner p {
    margin: 0;
    color: #ded9d3;
    font-size: 12px;
    line-height: 2.2;
}

/* فوتر */

.site-footer {
    margin-top: 65px;
    padding: 45px 6% 20px;
    background: #f6f4f1;
}

.footer-grid {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 18px;
    color: #777068;
    font-size: 12px;
    line-height: 2.3;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 8px;
    font-size: 13px;
}

.footer-column a {
    color: #777068;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #26231f;
}

.footer-bottom {
    max-width: 1250px;
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e4dfd8;
    color: #89837b;
    text-align: center;
    font-size: 10px;
}

/* واکنش‌گرایی تبلت */

@media (max-width: 900px) {
    .site-header {
        gap: 18px;
        padding-right: 4%;
        padding-left: 4%;
    }

    .main-navigation {
        gap: 22px;
    }

    .hero {
        min-height: 390px;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .product-grid {
        gap: 13px;
    }
}

/* واکنش‌گرایی موبایل */

@media (max-width: 700px) {
    .announcement {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .site-header {
        min-height: auto;
        padding: 18px 4%;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 17px 12px;
    }

    .logo {
        font-size: 25px;
        letter-spacing: 3px;
    }

    .header-actions {
        justify-content: flex-end;
        gap: 13px;
        font-size: 10px;
    }

    .search-form {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .search-form input {
        padding: 12px;
        font-size: 11px;
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        min-height: 45px;
        justify-content: flex-start;
        gap: 23px;
        padding: 12px 4%;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        font-size: 11px;
    }

    .main-navigation::-webkit-scrollbar {
        display: none;
    }

    .hero {
        width: 92%;
        min-height: 345px;
        margin-top: 16px;
        padding: 8%;
    }

    .hero-content {
        max-width: 78%;
    }

    .hero h1 {
        margin-top: 12px;
        font-size: 37px;
        line-height: 1.7;
    }

    .hero p {
        font-size: 11px;
        line-height: 2.2;
    }

    .hero-decoration {
        left: -3%;
        opacity: 0.75;
    }

    .hero-decoration span:first-child {
        font-size: 190px;
    }

    .hero-decoration span:last-child {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .button {
        min-height: 44px;
        padding: 11px 17px;
        font-size: 11px;
    }

    .button-dark {
        margin-top: 18px;
    }

    .section {
        padding: 37px 4%;
    }

    .section-heading {
        align-items: flex-end;
        margin-bottom: 19px;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .section-eyebrow,
    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .text-link {
        font-size: 10px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        min-height: 125px;
        padding: 15px 8px;
    }

    .category-card strong {
        font-size: 14px;
    }

    .category-caption {
        font-size: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .product-details h3 {
        font-size: 12px;
    }

    .product-price {
        font-size: 11px;
    }

    .product-label {
        top: 8px;
        right: 8px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .collection-banner {
        width: 92%;
        padding: 35px 15px;
    }

    .collection-banner h2 {
        font-size: 22px;
    }

    .collection-banner p {
        font-size: 11px;
    }

    .site-footer {
        margin-top: 40px;
        padding: 32px 5% 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 15px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        font-size: 11px;
    }

    .footer-column h3 {
        font-size: 12px;
    }

    .footer-column a {
        font-size: 10px;
    }
}

/* موبایل‌های کوچک */

@media (max-width: 360px) {
    .logo {
        font-size: 22px;
    }

    .header-actions {
        gap: 8px;
        font-size: 9px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .section-heading h2 {
        font-size: 15px;
    }
}

/* کاهش انیمیشن برای کاربران نیازمند */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* منوی موبایل */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid #333;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
    }

    #main-navigation {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    #main-navigation.is-open {
        display: flex;
    }

    #main-navigation a {
        padding: 12px 0;
        border-bottom: 1px solid #292929;
    }
}

/* ==========================================
   AESTRA | اتصال رنگ‌بندی به پنل مدیریت
   ========================================== */

/* رنگ‌های اصلی سایت از تنظیمات پنل */
:root {
    --color-border: color-mix(
        in srgb,
        var(--color-accent) 22%,
        var(--color-background)
    );

    --color-soft: color-mix(
        in srgb,
        var(--color-accent) 9%,
        var(--color-background)
    );
}

/* پس‌زمینه و متن */
html,
body {
    color: var(--color-text);
    background-color: var(--color-background);
}

input,
button {
    color: var(--color-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline-color: var(--color-accent);
}

/* نوار جست‌وجو */
.search-form {
    border-color: var(--color-border);
    background: var(--color-soft);
}

.search-form input {
    color: var(--color-text);
}

.search-form button {
    color: var(--color-accent);
}

/* منوی اصلی */
.main-navigation {
    border-top-color: var(--color-border);
    border-bottom-color: var(--color-border);
}

.main-navigation a:hover,
.header-actions a:hover,
.text-link:hover {
    color: var(--color-accent);
}

/* تیترها و متن‌های تأکیدی */
.hero-eyebrow,
.section-eyebrow,
.category-number {
    color: var(--color-accent);
}

/* دکمه اصلی */
.button-dark {
    color: #fff;
    background: var(--color-accent);
}

.button-dark:hover {
    background: color-mix(
        in srgb,
        var(--color-accent) 78%,
        #000
    );
}

/* دکمه روشن */
.button-light {
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

/* کارت‌های دسته‌بندی */
.category-card {
    background: var(--color-soft);
    border-color: transparent;
}

.category-card:hover {
    background: color-mix(
        in srgb,
        var(--color-accent) 15%,
        var(--color-background)
    );
    border-color: var(--color-accent);
}

.category-number,
.category-caption {
    color: var(--color-accent);
}

/* کارت محصولات */
.product-image {
    background: var(--color-soft);
}

.product-label {
    background: var(--color-accent);
    color: #fff;
}

/* فوتر */
.site-footer {
    background: var(--color-soft);
}

.footer-brand p,
.footer-column a {
    color: var(--color-muted);
}

.footer-column a:hover,
.footer-instagram {
    color: var(--color-accent);
}

.footer-bottom {
    border-top-color: var(--color-border);
    color: var(--color-muted);
}

/* حفظ ظاهر مستقل بنر پایین صفحه */
.collection-banner {
    background: #282622;
    color: #fff;
}

.collection-banner .section-eyebrow {
    color: #c7b39b;
}

/* نمایش بهتر منوی موبایل */
@media (max-width: 768px) {
    #main-navigation a {
        border-bottom-color: var(--color-border);
    }

    .menu-toggle {
        border-color: var(--color-accent);
    }

    .menu-toggle span {
        background: var(--color-text);
    }
}

