/*
Theme Name: Hoodie Store
Description: قالب سبک و راست‌چین فروشگاه هودی.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: hoodie-store
*/

:root {
    --color-ink: #1f1633;
    --color-muted: #6f687c;
    --color-surface: #ffffff;
    --color-soft: #fff7f1;
    --color-accent: #ff6b35;
    --color-accent-dark: #e84e1b;
    --color-purple: #6d3df5;
    --color-purple-dark: #4c24bc;
    --color-teal: #0f9d8a;
    --color-border: #eadfec;
    --color-shadow: rgba(48, 25, 68, 0.12);
    --container: 1200px;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #fffdfb;
    color: var(--color-ink);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.8;
}

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

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

.site-container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(234, 223, 236, 0.8);
    background: rgba(255, 253, 251, 0.9);
    box-shadow: 0 8px 30px rgba(48, 25, 68, 0.04);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
}

.site-brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px 14px 14px 5px;
    background: linear-gradient(135deg, var(--color-purple), #9d68ff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(109, 61, 245, 0.25);
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
}

.site-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 28px;
    list-style: none;
}

.site-nav a {
    position: relative;
    color: #4e4658;
    font-size: 0.94rem;
    font-weight: 700;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: var(--color-accent);
    content: "";
    transition: width 0.2s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-actions__account {
    font-size: 0.92rem;
    font-weight: 700;
}

.hoodie-product-detail {
    margin-block: 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.hoodie-product-detail summary {
    padding: 10px 14px;
    color: var(--color-purple-dark);
    font-weight: 800;
    cursor: pointer;
}

.hoodie-product-detail__body {
    padding: 0 14px 14px;
}

.hoodie-product-detail__body table {
    width: 100%;
    border-collapse: collapse;
}

.hoodie-product-detail__body caption {
    padding-block: 5px;
    text-align: start;
    color: var(--color-muted);
}

.hoodie-product-detail__body th,
.hoodie-product-detail__body td {
    padding: 6px;
    border-block-end: 1px solid var(--color-border);
    text-align: start;
}

.hoodie-product-detail__body input {
    width: 100%;
    margin-block: 4px 10px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
}

.hoodie-product-detail__body [role="status"]:empty {
    display: none;
}

.site-mobile-menu {
    display: none;
}

.site-mobile-menu summary,
.site-mobile-menu a {
    padding: 9px 14px;
    color: var(--color-ink);
    font-weight: 700;
}

.site-mobile-menu summary {
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.site-mobile-menu nav {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    display: grid;
    min-width: 170px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 12px 28px var(--color-shadow);
}

.site-mobile-menu a:focus-visible,
.site-mobile-menu a:hover {
    background: var(--color-soft);
}

.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), #ff8a35);
    color: #fff;
    cursor: pointer;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--color-accent-dark);
    color: #fff;
    box-shadow: 0 14px 28px rgba(232, 78, 27, 0.28);
    transform: translateY(-2px);
}

.button--cart {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cart-count {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-block: 72px 78px;
    background:
        radial-gradient(circle at 14% 15%, rgba(255, 170, 122, 0.3), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(122, 91, 248, 0.2), transparent 30%),
        linear-gradient(135deg, #fff9f4 0%, #fff 48%, #f7f3ff 100%);
}

.hero::before {
    position: absolute;
    top: 70px;
    right: -100px;
    width: 290px;
    height: 290px;
    border: 52px solid rgba(255, 107, 53, 0.07);
    border-radius: 50%;
    content: "";
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(380px, 0.8fr);
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--color-purple);
    font-size: 0.88rem;
    font-weight: 800;
}

.eyebrow span {
    color: var(--color-accent);
    font-size: 0.72rem;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    letter-spacing: -0.065em;
    line-height: 1.13;
}

.hero h1 span {
    color: var(--color-purple);
}

.hero p {
    max-width: 610px;
    margin: 0 0 30px;
    color: var(--color-muted);
    font-size: 1.06rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-purple-dark);
    font-weight: 800;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(-4px);
}

.hero__visual {
    position: relative;
    min-height: 520px;
}

.hero__image-card {
    position: absolute;
    inset: 0 8% 0 0;
    z-index: 2;
    overflow: visible;
    border: 8px solid rgba(255, 255, 255, 0.85);
    border-radius: 46% 46% 28% 28% / 34% 34% 18% 18%;
    background: #f3e8ff;
    box-shadow: 0 35px 80px rgba(71, 35, 107, 0.2);
    transform: rotate(-2deg);
}

.hero__image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.hero__image-card > a {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.hero__shape {
    position: absolute;
    z-index: 1;
    display: block;
    border-radius: 40px;
    transform: rotate(16deg);
}

.hero__shape--one {
    top: 20px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: #ffd44d;
}

.hero__shape--two {
    right: 0;
    bottom: 8px;
    width: 190px;
    height: 190px;
    background: #9fe5db;
}

.hero__tag {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(48, 25, 68, 0.16);
    backdrop-filter: blur(10px);
}

.hero__tag--price {
    top: 40px;
    right: -48px;
    padding: 11px 16px;
    color: var(--color-purple-dark);
    font-size: 1rem;
    font-weight: 900;
    flex-wrap: wrap;
    max-width: 100%;
}

.hero__tag--stock {
    bottom: 36px;
    left: -56px;
    padding: 10px 14px;
    color: #315c52;
    font-size: 0.76rem;
    font-weight: 800;
}

.section {
    padding-block: 88px;
}

.section__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.045em;
    line-height: 1.25;
}

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

.section-heading--center {
    justify-content: center;
    text-align: center;
}

.benefits {
    position: relative;
    z-index: 5;
    border-block: 1px solid var(--color-border);
    background: #fff;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.benefits article {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px 22px;
    border-left: 1px solid var(--color-border);
}

.benefits article:last-child {
    border-left: 0;
}

.benefits__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 900;
}

.benefits__icon--orange {
    background: #fff0e8;
    color: var(--color-accent);
}

.benefits__icon--purple {
    background: #eee8ff;
    color: var(--color-purple);
}

.benefits__icon--teal {
    background: #e2f7f3;
    color: var(--color-teal);
}

.benefits strong,
.benefits small {
    display: block;
}

.benefits small {
    margin-top: 2px;
    color: var(--color-muted);
}

.section--products {
    background: #fffdfb;
}

.site-main {
    min-height: 60vh;
    padding-block: 58px 78px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px 12px 20px;
    box-shadow: 0 10px 30px rgba(48, 25, 68, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    box-shadow: 0 24px 50px rgba(48, 25, 68, 0.14);
    transform: translateY(-7px);
}

.woocommerce ul.products li.product img {
    margin-bottom: 18px;
    border-radius: calc(var(--radius) - 9px);
    background: #f7f2f9;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0 8px;
    color: var(--color-ink);
    font-size: 1.05rem;
}

.woocommerce ul.products li.product .price {
    padding: 0 8px;
    color: var(--color-purple);
    font-size: 1rem;
    font-weight: 900;
}

.woocommerce ul.products li.product .button {
    width: calc(100% - 16px);
    margin: 12px 8px 0;
    padding-block: 10px;
    text-align: center;
}

.woocommerce span.onsale {
    top: 22px;
    right: 22px;
    left: auto;
    min-width: auto;
    min-height: auto;
    border-radius: 999px;
    background: var(--color-accent);
    padding: 5px 12px;
    line-height: 1.6;
}

.woocommerce div.product div.images img {
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(48, 25, 68, 0.1);
}

.woocommerce div.product .product_title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.045em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--color-purple);
    font-weight: 900;
}

.woocommerce .quantity .qty {
    min-height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce select {
    border: 1px solid #d4d4d8;
    border-radius: 12px;
    padding: 11px 12px;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce .woocommerce-MyAccount-navigation {
    border-color: var(--color-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(48, 25, 68, 0.05);
}

.woocommerce .woocommerce-MyAccount-navigation {
    padding: 12px 20px;
}

.woocommerce .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
}

.woocommerce .woocommerce-MyAccount-content {
    padding: 24px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    border-radius: 14px;
    background: #fff;
}

.how-it-works {
    background:
        radial-gradient(circle at 10% 90%, rgba(15, 157, 138, 0.12), transparent 28%),
        linear-gradient(145deg, #f8f3ff, #fff8f3);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.steps article {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    padding: 30px;
    box-shadow: 0 18px 50px rgba(48, 25, 68, 0.07);
}

.steps article > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--color-purple);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}

.steps article:nth-child(2) > span {
    background: var(--color-accent);
}

.steps article:nth-child(3) > span {
    background: var(--color-teal);
}

.steps h3 {
    margin: 20px 0 7px;
    font-size: 1.2rem;
}

.steps p {
    margin: 0;
    color: var(--color-muted);
}

.order-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    border: 1px solid #f0d8a0;
    border-radius: 20px;
    background: #fff9e9;
    padding: 20px 24px;
    gap: 24px;
}

.order-note > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-note > div > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #ffd970;
    font-weight: 900;
}

.order-note p {
    margin: 0;
    color: #675325;
}

.button--secondary {
    background: var(--color-purple);
    box-shadow: 0 10px 24px rgba(109, 61, 245, 0.2);
    white-space: nowrap;
}

.button--secondary:hover {
    background: var(--color-purple-dark);
}

.site-footer {
    margin-top: 0;
    background: #1f1633;
    color: #fff;
    padding-block: 58px 22px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr;
    gap: 60px;
}

.site-brand--footer {
    margin-bottom: 17px;
}

.site-footer__grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.site-footer__grid strong {
    margin-bottom: 7px;
    color: #fff;
}

.site-footer__grid a:not(.site-brand) {
    color: #d8cfe1;
}

.site-footer__grid a:hover {
    color: #fff;
}

.site-footer p {
    margin: 0;
    color: #c9bed5;
}

.site-footer__bottom {
    margin-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    font-size: 0.82rem;
}

@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr 0.78fr;
        gap: 32px;
    }

    .hero__visual {
        min-height: 440px;
    }

    .site-nav,
    .site-header__inner > .site-actions {
        display: none;
    }

    .site-mobile-menu {
        position: relative;
        display: block;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        padding-block: 12px;
    }

    .site-brand__text {
        font-size: 0.95rem;
    }

    .hero {
        padding-block: 48px 56px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__content {
        text-align: center;
    }

    .eyebrow,
    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        width: min(100%, 480px);
        min-height: 470px;
        margin-inline: auto;
    }

    .benefits__grid,
    .steps,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .benefits article {
        justify-content: flex-start;
        border-bottom: 1px solid var(--color-border);
        border-left: 0;
    }

    .benefits article:last-child {
        border-bottom: 0;
    }

    .section {
        padding-block: 64px;
    }

    .section-heading,
    .order-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__grid {
        gap: 34px;
    }

    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 440px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .hero__visual {
        min-height: 390px;
    }

    .hero__tag--price {
        right: -12px;
    }

    .hero__tag--stock {
        left: -12px;
    }
}
