﻿
:root {
    --pink: #ff4f9a;
    --pink-light: #ffd8e9;
    --pink-soft: #fff0f7;
    --blue: #5ca8ff;
    --blue-light: #d9edff;
    --blue-soft: #eff8ff;
    --purple: #6952c8;
    --text: #343070;
    --muted: #77759a;
    --white: #ffffff;
    --radius-xl: 55px;
    --radius-lg: 35px;
    --radius-md: 25px;
    --shop-primary: var(--pink);
    --shop-primary-dark: #ed3785;
    --shop-primary-light: var(--pink-soft);
    --shop-text: var(--text);
    --shop-muted: var(--muted);
    --shop-border: #f0e4ef;
    --shop-background: #fffafd;
    --shop-white: var(--white);
    --shop-success: #26966a;
    --shop-danger: #e65376;
    --shop-radius: var(--radius-md);
    --shop-shadow: 0 10px 30px rgba(105, 82, 200, 0.07);
}

.shop-page {
    direction: rtl;
    width: 100%;
    max-width: 1440px;
    padding: 30px 24px 70px;
    margin: 0 auto;
    color: var(--shop-text);
    font-family: inherit;
}

    .shop-page *,
    .shop-page *::before,
    .shop-page *::after {
        box-sizing: border-box;
    }

/* =========================
   Page Heading
========================= */

.shop-heading {
    min-height: 190px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: radial-gradient(circle at 85% 15%, rgba(255, 79, 154, 0.13), transparent 32%), radial-gradient(circle at 15% 90%, rgba(92, 168, 255, 0.16), transparent 35%), linear-gradient(120deg, var(--pink-soft), var(--blue-soft));
    border: 1px solid #f5e5f1;
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    overflow: hidden;
}

.shop-heading-content {
    position: relative;
    z-index: 1;
}

.shop-heading h1 {
    margin: 20px 0 12px;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 900;
    color: var(--purple);
    letter-spacing: -0.5px;
}

.shop-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

    .shop-breadcrumb a {
        color: var(--pink);
        text-decoration: none;
        font-weight: 700;
    }

        .shop-breadcrumb a:hover {
            color: var(--purple);
        }

    .shop-breadcrumb i {
        font-size: 10px;
        color: var(--blue);
    }

.shop-heading-icon {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    background: var(--white);
    color: var(--pink);
    font-size: 42px;
    box-shadow: 0 12px 35px rgba(255, 79, 154, 0.12);
    transform: rotate(-5deg);
}

/* =========================
   Search
========================= */

.shop-search-section {
    margin-bottom: 30px;
}

.shop-search-box {
    width: 100%;
    min-height: 62px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #f5e8f2;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: border-color 0.25s, box-shadow 0.25s;
}

    .shop-search-box:focus-within {
        border-color: var(--pink);
        box-shadow: 0 0 0 5px rgba(255, 79, 154, 0.08);
    }

    .shop-search-box > i {
        color: var(--pink);
        font-size: 19px;
    }

    .shop-search-box input {
        flex: 1;
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        font: inherit;
        font-size: 14px;
        color: var(--text);
    }

        .shop-search-box input::placeholder {
            color: #aaa6c0;
        }

.clear-search {
    display: none;
    border: none;
    background: var(--pink-soft);
    color: var(--pink);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

    .clear-search.visible {
        display: block;
    }

/* =========================
   Main Layout
========================= */

.shop-layout {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* =========================
   Sidebar
========================= */

.shop-sidebar {
    background: var(--white);
    border: 2px solid #f7eaf3;
    border-radius: var(--radius-lg);
    padding: 24px 21px;
    box-shadow: var(--shop-shadow);
    min-width: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

    .filter-header > div {
        display: flex;
        align-items: center;
        gap: 11px;
    }

        .filter-header > div > i {
            width: 39px;
            height: 39px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--pink-soft);
            color: var(--pink);
            border-radius: 14px;
            font-size: 17px;
        }

    .filter-header h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 900;
        color: var(--purple);
    }

.clear-filters {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--pink-light);
    background: var(--pink-soft);
    color: var(--pink);
    border-radius: 18px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .clear-filters i {
        margin-left: 5px;
    }

    .clear-filters:hover {
        background: var(--pink-light);
        transform: translateY(-1px);
    }

.filter-section {
    padding: 21px 0;
    border-bottom: 1px solid #f3eaf3;
}

    .filter-section:last-of-type {
        border-bottom: none;
    }

.filter-section-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--purple);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

    .filter-section-title i {
        color: var(--pink);
        font-size: 11px;
        transition: transform 0.2s;
    }

    .filter-section-title[aria-expanded="false"] i {
        transform: rotate(180deg);
    }

.filter-section-content {
    padding-top: 18px;
}

    .filter-section-content.is-collapsed {
        display: none;
    }

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

    .filter-option:last-child {
        margin-bottom: 0;
    }

    .filter-option:hover {
        color: var(--purple);
    }

    .filter-option input {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
        accent-color: var(--pink);
        cursor: pointer;
    }

/* =========================
   Price Filter
========================= */

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-input-group {
    min-width: 0;
}

    .price-input-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 12px;
    }

    .price-input-group input {
        width: 100%;
        min-width: 0;
        height: 43px;
        padding: 0 10px;
        border: 1px solid #eee2f0;
        border-radius: 13px;
        outline: none;
        font: inherit;
        font-size: 12px;
        direction: ltr;
        color: var(--text);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .price-input-group input:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(92, 168, 255, 0.12);
        }

.price-unit {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 10px;
}

.apply-price {
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    border: none;
    background: var(--blue);
    color: var(--white);
    border-radius: 16px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .apply-price:hover {
        background: #388ff0;
        transform: translateY(-2px);
    }

/* =========================
   Color Filter
========================= */

.color-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-filter {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    font-size: 13px;
}

    .color-filter input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.color-swatch {
    width: 25px;
    height: 25px;
    border: 2px solid rgba(52, 48, 112, 0.08);
    border-radius: 50%;
    background: var(--swatch-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
    transition: outline 0.2s, transform 0.2s;
}

    .color-swatch i {
        display: none;
    }

.color-filter input:checked + .color-swatch {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
    transform: scale(1.04);
}

    .color-filter input:checked + .color-swatch i {
        display: block;
    }

.color-name {
    color: var(--muted);
    transition: color 0.2s;
}

.color-filter:hover .color-name {
    color: var(--purple);
}

/* =========================
   Size Filter
========================= */

.size-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-filter {
    cursor: pointer;
}

    .size-filter input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .size-filter span {
        min-width: 40px;
        min-height: 39px;
        padding: 8px 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #e9e4f2;
        border-radius: 14px;
        background: white;
        color: var(--muted);
        font-size: 12px;
        transition: 0.2s;
    }

    .size-filter:hover span {
        border-color: var(--blue);
        color: var(--blue);
    }

    .size-filter input:checked + span {
        border-color: var(--pink);
        background: var(--pink-soft);
        color: var(--pink);
        font-weight: 900;
    }

/* =========================
   Toolbar
========================= */

.shop-toolbar {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.shop-results {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

    .shop-results #resultCount {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--purple);
        background: var(--blue-soft);
        border-radius: 12px;
        font-weight: 900;
        font-size: 14px;
    }

.shop-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--muted);
}

    .sort-wrapper select {
        max-width: 190px;
        height: 43px;
        padding: 0 13px;
        border: 1px solid #eee4f1;
        border-radius: 15px;
        background: white;
        color: var(--text);
        font: inherit;
        font-size: 12px;
        outline: none;
        cursor: pointer;
    }

        .sort-wrapper select:focus {
            border-color: var(--pink);
        }

.view-switcher {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-light);
    border-radius: 15px;
}

.view-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #7ca4d0;
    cursor: pointer;
    transition: 0.2s;
}

    .view-button.active {
        background: var(--white);
        color: var(--purple);
        box-shadow: 0 3px 9px rgba(52, 48, 112, 0.08);
    }

/* =========================
   Active Filters
========================= */

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

    .active-filters:empty {
        display: none;
    }

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-light);
    color: var(--purple);
    border-radius: 15px;
    font-size: 11px;
}

    .active-filter-tag button {
        padding: 0;
        border: none;
        background: transparent;
        color: var(--pink);
        cursor: pointer;
    }

/* =========================
   Product Grid
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #f0e7f1;
    border-radius: var(--radius-lg);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

    .product-card:hover {
        transform: translateY(-5px);
        border-color: var(--pink-light);
        box-shadow: 0 16px 35px rgba(105, 82, 200, 0.10);
    }

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, white 0%, var(--blue-soft) 100%);
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.45s;
    }

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 45px;
}

.product-badge {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 900;
}

    .product-badge.out-of-stock {
        background: #fff0f3;
        color: var(--shop-danger);
        border: 1px solid #ffd7e0;
    }

.product-image-action {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--white);
    color: var(--purple);
    box-shadow: 0 5px 15px rgba(52, 48, 112, 0.08);
    opacity: 0;
    transform: translateY(6px);
    transition: 0.2s;
}

.product-card:hover .product-image-action {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Product Info
========================= */

.product-info {
    padding: 17px;
}

.product-category {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 11px;
    background: var(--pink-soft);
    color: var(--pink);
    font-size: 10px;
    font-weight: 800;
}

.product-name {
    display: block;
    min-height: 47px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 900;
    overflow-wrap: anywhere;
    transition: color 0.2s;
}

    .product-name:hover {
        color: var(--pink);
    }

.product-variants-info {
    min-height: 29px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

    .product-variants-info span {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--muted);
        font-size: 11px;
    }

    .product-variants-info i {
        color: var(--blue);
    }

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px dashed #eae4f0;
}

.product-price {
    min-width: 0;
}

    .product-price strong {
        display: block;
        color: var(--purple);
        font-size: 15px;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

        .product-price strong span {
            color: var(--muted);
            font-size: 11px;
            font-weight: 400;
        }

.price-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.price-unavailable {
    font-size: 12px !important;
    color: var(--muted) !important;
}

.stock-indicator {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
}

    .stock-indicator.available {
        color: var(--shop-success);
    }

    .stock-indicator.unavailable {
        color: var(--shop-danger);
    }

.product-detail-button {
    min-height: 45px;
    margin-top: 17px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--pink-light);
    border-radius: 17px;
    color: var(--pink);
    background: var(--pink-soft);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

    .product-detail-button:hover {
        background: var(--pink);
        color: var(--white);
        border-color: var(--pink);
        transform: translateY(-1px);
    }

/* =========================
   List View
========================= */

.product-grid.list-view {
    grid-template-columns: 1fr;
}

    .product-grid.list-view .product-card {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .product-grid.list-view .product-image {
        height: 100%;
        min-height: 240px;
        aspect-ratio: auto;
    }

    .product-grid.list-view .product-info {
        padding: 23px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-grid.list-view .product-name {
        min-height: auto;
    }

    .product-grid.list-view .product-card-bottom {
        margin-top: 20px;
    }

    .product-grid.list-view .product-detail-button {
        max-width: 230px;
    }

/* =========================
   Empty State
========================= */

.empty-products {
    padding: 75px 20px;
    text-align: center;
    background: radial-gradient(circle at top right, var(--pink-soft), transparent 45%), radial-gradient(circle at bottom left, var(--blue-soft), transparent 45%), var(--white);
    border: 2px dashed #eadff1;
    border-radius: var(--radius-lg);
}

    .empty-products[hidden] {
        display: none !important;
    }

.empty-products-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 30px;
    transform: rotate(-5deg);
}

.empty-products h3 {
    color: var(--purple);
    font-size: 21px;
    margin-bottom: 13px;
    font-weight: 900;
}

.empty-products p {
    max-width: 400px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 2.1;
}

.empty-products button {
    padding: 13px 24px;
    border: none;
    border-radius: 18px;
    background: var(--pink);
    color: white;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .empty-products button:hover {
        background: var(--purple);
        transform: translateY(-2px);
    }

/* =========================
   Mobile Filter Controls
========================= */

.apply-mobile-filters,
.mobile-filter-button,
.mobile-filter-close,
.filter-overlay {
    display: none;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
    }

    .shop-heading {
        border-radius: 42px;
    }
}

@media (max-width: 900px) {
    .shop-page {
        padding: 22px 18px 50px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        z-index: 1002;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(350px, 88vw);
        max-width: 100%;
        overflow-y: auto;
        border-radius: 0 0 0 25px;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        visibility: hidden;
    }

        .shop-sidebar.active {
            transform: translateX(0);
            visibility: visible;
        }

    .filter-overlay {
        position: fixed;
        z-index: 1001;
        inset: 0;
        background: rgba(52, 48, 112, 0.35);
        backdrop-filter: blur(3px);
    }

        .filter-overlay.active {
            display: block;
        }

    .mobile-filter-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 43px;
        padding: 0 15px;
        border: 1px solid var(--blue-light);
        border-radius: 16px;
        background: var(--blue-soft);
        color: var(--purple);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }

    .mobile-filter-close {
        display: block;
        width: 38px;
        height: 38px;
        border: none;
        background: var(--pink-soft);
        color: var(--pink);
        border-radius: 13px;
        cursor: pointer;
    }

    .apply-mobile-filters {
        display: block;
        width: 100%;
        min-height: 48px;
        margin-top: 22px;
        border: none;
        border-radius: 17px;
        background: var(--pink);
        color: white;
        font: inherit;
        font-weight: 900;
        cursor: pointer;
    }
}

@media (max-width: 600px) {
    .shop-page {
        padding: 15px 12px 35px;
    }

    .shop-heading {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 30px;
    }

        .shop-heading h1 {
            font-size: 24px;
        }

        .shop-heading p {
            font-size: 12px;
        }

    .shop-heading-icon {
        width: 58px;
        height: 58px;
        border-radius: 22px;
        font-size: 24px;
    }

    .shop-search-box {
        min-height: 54px;
        padding: 0 15px;
        border-radius: 22px;
    }

    .shop-toolbar {
        align-items: flex-start;
    }

    .shop-toolbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .sort-wrapper {
        gap: 5px;
    }

        .sort-wrapper label {
            display: none;
        }

        .sort-wrapper select {
            max-width: 150px;
            height: 42px;
            padding: 0 9px;
            border-radius: 13px;
        }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .product-card {
        border-radius: 23px;
    }

    .product-info {
        padding: 11px;
    }

    .product-category {
        padding: 5px 8px;
        font-size: 9px;
        border-radius: 9px;
    }

    .product-name {
        font-size: 12px;
        min-height: 44px;
    }

    .product-variants-info {
        gap: 8px;
    }

        .product-variants-info span {
            font-size: 10px;
        }

    .product-card-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .product-price strong {
        font-size: 12px;
    }

    .product-detail-button {
        font-size: 10px;
        min-height: 39px;
        margin-top: 12px;
        padding: 0 5px;
        border-radius: 13px;
    }

    .product-image-action {
        opacity: 1;
        transform: none;
        width: 31px;
        height: 31px;
        left: 8px;
        bottom: 8px;
        border-radius: 12px;
    }

    .product-badge {
        top: 8px;
        right: 8px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .product-grid.list-view .product-card {
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .product-grid.list-view .product-image {
        min-height: 190px;
    }

    .product-grid.list-view .product-info {
        padding: 12px;
    }

    .product-grid.list-view .product-detail-button {
        max-width: none;
    }

    .empty-products {
        padding: 55px 18px;
        border-radius: 27px;
    }
}


/* =========================================
   PRODUCT DETAIL PAGE
   Theme: Pink & Blue
   RTL / Responsive
========================================= */

.product-detail-page {
    --detail-pink: #ff4f9a;
    --detail-pink-dark: #ed3785;
    --detail-pink-light: #fff0f7;
    --detail-pink-border: #ffd8e9;
    --detail-blue: #5ca8ff;
    --detail-blue-light: #eff8ff;
    --detail-blue-border: #d9edff;
    --detail-purple: #6952c8;
    --detail-text: #343070;
    --detail-muted: #77759a;
    --detail-border: #f0e4ef;
    --detail-background: #fffafd;
    --detail-white: #ffffff;
    direction: rtl;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    color: var(--detail-text);
    font-family: inherit;
    box-sizing: border-box;
}

    .product-detail-page *,
    .product-detail-page *::before,
    .product-detail-page *::after {
        box-sizing: border-box;
    }

    .product-detail-page button,
    .product-detail-page input {
        font: inherit;
    }

    .product-detail-page button {
        cursor: pointer;
    }

        .product-detail-page button:disabled {
            cursor: not-allowed;
            opacity: 0.45;
        }

    /* =========================================
   BREADCRUMB
========================================= */

    .product-detail-page .product-breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
        color: var(--detail-muted);
        font-size: 13px;
    }

        .product-detail-page .product-breadcrumb a {
            color: var(--detail-muted);
            text-decoration: none;
            transition: color 0.2s ease;
        }

            .product-detail-page .product-breadcrumb a:hover {
                color: var(--detail-pink);
            }

        .product-detail-page .product-breadcrumb > span:last-child {
            color: var(--detail-text);
            font-weight: 700;
        }

    /* =========================================
   MAIN PRODUCT LAYOUT
========================================= */

    .product-detail-page .product-detail-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 45px;
        margin-bottom: 55px;
    }

    /* =========================================
   PRODUCT GALLERY
========================================= */

    .product-detail-page .product-gallery {
        width: 100%;
        min-width: 0;
    }

    .product-detail-page .product-main-image {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 420px;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        padding: 25px;
        border: 1px solid var(--detail-border);
        border-radius: 35px;
        background: radial-gradient( circle at top right, rgba(255, 216, 233, 0.38), transparent 45% ), linear-gradient( 145deg, #fff7fb, #f4faff );
    }

        .product-detail-page .product-main-image > img {
            display: block;
            width: 100%;
            height: 100%;
            max-height: 520px;
            object-fit: contain;
            transition: transform 0.35s ease;
        }

        .product-detail-page .product-main-image:hover > img {
            transform: scale(1.035);
        }

    .product-detail-page .no-product-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 300px;
        padding: 25px;
        color: var(--detail-muted);
        font-size: 14px;
        text-align: center;
    }

    /* Favorite button */

    .product-detail-page .favorite-button {
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid var(--detail-pink-border);
        border-radius: 50%;
        background: var(--detail-white);
        color: var(--detail-pink);
        font-size: 19px;
        box-shadow: 0 5px 18px rgba(105, 82, 200, 0.08);
        transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

        .product-detail-page .favorite-button:hover {
            background: var(--detail-pink);
            color: var(--detail-white);
            transform: scale(1.06);
        }

    /* Thumbnails */

    .product-detail-page .thumbnail {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 18px;
    }

    .product-detail-page .product-thumbnail {
        display: block;
        width: 78px;
        height: 78px;
        padding: 5px;
        object-fit: contain;
        border: 2px solid var(--detail-border);
        border-radius: 17px;
        background: var(--detail-white);
        cursor: pointer;
        transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

        .product-detail-page .product-thumbnail:hover,
        .product-detail-page .product-thumbnail.active {
            border-color: var(--detail-pink);
            background: var(--detail-pink-light);
            transform: translateY(-2px);
        }

    /* =========================================
   PRODUCT INFORMATION
========================================= */

    .product-detail-page .product-information {
        min-width: 0;
        padding: 10px 0;
    }

    .product-detail-page .product-category {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        margin-bottom: 15px;
        padding: 6px 15px;
        border: 1px solid var(--detail-blue-border);
        border-radius: 30px;
        background: var(--detail-blue-light);
        color: #3985d9;
        font-size: 12px;
        font-weight: 700;
    }

    .product-detail-page .product-title {
        margin: 0 0 17px;
        color: var(--detail-text);
        font-size: clamp(23px, 2.5vw, 34px);
        font-weight: 800;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    /* Rating */

    .product-detail-page .product-rating {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
        font-size: 13px;
    }

    .product-detail-page .rating-stars {
        color: #f6b91a;
        font-size: 19px;
        letter-spacing: 2px;
    }

    .product-detail-page .rating-text {
        color: var(--detail-muted);
    }

    /* Description */

    .product-detail-page .product-description {
        margin-bottom: 25px;
        color: #686584;
        font-size: 14px;
        line-height: 2.2;
        overflow-wrap: anywhere;
    }

        .product-detail-page .product-description p {
            margin: 0;
        }

    /* =========================================
   PRICE
========================================= */

    .product-detail-page .product-price-container {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 28px;
        padding: 20px 22px;
        border: 1px solid var(--detail-pink-border);
        border-radius: 22px;
        background: linear-gradient( 110deg, #fff1f7, #f1f8ff );
    }

    .product-detail-page .product-price-label {
        color: var(--detail-muted);
        font-size: 14px;
    }

    .product-detail-page .product-price {
        color: var(--detail-pink-dark);
        font-size: clamp(25px, 3vw, 34px);
        font-weight: 900;
        line-height: 1.5;
    }

    .product-detail-page .product-currency {
        color: var(--detail-text);
        font-size: 13px;
        font-weight: 700;
    }

    /* =========================================
   PRODUCT OPTIONS
========================================= */

    .product-detail-page .product-option-group {
        margin-bottom: 25px;
    }

        .product-detail-page .product-option-group > label {
            display: block;
            margin-bottom: 14px;
            color: var(--detail-text);
            font-size: 14px;
            font-weight: 800;
        }

    /* Colors */

    .product-detail-page .product-colors {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .product-detail-page .product-color-option {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 43px;
        padding: 7px 12px;
        border: 1px solid var(--detail-border);
        border-radius: 30px;
        background: var(--detail-white);
        color: var(--detail-text);
        font-size: 12px;
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

        .product-detail-page .product-color-option:hover:not(:disabled) {
            border-color: var(--detail-blue);
            background: var(--detail-blue-light);
        }

        .product-detail-page .product-color-option.selected {
            border-color: var(--detail-pink);
            background: var(--detail-pink-light);
            box-shadow: 0 0 0 2px rgba(255, 79, 154, 0.1);
        }

    .product-detail-page .color-circle {
        display: inline-block;
        flex: 0 0 23px;
        width: 23px;
        height: 23px;
        border: 2px solid rgba(52, 48, 112, 0.12);
        border-radius: 50%;
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
    }

    .product-detail-page .color-name {
        white-space: nowrap;
    }

    /* Sizes */

    .product-detail-page .product-sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-detail-page .product-size-option {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 44px;
        padding: 9px 16px;
        border: 1px solid var(--detail-border);
        border-radius: 13px;
        background: var(--detail-white);
        color: var(--detail-text);
        font-size: 13px;
        font-weight: 700;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

        .product-detail-page .product-size-option:hover:not(:disabled) {
            border-color: var(--detail-blue);
            background: var(--detail-blue-light);
        }

        .product-detail-page .product-size-option.selected {
            border-color: var(--detail-pink);
            background: var(--detail-pink);
            color: var(--detail-white);
            box-shadow: 0 5px 15px rgba(255, 79, 154, 0.18);
        }

    /* =========================================
   STOCK STATUS
========================================= */

    .product-detail-page .product-stock-status {
        margin: 5px 0 20px;
        font-size: 13px;
    }

    .product-detail-page .in-stock {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #21865b;
        font-weight: 700;
    }

        .product-detail-page .in-stock i {
            font-size: 17px;
        }

    .product-detail-page .out-of-stock {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #d94870;
        font-weight: 700;
    }

    /* =========================================
   QUANTITY AND ADD TO CART
========================================= */

    .product-detail-page .product-purchase-controls {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 20px;
    }

    .product-detail-page .quantity-control {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        min-width: 145px;
        height: 54px;
        overflow: hidden;
        border: 1px solid var(--detail-border);
        border-radius: 16px;
        background: var(--detail-white);
    }

        .product-detail-page .quantity-control button {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 42px;
            height: 100%;
            padding: 0;
            border: none;
            background: transparent;
            color: var(--detail-purple);
            font-size: 22px;
            transition: background 0.2s ease;
        }

            .product-detail-page .quantity-control button:hover:not(:disabled) {
                background: var(--detail-blue-light);
            }

        .product-detail-page .quantity-control input {
            width: 48px;
            min-width: 0;
            height: 100%;
            padding: 0;
            border: none;
            outline: none;
            background: transparent;
            color: var(--detail-text);
            font-size: 15px;
            font-weight: 800;
            text-align: center;
            appearance: textfield;
            -moz-appearance: textfield;
        }

            .product-detail-page .quantity-control input::-webkit-inner-spin-button,
            .product-detail-page .quantity-control input::-webkit-outer-spin-button {
                margin: 0;
                -webkit-appearance: none;
            }

    .product-detail-page .add-to-cart-button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 220px;
        gap: 10px;
        min-height: 54px;
        padding: 13px 22px;
        border: none;
        border-radius: 16px;
        background: linear-gradient( 110deg, var(--detail-pink), var(--detail-pink-dark) );
        color: var(--detail-white);
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 8px 20px rgba(255, 79, 154, 0.2);
        transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

        .product-detail-page .add-to-cart-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(255, 79, 154, 0.3);
        }

        .product-detail-page .add-to-cart-button:disabled {
            background: #c9c5d4;
            box-shadow: none;
        }

    /* =========================================
   STOCK NOTIFICATION
========================================= */

    .product-detail-page #stockNotification {
        margin-top: 25px;
        padding: 24px;
        border: 1px solid var(--detail-pink-border);
        border-radius: 24px;
        background: linear-gradient( 135deg, #fff4f9, #f2f8ff );
    }

    .product-detail-page .out-of-stock-message {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        color: #d94870;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.9;
    }

        .product-detail-page .out-of-stock-message i {
            font-size: 21px;
        }

    .product-detail-page .stock-notification-description {
        margin: 0 0 18px;
        color: var(--detail-muted);
        font-size: 13px;
        line-height: 2;
    }

    .product-detail-page .stock-notification-input {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
    }

        .product-detail-page .stock-notification-input input {
            flex: 1 1 180px;
            width: 100%;
            min-width: 0;
            min-height: 49px;
            padding: 12px 15px;
            border: 1px solid var(--detail-blue-border);
            border-radius: 13px;
            outline: none;
            background: var(--detail-white);
            color: var(--detail-text);
            font-size: 13px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

            .product-detail-page .stock-notification-input input::placeholder {
                color: #a09db8;
            }

            .product-detail-page .stock-notification-input input:focus {
                border-color: var(--detail-blue);
                box-shadow: 0 0 0 3px rgba(92, 168, 255, 0.12);
            }

        .product-detail-page .stock-notification-input button {
            flex: 1 1 190px;
            min-height: 49px;
            padding: 12px 16px;
            border: none;
            border-radius: 13px;
            background: var(--detail-blue);
            color: var(--detail-white);
            font-size: 13px;
            font-weight: 800;
            transition: background 0.2s ease, transform 0.2s ease;
        }

            .product-detail-page .stock-notification-input button:hover {
                transform: translateY(-1px);
                background: #388fe9;
            }

    /* =========================================
   DESCRIPTION AND SPECIFICATIONS TABS
========================================= */

    .product-detail-page .product-details-tabs {
        overflow: hidden;
        border: 1px solid var(--detail-border);
        border-radius: 28px;
        background: var(--detail-white);
        box-shadow: 0 10px 30px rgba(105, 82, 200, 0.045);
    }

    .product-detail-page .product-tab-buttons {
        display: flex;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-bottom: 1px solid var(--detail-border);
        background: #fff8fc;
    }

    .product-detail-page .product-tab-button {
        position: relative;
        padding: 15px 23px;
        border: 1px solid transparent;
        border-radius: 15px;
        background: transparent;
        color: var(--detail-muted);
        font-size: 14px;
        font-weight: 700;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

        .product-detail-page .product-tab-button:hover {
            color: var(--detail-pink-dark);
            background: var(--detail-pink-light);
        }

        .product-detail-page .product-tab-button.active {
            border-color: var(--detail-pink-border);
            background: var(--detail-white);
            color: var(--detail-pink-dark);
            box-shadow: 0 4px 12px rgba(105, 82, 200, 0.05);
        }

    .product-detail-page .product-tab-content {
        display: none;
        padding: 28px;
        color: #686584;
        font-size: 14px;
        line-height: 2.3;
        overflow-wrap: anywhere;
    }

        .product-detail-page .product-tab-content.active {
            display: block;
        }

        .product-detail-page .product-tab-content p {
            margin: 0;
        }

    /* =========================================
   SPECIFICATIONS TABLE
========================================= */

    .product-detail-page .product-specifications {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid var(--detail-border);
        border-radius: 15px;
        overflow: hidden;
    }

        .product-detail-page .product-specifications th,
        .product-detail-page .product-specifications td {
            padding: 16px 18px;
            border-bottom: 1px solid var(--detail-border);
            text-align: right;
            font-size: 13px;
            line-height: 1.9;
        }

        .product-detail-page .product-specifications th {
            width: 35%;
            background: #fff4f9;
            color: var(--detail-text);
            font-weight: 800;
        }

        .product-detail-page .product-specifications td {
            background: var(--detail-white);
            color: #686584;
        }

        .product-detail-page .product-specifications tr:last-child th,
        .product-detail-page .product-specifications tr:last-child td {
            border-bottom: none;
        }

        .product-detail-page .product-specifications tr:nth-child(even) td {
            background: #f7fbff;
        }

    /* =========================================
   FOCUS ACCESSIBILITY
========================================= */

    .product-detail-page button:focus-visible,
    .product-detail-page input:focus-visible {
        outline: 3px solid rgba(92, 168, 255, 0.5);
        outline-offset: 3px;
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .product-detail-page {
        padding: 25px 18px 45px;
    }

        .product-detail-page .product-detail-container {
            gap: 28px;
        }

        .product-detail-page .product-main-image {
            min-height: 320px;
            padding: 18px;
            border-radius: 27px;
        }

        .product-detail-page .product-purchase-controls {
            gap: 10px;
        }

        .product-detail-page .quantity-control {
            min-width: 130px;
        }

            .product-detail-page .quantity-control button {
                flex-basis: 36px;
            }

        .product-detail-page .add-to-cart-button {
            flex-basis: 180px;
            padding: 12px 15px;
            font-size: 13px;
        }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {
    .product-detail-page {
        padding: 18px 13px 35px;
    }

        .product-detail-page .product-breadcrumb {
            gap: 7px;
            margin-bottom: 20px;
            font-size: 11px;
            line-height: 1.9;
        }

        .product-detail-page .product-detail-container {
            grid-template-columns: minmax(0, 1fr);
            gap: 25px;
            margin-bottom: 35px;
        }

        .product-detail-page .product-main-image {
            min-height: 0;
            aspect-ratio: 1 / 0.9;
            padding: 16px;
            border-radius: 23px;
        }

            .product-detail-page .product-main-image > img {
                max-height: 400px;
            }

        .product-detail-page .favorite-button {
            top: 12px;
            left: 12px;
            width: 40px;
            height: 40px;
            font-size: 17px;
        }

        .product-detail-page .thumbnail {
            gap: 9px;
            margin-top: 12px;
        }

        .product-detail-page .product-thumbnail {
            width: 62px;
            height: 62px;
            border-radius: 13px;
        }

        .product-detail-page .product-information {
            padding: 0;
        }

        .product-detail-page .product-category {
            margin-bottom: 10px;
            font-size: 11px;
        }

        .product-detail-page .product-title {
            margin-bottom: 12px;
            font-size: 24px;
            line-height: 1.8;
        }

        .product-detail-page .product-rating {
            margin-bottom: 16px;
        }

        .product-detail-page .product-description {
            margin-bottom: 20px;
            font-size: 13px;
            line-height: 2.1;
        }

        .product-detail-page .product-price-container {
            gap: 8px;
            margin-bottom: 23px;
            padding: 16px;
            border-radius: 18px;
        }

        .product-detail-page .product-price {
            font-size: 27px;
        }

        .product-detail-page .product-option-group {
            margin-bottom: 21px;
        }

            .product-detail-page .product-option-group > label {
                margin-bottom: 11px;
            }

        .product-detail-page .product-colors {
            gap: 8px;
        }

        .product-detail-page .product-color-option {
            min-height: 40px;
            padding: 6px 10px;
        }

        .product-detail-page .product-size-option {
            min-width: 44px;
            min-height: 41px;
            padding: 8px 13px;
        }

        .product-detail-page .product-purchase-controls {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .product-detail-page .quantity-control {
            width: 145px;
            min-width: 145px;
            height: 49px;
        }

        .product-detail-page .add-to-cart-button {
            width: 100%;
            min-height: 51px;
        }

        .product-detail-page #stockNotification {
            padding: 18px;
            border-radius: 20px;
        }

        .product-detail-page .stock-notification-input {
            flex-direction: column;
        }

            .product-detail-page .stock-notification-input input,
            .product-detail-page .stock-notification-input button {
                flex: auto;
                width: 100%;
            }

        .product-detail-page .product-details-tabs {
            border-radius: 20px;
        }

        .product-detail-page .product-tab-buttons {
            gap: 5px;
            padding: 8px;
        }

        .product-detail-page .product-tab-button {
            flex: 1;
            padding: 12px 8px;
            font-size: 12px;
        }

        .product-detail-page .product-tab-content {
            padding: 19px 15px;
            font-size: 13px;
        }

        .product-detail-page .product-specifications th,
        .product-detail-page .product-specifications td {
            padding: 12px 10px;
            font-size: 12px;
        }

        .product-detail-page .product-specifications th {
            width: 42%;
        }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .product-detail-page {
        padding-right: 10px;
        padding-left: 10px;
    }

        .product-detail-page .product-title {
            font-size: 21px;
        }

        .product-detail-page .product-price {
            font-size: 24px;
        }

        .product-detail-page .product-color-option {
            gap: 6px;
            padding: 6px 8px;
        }

        .product-detail-page .color-name {
            font-size: 11px;
        }

        .product-detail-page .product-tab-button {
            font-size: 11px;
        }
}

.product-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

    .product-title-container .product-title {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.5;
        color: #222;
    }

.product-code {
    display: inline-flex;
    align-items: center;
    direction: rtl;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

/* موبایل */
@media (max-width: 576px) {
    .product-title-container {
        align-items: flex-start;
        gap: 8px;
    }

        .product-title-container .product-title {
            font-size: 1.4rem;
        }

    .product-code {
        font-size: 0.8rem;
        padding: 5px 9px;
    }
}

```css
.all-categories-page {
    --pink: #ff4f9a;
    --pink-light: #ffd8e9;
    --pink-soft: #fff0f7;
    --blue: #5ca8ff;
    --blue-light: #d9edff;
    --blue-soft: #eff8ff;
    --purple: #6952c8;
    --purple-soft: #f1efff;
    --text: #343070;
    --muted: #77759a;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 24px 65px;
    color: var(--text);
    font-family: inherit;
}

.all-categories-page *,
.all-categories-page *::before,
.all-categories-page *::after {
    box-sizing: border-box;
}

.all-categories-page a {
    text-decoration: none;
}

.all-categories-page button,
.all-categories-page input {
    font-family: inherit;
}

/* Breadcrumb */

.categories-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
}

    .categories-breadcrumb a {
        color: var(--purple);
        transition: color .2s ease;
    }

        .categories-breadcrumb a:hover {
            color: var(--pink);
        }

    .categories-breadcrumb i {
        font-size: 10px;
    }

    .categories-breadcrumb span {
        color: var(--text);
        font-weight: 700;
    }

/* Header */

.categories-page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 290px;
    overflow: hidden;
    padding: 40px 50px;
    margin-bottom: 45px;
    border: 1px solid #f2e6f4;
    border-radius: 42px;
    background: linear-gradient( 115deg, #fff0f7 0%, #fff9fc 43%, #eff8ff 100% );
}

.categories-header-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.categories-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
}

    .categories-eyebrow::before {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--pink);
        content: "";
    }

.categories-header-content h1 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.6;
}

    .categories-header-content h1 span {
        color: var(--pink);
    }

.categories-header-content > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 2.1;
}

.categories-header-stats {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 17px;
    background: rgba(255, 255, 255, .7);
}

.categories-stat-icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--purple);
    background: var(--purple-soft);
}

.categories-header-stats > span:last-child {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
}

.categories-header-stats strong {
    color: var(--text);
    font-size: 15px;
}

/* Header decoration */

.categories-header-art {
    position: relative;
    width: 280px;
    height: 230px;
    flex: 0 0 280px;
    margin-left: 15px;
}

.header-art-circle {
    position: absolute;
    border-radius: 50%;
}

.circle-pink {
    top: 20px;
    right: 40px;
    width: 175px;
    height: 175px;
    background: linear-gradient( 145deg, #ffd8e9, #ffb7d8 );
}

.circle-blue {
    right: 120px;
    bottom: 5px;
    width: 110px;
    height: 110px;
    border: 13px solid rgba(92, 168, 255, .2);
    background: #d9edff;
}

.header-art-center {
    position: absolute;
    top: 65px;
    right: 90px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid rgba(255, 255, 255, .8);
    border-radius: 35px 45px 35px 45px;
    color: var(--purple);
    background: #fff;
    box-shadow: 0 15px 35px rgba(105, 82, 200, .12);
    font-size: 37px;
    transform: rotate(-8deg);
}

.header-art-icon {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,.8);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(52, 48, 112, .08);
}

.icon-one {
    top: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    color: var(--pink);
    background: #fff;
    transform: rotate(12deg);
}

.icon-two {
    right: 20px;
    bottom: 25px;
    width: 55px;
    height: 55px;
    color: var(--blue);
    background: #fff;
    transform: rotate(-10deg);
}

.icon-three {
    top: 35px;
    left: 15px;
    width: 43px;
    height: 43px;
    color: #f1ae35;
    background: #fff;
    transform: rotate(-12deg);
}

/* Toolbar */

.categories-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.categories-toolbar-title h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.categories-toolbar-title p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.categories-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 380px);
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #ebe6f4;
    border-radius: 17px;
    color: var(--muted);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

    .categories-search:focus-within {
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgba(92, 168, 255, .1);
    }

    .categories-search > i {
        color: var(--blue);
        font-size: 16px;
    }

    .categories-search input {
        width: 100%;
        min-width: 0;
        padding: 12px 0;
        border: none;
        outline: none;
        color: var(--text);
        background: transparent;
        font-size: 12px;
    }

        .categories-search input::placeholder {
            color: #aaa5c1;
        }

    .categories-search button {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 9px;
        color: var(--muted);
        background: #f5f3fa;
        cursor: pointer;
    }

        .categories-search button[hidden] {
            display: none !important;
        }

/* Results heading */

.categories-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

    .categories-results-heading > div {
        display: flex;
        align-items: center;
        gap: 11px;
    }

.categories-heading-dot {
    width: 10px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient( to bottom, var(--pink), var(--blue) );
}

.categories-results-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
}

.categories-results-heading > span {
    padding: 8px 13px;
    border-radius: 11px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 11px;
}

/* Category grid */

.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 25px 20px;
}

.all-category-card {
    --category-bg: var(--pink-soft);
    --category-accent: var(--pink);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 20px 15px 17px;
    border: 1px solid transparent;
    border-radius: 34px 27px 38px 27px;
    color: var(--text);
    background: var(--category-bg);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .all-category-card:nth-child(3n + 1) {
        border-radius: 65% 50% 42% 38% / 42% 38% 55% 58%;
    }

    .all-category-card:nth-child(3n + 2) {
        border-radius: 35px 55px 30px 48px;
    }

    .all-category-card:nth-child(3n) {
        border-radius: 52% 42% 50% 38% / 35% 48% 42% 60%;
    }

    .all-category-card.pink-bg {
        --category-bg: #fff0f7;
        --category-accent: #ff4f9a;
    }

    .all-category-card.blue-bg {
        --category-bg: #edf7ff;
        --category-accent: #5ca8ff;
    }

    .all-category-card.purple-bg {
        --category-bg: #f1efff;
        --category-accent: #6952c8;
    }

    .all-category-card:hover {
        z-index: 2;
        border-color: rgba(105, 82, 200, .12);
        box-shadow: 0 16px 35px rgba(65, 48, 115, .1);
        color: var(--text);
        transform: translateY(-7px) rotate(-1deg);
    }

.all-category-image {
    position: relative;
    width: min(100%, 145px);
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 18px;
    border: 5px solid rgba(255, 255, 255, .8);
    border-radius: 48% 45% 50% 42%;
    background: rgba(255, 255, 255, .6);
}

    .all-category-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease;
    }

.all-category-card:hover .all-category-image img {
    transform: scale(1.08);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--category-accent);
    font-size: 35px;
}

.category-card-arrow {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 12px;
    color: #fff;
    background: var(--category-accent);
    font-size: 11px;
    opacity: 0;
    transform: translateY(6px);
    transition: .25s ease;
}

.all-category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

.all-category-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: center;
}

    .all-category-info > strong {
        max-width: 100%;
        color: var(--text);
        font-size: 14px;
        font-weight: 900;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    .all-category-info > span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--category-accent);
        font-size: 10px;
        font-weight: 800;
    }

/* Empty states */

.categories-search-empty,
.categories-empty {
    padding: 65px 20px;
    border: 1px dashed #e3dcef;
    border-radius: 30px;
    background: #fcfbff;
    text-align: center;
}

    .categories-search-empty[hidden] {
        display: none !important;
    }

.search-empty-icon,
.categories-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 27px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 30px;
}

.categories-search-empty h3,
.categories-empty h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.categories-search-empty p,
.categories-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.reset-category-search {
    margin-top: 20px;
    padding: 11px 17px;
    border: none;
    border-radius: 13px;
    color: #fff;
    background: var(--purple);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

/* Bottom banner */

.categories-bottom-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 55px;
    padding: 27px 30px;
    border: 1px solid #e9e4f7;
    border-radius: 27px;
    background: linear-gradient( 105deg, #fff0f7, #f4f9ff );
}

.bottom-banner-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--pink);
    background: #fff;
    font-size: 24px;
}

.bottom-banner-text {
    flex: 1;
    min-width: 0;
}

    .bottom-banner-text h3 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 900;
    }

    .bottom-banner-text p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.9;
    }

.bottom-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient( 110deg, var(--pink), #ff7ab5 );
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease;
}

    .bottom-banner-button:hover {
        transform: translateY(-2px);
    }

/* Responsive */

@media (max-width: 1100px) {
    .all-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .categories-page-header {
        padding: 35px;
    }

    .categories-header-art {
        transform: scale(.85);
        transform-origin: center left;
        margin-right: -20px;
    }

    .all-category-image {
        width: min(100%, 130px);
    }
}

@media (max-width: 800px) {
    .all-categories-page {
        padding: 24px 18px 45px;
    }

    .categories-page-header {
        min-height: 250px;
        padding: 30px;
        border-radius: 30px;
    }

    .categories-header-art {
        width: 200px;
        flex-basis: 200px;
        transform: scale(.72);
        margin-left: -20px;
        margin-right: -35px;
    }

    .categories-header-content h1 {
        font-size: 30px;
    }

    .all-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .all-category-card {
        padding: 17px 12px;
    }

    .all-category-image {
        width: min(100%, 125px);
    }

    .categories-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .categories-search {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .all-categories-page {
        padding: 20px 13px 35px;
    }

    .categories-breadcrumb {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .categories-page-header {
        min-height: auto;
        padding: 28px 22px;
        margin-bottom: 35px;
        border-radius: 26px;
    }

    .categories-header-art {
        display: none;
    }

    .categories-header-content h1 {
        font-size: 27px;
    }

    .categories-header-content > p {
        font-size: 12px;
    }

    .categories-header-stats {
        margin-top: 20px;
    }

    .categories-toolbar-title h2 {
        font-size: 18px;
    }

    .categories-results-heading h2 {
        font-size: 16px;
    }

    .all-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }

    .all-category-card {
        padding: 15px 10px;
        border-radius: 24px;
    }

    .all-category-image {
        width: min(100%, 125px);
        margin-bottom: 12px;
        border-width: 4px;
    }

    .all-category-info > strong {
        font-size: 12px;
    }

    .all-category-info > span {
        font-size: 9px;
    }

    .category-card-arrow {
        width: 27px;
        height: 27px;
        opacity: 1;
        transform: none;
    }

    .categories-bottom-banner {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 35px;
        padding: 20px;
        border-radius: 23px;
    }

    .bottom-banner-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
        font-size: 20px;
    }

    .bottom-banner-text {
        flex-basis: calc(100% - 65px);
    }

        .bottom-banner-text h3 {
            font-size: 14px;
        }

        .bottom-banner-text p {
            font-size: 11px;
        }

    .bottom-banner-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .all-categories-page *,
    .all-categories-page *::before,
    .all-categories-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

```
