:root {
    --background: #F7F1E7;
    --surface: #FFFCF6;
    --surface-dark: #E8DCC9;
    --border: #D8C5AE;

    --text: #38291F;
    --muted: #78685A;

    --accent: #A94F36;
    --accent-dark: #813B29;

    --danger: #A33D32;

    --white: #FFFFFF;

    --brick: #A94F36;
    --mustard: #D5A62E;
    --wood: #684832;
    --olive: #737744;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Tahoma,
        Arial,
        sans-serif;
    direction: rtl;
}

button {
    cursor: pointer;
}


/* =====================================================
   SITE HEADER
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: var(--background);

    border-bottom:
        1px solid var(--border);
}

.header-inner {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    min-height: 78px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.brand {
    flex-shrink: 0;

    font-size: 24px;

    font-weight: 700;

    color: var(--accent);
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

.main-nav a {
    color: var(--text);

    font-size: 14px;

    transition:
        color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}

.header-actions button {
    border: 1px solid var(--border);

    background: transparent;

    color: var(--text);

    padding:
        9px 13px;

    border-radius: 8px;

    font-size: 13px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.header-actions button:hover {
    background: var(--surface);

    border-color: var(--surface-dark);
}


/* =====================================================
   HOME
===================================================== */

main {
    width: 100%;
}

.home-section {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin:
        35px auto;
}

.hero-box {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 18px;

    background: var(--surface);

    border:
        1px solid var(--border);
}

.slider-track {
    display: flex;

    width: 100%;

    height: 100%;

    transition:
        transform 0.45s ease;
}

.slider-slide {
    flex: 0 0 100%;

    width: 100%;

}

.hero-placeholder {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--surface-dark)
        );
}

.hero-placeholder-content {
    width: min(
        420px,
        70%
    );

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 16px;
}

.placeholder-line {
    height: 18px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.55);
}

.placeholder-line.large {
    width: 100%;

    height: 30px;
}

.placeholder-line.medium {
    width: 70%;
}

.placeholder-button {
    width: 130px;

    height: 42px;

    margin-top: 8px;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.55);
}

.slider-button {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.8);

    color: var(--text);

    font-size: 28px;

    line-height: 1;

    z-index: 3;
}

.slider-prev {
    right: 18px;
}

.slider-next {
    left: 18px;
}

.slider-dots {
    position: absolute;

    bottom: 18px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    gap: 7px;

    z-index: 3;
}

.slider-dot {
    width: 9px;

    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.65);
}

.slider-dot.active {
    background: var(--accent);
}

.section-heading {
    margin-bottom: 20px;
}

.heading-placeholder {
    width: 180px;

    height: 26px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.category-placeholder {
    height: 170px;

    border-radius: 14px;

    background: var(--surface);

    border:
        1px solid var(--border);
}

.product-grid,
.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.product-placeholder {
    overflow: hidden;

    border-radius: 14px;

    background: var(--surface);

    border:
        1px solid var(--border);
}

.product-image {
    width: 100%;

    aspect-ratio: 3 / 4;

    background: var(--surface-dark);
}

.product-info {
    padding: 15px;
}

.product-line {
    width: 80%;

    height: 14px;

    border-radius: 20px;

    background: var(--surface-dark);

    margin-bottom: 10px;
}

.product-line.short {
    width: 45%;

    margin-bottom: 0;
}

.homepage-placeholder {
    min-height: 220px;

    padding: 30px;

    border-radius: 16px;

    background: var(--surface);

    border:
        1px solid var(--border);

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 15px;
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    margin-top: 70px;

    border-top:
        1px solid var(--border);

    background: var(--surface);
}

.footer-inner {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        45px 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-placeholder {
    width: 80%;

    height: 16px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.footer-placeholder.short {
    width: 50%;
}

.footer-bottom {
    height: 50px;

    border-top:
        1px solid var(--border);
}


/* =====================================================
   PRODUCTS PAGE
===================================================== */

#products-page {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin:
        45px auto;
}

.products-page-header {
    margin-bottom: 30px;
}

.products-title-box h1 {
    margin: 0;

    font-size: 30px;
}

.products-description-box {
    width: min(
        550px,
        100%
    );

    height: 16px;

    margin-top: 15px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.products-layout {
    display: grid;

    grid-template-columns:
        250px 1fr;

    gap: 30px;

    align-items: start;
}

.products-filters {
    padding: 20px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 14px;
}

.filter-header {
    margin-bottom: 20px;
}

.filter-header h2 {
    margin: 0;

    font-size: 18px;
}

.filter-block {
    padding:
        18px 0;

    border-top:
        1px solid var(--border);
}

.filter-block h3 {
    margin:
        0 0 12px;

    font-size: 14px;
}

.products-content {
    min-width: 0;
}

.products-toolbar {
    min-height: 48px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

#products-count {
    min-width: 40px;

    min-height: 20px;
}

#products-sort {
    min-width: 150px;

    padding:
        9px 12px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: var(--white);

    color: var(--text);
}

.product-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-info {
    padding: 15px;
}

.product-card-title {
    min-height: 18px;

    font-size: 14px;
}

.product-card-price {
    min-height: 18px;

    margin-top: 10px;

    font-size: 13px;

    color: var(--muted);
}

.products-empty {
    min-height: 250px;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border:
        1px dashed var(--border);

    border-radius: 14px;

    background: var(--surface);
}

.empty-icon {
    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: var(--surface-dark);
}

.empty-title {
    width: 150px;

    height: 18px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.empty-text {
    width: 220px;

    height: 13px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.products-pagination {
    margin-top: 25px;

    min-height: 30px;
}


/* =====================================================
   PRODUCT DETAIL
===================================================== */

#product-page {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin:
        50px auto;
}

.product-detail {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    gap: 45px;

    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.product-main-image {
    width: 100%;

    aspect-ratio: 3 / 4;

    border-radius: 16px;

    background: var(--surface);

    border:
        1px solid var(--border);

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;
}
/* Product detail main image */

#product-main-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#product-main-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Product detail thumbnails */

.product-thumbnail {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-thumbnails {
    display: flex;

    gap: 10px;

    margin-top: 12px;

    overflow-x: auto;
}

.product-thumbnail {
    flex: 0 0 76px;

    width: 76px;

    height: 95px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: var(--surface-dark);

    cursor: pointer;
}

.product-details {
    padding-top: 10px;
}

.product-detail-name {
    min-height: 30px;

    font-size: 26px;

    font-weight: 700;
}

.product-detail-code {
    min-height: 18px;

    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;
}

.product-detail-description {
    min-height: 80px;

    margin-top: 25px;

    line-height: 2;

    white-space: pre-wrap;
}

.product-option {
    margin-top: 28px;
}

.product-option h3 {
    margin:
        0 0 12px;

    font-size: 15px;
}

.product-options {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.product-option-item {
    min-width: 55px;

    padding:
        9px 14px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: var(--white);

    color: var(--text);
}

.product-option-item:disabled {
    cursor: not-allowed;

    opacity: 0.35;
}

.product-detail-price {
    min-height: 30px;

    margin-top: 30px;

    font-size: 22px;

    font-weight: 700;

    color: var(--accent);
}

.add-to-cart {
    width: 100%;

    min-height: 50px;

    margin-top: 20px;

    border: none;

    border-radius: 9px;

    background: var(--accent);

    color: var(--white);

    font-size: 15px;
}

.add-to-cart:hover {
    background: var(--accent-dark);
}


/* =====================================================
   ADMIN PANEL
===================================================== */

#admin-panel {
    min-height: 100vh;

    background: var(--background);
}

.admin-header {
    position: sticky;

    top: 0;

    z-index: 100;

    background: var(--background);

    border-bottom:
        1px solid var(--border);
}

.admin-header-inner {
    width: min(
        1400px,
        calc(100% - 40px)
    );

    min-height: 76px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.admin-title {
    font-size: 18px;

    font-weight: 700;
}

.admin-site-link {
    padding:
        9px 14px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    font-size: 13px;

    background: var(--surface);
}

.admin-layout {
    width: min(
        1400px,
        calc(100% - 40px)
    );

    min-height:
        calc(100vh - 76px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        230px 1fr;

    gap: 30px;
}

.admin-sidebar {
    padding:
        30px 0;
}

.admin-nav {
    position: sticky;

    top: 105px;

    display: flex;

    flex-direction: column;

    gap: 6px;
}

.admin-nav-item {
    padding:
        13px 15px;

    border-radius: 9px;

    color: var(--text);

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.admin-nav-item:hover {
    background: var(--surface);
}

.admin-nav-item.active {
    background: var(--accent);

    color: var(--white);
}

.admin-content {
    min-width: 0;

    padding:
        35px 0 60px;
}

.admin-page-header {
    margin-bottom: 30px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}

.admin-page-header h1 {
    margin: 0;

    font-size: 28px;
}

.admin-page-description {
    width: 300px;

    height: 14px;

    margin-top: 12px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.admin-dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.admin-stat-card {
    min-height: 125px;

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.admin-stat-title {
    font-size: 14px;

    color: var(--muted);
}

.admin-stat-value {
    min-height: 28px;

    font-size: 24px;

    font-weight: 700;

    color: var(--accent);
}

.admin-dashboard-section {
    margin-top: 30px;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);
}

.admin-section-header {
    margin-bottom: 18px;
}

.admin-section-header h2 {
    margin: 0;

    font-size: 17px;
}

.admin-quick-actions {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.admin-quick-action {
    min-height: 90px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: var(--background);

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.admin-quick-action:hover {
    border-color: var(--accent);

    background: var(--white);
}

.admin-system-status {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.admin-status-row {
    min-height: 52px;

    padding:
        10px 0;

    border-bottom:
        1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    font-size: 14px;
}

.admin-status-row:last-child {
    border-bottom: none;
}

.admin-status-value {
    min-width: 70px;

    min-height: 18px;

    border-radius: 20px;

    background: var(--surface-dark);
}


/* =====================================================
   ADMIN PRODUCT MANAGEMENT
===================================================== */

.admin-product-toolbar {
    display: grid;

    grid-template-columns:
        1fr 180px;

    gap: 12px;

    margin-bottom: 20px;
}

.admin-search-box input,
.admin-product-filter select {
    width: 100%;

    min-height: 44px;

    padding:
        10px 13px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: var(--white);

    color: var(--text);

    outline: none;
}

.admin-search-box input:focus,
.admin-product-filter select:focus {
    border-color: var(--accent);
}

.admin-products-list {
    width: 100%;
}

.admin-empty-state {
    min-height: 220px;

    border:
        1px dashed var(--border);

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background: var(--background);
}

.admin-empty-icon {
    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: var(--surface-dark);
}

.admin-empty-title {
    width: 150px;

    height: 18px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.admin-empty-text {
    width: 230px;

    height: 13px;

    border-radius: 20px;

    background: var(--surface-dark);
}

.admin-form-section {
    padding:
        25px 0;

    border-top:
        1px solid var(--border);
}

.admin-form-section:first-child {
    border-top: none;
}

.admin-form-section-title {
    margin-bottom: 20px;

    font-size: 16px;

    font-weight: 700;
}

.admin-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.admin-form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;
}

.admin-form-field label {
    font-size: 13px;

    color: var(--text);
}

.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea {
    width: 100%;

    padding:
        11px 13px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: var(--white);

    color: var(--text);

    outline: none;

    font-size: 14px;
}

.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus {
    border-color: var(--accent);
}

.admin-form-field textarea {
    resize: vertical;

    min-height: 150px;

    line-height: 1.9;
}

.admin-check-list {
    min-height: 55px;

    padding: 15px;

    border:
        1px dashed var(--border);

    border-radius: 9px;

    background: var(--background);

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.admin-media-upload {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.admin-media-preview {
    min-height: 150px;

    padding: 15px;

    border:
        1px dashed var(--border);

    border-radius: 10px;

    background: var(--background);
}

.admin-dynamic-list {
    min-height: 50px;

    margin-bottom: 12px;

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.admin-availability-wrapper {
    width: 100%;

    overflow-x: auto;
}

.admin-availability-matrix {
    min-width: 500px;

    min-height: 150px;

    border:
        1px dashed var(--border);

    border-radius: 10px;

    background: var(--background);
}

.admin-form-actions {
    padding-top: 25px;

    border-top:
        1px solid var(--border);

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button {
    min-height: 44px;

    padding:
        10px 18px;

    border-radius: 8px;

    font-size: 13px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.admin-primary-button {
    border:
        1px solid var(--accent);

    background: var(--accent);

    color: var(--white);
}

.admin-primary-button:hover {
    background: var(--accent-dark);

    border-color: var(--accent-dark);
}

.admin-secondary-button {
    border:
        1px solid var(--border);

    background: var(--white);

    color: var(--text);
}

.admin-secondary-button:hover {
    background: var(--surface-dark);
}

.admin-danger-button {
    border:
        1px solid var(--danger);

    background: transparent;

    color: var(--danger);
}

.admin-danger-button:hover {
    background: var(--danger);

    color: var(--white);
}

.new-products-box {
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    border:
        1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}


.new-products-box .product-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}


.new-products-box .product-card {
    width: 100%;
    min-width: 0;
}


.new-products-box .product-placeholder {
    width: 100%;
}


.new-products-more {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}


.new-products-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    text-decoration: none;
}


@media (max-width: 700px) {

    .new-products-box {
        padding: 14px;
    }

    .new-products-box .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}


@media (max-width: 480px) {

    .new-products-box .product-grid {
        grid-template-columns:
            1fr;
    }

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .header-inner {
        gap: 15px;
    }

    .main-nav {
        gap: 15px;
    }

    .header-actions button {
        padding:
            8px 10px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .product-grid,
    .products-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns:
            1fr;
    }

    .admin-layout {
        grid-template-columns:
            190px 1fr;
    }

    .admin-dashboard-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .admin-quick-actions {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .header-inner {
        width:
            calc(100% - 24px);

        min-height: auto;

        padding:
            14px 0;

        flex-wrap: wrap;
    }

    .brand {
        font-size: 20px;
    }

    .main-nav {
        width: 100%;

        order: 3;

        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 3px;
    }

    .header-actions {
        margin-right: auto;
    }

    .header-actions button {
        font-size: 11px;

        padding:
            7px 8px;
    }

    .home-section,
    #products-page,
    #product-page {
        width:
            calc(100% - 24px);

        margin-top: 25px;

        margin-bottom: 25px;
    }

    .hero-box {
        height: 360px;

        border-radius: 12px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .category-placeholder {
        height: 130px;
    }

    .product-grid,
    .products-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .products-layout {
        grid-template-columns:
            1fr;
    }

    .products-filters {
        order: 1;
    }

    .products-content {
        order: 2;
    }

    .products-toolbar {
        flex-wrap: wrap;
    }

    .footer-inner {
        width:
            calc(100% - 24px);

        grid-template-columns:
            1fr;

        gap: 20px;
    }

    .product-detail-name {
        font-size: 22px;
    }

    .admin-header-inner {
        width:
            calc(100% - 24px);

        min-height: 65px;
    }

    .admin-title {
        font-size: 16px;
    }

    .admin-site-link {
        padding:
            8px 10px;

        font-size: 11px;
    }

    .admin-layout {
        width:
            calc(100% - 24px);

        display: block;
    }

    .admin-sidebar {
        padding:
            15px 0;
    }

    .admin-nav {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 6px;
    }

    .admin-nav-item {
        padding:
            11px 8px;

        text-align: center;

        font-size: 12px;
    }

    .admin-content {
        padding-top: 15px;
    }

    .admin-page-header {
        align-items: stretch;

        flex-direction: column;
    }

    .admin-page-header h1 {
        font-size: 23px;
    }

    .admin-page-description {
        width: 70%;
    }

    .admin-dashboard-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .admin-stat-card {
        min-height: 105px;

        padding: 15px;
    }

    .admin-stat-title {
        font-size: 12px;
    }

    .admin-stat-value {
        font-size: 20px;
    }

    .admin-dashboard-section {
        padding: 15px;
    }

    .admin-quick-actions {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }

    .admin-quick-action {
        min-height: 70px;

        padding: 10px;

        font-size: 12px;
    }

    .admin-status-row {
        font-size: 12px;
    }

    .admin-product-toolbar {
        grid-template-columns:
            1fr;
    }

    .admin-form-grid {
        grid-template-columns:
            1fr;
    }

    .admin-form-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .admin-primary-button,
    .admin-secondary-button,
    .admin-danger-button {
        width: 100%;
    }
}


@media (max-width: 430px) {

    .header-actions {
        width: 100%;

        margin-right: 0;

        justify-content: space-between;
    }

    .header-actions button {
        flex: 1;
    }

    .category-grid,
    .product-grid,
    .products-grid {
        grid-template-columns:
            1fr;
    }

    .admin-dashboard-grid {
        grid-template-columns:
            1fr;
    }

    .admin-quick-actions {
        grid-template-columns:
            1fr;
    }

    .admin-nav {
        grid-template-columns:
            1fr;
    }
}
/* حالت انتخاب‌شده رنگ و سایز محصول */

.product-option-button {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-option-button.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 0 2px rgba(143, 77, 56, 0.18);
}

.product-option-button:hover:not(:disabled) {
    border-color: var(--accent);
}

.product-option-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.admin-order-details {
margin-top: 24px;
padding: 24px;
border: 1px solid #e5e5e5;
border-radius: 12px;
background: #ffffff;
}

.admin-order-details .admin-section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
}

.admin-order-details .admin-section-header h2 {
margin: 0;
}

#admin-order-details-close {
border: 1px solid #ddd;
background: #fff;
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
}

.admin-order-detail-box {
margin-bottom: 20px;
padding: 18px;
border: 1px solid #eeeeee;
border-radius: 10px;
background: #fafafa;
line-height: 2;
}

.admin-order-detail-box {
margin-bottom: 0;
}

.admin-order-detail-box h3 {
margin-top: 0;
margin-bottom: 14px;
font-size: 17px;
}

.admin-order-detail-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
padding: 16px 0;
border-bottom: 1px solid #e5e5e5;
}

.admin-order-detail-item {
padding-top: 0;
}

.admin-order-detail-item {
padding-bottom: 0;
border-bottom: none;
}

.admin-order-detail-item strong {
display: block;
margin-bottom: 6px;
}

.admin-order-detail-item > div {
text-align: left;
white-space: nowrap;
}

@media (max-width: 700px) {

.admin-order-details {
    padding: 16px;
}

.admin-order-detail-item {
    flex-direction: column;
    gap: 10px;
}

.admin-order-detail-item > div:last-child {
    text-align: right;
}

.admin-order-details .admin-section-header {
    align-items: flex-start;
}

}

/* =========================
   Homepage Hero
========================= */

.hero-box {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    direction: rtl;
    transition: transform 0.4s ease;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.hero-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-box {
    width: min(100%, 520px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f1f1;
}

.hero-text {
    width: 100%;
    max-width: 520px;
    padding: 24px 16px 48px;
    text-align: center;
}

.hero-text h1 {
    margin: 0 0 10px;
    font-size: 28px;
}

.hero-text p {
    margin: 0 0 20px;
    line-height: 1.8;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    text-decoration: none;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dot.active {
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 700px) {

    .hero-image-box {
        width: 100%;
    }
    .hero-slide-content {
    width: 100%;
}

.hero-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.hero-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    width: 100%;
    padding: 20px 16px 52px;
    box-sizing: border-box;
}

.hero-text h1 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.6;
}

.hero-text p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.8;
}

.hero-text del {
    margin-right: 8px;
}

.hero-button {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
}

    .hero-text {
        padding: 20px 16px 44px;
    }

    .hero-text h1 {
        font-size: 23px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-button {
        width: 100%;
    }

    .slider-button {
        display: none;
    }

}
.home-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface);
    border:
        1px solid var(--border);
}


.home-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.admin-home-banner-preview {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
}


.admin-home-banner-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Customer discount price */

.customer-price-discount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.customer-original-price {
    position: relative;
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85em;
}

.customer-original-price::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: #dc2626;
    transform: rotate(-3deg);
}

.customer-final-price {
    font-weight: 700;
}

.customer-discount-percent {
    color: #dc2626;
    font-size: 0.85em;
}

.customer-discount-amount {
    color: #dc2626;
    font-size: 0.8em;
    font-weight: 500;
}
/* =========================================
   CUSTOMER THEME — PAAEEZJAMEH
   فقط صفحات فروشگاه
========================================= */

/* رنگ پس‌زمینه صفحات مشتری */
body:has(.site-header) {
    background: #F7F1E7;
    color: #38291F;
}

/* هدر آجری */
body:has(.site-header) .site-header {
    background: #A94F36;
    border-bottom: 1px solid #813B29;
}

body:has(.site-header) .brand,
body:has(.site-header) .main-nav a,
body:has(.site-header) .header-actions button {
    color: #FFFFFF;
}

body:has(.site-header) .main-nav a:hover {
    color: #F3D58A;
}

body:has(.site-header) .header-actions button {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

body:has(.site-header) .header-actions button:hover {
    background: #813B29;
    border-color: #F3D58A;
}

/* کارت‌ها و بخش‌های محتوا */
body:has(.site-header) .product-card,
body:has(.site-header) .products-filters,
body:has(.site-header) .products-empty,
body:has(.site-header) .hero-box,
body:has(.site-header) .homepage-placeholder,
body:has(.site-header) .new-products-box {
    background: #FFFCF6;
    border-color: #D8C5AE;
}

/* تصاویر و پس‌زمینه‌های فرعی */
body:has(.site-header) .product-card-image,
body:has(.site-header) .product-image,
body:has(.site-header) .category-placeholder {
    background-color: #E8DCC9;
}

/* تیترها و متن محصولات */
body:has(.site-header) .products-title-box h1,
body:has(.site-header) .section-heading,
body:has(.site-header) .product-card-title,
body:has(.site-header) .product-detail-name,
body:has(.site-header) .product-option h3 {
    color: #684832;
}

/* قیمت محصول */
body:has(.site-header) .product-card-price {
    color: #78685A;
}

body:has(.site-header) .product-detail-price {
    color: #A94F36;
}

/* دکمه خرید: آجری */
body:has(.site-header) .add-to-cart,
body:has(.site-header) .hero-button,
body:has(.site-header) .new-products-more a {
    background: #A94F36;
    color: #FFFFFF;
    border: 1px solid #A94F36;
    border-radius: 9px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body:has(.site-header) .add-to-الاغ:hover,
body:has(.site-header) .hero-button:hover,
body:has(.site-header) .new-products-more a:hover {
    background: #813B29;
    border-color: #813B29;
}

/* انتخاب رنگ و سایز */
body:has(.site-header) .product-option-button.selected {
    background: #737744;
    border-color: #737744;
    color: #FFFFFF;
}

body:has(.site-header) .product-option-button:hover:not(:disabled) {
    border-color: #737744;
}

/* پس‌زمینه بنر و فوتر */
body:has(.site-header) .home-banner {
    background: #FFFCF6;
    border-color: #D8C5AE;
}

body:has(.site-header) .site-footer {
    background: #684832;
    border-color: #684832;
    color: #FFFFFF;
}

body:has(.site-header) .site-footer a {
    color: #F7F1E7;
}

body:has(.site-header) .site-footer a:hover {
    color: #F3D58A;
}

/* رنگ متن قیمت قبلی در محصولات تخفیف‌دار */
body:has(.site-header) .customer-original-price {
    color: #78685A;
}

/* رنگ تأکیدی تخفیف */
body:has(.site-header) .customer-discount-percent,
body:has(.site-header) .customer-discount-amount {
    color: #A94F36;
}

/* رنگ خردلی برای نشانگر اسلایدر فعال */
body:has(.site-header) .slider-dot.active {
    background: #D5A62E;
}
/* =========================================
   CUSTOMER THEME — MUSTARD & OLIVE
========================================= */

/* نشان تخفیف: خردلی */
body:has(.site-header) .customer-discount-percent {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    background: #D5A62E;
    color: #38291F;
}

/* مبلغ تخفیف: زیتونی */
body:has(.site-header) .customer-discount-amount {
    color: #737744;
    font-weight: 700;
}

/* دکمه‌های فرعی: زیتونی */
body:has(.site-header) .product-option-button:not(.selected) {
    border-color: #737744;
}

body:has(.site-header) .product-option-button:hover:not(:disabled) {
    background: #737744;
    color: #FFFFFF;
}

/* دکمه بیشتر: زیتونی */
body:has(.site-header) .new-products-more a {
    background: #737744;
    border-color: #737744;
    color: #FFFFFF;
}

body:has(.site-header) .new-products-more a:hover {
    background: #5D6137;
    border-color: #5D6137;
}

/* نشانگر اسلایدر: زرد خردلی */
body:has(.site-header) .slider-dot.active {
    background: #D5A62E;
}

/* حاشیه تأکیدی کارت هنگام رفتن نشانگر روی آن */
body:has(.site-header) .product-card:hover {
    border-color: #737744;
}

/* تیترهای بخش‌ها با تأکید خردلی */
body:has(.site-header) .section-heading {
    border-right: 4px solid #D5A62E;
    padding-right: 12px;
}
/* چیدمان هدر فروشگاه */
body:has(.site-header) .header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}

/* لینک‌های منو سمت راست */
body:has(.site-header) .main-nav {
    order: 1;
    margin-left: auto;
    margin-right: 0;
}

/* نام فروشگاه وسط */
body:has(.site-header) .brand {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* دکمه‌های هدر سمت چپ */
body:has(.site-header) .header-actions {
    order: 3;
    margin-right: 0;
    margin-left: 0;
}

/* فونت سراسری سایت پاییز جامه */
body,
body * {
    font-family: "B Nazanin", "BNazanin", serif;
}
/* =====================================
   نوار پایین موبایل - پاییزجامه
===================================== */

@media (max-width: 700px) {
    body:has(.site-header) {
        padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }

    /* هدر موبایل: فقط نام فروشگاه */
    body:has(.site-header) .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    body:has(.site-header) .site-header .header-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        min-height: 62px;
        padding: 10px 16px;
    }

    

    body:has(.site-header) .site-header .main-nav,
    body:has(.site-header) .site-header .header-actions {
        display: none !important;
    }

    /* نوار ثابت پایین صفحه */
    body:has(.site-header) .mobile-bottom-nav {
        position: fixed;
        z-index: 2000;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        direction: rtl;
        align-items: center;
        min-height: 66px;
        padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
        background: #fffdf9;
        border-top: 1px solid #e8dfd2;
        box-shadow: 0 -4px 18px rgba(50, 35, 20, 0.08);
    }

    body:has(.site-header) .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        color: #74685d;
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
        -webkit-tap-highlight-color: transparent;
    }

    body:has(.site-header) .mobile-bottom-nav .nav-emoji {
        font-size: 21px;
        line-height: 1.2;
    }

    body:has(.site-header) .mobile-bottom-nav a.active {
        color: #873f32;
        font-weight: 800;
    }

    body:has(.site-header) .mobile-bottom-nav a.active .nav-emoji {
        transform: scale(1.12);
    }
}

/* نوار پایین فقط در موبایل نمایش داده شود */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 700px) {
    body:has(.site-header) .mobile-bottom-nav a {
        color: #9a8178;
        font-weight: 500;
        gap: 5px;
    }

    body:has(.site-header) .mobile-bottom-nav .nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #873f32;
        line-height: 0;
    }

    body:has(.site-header) .mobile-bottom-nav .nav-icon svg {
        display: block;
        width: 23px;
        height: 23px;
    }

    body:has(.site-header) .mobile-bottom-nav a.active {
        color: #873f32;
        font-weight: 800;
    }

    body:has(.site-header) .mobile-bottom-nav a.active .nav-icon svg {
        stroke-width: 2.2;
    }

    body:has(.site-header) .mobile-bottom-nav a.active .nav-icon {
        transform: translateY(-1px);
    }
}
/* هدر سفید و لوگوی تصویری پاییزجامه */
body:has(.site-header) .site-header {
    background: #ffffff !important;
}

body:has(.site-header) .site-header .header-inner {
    background: #ffffff !important;
}
/* وسط‌چین کردن لوگوی هدر دسکتاپ */
@media (min-width: 768px) {
    body:has(.site-header) .site-header {
        position: relative;
    }

    body:has(.site-header) .site-header .brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    max-height: 60px;
    margin: 0 !important;
    padding: 0;
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 10;
    overflow: hidden;
}

body:has(.site-header) .site-header .brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}
}
body:has(.site-header) .site-header .brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* نمایش هدر در موبایل */
@media (max-width: 700px) {
    body:has(.site-header) .site-header .header-inner {
        min-height: auto !important;
        padding: 8px 16px !important;
        justify-content: center !important;
    }

    body:has(.site-header) .site-header .brand {
        width: min(100%, 340px);
    }
}

/* نمایش هدر در دسکتاپ */
@media (min-width: 701px) {
    body:has(.site-header) .site-header .brand {
        width: min(100%, 450px);
    }
}
/* =====================================
   نوار پایین - نمایش در همه اندازه‌ها
===================================== */

.mobile-bottom-nav {
    display: grid !important;
}

/* دسکتاپ */
@media (min-width: 701px) {
    body:has(.site-header) {
        padding-bottom: 82px !important;
    }

    body:has(.site-header) .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2000;

        display: grid !important;
        grid-template-columns: repeat(5, 150px);
        justify-content: center;
        align-items: center;

        min-height: 70px;
        padding: 6px 20px;

        direction: rtl;

        background: #ffffff;
        border-top: 1px solid #e8dfd2;
        box-shadow: 0 -4px 18px rgba(50, 35, 20, 0.08);
    }

    body:has(.site-header) .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        color: #9a8178;
        text-decoration: none;

        font-size: 12px;
        font-weight: 500;
        line-height: 1.3;
    }

    body:has(.site-header) .mobile-bottom-nav .nav-icon svg {
        width: 23px;
        height: 23px;
    }

    body:has(.site-header) .mobile-bottom-nav a.active {
        color: #873f32;
        font-weight: 800;
    }

    body:has(.site-header) .mobile-bottom-nav a.active .nav-icon svg {
        stroke-width: 2.2;
    }
}
/* =====================================
   چیدمان کارت‌های محصولات صفحه اصلی
===================================== */

/* دسکتاپ: 4 کارت در هر ردیف */
@media (min-width: 701px) {
    body:has(.site-header) .product-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

/* موبایل: 2 کارت در هر ردیف */
@media (max-width: 700px) {
    body:has(.site-header) .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body:has(.site-header) .product-grid > * {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* دکمه‌های بیشتر در صفحه اصلی */
body:has(.site-header) .new-products-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px auto 8px;
    text-align: center;
}

body:has(.site-header) .new-products-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 7px 22px;
    border: 1px solid #873f32;
    border-radius: 8px;
    background: #ffffff;
    color: #873f32;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

body:has(.site-header) .new-products-more a:hover {
    background: #873f32;
    color: #ffffff;
}
.category-image-preview-wrapper {
    width: 180px;
    max-width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 10px;
}

.category-image-preview-wrapper[hidden] {
    display: none;
}

.category-image-preview {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.admin-form-help {
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}
/* کارت‌های دسته‌بندی صفحه اصلی */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* کادر مربعی با گوشه‌های گرد */
.category-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #f2f2f2;
    text-decoration: none;
}

/* عکس داخل کادر */
.category-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* نوار عنوان روی عکس */
.category-card-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* نمایش ۵ دسته در هر ردیف در صفحه‌های بزرگ */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }

    .category-card-title {
        font-size: 14px;
        padding: 10px 6px;
    }
}
/* اندازه پیش‌نمایش عکس‌های محصول در پنل مدیریت */
#admin-product-form img,
#admin-product-images-preview img,
.product-image-preview {
    max-width: 120px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
/* نمایش دو محصول در هر ردیف در موبایل */
@media (max-width: 767px) {
    #products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    #products-grid .product-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #products-grid .product-card img {
        max-width: 100%;
    }
}
/* مخفی کردن گزینه‌های هدر در نسخه دسکتاپ */
@media (min-width: 768px) {
    .header-actions {
        display: none !important;
    }
}
/* هماهنگ کردن عرض لوگو با عرض هدر در موبایل */
@media (max-width: 767px) {
    body:has(.site-header) .site-header .brand {
        position: static !important;
        transform: none !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
        overflow: hidden !important;
    }

    body:has(.site-header) .site-header .brand-logo {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
}
/* نمایش دائمی منوی اصلی در هدر دسکتاپ */
@media (min-width: 768px) {
    body:has(.site-header) .site-header .main-nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    body:has(.site-header) .site-header .main-nav a {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
/* =====================================================
   MY PROFILE - PAEIZJAME
===================================================== */

.profile-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    color: var(--text);
}

/* کارت‌های اصلی */

.profile-layout .sidebar,
.profile-layout .content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    color: var(--text);
    box-shadow: 0 4px 14px rgba(56, 41, 31, 0.06);
}

/* نوار بالایی کارت‌ها */

.profile-layout .sidebar {
    border-top: 4px solid var(--wood);
}

.profile-layout .content {
    border-top: 4px solid var(--accent);
    min-width: 0;
}

/* اطلاعات کاربر */

.profile-layout .user-summary {
    text-align: center;
    padding: 10px 0 22px;
    border-bottom: 1px solid var(--border);
}

.profile-layout .avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 2px solid var(--border);
    color: var(--accent-dark);
    font-size: 28px;
}

.profile-layout .user-summary h2 {
    color: var(--text);
    margin: 0 0 8px;
}

.profile-layout .user-summary p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

/* منوی پروفایل */

.profile-layout .menu {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.profile-layout .menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 9px;
    color: var(--text);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.profile-layout .menu a:hover {
    background: var(--surface-dark);
    color: var(--accent-dark);
}

.profile-layout .menu a.active {
    background: var(--accent);
    color: var(--white);
}

.profile-layout .menu a.logout {
    color: var(--danger);
    margin-top: 8px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 9px 9px;
}

.profile-layout .menu a.logout:hover {
    background: var(--danger);
    color: var(--white);
}

/* عنوان و توضیحات */

.profile-layout .content h2 {
    color: var(--wood);
    margin-top: 0;
}

.profile-layout .content-description {
    color: var(--muted);
    line-height: 1.9;
}

/* کادر اطلاعات */

.profile-layout .info-box {
    padding: 18px;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--text);
    line-height: 2;
}

.profile-layout .info-box strong {
    color: var(--accent-dark);
}

/* حالت خالی سفارش‌ها و علاقه‌مندی‌ها */

.profile-layout .empty-state {
    padding: 30px 16px;
    margin-top: 16px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

/* دکمه‌های داخل پروفایل */

.profile-layout button,
.profile-layout .profile-button {
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-layout button:hover,
.profile-layout .profile-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* نمایش در موبایل */

@media (max-width: 700px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-layout .sidebar,
    .profile-layout .content {
        padding: 16px;
    }

    .profile-layout .menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-layout .menu a {
        padding: 11px 6px;
        text-align: center;
        font-size: 12px;
    }

    .profile-layout .menu a.logout {
        margin-top: 0;
    }
}
/* اندازه عکس محصولات در سبد خرید */
#cart-items img {
    width: 120px;
    height: 120px;
    max-width: 120px;
    object-fit: cover;
    border-radius: 8px;
}