/* --- Layout --- */
.orders-container {
    font-family: var(--font-body);
    /*background-color: #fff;*/
    /*background-color: #f8f8f6;*/
    color: var(--text-main);
    padding: 40px 20px;
    --accent-color: #f2724c;
    --text-main: #1a1a1a;
    --text-muted: #828282;
    --bg-placeholder: #f4f4f4;
    --font-heading: "Advent Pro", sans-serif;
    --font-body: "Inter", sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    /* Увеличили расстояние между сайдбаром и контентом до 100px */
    grid-template-columns: 200px 1fr;
    column-gap: 100px;
}

.heading {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-family: "Advent Pro", sans-serif;
}
.wcs-grid-products {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /*gap: 2px;*/
    padding: 0;
    margin: 0;
}
.heading span {
    padding-left: 4px;
    color: var(--accent-orange);
}
.om-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.om-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 300;
    box-sizing: border-box;
}

.om-btn:hover {
    opacity: 0.8;
}

.om-btn--outline {
    background-color: transparent;
    border: 1px solid var(--om-accent);
    color: var(--om-accent);
    width: 100%;
    max-width: 290px;
    justify-content: space-between; /* Текст слева, стрелка справа */
}

.om-btn--primary {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    font-weight: 300;
    width: 100%;
    max-width: 240px;
    justify-content: space-between; /* Текст слева, стрелка справа */
}

.om-btn__icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    margin-left: 10px;
}
/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nav-main,
.nav-secondary {
    list-style: none;
    text-align: right;
}

.nav-main li {
    margin-bottom: 15px;
}
.nav-main a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-main a.active {
    position: relative;
    margin-right: 1.5rem;
    color: var(--text-main);
}

.nav-main a.active::after {
    content: "";
    position: absolute;

    right: -45px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-color);
}

.nav-secondary li {
    margin-bottom: 12px;
}
.nav-secondary a {
    color: black;
    text-decoration: none;
    /*color: var(--text-muted);*/
    font-weight: 300;
    font-size: 14px;
}

/* --- Main Content --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-placeholder);
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.section-title::after {
    content: "↗";
    font-size: 16px;
    color: var(--accent-color);
}

/* --- Grid (Теперь обе секции используют 3 колонки) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    margin-bottom: 70px;
}

/* --- Card Style --- */
.card {
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-placeholder);
    margin-bottom: 15px;
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    font-family: var(--font-heading);
}

.card-title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    height: 36px;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.btn-cart {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #f46036;
    border-radius: 8px;
    color: #f46036;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cart:hover {
    background: var(--accent-color);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container {
        column-gap: 40px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        text-align: left;
        margin-bottom: 40px;
    }
    .nav-main,
    .nav-secondary {
        text-align: left;
    }
    .nav-main a.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
.profile-form {
    width: 360px;
    padding: 32px 0;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 20px;
}

.info-block {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d9d9d9;
    flex-shrink: 0;
}

.fields {
    flex: 1;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.field label span {
    color: #ff5a1f;
}

.field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #000;
    border-radius: 8px;
    background: transparent;
    box-sizing: border-box;
}

.field input::placeholder {
    color: #9a9a9a;
}

.section {
    margin-bottom: 28px;
}

.submit-btn {
    width: 100%;
    height: 44px;
    background: #ff6a3d;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.pf-module-container {
    /*--pf-bg: #f9f8f3;*/
    --pf-bg: white;
    --pf-accent: #e6744d;
    --pf-border: #000000;
    --pf-placeholder: #b0b0b0;
    --pf-max-width: 440px; /* Ширина колонки с полями */

    width: 100%;
    display: flex;
    /*justify-content: center;*/
    /*padding: 20px;*/
    box-sizing: border-box;
}

.pf-main-layout {
    display: flex;
    flex-wrap: wrap; /* Чтобы на мобильных аватар уходил вверх */
    /*gap: 40px;*/
    /*gap: 20px;*/
    width: 100%;
    max-width: 500px; /* Общая ширина всего блока */
    justify-content: center;
}

/* Аватар */
.pf-avatar-aside {
    flex: 0 0 120px;
    padding-top: 75px; /* Выравнивание под заголовок */
}

.pf-avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контентная часть */
.pf-content-aside {
    flex: 1 1 300px;
    max-width: var(--pf-max-width);
}

.pf-title {
    font-family: "Advent Pro", sans-serif;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    margin: 0 0 30px 0;
    color: #000;
}

.pf-mt-50 {
    margin-top: 50px;
}

.pf-input-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Поля ввода */
.pf-field {
    position: relative;
    width: 100%;
}

.pf-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: var(--pf-bg);
    padding: 0 8px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    z-index: 2;
}

.pf-label span {
    color: var(--pf-accent);
}

.pf-input {
    width: 100%;
    height: 58px;
    border: 2px solid var(--pf-border);
    border-radius: 15px;
    background: transparent;
    padding: 0 20px;
    font-size: 18px;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
    outline: none;
}

.pf-input::placeholder {
    color: var(--pf-placeholder);
}

/* Кнопка */
.pf-submit-btn {
    width: 100%;
    height: 60px;
    background-color: var(--pf-accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    margin-top: 40px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pf-submit-btn:hover {
    opacity: 0.9;
}

/* Адаптивность для узких экранов */
@media (max-width: 600px) {
    .pf-avatar-aside {
        padding-top: 0;
        display: flex;
        justify-content: center;
        flex: 1 1 100%;
    }
    .pf-main-layout {
        gap: 20px;
    }
    .pf-title {
        text-align: center;
    }
}

.order-module-container {
    --bg-color: #f8f8f6;
    --accent-orange: #f46036;
    --status-yellow: #ffcc00;
    --status-green: #0cc42b;
    --status-red: #e55a33;
    --text-main: #000000;
    --text-gray: #888888;
    box-sizing: border-box;

    width: 100%;
    max-width: 720px;
    font-family: "Inter", sans-serif;
    color: var(--text-main);
}

/* Заголовки / Табы */
.om-header-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.om-tab {
    flex: 1;
    text-align: center;
    font-family: "Advent Pro", sans-serif;
    font-size: 48px;
    font-weight: 600;
    padding-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.om-tab.active {
    color: var(--text-main);
}

.om-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-orange);
}

/* Фильтры и управление */
.om-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.om-filter-trigger,
.om-sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Карточка заказа */
.om-order-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Растягиваем, чтобы низ колонок совпал */
    padding: 25px 15px;
    margin-bottom: 20px;
    min-height: 160px;
    border: 1px solid var(--bg-color);
    border-radius: 10px;
}
.om-order-card:hover {
    border: 1px solid #f46036;
}

/* Левая колонка: Статус и Дата */
.om-col-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Статус сверху, Дата снизу */
    flex: 0 0 300px;
}

.om-status-label {
    display: inline-block;
    width: 160px;
    padding: 8px 0;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.om-status-label.yellow {
    background-color: var(--status-yellow);
}
.om-status-label.green {
    background-color: var(--status-green);
}
.om-status-label.red {
    background-color: var(--status-red);
}

.om-id-number {
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 4px;
}

.om-date-value {
    font-family: "Advent Pro", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

/* Правая часть: Группа картинок + Цена */
.om-col-right-group {
    display: flex;
    align-items: flex-end; /* Все элементы (картинки и цена) выровнены по низу */
    gap: 40px;
    margin-left: auto;
}

.om-image-previews {
    display: flex;
    gap: 12px;
}

.om-img-box {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    background-color: #e0e0e0;
    overflow: hidden;
    position: relative;
}

.om-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.om-img-box.more-overlay::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Блок цены */
.om-price-block {
    font-family: "Advent Pro", sans-serif;
    min-width: 110px;
    text-align: left;
}

.om-price-label {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
    font-weight: 400;
}

.om-price-amount {
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.1;
}

/* Адаптивность */
@media (max-width: 920px) {
    /* Уменьшаем картинки, если места мало, но все еще держим строку */
    .om-img-box {
        width: 55px;
        height: 55px;
    }
    .om-date-value {
        font-size: 20px;
    }
    .om-price-amount {
        font-size: 22px;
    }
}
@media (max-width: 768px) {
    .om-order-card {
        flex-direction: column;
        min-height: auto;
        gap: 20px;
        padding: 15px 0; /* Уменьшенные отступы в адаптере */
    }
    .om-col-info {
        flex: 1;
        gap: 15px;
    }
    .om-col-right-group {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .om-tab {
        font-size: 32px;
    }
}
