/* =============================================================================
   SVN INTERIO — Category Pages (PVC, Steel, Plywood, Hardware)
   File: public/assets/css/category.css
============================================================================= */

/* ─── CONTACT CTA (reused from home — needed on category pages) ─────────── */
.contact-cta-section {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196,18,48,0.2) 0%, transparent 70%);
}

.contact-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-cta-left { color: var(--color-white); }
.contact-cta-left .section-tag { color: #ff8fa0; }
.contact-cta-left .section-tag::before { background: var(--color-primary); }
.contact-cta-left .section-title { color: var(--color-white); }
.contact-cta-left .section-subtitle { color: rgba(255,255,255,0.7); }

.contact-info-list {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    color: rgba(255,255,255,0.85);
    font-size: var(--fs-sm);
}

.contact-info-item .ci-icon {
    width: 40px;
    height: 40px;
    background: rgba(196,18,48,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .ci-icon .lucide {
    width: 18px;
    height: 18px;
    color: #ff8fa0;
}

.contact-form-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
}

.contact-form-card h3 {
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-navy);
    margin-bottom: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .contact-cta-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}


/* ─── CATEGORY PAGE HERO ────────────────────────────────────────────────── */
.category-hero {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    padding: var(--space-16) 0 calc(var(--space-16) + 40px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.category-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.category-hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
}

.category-hero-content .section-tag {
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

.category-hero-content .section-tag .tag-dot {
    background: rgba(255,255,255,0.4);
}

.category-hero-content h1.section-title {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.category-hero-content .section-subtitle {
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── PRODUCT GRID ──────────────────────────────────────────────────────── */
.category-products-section {
    padding: var(--space-16) 0;
    background-color: var(--color-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ─── PRODUCT CARD ──────────────────────────────────────────────────────── */
.product-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
    border-color: var(--color-primary);
}

.product-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image .product-icon-placeholder {
    color: rgba(255,255,255,0.25);
}

.product-card-image .product-icon-placeholder svg {
    width: 64px;
    height: 64px;
}

.highlight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.product-card-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: 8px;
}

.product-card-body p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.product-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.brand-pill {
    background: rgba(196, 18, 48, 0.1);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(196, 18, 48, 0.2);
}

.product-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view-product {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.btn-view-product:hover { gap: 10px; color: var(--color-primary); }

/* ─── PRODUCT DETAIL PAGE ───────────────────────────────────────────────── */
.product-detail-section {
    padding: var(--space-16) 0;
    background-color: var(--color-bg);
}

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

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

.product-detail-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-placeholder {
    color: rgba(255,255,255,0.2);
}

.product-detail-placeholder svg {
    width: 96px;
    height: 96px;
}

.product-detail-content {}

.product-detail-content .product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(196, 18, 48, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(196, 18, 48, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-detail-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--fw-black);
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-detail-short-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.product-brands-section {
    margin-bottom: 24px;
}

.product-brands-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.product-description-section {
    margin-bottom: 28px;
}

.product-description-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.product-description-section p {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 0.975rem;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── BREADCRUMB ────────────────────────────────────────────────────────── */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    justify-content: center;
}

.page-breadcrumb a { color: rgba(255,255,255,0.65); }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .sep { color: rgba(255,255,255,0.3); }
