/* Brand Page Styles */

.breadcrumb-section {
    background-color: #f8f9fc;
    padding: 15px 0;
    border-bottom: 1px solid #eaedf2;
    margin-bottom: 0;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
}

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

.breadcrumb-item a:hover {
    color: #ff5bae;
    text-decoration: underline;
}

.brand-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f2ff 100%);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.brand-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff5bae, #fd72cc);
}

.brand-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/pattern.svg') repeat;
    opacity: 0.04;
    z-index: 0;
}

.brand-image {
    max-height: 100px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}

.brand-image:hover {
    transform: scale(1.08);
}

.brand-header h1 {
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.brand-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-section {
    padding: 70px 0;
    background-color: #fcfcfd;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 20px;
    font-size: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #ff5bae, #fd72cc);
}

/* Wrapping utilities for long names */
.name-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Ensure brand titles wrap nicely even with very long words */
.section-title,
.brand-header h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Filter tags and links: allow wrapping of long names */
.filter-tag,
.clear-all-filters,
.filter-header h3 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    min-width: 0;
}

.filter-section {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.filter-section h3 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.form-select {
    border-color: #e0e0e0;
    padding: 12px;
    font-size: 0.95rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #ff5bae;
    box-shadow: 0 0 0 0.25rem rgba(255, 91, 174, 0.15);
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #ff5bae, #fd72cc);
    border: none;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #fd72cc, #ff5bae);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 91, 174, 0.25);
}

.btn-outline-secondary {
    border: 1px solid #ced4da;
    color: #6c757d;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #5a6268;
    transform: translateY(-2px);
}

.product-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0;
}

.product-image-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f3eef0;
    border-radius: 0;
}

.product-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
}

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

.product-info {
    padding: 15px 0;
}

.product-title {
    font-weight: 700;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #000;
    font-size: 1.15rem;
    text-decoration: none;
}

.product-title:hover {
    color: #ff5bae;
}

.product-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: #666666;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-categories {
    margin-bottom: 10px;
}

.badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.75rem;
    margin-right: 5px;
    background-color: #f0f0f0;
    color: #666;
}

.vehicle-details {
    margin-bottom: 12px;
}

.text-muted {
    color: #888 !important;
}

.product-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: #ff5bae;
    margin: 12px 0;
}

.rating {
    color: #ffce00;
    margin-bottom: 15px;
}

.rating i {
    margin-right: 2px;
}

.buy-now-btn {
    background: linear-gradient(90deg, #ff5bae, #fd72cc);
    color: white;
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.buy-now-btn:hover {
    background: linear-gradient(90deg, #fd72cc, #ff5bae);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 91, 174, 0.25);
    color: white;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    color: #6c757d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background-color: #fff;
    color: #ff5bae;
    transform: scale(1.1);
}

.back-to-shop {
    display: inline-block;
    margin-top: 30px;
    text-align: center;
    padding: 14px 35px;
    background: #d2d2d2;
    color: black;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #d2d2d2;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.back-to-shop:hover {
    background-color: #ff83c2;
    color: white;
    border-color: #ff83c2;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.no-products {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
    font-size: 1.2rem;
    background-color: #f9f9f9;
    border: 2px dashed #e0e0e0;
}

.brand-header-content {
    position: relative;
    z-index: 1;
}

.brand-description {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 12px 15px;
}

.brand-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff5bae;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-filters {
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.active-filters p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.9rem;
}

.remove-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background-color: #fd72cc;
    color: white;
}

.products-count {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.products-count p {
    margin: 0;
}

.product-image-link {
    display: block;
    overflow: hidden;
}

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

/* Responsive styles */
@media (max-width: 991px) {
    .product-card {
        max-width: 280px;
    }
    .product-card img {
        height: 280px;
    }
    .brand-header {
        padding: 30px 0;
    }
    .brand-image {
        max-height: 90px;
    }
    .brand-header h1 {
        font-size: 2.2rem;
    }
    .brand-stats {
        gap: 20px;
    }
    .stat-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .product-card {
        max-width: 240px;
    }
    .product-card img {
        height: 240px;
    }
    .filter-section {
        padding: 20px 15px;
    }
    .brand-description {
        font-size: 0.95rem;
    }
    .brand-stats {
        gap: 15px;
    }
    .brand-header {
        padding: 25px 0;
    }
    .brand-image {
        max-height: 80px;
        margin-bottom: 15px;
    }
    .brand-header h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    .brand-header p {
        font-size: 1rem;
    }
    .filter-tag {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .product-card {
        max-width: 100%;
    }
    .product-card img {
        height: auto;
        aspect-ratio: 1/1;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .brand-header {
        padding: 20px 0;
    }
    .brand-header h1 {
        font-size: 1.8rem;
    }
    .brand-header p {
        font-size: 0.95rem;
    }
    .product-section {
        padding: 40px 0;
    }
    .brand-stats {
        flex-direction: column;
        gap: 10px;
    }
    .stat-item {
        flex-direction: row;
        gap: 10px;
    }
    .filter-tags {
        gap: 8px;
    }
    .active-filters {
        padding: 12px 15px;
    }
}

/* Grid layout styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* Product card styles for grid layout */
.grid-container .product-card {
    position: relative;
    overflow: hidden;
    border: none;
    margin-bottom: 0;
    max-width: none;
    box-shadow: none;
    transition: none;
    height: auto;
    background-color: transparent;
}

.grid-container .product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-image-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f3eef0;
}

.grid-container .product-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.grid-container .product-card:hover img {
    transform: scale(1.1);
}

.grid-container .product-info {
    padding: 15px 0;
}

.grid-container .product-title {
    font-weight: 700;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #000;
    font-size: 1.15rem;
    text-decoration: none;
}

.grid-container .product-title:hover {
    color: #ff5bae;
}

.grid-container .product-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
}

.grid-container .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-container .no-products {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    background-color: #f8f9fa;
    border: 2px dashed #ff5bae;
    color: #666;
}

/* Modern Filter Styles */
.filter-container {
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.filter-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(45deg, #fcfcfd, #f8f9fc);
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.filter-header:hover {
    background: linear-gradient(45deg, #f8f9fc, #f1f3f9);
}

.filter-header h3 {
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-toggle {
    color: #666;
    transition: all 0.3s ease;
}

.filter-header[aria-expanded="false"] .filter-toggle i {
    transform: rotate(180deg);
}

.filter-body {
    padding: 25px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #333;
    cursor: pointer;
}

.custom-select:focus {
    border-color: #ff5bae;
    box-shadow: 0 0 0 3px rgba(255, 91, 174, 0.1);
    outline: none;
}

.custom-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 0.8rem;
}

.filter-actions {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 10px;
}

.btn-apply {
    background: linear-gradient(90deg, #ff5bae, #fd72cc);
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 91, 174, 0.25);
}

.btn-apply:hover {
    background: linear-gradient(90deg, #fd72cc, #ff5bae);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 91, 174, 0.35);
}

.btn-reset {
    border: 1px solid #e0e0e0;
    background-color: transparent;
    color: #666;
    padding: 12px 25px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-reset:hover {
    background-color: #f8f9fa;
    color: #333;
    transform: translateY(-2px);
}

/* Active Filters Styling */
.active-filters {
    background-color: #f8f9fc;
    padding: 18px 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.active-filters p {
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-tag {
    background-color: #fff;
    color: #333;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.09);
}

.filter-tag .filter-label {
    color: #999;
    display: inline;
    margin-right: 4px;
    margin-bottom: 0;
}

.remove-filter {
    color: #999;
    margin-left: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    color: #ff5bae;
    transform: scale(1.1);
}

.clear-all-filters {
    color: #ff5bae;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
    background-color: rgba(255, 91, 174, 0.08);
    transition: all 0.2s ease;
    margin-left: auto;
}

.clear-all-filters:hover {
    background-color: rgba(255, 91, 174, 0.15);
    box-shadow: 0 2px 8px rgba(255, 91, 174, 0.2);
}

.products-count {
    background-color: #fff;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.products-count p {
    font-weight: 600;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-apply, .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .filter-header h3 {
        font-size: 1.1rem;
    }
    
    .clear-all-filters {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
    
    .filter-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Notification alert styles */
.notification-alert {
    background-color: #f0f9ff;
    border-left: 4px solid #4dabf7;
    padding: 15px 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notification-alert i {
    color: #4dabf7;
    font-size: 1.5rem;
    margin-right: 15px;
}

.notification-alert p {
    color: #495057;
    margin: 0;
    font-size: 0.95rem;
}

/* Add styles for filter hint */
.filter-hint {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    font-style: italic;
} 