/* Catalog Frontend Styles */

/* --- Variables --- */
:root {
    --brand-color: #e73b38;
    --brand-dark: #c92b28;
    --brand-light: #ffecec;
}

/* --- General Layout --- */
.single-product-page,
.archive-page-content-area {
    background-color: #f8f9fa;
    padding-bottom: 80px;
}

/* --- Product Banner --- */
.product-banner-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.product-banner {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.product-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-banner-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
}

.product-banner-subtitle {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Responsive banner */
@media (max-width: 768px) {
    .product-banner {
        height: 200px;
    }

    .product-banner-title {
        font-size: 1.8rem;
    }

    .product-banner-subtitle {
        font-size: 0.95rem;
    }
}


/* --- Header --- */
.page-title {
    color: #333;
}

.border-primary {
    border-color: var(--brand-color) !important;
}

/* --- Sidebar --- */
.catalogo-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-color);
    color: #333;
}

.list-group-item {
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    border-left: 4px solid transparent;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: #ddd;
    color: var(--brand-dark);
}

.list-group-item.active {
    background-color: #fff;
    color: var(--brand-color);
    border-color: #e9ecef;
    border-left-color: var(--brand-color);
    z-index: 1;
}

.list-group-item.active .badge {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

/* --- Product Card (Archive) --- */
.product-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    border-radius: 12px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-card-image-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.product-card .card-img-top {
    transition: transform 0.6s ease;
    width: 100%;
}

.product-card:hover .card-img-top {
    transform: scale(1.08);
    /* Slight zoom on hover */
}

/* Card Overlay */
.product-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.product-card .card-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .card-overlay .btn {
    transform: translateY(0);
}

/* Card Content */
.product-card .card-title a {
    color: #333;
    transition: color 0.2s;
}

.product-card .card-title a:hover {
    color: var(--brand-color) !important;
}

.product-card .text-primary {
    color: var(--brand-color) !important;
}

/* Plus Icon Animation */
.product-card:hover #icon-plus {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* --- Single Product Gallery --- */
.product-gallery .main-image {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    background: #fff;
    cursor: pointer;
}

.product-gallery .main-image img {
    transition: transform 0.5s ease;
}

.product-gallery .main-image:hover img {
    transform: scale(1.03);
}

.product-gallery .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(231, 59, 56, 0.9);
    padding: 20px;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(231, 59, 56, 0.4);
    pointer-events: none;
}

.product-gallery .main-image:hover .overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.product-gallery .overlay-icon i {
    font-size: 24px;
    color: #fff;
}

.product-gallery .row.g-2 .col-3 a {
    border: 2px solid #eee;
    transition: all 0.2s ease;
    display: block;
    height: 100%;
    border-radius: 8px;
    /* Added consistency */
    overflow: hidden;
}

.product-gallery .row.g-2 .col-3 a:hover {
    border-color: var(--brand-color);
    transform: translateY(-2px);
}

/* Placeholder Image */
.placeholder-image {
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.placeholder-image .dashicons {
    display: inline-block;
}

/* --- Breadcrumb --- */
.product-breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-breadcrumb .breadcrumb-item {
    color: #6c757d;
    margin-top: 0;
}

.product-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-color);
}

.product-breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.product-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #dee2e6;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}



/* --- Single Product Info --- */
.product-title {
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

/* Reused elsewhere */

.product-meta .text-primary {
    color: var(--brand-color) !important;
}

.nav-tabs .nav-link:hover {
    color: var(--brand-color);
    background-color: rgba(231, 59, 56, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--brand-color) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--brand-color);
    background: transparent;
}

/* Contact Section (Embedded) */
#contacto-producto {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 1px solid #e1e1e1;
    position: relative;
    overflow: hidden;
}

#contacto-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-color);
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

.page-link {
    color: var(--brand-color);
}

.page-link:hover {
    color: var(--brand-dark);
    background-color: var(--brand-light);
}