/* ===== CATEGORY PAGES THEME ===== */
/* Primary Pink: #C51F5D | Dark Blue: #243447 | Deep Dark: #141D26 | Soft Light: #E2E2D2 */

/* Category Listing Page - Category Cards */
.category-img-wrapper {
    background-color: #ffffff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.category-name {
    color: #243447 !important;
    font-weight: 600 !important;
}

/* Category Details Page - Page Header */
.page-header {
    position: relative !important;
}

.page-header::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(20, 29, 38, 0.6), rgba(36, 52, 71, 0.4)) !important;
    z-index: 1 !important;
}

.page-header .page-title {
    color: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 2px 8px rgba(20, 29, 38, 0.5) !important;
}

.page-header .page-title span {
    color: #E2E2D2 !important;
    display: block !important;
    font-weight: 400 !important;
    font-size: 0.5em !important;
    letter-spacing: 0.05em !important;
}

/* Breadcrumb */
.breadcrumb-nav {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #E2E2D2 !important;
    padding: 0.75rem 0 !important;
}

.breadcrumb {
    background: transparent !important;
    margin-bottom: 0 !important;
}

.breadcrumb-item a {
    color: #243447 !important;
    font-weight: 500 !important;
}

.breadcrumb-item.active {
    color: #C51F5D !important;
    font-weight: 500 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #64748b !important;
}

/* Category Intro / Description */
.category-intro {
    padding: 1.5rem 0 !important;
}

.category-intro .lead {
    color: #243447 !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
}

.category-intro p {
    color: #334155 !important;
    line-height: 1.7 !important;
}

/* Toolbar / Filter Section */
.toolbar {
    background-color: #ffffff !important;
    border: 1px solid #E2E2D2 !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.toolbar .form-control {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
}

.toolbar .form-control:focus {
    border-color: #C51F5D !important;
    box-shadow: 0 0 0 3px rgba(197, 31, 93, 0.15) !important;
}

.toolbar .btn-primary {
    background-color: #C51F5D !important;
    border-color: #C51F5D !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 0.375rem !important;
}

.toolbar .btn-primary:hover {
    background-color: #243447 !important;
    border-color: #243447 !important;
    color: #E2E2D2 !important;
}

.toolbar .btn-outline-secondary {
    border-color: #243447 !important;
    color: #243447 !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

.toolbar .btn-outline-secondary:hover {
    background-color: #243447 !important;
    border-color: #243447 !important;
    color: #E2E2D2 !important;
}

/* Subcategories */
.subcategories .title {
    color: #141D26 !important;
}

.subcategory-card {
    display: block !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #E2E2D2 !important;
}

.subcategory-img img,
.subcategory-img .placeholder-img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.subcategory-name {
    color: #243447 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Product Showcase Cards */
.product.product-2 {
    background: #ffffff !important;
    border: 1px solid #E2E2D2 !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.product.product-2 .product-media {
    position: relative !important;
    background-color: #f8f9fa !important;
    overflow: hidden !important;
}

.product.product-2 .product-body {
    padding: 1rem !important;
    background: #ffffff !important;
}

.product.product-2 .product-cat a {
    color: #64748b !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.product.product-2 .product-title a {
    color: #243447 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

/* Product Price */
.product.product-2 .product-price {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.product.product-2 .new-price {
    color: #C51F5D !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.product.product-2 .old-price {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    text-decoration-color: #94a3b8 !important;
    margin-left: 0.5rem !important;
    font-size: 0.85rem !important;
}

/* Rating */
.product.product-2 .ratings-container {
    margin-bottom: 0.75rem !important;
}

.product.product-2 .ratings-text {
    color: #64748b !important;
    font-size: 0.8rem !important;
}

/* Stock Badge */
.product.product-2 .badge {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 0.375rem !important;
}

.product.product-2 .badge.bg-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

.product.product-2 .badge.bg-danger {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Product Action Buttons */
.product.product-2 .product-action {
    text-align: center !important;
    padding: 0.75rem !important;
    background: #f8f9fa !important;
    border-top: 1px solid #E2E2D2 !important;
}

.product.product-2 .btn-product {
    background-color: #C51F5D !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 0.6rem 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.product.product-2 .btn-product:hover {
    background-color: #243447 !important;
    color: #E2E2D2 !important;
}

.product.product-2 .product-action-vertical {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 3 !important;
}

.product.product-2 .btn-product-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    line-height: 2.5rem !important;
    background: #ffffff !important;
    border: 1px solid #E2E2D2 !important;
    border-radius: 50% !important;
    color: #243447 !important;
    font-size: 1rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.product.product-2 .btn-product-icon:hover {
    background-color: #C51F5D !important;
    border-color: #C51F5D !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(197, 31, 93, 0.25) !important;
}

/* Product Badge Labels */
.product.product-2 .product-label {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    z-index: 3 !important;
}

.product.product-2 .product-label.label-circle {
    border-radius: 50% !important;
    width: 3rem !important;
    height: 3rem !important;
    line-height: 3rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    background-color: #C51F5D !important;
    color: #ffffff !important;
}

/* Related Categories */
.related-categories .title {
    color: #141D26 !important;
}

.related-category-card {
    display: block !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #E2E2D2 !important;
}

.related-category-img img,
.related-category-img .placeholder-img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.related-category-name {
    color: #243447 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Pagination */
.pagination .page-link {
    color: #243447 !important;
    border: 1px solid #E2E2D2 !important;
    font-weight: 500 !important;
}

.pagination .page-item.active .page-link {
    background-color: #C51F5D !important;
    border-color: #C51F5D !important;
    color: #ffffff !important;
}

.pagination .page-link:hover {
    background-color: #243447 !important;
    border-color: #243447 !important;
    color: #E2E2D2 !important;
}

/* Alert Info */
.alert-info {
    background-color: #f0f9ff !important;
    border-color: #C51F5D !important;
    color: #141D26 !important;
    border-radius: 0.5rem !important;
}

.alert-info h4 {
    color: #141D26 !important;
    font-weight: 700 !important;
}
