/* ============================================
   BRAND SHOW PAGE
   ============================================ */

/* Remove container padding for full-width hero */
body:has(.brand-show-hero) .container {
    padding: 0 !important;
    max-width: none !important;
}

/* Hero Section */
.brand-show-hero {
    background: linear-gradient(rgba(10, 22, 53, 0.7), rgba(26, 43, 95, 0.7)),
                url('/images/background-img/background%20image%20marque.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 3rem;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.brand-show-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.brand-show-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.brand-show-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.brand-show-description {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.brand-show-description p {
    margin-bottom: 0.5rem;
}

.brand-show-hero-logo {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    height: 250px;
}

.brand-show-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.brand-show-hero-logo .brand-placeholder {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(10, 22, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Search Bar in Hero */
.brand-show-search-container {
    max-width: 700px;
    position: relative;
    z-index: 100;
}

.brand-show-search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-show-search-form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.brand-show-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: #0a1128;
    background: transparent;
}

.brand-show-search-input::placeholder {
    color: rgba(10, 17, 40, 0.5);
    font-weight: 400;
}

.brand-show-search-icon-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.brand-show-search-icon-btn:hover {
    opacity: 0.7;
}

.brand-show-search-icon-btn svg {
    width: 24px;
    height: 24px;
    color: #0a1128;
}

.brand-show-search-submit {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.brand-show-search-submit:hover {
    background: rgba(10, 17, 40, 0.05);
}

.brand-show-search-submit svg {
    width: 24px;
    height: 24px;
    color: #0a1128;
}

/* Suggestions */
#brandShowSearchSuggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

#brandShowSearchSuggestions .suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

#brandShowSearchSuggestions .suggestion-item:last-child {
    border-bottom: none;
}

#brandShowSearchSuggestions .suggestion-item:hover {
    background: #f8f9fa;
}

#brandShowSearchSuggestions .suggestion-item.no-result {
    justify-content: center;
    color: #999;
}

#brandShowSearchSuggestions .suggestion-item.no-result:hover {
    background: transparent;
}

#brandShowSearchSuggestions .suggestion-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
}

#brandShowSearchSuggestions .suggestion-no-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1rem;
}

#brandShowSearchSuggestions .suggestion-content {
    flex: 1;
}

#brandShowSearchSuggestions .suggestion-code {
    font-size: 0.85rem;
    color: rgba(5, 0, 82, 1);
    font-weight: 600;
}

#brandShowSearchSuggestions .suggestion-name {
    font-size: 0.95rem;
    color: #333;
    margin-top: 0.25rem;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: rgba(5, 0, 82, 1);
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* Replacement Info Section */
.replacement-info-section {
    width: 100%;
    padding: 2rem 0;
    margin: 0;
}

.replacement-info-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.replacement-info-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #0a1635;
}

.replacement-info-main {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.replacement-info-main strong {
    color: rgba(5, 0, 82, 1);
    font-weight: 700;
}

.replacement-info-secondary {
    margin-bottom: 1rem;
}

.replacement-info-secondary a {
    color: rgba(5, 0, 82, 1);
    text-decoration: underline;
    font-weight: 600;
}

.replacement-info-secondary a:hover {
    opacity: 0.7;
}

.replacement-info-detail {
    margin-bottom: 0.75rem;
}

.replacement-info-detail strong {
    color: rgba(5, 0, 82, 1);
    font-weight: 700;
}

/* Label Placeholder */
.replacement-info-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.label-placeholder {
    border: 3px dashed rgba(5, 0, 82, 0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: rgba(5, 0, 82, 0.02);
    width: 100%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.label-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(5, 0, 82, 0.8);
    margin: 0;
}

.placeholder-note {
    font-size: 0.9rem;
    color: rgba(5, 0, 82, 0.5);
    font-style: italic;
}

/* Label Image (when etiquette exists) */
.label-image {
    border: 3px solid rgba(5, 0, 82, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    width: 100%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.label-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.label-image p {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(5, 0, 82, 0.8);
    margin: 0;
}

/* Products Section */
.brand-products-section {
    width: 100%;
    background: white;
    padding: 2rem 0 3rem 0;
}

.products-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.products-container.no-filters {
    grid-template-columns: 1fr;
}

.filters-panel.hidden {
    display: none;
}

/* When filters panel has display:none, adjust grid */
.filters-panel[style*="display: none"] {
    grid-column: 0 / 1;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.filters-panel[style*="display: none"] + .products-content {
    grid-column: 1 / -1;
}

/* Filters Panel */
.filters-panel {
    background: #0a1635;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    color: white;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    margin-bottom: 1.5rem;
}

.filters-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: white;
}

.results-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
    letter-spacing: 0.5px;
}

.filter-options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.filter-option:hover {
    opacity: 0.8;
}

.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #3b82f6;
}

.filter-option span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.filter-option small {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem;
}

/* Products Content */
.products-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-header,
.products-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-info {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.products-info strong {
    color: #0a1635;
    font-weight: 600;
}

.products-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #0a1635;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #0a1635;
    background: #f8f9fa;
}

.page-btn.active {
    background: #0a1635;
    color: white;
    border-color: #0a1635;
}

.page-dots {
    padding: 0 0.5rem;
    color: #999;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.product-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #0a1635;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 22, 53, 0.12);
}

.product-image {
    width: 100%;
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.product-image.no-image {
    position: relative;
    background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 100%);
}

.product-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
}

.product-placeholder-icon svg {
    width: 4rem;
    height: 4rem;
    color: #0a1635;
}

.product-image.no-image::before {
    content: '📦';
    position: absolute;
    font-size: 4rem;
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-image.no-image::after {
    content: 'Image non disponible';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: rgba(5, 0, 82, 0.5);
    font-weight: 500;
    white-space: nowrap;
}

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

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a1635;
    margin: 0;
    line-height: 1.3;
}

.product-code {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.product-code strong {
    color: #0a1635;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-container {
        grid-template-columns: 260px 1fr;
        gap: 2rem;
    }

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

@media (max-width: 968px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filters-panel {
        position: static;
    }

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

    .products-header,
    .products-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .replacement-info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .label-placeholder {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .brand-show-hero {
        padding: 3rem 1.5rem;
    }

    .brand-show-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brand-show-hero-text h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .brand-show-description {
        font-size: 1rem;
    }

    .brand-show-hero-logo {
        height: 250px;
        padding: 2rem;
    }

    .brand-show-search-input {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }

    .brand-show-search-icon-btn,
    .brand-show-search-submit {
        padding: 0.8rem 1rem;
    }

    .brand-show-search-icon-btn svg,
    .brand-show-search-submit svg {
        width: 20px;
        height: 20px;
    }

    .brand-products-section {
        padding: 2rem 1rem;
    }

    .brand-header-info h1 {
        font-size: 2rem;
    }

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

    .brand-cta {
        padding: 2rem;
    }
}

/* No Products Section */
.no-products {
    padding: 4rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.no-products p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1rem;
}

.no-products p:last-child {
    margin-bottom: 0;
}

.no-products a {
    color: #0a1635;
    text-decoration: underline;
    font-weight: 500;
}

.no-products a:hover {
    color: #1a2b5f;
}

/* Filter Info (placeholder for future filters) */
.filter-info {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}