/* ============================================
   Axiomed — Products page
   ============================================ */

/* Catalog section */
#catalog-section {
    background: #fff;
    padding: 56px 0 80px;
}

.catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.catalog-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 4px;
    letter-spacing: -0.4px;
}

.catalog-count {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Catalog grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #eef2f7;
    border-left: 1px solid #eef2f7;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    padding: 24px 20px 20px;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.catalog-card:hover {
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    z-index: 1;
    position: relative;
}

.catalog-card-img {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.catalog-card-img img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.catalog-card:hover .catalog-card-img img {
    transform: scale(1.05);
}

.catalog-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.catalog-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2278bc;
    letter-spacing: 0.3px;
    margin-top: auto;
}

.catalog-card:hover .catalog-card-cta {
    text-decoration: underline;
}

/* Product detail */
.product-detail {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-detail-image img {
    width: 100%;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 20px;
}

.product-detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.product-detail-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
}

.products-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 0 64px;
}

.pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid #e2eaf2;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.pager-btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(55, 152, 218, 0.32);
    transform: translateY(-2px);
    text-decoration: none;
}

.pager-btn--active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(55, 152, 218, 0.35);
    font-weight: 700;
    pointer-events: none;
}

.pager-btn--disabled {
    color: #c8d3dc;
    border-color: #eef1f5;
    background: #fafbfc;
    box-shadow: none;
    pointer-events: none;
}

/* ============================================
   Premium products carousel
   ============================================ */
#products-carousel {
    background: #f0f4f8;
    padding: 48px 0 52px;
    overflow: hidden;
}

/* Header */
.pc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 48px 28px;
}

.pc-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2278bc;
    margin-bottom: 6px;
}

.pc-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Nav buttons */
.pc-nav { display: flex; gap: 10px; }

.pc-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #0d1b2a;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.pc-btn:hover {
    background: #2278bc;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(34,120,188,0.35);
}

/* Swiper */
.pcSwiper {
    padding-left: 48px !important;
    overflow: visible !important;
}

/* Card */
.pc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    height: 320px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: box-shadow 0.35s cubic-bezier(.4,0,.2,1),
                transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.pc-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    transform: translateY(-6px);
    text-decoration: none;
    color: inherit;
}

/* Image area — top 60% */
.pc-card-img {
    flex: 0 0 190px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    transition: background 0.3s;
}

.pc-card:hover .pc-card-img { background: #eef3f8; }

.pc-card-img img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.pc-card:hover .pc-card-img img { transform: scale(1.07); }

/* Text area — bottom */
.pc-card-body {
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
}

.pc-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d1b2a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.pc-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #2278bc;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.25s, transform 0.25s;
}
.pc-card:hover .pc-card-arrow {
    background: #2278bc;
    color: #fff;
    transform: translateX(3px);
}

/* Progress bar */
.pc-progress {
    height: 3px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    margin: 28px 48px 0;
    overflow: hidden;
}

.pc-progress-bar {
    height: 100%;
    width: 0%;
    background: #2278bc;
    border-radius: 2px;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pc-header  { padding: 0 20px 22px; }
    .pcSwiper   { padding-left: 20px !important; }
    .pc-progress{ margin: 20px 20px 0; }
    .pc-title   { font-size: 1.4rem; }
    .pc-card    { height: 270px; }
    .pc-card-img{ flex: 0 0 150px; }
}
