:root {
    --site-primary: #1a2b4a;
    --site-primary-light: #2d4a7c;
    --site-accent: #e63946;
    --site-accent-hover: #c1121f;
    --site-success: #2a9d8f;
    --site-bg: #f4f6fa;
    --site-surface: #ffffff;
    --site-text: #1a1a2e;
    --site-muted: #64748b;
    --site-border: #e2e8f0;
    --site-radius: 16px;
    --site-radius-sm: 10px;
    --site-shadow: 0 4px 24px rgba(26, 43, 74, 0.07);
    --site-shadow-hover: 0 12px 40px rgba(26, 43, 74, 0.14);
}

body.site-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--site-bg);
    color: var(--site-text);
    font-size: 16px;
    line-height: 1.6;
}

/* ── Page hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-primary-light) 100%);
    color: #fff;
    padding: 1.75rem 0 2rem;
}

.page-hero .container {
    max-width: 1320px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ── Layout ── */
.site-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

@media (min-width: 768px) {
    .site-container {
        padding: 2rem 1.25rem 3rem;
    }
}

.site-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .site-card {
        padding: 2rem;
    }
}

/* ── Buttons ── */
.btn-site-primary {
    background: var(--site-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.btn-site-primary:hover {
    background: var(--site-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-site-outline {
    background: transparent;
    color: var(--site-primary);
    border: 2px solid var(--site-border);
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-site-outline:hover {
    border-color: var(--site-primary-light);
    background: #eef2ff;
    color: var(--site-primary);
}

/* ── Product cards ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.products-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .products-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: var(--site-shadow);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--site-shadow-hover);
    border-color: transparent;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.product-card-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--site-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--site-primary-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--site-muted);
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--site-primary);
    margin-top: auto;
    padding-top: 0.25rem;
}

.product-card-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--site-muted);
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-card-buy {
    flex: 1;
    background: var(--site-accent);
    color: #fff;
    border: none;
    border-radius: var(--site-radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-card-buy:hover {
    background: var(--site-accent-hover);
}

.btn-card-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    background: var(--site-surface);
    color: var(--site-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-card-icon:hover {
    border-color: var(--site-primary-light);
    color: var(--site-primary);
    background: #eef2ff;
}

/* ── Empty state ── */
.site-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--site-surface);
    border-radius: var(--site-radius);
    border: 1px solid var(--site-border);
}

.site-empty i {
    font-size: 3rem;
    color: var(--site-border);
    margin-bottom: 1rem;
}

.site-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-empty p {
    color: var(--site-muted);
    margin-bottom: 1.25rem;
}

/* ── Pagination ── */
.site-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.65rem;
    border-radius: var(--site-radius-sm);
    border: 1px solid var(--site-border);
    background: var(--site-surface);
    color: var(--site-muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--site-primary-light);
    color: var(--site-primary);
    background: #eef2ff;
}

.page-btn.active {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.page-dots {
    color: var(--site-muted);
    padding: 0 0.25rem;
}

/* ── Account menu ── */
.account-menu {
    max-width: 560px;
    margin: 0 auto;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--site-border);
    text-decoration: none;
    color: var(--site-text);
    transition: background 0.2s;
    border-radius: var(--site-radius-sm);
}

.account-menu-item:last-child {
    border-bottom: none;
}

.account-menu-item:hover {
    background: #f0f4ff;
    color: var(--site-primary);
}

.account-menu-item i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--site-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.account-menu-item.danger i {
    background: #fef2f2;
    color: var(--site-accent);
}

.account-menu-item.danger:hover {
    background: #fef2f2;
    color: var(--site-accent);
}

.account-menu-item span {
    font-weight: 600;
    font-size: 1rem;
}

/* ── Site footer ── */
.site-footer {
    background: var(--site-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
