/*
Theme Name: Aramiso Storefront
Theme URI: https://www.aramiso.com
Author: Aramiso
Description: RTL WooCommerce storefront for pillows, sleep tests, and lead generation.
Version: 0.1.0
Text Domain: aramiso-storefront
*/

:root {
    --primary: #1a2a3a;
    --secondary: #c5a059;
    --background: #f9f7f2;
    --surface: #fbf9f4;
    --surface-low: #f0eee9;
    --text: #1b1c19;
    --muted: #5f6469;
    --border: #d8d5ce;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    direction: rtl;
    background: var(--background);
    color: var(--text);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 249, 244, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo-header {
    width: 178px;
    max-height: 54px;
}

.brand-logo-footer {
    width: 220px;
    max-height: 88px;
    margin-bottom: 12px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
}

.icon-button {
    width: 42px;
    border: 1px solid var(--border);
    background: #fff;
}

.button {
    padding: 0 20px;
    border: 0;
    background: var(--primary);
    color: #fff;
}

.button.secondary {
    background: var(--secondary);
    color: var(--primary);
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(249, 247, 242, .1), rgba(26, 42, 58, .84)),
        url("https://images.unsplash.com/photo-1631049307264-da0ec9d70304?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
    display: grid;
    max-width: 620px;
    gap: 26px;
    padding: 90px 0 120px;
    color: #fff;
}

.eyebrow {
    color: var(--secondary);
    font-weight: 900;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 19px;
    line-height: 2;
}

.hero-actions,
.trust-grid,
.quick-grid,
.category-grid,
.product-grid,
.education-grid {
    display: grid;
    gap: 18px;
}

.hero-actions {
    grid-template-columns: repeat(2, max-content);
}

.trust {
    background: var(--primary);
    color: #fff;
    padding: 28px 0;
}

.trust-grid {
    grid-template-columns: repeat(5, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 800;
}

.trust-item span:last-child {
    color: #fff;
}

.section {
    padding: 78px 0;
}

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

.section h2 {
    margin: 0;
    color: var(--primary);
    font-size: 34px;
}

.quick-grid {
    grid-template-columns: repeat(5, 1fr);
}

.quick-card,
.category-card,
.education-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.quick-card {
    min-height: 172px;
    display: grid;
    align-content: end;
    gap: 18px;
    padding: 24px;
    color: var(--primary);
    font-weight: 900;
}

.quick-card .material-symbols-outlined,
.category-card .material-symbols-outlined,
.education-card .material-symbols-outlined {
    color: var(--secondary);
    font-size: 42px;
}

.quiz-band {
    background: var(--primary);
    color: #fff;
}

.quiz-band .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 44px;
}

.quiz-band h2 {
    color: var(--secondary);
}

.quiz-panel {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 8px;
}

.category-grid {
    grid-template-columns: repeat(6, 1fr);
}

.category-card {
    display: grid;
    place-items: center;
    min-height: 130px;
    gap: 12px;
    font-weight: 900;
}

.products {
    background: var(--surface-low);
}

.education-grid {
    grid-template-columns: repeat(4, 1fr);
}

.education-card {
    padding: 26px;
    min-height: 220px;
    line-height: 1.9;
}

.newsletter {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.newsletter h2 {
    color: var(--secondary);
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    min-width: 280px;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    font: inherit;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-low);
    padding: 48px 0;
    color: var(--muted);
    line-height: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 34px;
}

@media (max-width: 900px) {
    .menu {
        display: none;
    }

    .hero-actions,
    .trust-grid,
    .quick-grid,
    .quiz-band .container,
    .category-grid,
    .education-grid,
    .newsletter,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .brand-logo-header {
        width: 148px;
        max-height: 46px;
    }

    .hero-inner {
        padding: 70px 0 84px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        display: grid;
    }

    .newsletter-form {
        display: grid;
    }

    .newsletter-form input {
        min-width: 0;
        width: 100%;
    }
}

.shop-page,
.product-page {
    background: var(--background);
}

.shop-hero {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(120deg, rgba(4, 21, 37, .96), rgba(26, 42, 58, .78)), url('assets/images/products/kangroo.jpg') center/cover;
}

.shop-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 212, 136, .28), transparent 48%);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    padding: 68px 0;
    text-align: center;
}

.shop-hero h1,
.shop-quality h2,
.shop-heading h2,
.aramiso-product-summary h1,
.aramiso-product-details h2 {
    margin: 8px 0 14px;
    color: inherit;
    line-height: 1.25;
}

.shop-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.shop-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .84);
    line-height: 2;
}

.shop-heading {
    align-items: end;
    margin-bottom: 30px;
}

.shop-heading .woocommerce-result-count {
    margin: 0;
    color: var(--muted);
}

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

.aramiso-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(4, 21, 37, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.aramiso-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(4, 21, 37, .13);
}

.aramiso-product-image {
    display: grid;
    min-height: 255px;
    place-items: center;
    padding: 24px;
    background: var(--surface-container-low);
}

.aramiso-product-image img {
    width: 100%;
    height: 238px;
    object-fit: contain;
    transition: transform .35s ease;
}

.aramiso-product-card:hover .aramiso-product-image img {
    transform: scale(1.05);
}

.aramiso-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.aramiso-product-kicker,
.eyebrow {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
}

.aramiso-product-body h2 {
    margin: 8px 0;
    color: var(--primary);
    font-size: 24px;
}

.aramiso-product-body p {
    min-height: 58px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.aramiso-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 4px 0 20px;
}

.aramiso-price-sale {
    color: var(--primary);
    font-size: 21px;
    font-weight: 900;
}

.aramiso-price del {
    color: var(--muted);
    font-size: 14px;
}

.aramiso-discount,
.aramiso-gallery-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #5d4201;
    background: var(--secondary-fixed);
    font-size: 12px;
    font-weight: 900;
}

.aramiso-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.aramiso-card-actions .button {
    min-height: 46px;
    padding: 8px 12px;
    font-size: 13px;
}

.shop-quality {
    margin-top: 54px;
    padding: 68px 0;
    color: #fff;
    background: var(--primary);
}

.shop-quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.shop-quality p {
    max-width: 570px;
    color: rgba(255, 255, 255, .72);
    line-height: 2;
}

.shop-quality ul,
.aramiso-product-benefits {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.shop-quality li,
.aramiso-product-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-quality li {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.shop-quality .material-symbols-outlined {
    color: var(--secondary-fixed);
}

.aramiso-single-product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(34px, 7vw, 88px);
    align-items: center;
}

.aramiso-product-gallery {
    position: relative;
    display: grid;
    min-height: 510px;
    place-items: center;
    padding: 48px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--surface-container-low);
}

.aramiso-product-gallery img {
    width: 100%;
    max-height: 410px;
    object-fit: contain;
}

.aramiso-gallery-badge {
    position: absolute;
    top: 22px;
    right: 22px;
}

.aramiso-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.aramiso-back-link:hover {
    color: var(--primary);
}

.aramiso-product-summary h1 {
    color: var(--primary);
    font-size: clamp(32px, 4vw, 48px);
}

.aramiso-summary-text {
    color: var(--muted);
    line-height: 2.1;
}

.aramiso-product-benefits {
    margin: 28px 0;
    color: var(--muted);
    font-size: 14px;
}

.aramiso-product-benefits .material-symbols-outlined {
    color: var(--secondary);
}

.aramiso-add-to-cart {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aramiso-add-to-cart .quantity input {
    width: 76px;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font: inherit;
    text-align: center;
}

.aramiso-add-to-cart .button {
    flex: 1;
    min-height: 52px;
    border: 0;
    cursor: pointer;
}

.aramiso-product-details {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
    margin-top: 76px;
    padding: 42px;
    border-radius: 26px;
    background: var(--surface-container-low);
}

.aramiso-product-details h2 {
    color: var(--primary);
    font-size: 31px;
}

.aramiso-product-details dl {
    display: grid;
    margin: 0;
}

.aramiso-product-details dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.aramiso-product-details dl div:last-child {
    border-bottom: 0;
}

.aramiso-product-details dt {
    color: var(--muted);
}

.aramiso-product-details dd {
    margin: 0;
    color: var(--primary);
    font-weight: 800;
    text-align: left;
}

@media (max-width: 900px) {
    .aramiso-product-grid,
    .shop-quality-grid,
    .aramiso-single-product,
    .aramiso-product-details {
        grid-template-columns: 1fr;
    }

    .shop-heading {
        align-items: start;
    }

    .aramiso-product-gallery {
        min-height: 360px;
        padding: 30px;
    }

    .aramiso-product-details {
        gap: 18px;
        margin-top: 48px;
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .shop-hero-content {
        padding: 56px 0;
    }

    .aramiso-product-grid {
        gap: 16px;
    }

    .aramiso-product-image {
        min-height: 210px;
    }

    .aramiso-product-image img {
        height: 190px;
    }

    .aramiso-card-actions,
    .aramiso-add-to-cart {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .aramiso-add-to-cart .quantity input {
        width: 100%;
    }

    .aramiso-product-details dl div {
        flex-direction: column;
        gap: 5px;
    }

    .aramiso-product-details dd {
        text-align: right;
    }
}

.aramiso-tests-section { background: #f5f3ee; }
.aramiso-tests-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:32px; }
.aramiso-test-card { display:flex; min-height:250px; flex-direction:column; padding:28px; border:1px solid var(--border); border-radius:22px; background:#fff; color:var(--primary); transition:.25s ease; }
.aramiso-test-card:hover { transform:translateY(-5px); border-color:var(--secondary); box-shadow:0 18px 35px rgba(4,21,37,.09); }
.aramiso-test-card > .material-symbols-outlined { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:#ffdea5; color:#775a19; }
.aramiso-test-card h3 { margin:22px 0 10px; font-size:20px; }
.aramiso-test-card p { margin:0; color:var(--muted); line-height:1.9; font-size:14px; }
.aramiso-test-card strong { display:flex; align-items:center; gap:5px; margin-top:auto; padding-top:22px; color:#775a19; font-size:14px; }
.aramiso-test-card strong .material-symbols-outlined { font-size:18px; }
@media (max-width:900px) { .aramiso-tests-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px) { .aramiso-tests-grid { grid-template-columns:1fr; } .aramiso-test-card { min-height:0; } }
