css
/*
Theme Name: ClickMag Child
Description: Дочерняя тема для темы ClickMag
Template: click-mag
Version: 1.0.0
*/

@import url("../click-mag/style.css");

/* ========== FIXED FOOTER LAYOUT ========== */

/* Make site wrapper a flex container for sticky footer */
#mvp-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#mvp-main-wrap {
    flex: 1 0 auto;
}

#mvp-foot-wrap {
    flex-shrink: 0;
}

/* ========== HEADER STYLES ========== */
/* Более специфичный селектор для переопределения стилей заголовка */
body .mvp-arch-head.left,
body h1.mvp-arch-head.left,
body .mvp-arch-head.left h1 {
    margin: 30px 0 40px 0 !important;
    padding: 20px 0 !important;
    text-align: left !important;
    width: 100% !important;
    float: left !important;
    display: block !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #222222 !important;
    border-bottom: 2px solid #f0f0f0 !important;
    line-height: 1.2 !important;
}

/* Адаптивность для заголовка */
@media (max-width: 768px) {
    body .mvp-arch-head.left,
    body h1.mvp-arch-head.left,
    body .mvp-arch-head.left h1 {
        margin: 20px 0 30px 0 !important;
        padding: 15px 0 !important;
        font-size: 2rem !important;
    }
}

/* ========== AUCTIONS PAGE STYLES ========== */

/* Full width layout for auctions page */
body.page-template-template-auctions-php #mvp-content-body-wrap,
body.page-template-template-auctions-php .mvp-content-side-out,
body.page-template-template-auctions-php .mvp-content-side-in,
body.page-template-template-auctions-php #mvp-home-body {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Remove sidebar space */
body.page-template-template-auctions-php .mvp-content-side-out {
    margin-right: 0 !important;
}

body.page-template-template-auctions-php .mvp-content-side-in {
    margin-right: 0 !important;
}

/* Container for full width */
body.page-template-template-auctions-php .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовок с отступом сверху */
body.page-template-template-auctions-php .mvp-arch-head {
    margin: 15px 0 30px 0 !important;
    text-align: center;
    width: 100%;
    float: left;
    padding-top: 0;
}

/* Auctions Grid */
.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

/* Карточка аукциона - убираем все рамки и фон */
.auction-card {
    background: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    position: relative;
    border: none;
    width: 100%;
}

.auction-card:hover {
    transform: none;
    box-shadow: none;
}

/* Бейдж статуса */
.auction-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    font-family: 'Lato', Arial, sans-serif;
}

.status-active .auction-badge { 
    background: #28a745; 
    color: white; 
}

.status-upcoming .auction-badge { 
    background: #ffc107; 
    color: black; 
}

.status-completed .auction-badge { 
    background: #6c757d; 
    color: white; 
}

/* Картинка с hover эффектом как в оригинальной теме */
.auction-image {
    display: block;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    border-radius: 0;
    opacity: 0.9;
}

.auction-card:hover .auction-image img {
    opacity: 1;
}

/* Контентная область с фиксированной шириной */
.auction-content {
    padding: 0;
    background: none;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовок статьи - фиксированная ширина с отступами */
.auction-title {
    width: 100%;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 123%;
    float: left;
    box-sizing: border-box;
    padding: 0 10px;
}

.auction-title a,
.auction-title a:visited {
    color: #222222 !important;
    text-decoration: none;
    display: block;
    width: 100%;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    box-sizing: border-box;
}

.auction-title a:hover {
    color: #ff3c36 !important;
}

/* Текст статьи под заголовком - такая же ширина как у заголовка */
.auction-excerpt {
    color: #666;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 140%;
    width: 100%;
    float: left;
    box-sizing: border-box;
    padding: 0 10px;
    
    /* Ограничение до 3 строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.2em; /* 3 строки * 1.4 line-height */
}

/* Мета-информация - скрываем */
.auction-meta {
    display: none;
}

/* Цены - скрываем */
.auction-pricing {
    display: none;
}

/* Кнопки - скрываем */
.bid-button, .watch-button, .view-button {
    display: none;
}

/* Пагинация */
.auctions-pagination {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.no-auctions {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    font-family: 'Lato', Arial, sans-serif;
}

/* Адаптивность для заголовков как на других страницах */
@media screen and (max-width: 1400px) and (min-width: 1301px) {
    .auction-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .auctions-grid {
        grid-template-columns: 1fr;
    }
    
    body.page-template-template-auctions-php .container {
        padding: 0 15px;
    }
    
    body.page-template-template-auctions-php .mvp-arch-head {
        margin: 0 0 20px 0 !important;
    }
    
    .auction-title {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .auction-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        max-height: 3.9em; /* 3 строки * 1.3 line-height для мобильных */
        padding: 0 10px;
    }
}



/* ========== CATALOG CATEGORY & SUBCATEGORIES STYLES ========== */

/* Full width layout for catalog category and its children */
body.category-catalog #mvp-content-body-wrap,
body.category-catalog .mvp-content-side-out,
body.category-catalog .mvp-content-side-in,
body.category-catalog #mvp-home-body,
/* Стили для всех подкатегорий catalog */
body.category-catalog-a-c-a-m #mvp-content-body-wrap,
body.category-catalog-a-c-a-m .mvp-content-side-out,
body.category-catalog-a-c-a-m .mvp-content-side-in,
body.category-catalog-a-c-a-m #mvp-home-body,
body[class*="category-catalog-"] #mvp-content-body-wrap,
body[class*="category-catalog-"] .mvp-content-side-out,
body[class*="category-catalog-"] .mvp-content-side-in,
body[class*="category-catalog-"] #mvp-home-body {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Remove sidebar space */
body.category-catalog .mvp-content-side-out,
body.category-catalog-a-c-a-m .mvp-content-side-out,
body[class*="category-catalog-"] .mvp-content-side-out {
    margin-right: 0 !important;
}

body.category-catalog .mvp-content-side-in,
body.category-catalog-a-c-a-m .mvp-content-side-in,
body[class*="category-catalog-"] .mvp-content-side-in {
    margin-right: 0 !important;
}

/* Container for full width */
body.category-catalog .container,
body.category-catalog-a-c-a-m .container,
body[class*="category-catalog-"] .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовок категории с отступом сверху */
body.category-catalog .mvp-arch-head,
body.category-catalog-a-c-a-m .mvp-arch-head,
body[class*="category-catalog-"] .mvp-arch-head {
    margin: 15px 0 30px 0 !important;
    text-align: center;
    width: 100%;
    float: left;
    padding-top: 0;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

/* Карточка каталога */
.catalog-card {
    background: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    position: relative;
    border: none;
    width: 100%;
}

.catalog-card:hover {
    transform: none;
    box-shadow: none;
}

/* Картинка с hover эффектом */
.catalog-image {
    display: block;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    border-radius: 0;
    opacity: 0.9;
}

.catalog-card:hover .catalog-image img {
    opacity: 1;
}

/* Контентная область с фиксированной шириной */
.catalog-content {
    padding: 0;
    background: none;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовок статьи - фиксированная ширина с отступами */
.catalog-title {
    width: 100%;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 123%;
    float: left;
    box-sizing: border-box;
    padding: 0 20px;
    font-family: 'Work Sans', sans-serif;
}

.catalog-title a,
.catalog-title a:visited {
    color: #222222 !important;
    text-decoration: none;
    display: block;
    width: 100%;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    box-sizing: border-box;
}

.catalog-title a:hover {
    color: #ff3c36 !important;
}

/* Текст статьи под заголовком */
.catalog-excerpt {
    color: #666;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 140%;
    width: 100%;
    float: left;
    box-sizing: border-box;
    padding: 0 20px;
    
    /* Ограничение до 3 строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.2em; /* 3 строки * 1.4 line-height */
}

/* Пагинация */
.catalog-pagination {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.no-catalog {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    font-family: 'Lato', Arial, sans-serif;
}

/* Адаптивность для каталога */
@media screen and (max-width: 1400px) and (min-width: 1301px) {
    .catalog-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    body.category-catalog .container,
    body.category-catalog-a-c-a-m .container,
    body[class*="category-catalog-"] .container {
        padding: 0 15px;
    }
    
    body.category-catalog .mvp-arch-head,
    body.category-catalog-a-c-a-m .mvp-arch-head,
    body[class*="category-catalog-"] .mvp-arch-head {
        margin: 15px 0 20px 0 !important;
    }
    
    .catalog-title {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .catalog-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        max-height: 3.9em;
        padding: 0 10px;
    }
}

/* ========== FORCE HEADER MARGINS ========== */
body #mvp-content-body h1.mvp-arch-head.left,
body #mvp-main h1.mvp-arch-head.left,
body .mvp-main-body h1.mvp-arch-head.left,
body .mvp-content-main h1.mvp-arch-head.left,
body .mvp-arch-head.left:first-child {
    margin: 0px 0 40px 0 !important;
    padding: 20px 0 !important;
    text-align: center !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #222222 !important;
    border-bottom: 2px solid #f0f0f0 !important;
    line-height: 1.2 !important;
    clear: both !important;
}

@media (max-width: 768px) {
    body #mvp-content-body h1.mvp-arch-head.left,
    body #mvp-main h1.mvp-arch-head.left,
    body .mvp-main-body h1.mvp-arch-head.left,
    body .mvp-content-main h1.mvp-arch-head.left,
    body .mvp-arch-head.left:first-child {
        margin: 20px 0 30px 0 !important;
        padding: 15px 0 !important;
        font-size: 2rem !important;
    }
}