/* ============================================================
   WOOCOMMERCE — ОБЩИЕ СТИЛИ
   ============================================================ */

/* ============================================
   1. КАТАЛОГ / СЕТКА ТОВАРОВ
   ============================================ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
    background: #fff !important;
    border-radius: var(--fc-radius) !important;
    box-shadow: var(--fc-shadow) !important;
    overflow: hidden !important;
    transition: transform .3s, box-shadow .3s !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    float: none !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--fc-shadow-hover) !important;
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    background: #fff !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--fc-font-head) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    padding: 16px 20px 8px !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: flex-start !important;
}

.woocommerce ul.products li.product .price {
    padding: 0 20px 16px !important;
    margin: 0 !important;
    font-family: var(--fc-font-head) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--fc-navy) !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.woocommerce ul.products li.product .button {
    margin: auto 20px 20px !important;
    width: calc(100% - 40px) !important;
    text-align: center !important;
    padding: 12px 20px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: background .2s, transform .2s !important;
    box-sizing: border-box !important;
    border: none !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--fc-red) !important;
    transform: translateY(-2px) !important;
}

/* Убираем мусорные псевдоэлементы */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.fc-shop-content ul.products::before,
.fc-shop-content ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.first,
.woocommerce ul.products li.last {
    clear: none !important;
}

.woocommerce ul.products li.product:empty {
    display: none !important;
}

/* Бейдж скидки */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    z-index: 3;
    min-height: auto !important;
    min-width: auto !important;
    height: auto !important;
    width: auto !important;
    background: var(--fc-red) !important;
    color: #fff !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product .onsale::before,
.woocommerce ul.products li.product .onsale::after {
    display: none !important;
}

/* ============================================
   2. КАТАЛОГ — ЛЕЙАУТ И САЙДБАР
   ============================================ */
.fc-shop-wrap {
    padding: 40px 0 80px;
}

.fc-shop-layout {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 40px !important;
    margin-top: 24px !important;
    align-items: start;
}

.fc-shop-sidebar {
    min-width: 0;
    width: 100%;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.fc-shop-sidebar__title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fc-red);
    display: inline-block;
}

.fc-shop-content {
    min-width: 0;
}

/* Аккордеон категорий */
.fc-cat-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-cat-accordion__item {
    border-bottom: 1px solid var(--fc-border);
}

.fc-cat-accordion__item:last-child {
    border-bottom: none;
}

.fc-cat-accordion__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fc-cat-accordion__link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-family: var(--fc-font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--fc-navy);
    text-decoration: none;
    transition: color .2s;
}

.fc-cat-accordion__link:hover,
.fc-cat-accordion__item.is-active .fc-cat-accordion__link {
    color: var(--fc-red);
}

.fc-cat-accordion__count {
    font-size: 12px;
    color: var(--fc-gray);
    font-weight: 500;
    margin-left: 6px;
}

.fc-cat-accordion__toggle {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fc-bg);
    border: none;
    border-radius: 50%;
    color: var(--fc-navy);
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    margin-left: 8px;
}

.fc-cat-accordion__toggle:hover {
    background: var(--fc-navy);
    color: #fff;
}

.fc-cat-accordion__item.is-open .fc-cat-accordion__toggle {
    background: var(--fc-red);
    color: #fff;
    transform: rotate(45deg);
}

.fc-cat-accordion__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.fc-cat-accordion__item.is-open .fc-cat-accordion__sub {
    max-height: 400px;
}

.fc-cat-accordion__sub a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--fc-gray);
    text-decoration: none;
    transition: color .2s;
}

.fc-cat-accordion__sub a:hover {
    color: var(--fc-red);
}

/* Тулбар */
.fc-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--fc-bg);
    border-radius: var(--fc-radius);
    flex-wrap: wrap;
}

.fc-shop-toolbar .woocommerce-result-count {
    margin: 0 !important;
    color: var(--fc-gray);
    font-size: 14px;
}

.fc-shop-toolbar .woocommerce-ordering {
    margin: 0 !important;
}

.fc-shop-toolbar .woocommerce-ordering select {
    padding: 10px 16px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--fc-navy);
    cursor: pointer;
}

/* ============================================
   3. ПАГИНАЦИЯ
   ============================================ */
.woocommerce nav.woocommerce-pagination {
    margin-top: 56px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    display: inline-flex !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px !important;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--fc-border) !important;
    color: var(--fc-navy);
    font-family: var(--fc-font-head);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s;
    box-sizing: border-box;
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current {
    background: var(--fc-navy);
    color: #fff;
    border-color: var(--fc-navy) !important;
}

/* ============================================
   4. КАРТОЧКА ТОВАРА
   ============================================ */
.fc-product {
    padding: 40px 0 80px;
}

.fc-product__top {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

/* Галерея */
.fc-gallery__main {
    background: #fff;
    border-radius: var(--fc-radius);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fc-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.fc-gallery__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
}

.fc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fc-gallery__thumb:hover,
.fc-gallery__thumb.is-active {
    border-color: var(--fc-red);
}

/* Информация */
.fc-product__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--fc-navy);
    margin: 0 0 16px;
}

.fc-product__price {
    font-family: var(--fc-font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--fc-red);
    margin-bottom: 24px;
}

.fc-product__excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--fc-text);
    margin-bottom: 24px;
}

/* Срок изготовления */
.fc-product__term {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--fc-bg);
    border-radius: var(--fc-radius);
    padding: 18px 20px;
    margin-bottom: 28px;
    border-left: 4px solid var(--fc-red);
}

.fc-product__term-icon {
    font-size: 22px;
    line-height: 1;
}

.fc-product__term strong {
    display: block;
    color: var(--fc-navy);
    margin-bottom: 4px;
}

.fc-product__term-note {
    display: block;
    font-size: 13px;
    color: var(--fc-gray);
    margin-top: 4px;
}

/* Кнопки связи */
.fc-product__contacts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.fc-product__contacts .fc-btn {
    padding: 12px 24px;
    font-size: 14px;
}

.fc-product .product_meta {
    font-size: 13px;
    color: var(--fc-gray);
    padding-top: 20px;
    border-top: 1px solid var(--fc-border);
}

.fc-product .product_meta a {
    color: var(--fc-navy);
}

/* ============================================
   5. ВАРИАЦИИ ТОВАРА
   ============================================ */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 8px;
}

.woocommerce div.product form.cart .variations {
    flex: 1 0 100% !important;
    margin-bottom: 16px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.woocommerce div.product form.cart .variations tr {
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--fc-border) !important;
}

.woocommerce div.product form.cart .variations tr:last-child {
    border-bottom: none !important;
}

.woocommerce div.product form.cart .variations th.label,
.woocommerce div.product form.cart .variations label {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--fc-navy) !important;
    text-align: left !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .variations td.value {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    padding: 14px 44px 14px 18px !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A2A5E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    color: var(--fc-navy) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .variations_button {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 8px !important;
}

.woocommerce div.product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 80px !important;
    height: 52px !important;
    text-align: center !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--fc-navy) !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    flex: 1 1 auto !important;
    min-width: 200px !important;
    height: 52px !important;
    padding: 0 32px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: background .2s, transform .2s !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 52px !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover:not(.disabled) {
    background: var(--fc-red) !important;
    transform: translateY(-2px) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
    background: #B0B7C3 !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
}

/* ============================================
   6. ВКЛАДКИ ТОВАРА
   ============================================ */
.fc-tabs {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    overflow: hidden;
}

.fc-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--fc-border);
    background: var(--fc-bg);
    overflow-x: auto;
}

.fc-tabs__btn {
    flex: 0 0 auto;
    padding: 16px 28px;
    background: transparent;
    border: none;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--fc-navy);
    cursor: pointer;
    position: relative;
    transition: all .2s;
    white-space: nowrap;
}

.fc-tabs__btn:hover {
    background: rgba(10, 42, 94, .06);
    color: var(--fc-navy);
}

.fc-tabs__btn.is-active {
    background: #fff;
    color: var(--fc-red);
}

.fc-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--fc-red);
}

.fc-tabs__panel {
    display: none;
    padding: 40px 44px;
    animation: fc-fade-in .3s ease;
}

.fc-tabs__panel.is-active {
    display: block;
}

@keyframes fc-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fc-tabs__panel h2 {
    font-size: 1.6rem;
    margin: 0 0 24px;
    color: var(--fc-navy);
}

.fc-tabs__panel h3 {
    font-size: 1.2rem;
    margin: 32px 0 16px;
    color: var(--fc-navy);
}

.fc-tabs__panel p {
    line-height: 1.7;
    margin: 0 0 16px;
    color: var(--fc-text);
}

.fc-tabs__panel ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.fc-tabs__panel li {
    margin-bottom: 6px;
    line-height: 1.6;
    color: var(--fc-text);
}

/* Таблица материалов */
.fc-materials-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 24px 0 !important;
    border-radius: var(--fc-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 1px var(--fc-border) !important;
}

.fc-materials-table th {
    background: var(--fc-navy) !important;
    color: #fff !important;
    text-align: left !important;
    padding: 16px 24px !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.fc-materials-table td {
    padding: 18px 24px !important;
    border-top: 1px solid var(--fc-border) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    vertical-align: top !important;
}

.fc-materials-table tr:nth-child(even) td {
    background: var(--fc-bg) !important;
}

.fc-materials-table td:first-child {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    font-size: 15px !important;
    width: 25% !important;
    white-space: nowrap !important;
}

.fc-materials-table td:last-child {
    width: 75% !important;
}

/* ============================================
   7. ПОХОЖИЕ ТОВАРЫ
   ============================================ */
.related.products {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--fc-border);
    clear: both;
}

.related.products > h2 {
    font-size: 1.4rem;
    margin: 0 0 24px;
    color: var(--fc-navy);
}

.related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 16px !important;
    grid-template-columns: none !important;
    padding: 4px 4px 20px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.related.products ul.products::before,
.related.products ul.products::after {
    display: none !important;
}

.related.products ul.products li.product {
    flex: 0 0 calc(25% - 12px) !important;
    min-width: 220px !important;
    max-width: 260px !important;
    width: auto !important;
    margin: 0 !important;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.related.products ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    box-sizing: border-box;
    margin: 0 !important;
    border-radius: 0 !important;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    padding: 12px 16px 6px !important;
    line-height: 1.35;
}

.related.products ul.products li.product .price {
    font-size: 15px !important;
    padding: 0 16px 12px !important;
    margin-top: auto !important;
}

.related.products ul.products li.product .button {
    margin: 0 16px 16px !important;
    width: calc(100% - 32px) !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
}

/* ============================================
   8. КОРЗИНА
   ============================================ */
.fc-page-wrap { padding: 40px 0 80px; }
.fc-cart-layout { display: block; }
.fc-cart-main { margin-bottom: 32px; }
.fc-cart-side { display: flex; justify-content: center; width: 100%; }

.woocommerce-cart .woocommerce { padding: 40px 0 80px; }

.woocommerce-cart table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    overflow: hidden;
    margin-bottom: 32px;
    width: 100%;
}

.woocommerce-cart table.shop_table th {
    background: var(--fc-bg);
    color: var(--fc-navy);
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 18px 20px;
    border: none;
    text-align: left;
}

.woocommerce-cart table.shop_table td {
    padding: 20px;
    border: none;
    border-top: 1px solid var(--fc-border);
    vertical-align: middle;
    font-size: 15px;
}

.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid var(--fc-border);
}

.woocommerce-cart table.shop_table .product-name a {
    font-family: var(--fc-font-head);
    font-weight: 700;
    color: var(--fc-navy);
    text-decoration: none;
    font-size: 15px;
}

.woocommerce-cart .quantity input.qty {
    width: 70px;
    height: 44px;
    text-align: center;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    padding: 0 8px;
}

.woocommerce-cart table.shop_table .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--fc-bg);
    color: var(--fc-gray) !important;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    background: var(--fc-red);
    color: #fff !important;
}

.woocommerce-cart .coupon {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.woocommerce-cart .coupon input[type="text"] {
    padding: 12px 18px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    min-width: 200px;
}

.woocommerce-cart .coupon button,
.woocommerce-cart button[name="update_cart"] {
    padding: 12px 24px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.woocommerce-cart .coupon button:hover,
.woocommerce-cart button[name="update_cart"]:hover {
    background: var(--fc-red) !important;
}

/* Блок «Итого» */
.woocommerce-cart .cart_totals {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 36px 44px;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
}

.woocommerce-cart .cart_totals > h2 {
    font-family: var(--fc-font-head);
    font-size: 1.4rem;
    color: var(--fc-navy);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--fc-red);
    display: inline-block;
}

.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 0 24px !important;
    border-radius: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    padding: 14px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--fc-border) !important;
    vertical-align: middle;
}

.woocommerce-cart .cart_totals table.shop_table th {
    text-align: left !important;
    font-weight: 500;
    font-size: 14px;
    color: var(--fc-gray);
    width: 45%;
}

.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right !important;
    font-weight: 700;
    font-size: 15px;
    color: var(--fc-navy);
    white-space: nowrap;
    width: 55%;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-family: var(--fc-font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--fc-navy) !important;
    border-bottom: none !important;
    padding-top: 24px !important;
}

.woocommerce-cart .cart_totals .order-total td .amount,
.woocommerce-cart .cart_totals .order-total td strong {
    color: var(--fc-red) !important;
    font-size: 22px;
    white-space: nowrap;
}

.woocommerce-cart .cart_totals .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 16px 32px !important;
    background: var(--fc-red) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background .2s, transform .2s;
    box-sizing: border-box;
}

.woocommerce-cart .cart_totals .checkout-button:hover {
    background: var(--fc-red-dark) !important;
    transform: translateY(-2px);
}

.woocommerce-cart .cart_totals table.shop_table td::before {
    content: none !important;
    display: none !important;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-totals {
    display: none !important;
}

/* ============================================
   9. ЧЕКАУТ
   ============================================ */
.fc-checkout-wrap { padding: 40px 0 80px; }

.fc-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    align-items: start;
}

.fc-checkout-main { min-width: 0; }

.fc-checkout-section {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 32px 36px;
    margin-bottom: 24px;
}

.fc-checkout-section__title {
    font-family: var(--fc-font-head);
    font-size: 1.2rem;
    color: var(--fc-navy);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--fc-red);
    display: inline-block;
}

.woocommerce-checkout .form-row { margin-bottom: 16px; padding: 0; }

.woocommerce-checkout .form-row label {
    display: block;
    font-family: var(--fc-font-head);
    font-weight: 600;
    font-size: 13px;
    color: var(--fc-navy);
    margin-bottom: 6px;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--fc-text);
    transition: all .2s;
    box-sizing: border-box;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: var(--fc-navy);
    box-shadow: 0 0 0 3px rgba(10, 42, 94, .08);
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.woocommerce-checkout .form-row-wide,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #order_comments_field {
    grid-column: 1 / -1;
}

.fc-checkout-side { position: sticky; top: 100px; }

.fc-checkout-order {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 28px 32px;
}

.fc-checkout-order__title {
    font-family: var(--fc-font-head);
    font-size: 1.15rem;
    color: var(--fc-navy);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fc-red);
    display: inline-block;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--fc-border);
    font-size: 14px;
    vertical-align: top;
}

.woocommerce-checkout-review-order-table th { color: var(--fc-gray); font-weight: 500; }
.woocommerce-checkout-review-order-table td { text-align: right; color: var(--fc-navy); font-weight: 600; }

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-family: var(--fc-font-head);
    font-weight: 800;
    font-size: 17px;
    color: var(--fc-navy);
    border-bottom: none;
    padding-top: 20px;
}

.woocommerce-checkout-review-order-table .order-total td .amount {
    color: var(--fc-red);
    font-size: 20px;
    white-space: nowrap;
}

#place_order,
.woocommerce-checkout #place_order {
    display: block !important;
    width: 100% !important;
    padding: 18px 32px !important;
    background: var(--fc-red) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 17px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    margin-top: 8px;
}

#place_order:hover { background: var(--fc-red-dark) !important; transform: translateY(-2px); }

.fc-checkout-note {
    text-align: center;
    font-size: 13px;
    color: var(--fc-gray);
    line-height: 1.6;
    margin: 16px 0 0 !important;
    padding: 0 12px;
}

/* ============================================
   10. ЛИЧНЫЙ КАБИНЕТ
   ============================================ */
.fc-account-wrap { padding: 40px 0 80px; }

.woocommerce-account .woocommerce { padding: 40px 0 80px; }

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 24px;
    width: 260px;
    float: left;
    margin-right: 40px;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 40px;
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--fc-border); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px;
    font-family: var(--fc-font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--fc-navy);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover { color: var(--fc-red); padding-left: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--fc-red); font-weight: 700; }

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 { color: var(--fc-navy); margin-top: 0; }

.woocommerce-account .woocommerce-MyAccount-content table {
    border: none;
    border-radius: var(--fc-radius);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--fc-border);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table th {
    background: var(--fc-bg);
    color: var(--fc-navy);
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 14px 18px;
    border: none;
    text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content table td {
    padding: 16px 18px;
    border-top: 1px solid var(--fc-border);
    font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content table td a { color: var(--fc-navy); font-weight: 600; }

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button {
    display: inline-block;
    padding: 12px 26px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button:hover {
    background: var(--fc-red) !important;
    transform: translateY(-2px);
}

/* Адреса в кабинете */
.woocommerce-account .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin-top: 24px;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { display: none !important; content: none !important; }

.woocommerce-account .woocommerce-Address,
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    background: var(--fc-bg);
    border-radius: var(--fc-radius);
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fc-border);
    flex-wrap: wrap;
}

.woocommerce-account .woocommerce-Address-title h3 {
    margin: 0;
    font-family: var(--fc-font-head);
    font-size: 15px;
    color: var(--fc-navy);
}

.woocommerce-account .woocommerce-Address-title .edit {
    font-size: 13px;
    color: var(--fc-navy);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--fc-text);
    margin: 0;
}

/* Форма входа / регистрации */
#customer_login {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

#customer_login .u-column1,
#customer_login .u-column2 { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
#customer_login::before, #customer_login::after { display: none !important; }

#customer_login h2 {
    font-family: var(--fc-font-head);
    font-size: 1.4rem;
    color: var(--fc-navy);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--fc-red);
    display: inline-block;
}

#customer_login form {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 32px;
    border: none;
    box-sizing: border-box;
}

#customer_login label {
    display: block;
    font-family: var(--fc-font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--fc-navy);
    margin-bottom: 6px;
}

#customer_login input.input-text {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

#customer_login button,
#customer_login .woocommerce-button {
    display: block;
    width: 100%;
    padding: 15px 24px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#customer_login button:hover { background: var(--fc-red) !important; transform: translateY(-2px); }

/* ============================================
   11. СТРАНИЦА «СПАСИБО ЗА ЗАКАЗ»
   ============================================ */
.fc-thankyou-wrap { padding: 60px 0 100px; background: var(--fc-bg); min-height: 60vh; }
.fc-thankyou { max-width: 820px; margin: 0 auto; }
.fc-thankyou__hero { text-align: center; background: #fff; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); padding: 56px 40px; margin-bottom: 32px; }

.fc-thankyou__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px; height: 88px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1;
}

.fc-thankyou__title {
    font-family: var(--fc-font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fc-navy);
    margin: 0 0 16px;
}

.fc-thankyou__text { font-size: 1.05rem; line-height: 1.7; color: var(--fc-text); max-width: 620px; margin: 0 auto; }
.fc-thankyou__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.fc-thankyou__step { background: #fff; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.fc-thankyou__step-num { flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fc-navy); color: #fff; font-family: var(--fc-font-head); font-weight: 800; font-size: 16px; }
.fc-thankyou__step strong { display: block; color: var(--fc-navy); font-size: 14px; margin-bottom: 4px; }
.fc-thankyou__step p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fc-gray); }

.fc-thankyou__details { background: #fff; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); padding: 32px 36px; margin-bottom: 32px; }
.fc-thankyou__details h2 { font-family: var(--fc-font-head); font-size: 1.25rem; color: var(--fc-navy); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--fc-red); display: inline-block; }
.fc-thankyou__table { width: 100%; border-collapse: collapse; }
.fc-thankyou__table th, .fc-thankyou__table td { padding: 14px 0; text-align: left; border: none; border-bottom: 1px solid var(--fc-border); font-size: 14px; vertical-align: top; }
.fc-thankyou__table thead th { color: var(--fc-gray); font-weight: 500; font-size: 13px; text-transform: uppercase; }
.fc-thankyou__table td { color: var(--fc-navy); font-weight: 600; }
.fc-thankyou__table td:last-child, .fc-thankyou__table th:last-child { text-align: right; }
.fc-thankyou__table tfoot th, .fc-thankyou__table tfoot td { border-bottom: none; padding-top: 20px; font-family: var(--fc-font-head); font-weight: 800; font-size: 16px; color: var(--fc-navy); }
.fc-thankyou__total { color: var(--fc-red) !important; font-size: 20px !important; white-space: nowrap; }
.fc-thankyou__contacts { background: #fff; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); padding: 32px 36px; text-align: center; margin-bottom: 32px; }
.fc-thankyou__contacts h3 { font-family: var(--fc-font-head); font-size: 1.15rem; color: var(--fc-navy); margin: 0 0 8px; }
.fc-thankyou__contacts p { color: var(--fc-gray); font-size: 14px; margin: 0 0 20px; }
.fc-thankyou__buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.fc-thankyou__buttons .fc-btn { padding: 12px 24px; font-size: 14px; }
.fc-thankyou__back { text-align: center; margin-top: 32px; }
.fc-thankyou__back .fc-btn { padding: 12px 28px; font-size: 14px; }
/* ============================================
   ФИКС КНОПОК В БЛОКЕ "ПОХОЖИЕ ТОВАРЫ"
   ============================================ */

/* 1. Кнопка в карточке товара ("Выбрать" / "В корзину") */
.related.products ul.products li.product .button,
.related.products ul.products li.product .add_to_cart_button {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: var(--fc-navy) !important; /* Возвращаем сплошной тёмно-синий */
    background-image: none !important;     /* Убираем градиент */
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;        /* Форма таблетки */
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background .2s, transform .2s !important;
    line-height: 1.2 !important;
    margin: auto 0 0 0 !important;
}

/* Эффект при наведении */
.related.products ul.products li.product .button:hover,
.related.products ul.products li.product .add_to_cart_button:hover {
    background: var(--fc-red) !important; /* Наш фирменный красный */
    background-image: none !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* 2. Стрелки навигации (‹ ›) */
/* Обертка стрелок */
.fc-related-wrap {
    position: relative;
    padding-bottom: 60px; /* Отступ снизу на мобильных, чтобы стрелки не наезжали */
}

/* Сами кнопки-стрелки */
.fc-related-nav {
    position: absolute !important;
    bottom: 0 !important;      /* Прижимаем к низу */
    top: auto !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important; /* Круглые */
    background: var(--fc-navy) !important; /* Тёмно-синий фон */
    border: 1px solid var(--fc-navy) !important;
    color: #fff !important;    /* Белый крестик/стрелка */
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(10, 42, 94, .1) !important;
    transition: all .2s !important;
    z-index: 10 !important;
    padding: 0 !important;
}

/* Позиционируем левую и правую стрелку по бокам */
.fc-related-nav--prev {
    left: 20% !important;
    padding-right: 3px !important;
}

.fc-related-nav--next {
    right: 20% !important;
    padding-left: 3px !important;
}

/* Ховер для стрелок */
.fc-related-nav:hover {
    background: var(--fc-red) !important;
    border-color: var(--fc-red) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ — ВОССТАНОВЛЕНИЕ СТИЛЕЙ
   ============================================ */

/* --- 1. Левое меню навигации --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff !important;
    border-radius: var(--fc-radius) !important;
    box-shadow: var(--fc-shadow) !important;
    padding: 24px !important;
    width: 100% !important; /* На мобильных */
    max-width: 260px !important;
    float: left;
    margin-right: 40px;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--fc-border) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 8px !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--fc-navy) !important;
    text-decoration: none !important;
    transition: color .2s, padding-left .2s !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    color: var(--fc-red) !important;
    padding-left: 12px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--fc-red) !important;
    font-weight: 700 !important;
}


/* --- 2. Быстрые ссылки (плитки "Мои заказы", "Адреса" и т.д.) --- */
.fc-account-quick {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 колонки на ПК */
    gap: 16px !important;
    margin-bottom: 40px !important;
}

.fc-account-quick__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 24px 16px !important;
    background: var(--fc-bg) !important;
    border-radius: var(--fc-radius) !important;
    text-decoration: none !important;
    transition: transform .25s, box-shadow .25s, background .25s !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
}

.fc-account-quick__item:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--fc-shadow) !important;
    background: #fff !important;
    border-color: var(--fc-border) !important;
}

.fc-account-quick__icon {
    font-size: 32px !important;
    line-height: 1 !important;
    margin-bottom: 12px !important;
}

.fc-account-quick__label {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    font-size: 15px !important;
    margin-bottom: 4px !important;
}

.fc-account-quick__hint {
    font-size: 12px !important;
    color: var(--fc-gray) !important;
    line-height: 1.3 !important;
}


/* ============================================
   ЛИЧНЫЙ КАБИНЕТ — ПОСЛЕДНИЕ ЗАКАЗЫ (КАРТОЧКИ)
   ============================================ */

/* Заголовок "Последние заказы" и ссылка "Все заказы" */
.fc-account-recent__head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.fc-account-recent__head h3 {
    margin: 0 !important;
    font-family: var(--fc-font-head) !important;
    font-size: 1.2rem !important;
    color: var(--fc-navy) !important;
}

.fc-account-recent__all {
    font-size: 14px !important;
    color: var(--fc-navy) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
.fc-account-recent__all:hover {
    color: var(--fc-red) !important;
}

/* Контейнер для карточек */
.fc-account-recent__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* Расстояние между карточками */
}

/* Сама карточка заказа */
.fc-account-order-card {
    display: block !important;
    background: var(--fc-bg) !important; /* Светло-серый фон */
    border-radius: var(--fc-radius) !important;
    padding: 20px 24px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all .2s !important;
    border: 1px solid transparent !important;
}

.fc-account-order-card:hover {
    background: #fff !important;
    box-shadow: var(--fc-shadow) !important;
    border-color: var(--fc-border) !important;
    transform: translateY(-2px) !important;
}

/* Верхняя строка (Номер заказа и Статус) */
.fc-account-order-card__head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.fc-account-order-card__num {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    font-size: 15px !important;
}

/* Нижняя строка (Дата и Сумма) */
.fc-account-order-card__meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px !important;
    color: var(--fc-gray) !important;
}

.fc-account-order-card__total {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    font-size: 15px !important;
}

/* ============================================
   БЕЙДЖИ СТАТУСОВ (В обработке, Выполнен и т.д.)
   ============================================ */

/* Базовый стиль бейджа */
.fc-status {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: var(--fc-font-head) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* В обработке (Синий) */
.fc-status-processing {
    background: #E8F1FB !important;
    color: var(--fc-navy) !important;
}

/* Ожидает оплаты (Желтый) */
.fc-status-pending,
.fc-status-on-hold {
    background: #FFF6E5 !important;
    color: #B26A00 !important;
}

/* Выполнен (Зеленый) */
.fc-status-completed {
    background: #E8F5E9 !important;
    color: #2E7D32 !important;
}

/* Отменен / Ошибка (Красный) */
.fc-status-cancelled,
.fc-status-refunded,
.fc-status-failed {
    background: #FDECEA !important;
    color: var(--fc-red-dark) !important;
}
/* ============================================
   ЛИЧНЫЙ КАБИНЕТ — СТРАНИЦА "ВСЕ ЗАКАЗЫ" (КАРТОЧКИ)
   ============================================ */

/* 1. Контейнер для списка заказов */
.fc-orders-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important; /* Расстояние между заказами */
    margin-top: 24px !important;
}

/* 2. Сама карточка заказа */
.fc-order-item {
    background: #fff !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: var(--fc-radius) !important;
    overflow: hidden !important;
    transition: box-shadow .2s, transform .2s !important;
}

.fc-order-item:hover {
    box-shadow: var(--fc-shadow) !important;
    transform: translateY(-2px) !important;
}

/* 3. Шапка карточки (Номер, Дата, Статус, Сумма) */
.fc-order-item__head {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr !important; /* 4 колонки */
    gap: 16px !important;
    padding: 20px 24px !important;
    background: var(--fc-bg) !important; /* Светло-серый фон */
    border-bottom: 1px solid var(--fc-border) !important;
    align-items: center !important;
}

/* Подписи в шапке (Номер, Дата, Статус, Сумма) */
.fc-order-item__label {
    display: block !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: var(--fc-gray) !important;
    margin-bottom: 4px !important;
}

/* Значения в шапке */
.fc-order-item__num strong,
.fc-order-item__date strong,
.fc-order-item__total strong {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    font-size: 14px !important;
}

.fc-order-item__total strong {
    color: var(--fc-red) !important; /* Сумма красным */
}

/* 4. Тело карточки (Товары и Кнопка "Подробнее") */
.fc-order-item__body {
    padding: 20px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

/* Список товаров */
.fc-order-item__products {
    flex: 1 !important;
    font-size: 14px !important;
    color: var(--fc-text) !important;
    line-height: 1.5 !important;
}

/* Кнопки (Подробнее, Отменить) */
.fc-order-item__actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Стилизация кнопки "Подробнее" */
.fc-order-item__actions .fc-btn {
    padding: 10px 24px !important;
    font-size: 14px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    transition: background .2s !important;
}

.fc-order-item__actions .fc-btn:hover {
    background: var(--fc-red) !important;
}

/* ============================================
   ДЕТАЛИ ЗАКАЗА (СТРАНИЦА "ПРОСМОТР")
   ============================================ */

/* --- 1. Шапка заказа (Номер, Дата, Статус) --- */
.fc-order-view__head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
    padding-bottom: 24px !important;
    border-bottom: 2px solid var(--fc-border) !important;
}

.fc-order-view__num h2 {
    margin: 0 0 8px 0 !important;
    font-family: var(--fc-font-head) !important;
    font-size: 1.8rem !important;
    color: var(--fc-navy) !important;
}

.fc-order-view__date {
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--fc-gray) !important;
}

/* --- 2. Прогресс-бар (Принят, В работе и т.д.) --- */
.fc-order-progress {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 32px 0 !important;
    padding: 24px !important;
    background: var(--fc-bg) !important;
    border-radius: var(--fc-radius) !important;
    position: relative !important;
    overflow-x: auto !important; /* Для мобильных, если не влезет */
}

.fc-order-progress__step {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
    min-width: 80px !important;
}

.fc-order-progress__step:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    top: 16px !important;
    left: calc(50% + 20px) !important;
    right: calc(-50% + 20px) !important;
    height: 2px !important;
    background: var(--fc-border) !important;
    z-index: 1 !important;
}

.fc-order-progress__step.is-done:not(:last-child)::after {
    background: var(--fc-red) !important;
}

.fc-order-progress__dot {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--fc-border) !important;
    color: var(--fc-gray) !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.fc-order-progress__step.is-done .fc-order-progress__dot {
    background: var(--fc-red) !important;
    border-color: var(--fc-red) !important;
    color: #fff !important;
}

.fc-order-progress__label {
    display: block !important;
    font-size: 12px !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 600 !important;
    color: var(--fc-gray) !important;
    line-height: 1.2 !important;
}

.fc-order-progress__step.is-done .fc-order-progress__label {
    color: var(--fc-navy) !important;
}

/* --- 3. Состав заказа (Таблица) --- */
.fc-order-view__details {
    margin-bottom: 32px !important;
}

.fc-order-view__details h3 {
    font-family: var(--fc-font-head) !important;
    font-size: 1.3rem !important; /* Убираем огромные 29px */
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--fc-red) !important;
    display: inline-block !important;
}

.fc-order-view__table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 24px !important;
}

.fc-order-view__table th,
.fc-order-view__table td {
    padding: 14px 16px !important;
    border: 1px solid var(--fc-border) !important; /* Рамки для ячеек */
    text-align: left !important;
    font-size: 14px !important;
}

.fc-order-view__table thead th {
    background: var(--fc-bg) !important;
    color: var(--fc-navy) !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
}

.fc-order-view__table td {
    color: var(--fc-text) !important;
    font-weight: 500 !important;
}

.fc-order-view__table tfoot th {
    text-align: right !important;
    font-weight: 600 !important;
    color: var(--fc-gray) !important;
}

.fc-order-view__table tfoot td {
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
}

.fc-order-view__table tfoot tr.order-total td {
    font-size: 18px !important;
    color: var(--fc-red) !important; /* Итоговая сумма красным */
    background: #fff !important;
}

/* --- 4. Адреса и Оплата --- */
.fc-order-view__addresses {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin: 32px 0 !important;
}

.fc-order-view__address {
    background: var(--fc-bg) !important;
    border-radius: var(--fc-radius) !important;
    padding: 24px !important;
}

.fc-order-view__address h4 {
    margin: 0 0 12px 0 !important;
    font-family: var(--fc-font-head) !important;
    font-size: 15px !important;
    color: var(--fc-navy) !important;
    text-transform: uppercase !important;
}

.fc-order-view__address address,
.fc-order-view__address p {
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--fc-text) !important;
    margin: 0 !important;
}

/* --- 5. Кнопки внизу --- */
.fc-order-view__actions {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--fc-border) !important;
}

.fc-order-view__actions .fc-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ — ШАПКА ПРОФИЛЯ (ИМЯ, EMAIL, ВЫХОД)
   ============================================ */

/* 1. Контейнер шапки */
.fc-account-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 16px 24px !important;
    background: var(--fc-bg) !important; /* Светло-серый фон */
    border-radius: var(--fc-radius) !important; /* Скругления */
    margin-bottom: 32px !important;
    flex-wrap: wrap !important; /* На мобильных переносится */
}

/* 2. Данные пользователя (Имя и Email) */
.fc-account-topbar__user {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.fc-account-topbar__user strong {
    display: block !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    font-size: 16px !important;
}

.fc-account-topbar__user span {
    font-size: 14px !important;
    color: var(--fc-gray) !important;
    font-family: var(--fc-font-body) !important;
}

/* 3. Кнопка «Выйти» */
.fc-account-logout {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: #fff !important; /* Белый фон */
    border: 1px solid var(--fc-border) !important; /* Серая рамка */
    border-radius: 50px !important; /* Форма таблетки */
    color: var(--fc-navy) !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
    cursor: pointer !important;
}

/* Эффект при наведении: краснеет */
.fc-account-logout:hover {
    background: var(--fc-red) !important;
    border-color: var(--fc-red) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Иконка (стрелочка выхода), если она есть в HTML */
.fc-account-logout svg,
.fc-account-logout i {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

/* ============================================
   ОПИСАНИЕ КАТЕГОРИИ В КАТАЛОГЕ
   ============================================ */
.fc-custom-term-description {
    display: block !important;
    width: 100% !important;
    margin-bottom: 32px !important;
    padding: 24px 28px !important;
    background: #fff !important;
    border-radius: var(--fc-radius) !important;
    box-shadow: var(--fc-shadow) !important;
    font-family: var(--fc-font-body) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--fc-text) !important;
    clear: both !important;
}

/* Делаем заголовки внутри описания красивыми */
.fc-custom-term-description h2,
.fc-custom-term-description h3 {
    font-family: var(--fc-font-head) !important;
    color: var(--fc-navy) !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.2rem !important;
}

.fc-custom-term-description p {
    margin-bottom: 12px !important;
}
.fc-custom-term-description p:last-child {
    margin-bottom: 0 !important;
}

.fc-custom-term-description ul {
    padding-left: 20px !important;
    margin-bottom: 12px !important;
}
.fc-custom-term-description li {
    margin-bottom: 6px !important;
}
/* Стили для описания категории */
.fc-custom-term-description {
    display: block !important;
    width: 100% !important;
    margin-bottom: 32px !important;
    padding: 24px 28px !important;
    background: #fff !important;
    border-radius: var(--fc-radius) !important;
    box-shadow: var(--fc-shadow) !important;
    font-family: var(--fc-font-body) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--fc-text) !important;
}

.fc-custom-term-description p {
    margin-bottom: 12px !important;
}
.fc-custom-term-description p:last-child {
    margin-bottom: 0 !important;
}
/* ============================================
   ОПИСАНИЕ КАТЕГОРИИ В КАТАЛОГЕ (ЧИСТЫЙ ВИД)
   ============================================ */
.fc-custom-term-description {
    display: block !important;
    width: 100% !important;
    margin-bottom: 32px !important;
    padding: 24px 28px !important;
    background: #fff !important;
    border-radius: var(--fc-radius) !important;
    box-shadow: var(--fc-shadow) !important;
    font-family: var(--fc-font-body) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--fc-text) !important;
}

/* Убираем лишние отступы у последнего абзаца */
.fc-custom-term-description p:last-child {
    margin-bottom: 0 !important;
}

/* Делаем подзаголовки (если они есть в описании) красивыми */
.fc-custom-term-description h2,
.fc-custom-term-description h3 {
    font-family: var(--fc-font-head) !important;
    color: var(--fc-navy) !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.2rem !important;
}
/* ============================================
   ОПИСАНИЕ КАТЕГОРИИ ВНИЗУ (ПОД ПАГИНАЦИЕЙ)
   ============================================ */

/* Стили для блока описания */
.fc-custom-term-description {
    display: block !important;
    width: 100% !important;
    padding: 24px 28px !important;
    background: #fff !important;
    border-radius: var(--fc-radius) !important;
    box-shadow: var(--fc-shadow) !important;
    font-family: var(--fc-font-body) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--fc-text) !important;
    
    /* Общие отступы */
    margin-bottom: 32px !important; 
}

/* Добавляем отступ СВЕРХУ, так как блок теперь внизу */
.fc-custom-term-description--bottom {
    margin-top: 48px !important;
    margin-bottom: 0 !important;
    clear: both !important; /* Чтобы блок не наезжал на товары */
}

/* Убираем лишние отступы у последнего абзаца */
.fc-custom-term-description p:last-child {
    margin-bottom: 0 !important;
}

/* Делаем подзаголовки (если они есть в описании) красивыми */
.fc-custom-term-description h2,
.fc-custom-term-description h3 {
    font-family: var(--fc-font-head) !important;
    color: var(--fc-navy) !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.2rem !important;
}
