/* =================================
   BRAND DETAIL PAGE STYLES
   ================================= */

.brand-detail-page {
    padding: 34px 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.brand-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.brand-detail-wrapper {
    background: white;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Breadcrumb */
.breadcrumb-public {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.breadcrumb-public a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.next-brand-link { margin-left: auto; text-align: right; }
.next-brand-link:hover { transform: translateX(3px) !important; }

.gallery-loader {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #667eea;
    font-weight: 600;
}

.gallery-loader i { font-size: 22px; }

.gallery-loader[hidden],
.image-slider-container[hidden] {
    display: none !important;
}
.breadcrumb-public a:hover {
    color: #764ba2;
    transform: translateX(-3px);
}

/* Brand Header */
.brand-header-section {
    text-align: center;
    margin-bottom: 36px;
}

.brand-header-section h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 800;
}

.brand-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Slider Section */
.slider-section {
    margin-bottom: 45px;
}

.slider-section h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-section h2 i {
    color: #667eea;
}

/* Image Slider Container */
.image-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide-public,
.image-slider-slide {
    min-width: 100%;
    height: 320px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.slider-slide-public img,
.image-slider-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #667eea;
    transform: scale(1.3);
}

.indicator:hover {
    background: #764ba2;
}

/* CTA Registration Section */
.cta-registration-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 34px 30px 30px;
    border-radius: 20px;
    margin: 36px 0;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.cta-registration-section h2 {
    font-size: clamp(25px, 2.4vw, 32px);
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 800;
}

.cta-registration-section > p {
    max-width: 700px;
    margin: 0 auto 22px;
    font-size: 16px;
    line-height: 1.55;
    opacity: 0.95;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 22px auto 26px;
}

.benefit-card {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.benefit-card i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #FFE66D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    font-size: 10px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 auto 16px;
}

.btn-register,
.btn-contact {
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-register {
    width: min(100%, 460px);
    min-height: 52px;
    padding: 14px 30px;
    justify-content: center;
    background: white;
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(31, 35, 86, 0.24);
}

.btn-register:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(31, 35, 86, 0.32);
}

.btn-register:focus-visible,
.btn-contact:focus-visible,
.existing-customer a:focus-visible {
    outline: 3px solid #FFE66D;
    outline-offset: 3px;
}

.existing-customer {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.existing-customer a {
    color: white;
    font-weight: 700;
}

.btn-contact {
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.btn-contact:hover {
    color: #dfffea;
    text-decoration: underline;
}

.security-note {
    margin: 12px 0 0;
    font-size: 13px;
    opacity: 0.82;
}
/* Responsive Design */
@media (max-width: 768px) {
    .brand-detail-wrapper {
        padding: 20px;
    }
    
    .brand-header-section h1 {
        font-size: 1.8rem;
    }
    
    .slider-slide-public,
    .image-slider-slide {
        height: 300px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta-registration-section {
        padding: 28px 18px 24px;
    }
    
    .cta-registration-section h2 {
        font-size: 1.6rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .btn-register { width: 100%; }
}

@media (max-width: 480px) {
    .breadcrumb-public { gap: 12px; }
    .breadcrumb-public a { font-size: 13px; }
    .gallery-loader { min-height: 260px; }
    .brand-detail-page {
        padding: 28px 12px;
    }

    .brand-detail-wrapper {
        padding: 20px;
    }

    .slider-slide-public,
    .image-slider-slide {
        height: 260px;
    }

    .brand-description,
    .cta-registration-section > p {
        font-size: 15px;
    }
    .btn-register {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .benefit-card { font-size: 12px; padding: 10px 7px; }
    .existing-customer, .btn-contact { font-size: 13px; }
}

/* Reference-inspired Brand Detail layout using existing dynamic data */
.brand-detail-page {
    padding: 28px 20px 48px;
    background: linear-gradient(180deg, #f8faff 0%, #f5f7fb 100%);
}

.brand-detail-container { max-width: 1100px; }

.brand-detail-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.92fr);
    grid-template-areas:
        "crumb crumb"
        "gallery info"
        "gallery actions";
    gap: 18px 38px;
    padding: 20px;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(48, 55, 88, 0.09);
}

.breadcrumb-public {
    grid-area: crumb;
    margin: 0 8px 2px;
}

.brand-pager {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.previous-brand-link[hidden],
.next-brand-link[hidden] { display: none !important; }

.brand-header-section {
    grid-area: info;
    align-self: end;
    text-align: left;
    margin: 0;
    padding: 8px 4px 0;
}

.brand-header-section h1 {
    margin: 0 0 16px;
    color: #222a3a;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
}

.brand-description {
    max-width: none;
    margin: 0;
    color: #4c5568;
    font-size: 15px;
    line-height: 1.75;
}

.slider-section {
    grid-area: gallery;
    min-width: 0;
    margin: 0;
}

.slider-section > h2 { display: none; }

.gallery-loader,
.image-slider-container {
    min-height: 500px;
    border-radius: 14px;
}

.image-slider-container {
    overflow: visible;
    background: white;
    box-shadow: none;
}

.image-slider-wrapper {
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f4;
}

.slider-slide-public,
.image-slider-slide {
    height: 500px;
    background: #f5f5f4;
}

.slider-slide-public img,
.image-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-controls { padding: 0 16px; }
.slider-btn { width: 46px; height: 46px; color: #3d3d58; }

.slider-indicators {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 0 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.indicator {
    flex: 0 0 112px;
    width: 112px;
    height: 86px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f4f4f4;
    transform: none;
}

.indicator img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.indicator.active {
    border-color: #6d4bea;
    background: white;
    transform: none;
    box-shadow: 0 4px 14px rgba(109, 75, 234, 0.2);
}

.cta-registration-section {
    grid-area: actions;
    align-self: start;
    margin: 0;
    padding: 22px 4px 4px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #283044;
    text-align: left;
}

.cta-registration-section h2,
.cta-registration-section > p { display: none; }

.benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.benefit-card {
    justify-content: flex-start;
    padding: 11px 12px;
    border-color: #ece8fb;
    background: #f8f6ff;
    color: #353c50;
}

.benefit-card i {
    background: #eee9ff;
    color: #6d4bea;
}

.cta-buttons { align-items: stretch; gap: 10px; margin-bottom: 12px; }

.btn-register {
    width: 100%;
    color: white;
    background: linear-gradient(135deg, #6d4bea 0%, #9c3fd7 100%);
    box-shadow: 0 8px 22px rgba(109, 75, 234, 0.25);
}

.existing-customer {
    padding: 11px 14px;
    border: 1px solid #cfc5f5;
    border-radius: 10px;
    color: #30384b;
    text-align: center;
}
.existing-customer a { color: #6d4bea; }

.btn-contact {
    justify-content: center;
    color: #30384b;
}
.btn-contact i { color: #22b455; }
.btn-contact:hover { color: #6d4bea; }

.security-note { text-align: center; color: #667085; }

@media (max-width: 980px) {
    .brand-detail-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: "crumb" "info" "gallery" "actions";
        gap: 22px;
    }
    .brand-header-section { text-align: center; }
    .brand-description { max-width: 760px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .brand-detail-page { padding: 18px 10px 34px; }
    .brand-detail-wrapper { padding: 14px; border-radius: 16px; }
    .breadcrumb-public { align-items: flex-start; }
    .brand-pager { gap: 12px; }
    .breadcrumb-public a { font-size: 12px; }
    .gallery-loader,
    .image-slider-container { min-height: 330px; }
    .slider-slide-public,
    .image-slider-slide { height: 330px; }
    .indicator { flex-basis: 78px; width: 78px; height: 62px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .benefit-card { font-size: 11px; }
}
/* Reliable active-slide rendering */
.image-slider-wrapper {
    position: relative;
    height: 500px;
    transform: none !important;
}

.image-slider-wrapper .image-slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.image-slider-wrapper .image-slider-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .image-slider-wrapper { height: 330px; }
}
/* Dynamic related brands */
.related-brands-section {
    margin-top: 18px;
    padding: 24px 26px 28px;
    border: 1px solid #edf0f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(48, 55, 88, 0.07);
}
.related-brands-section[hidden] { display: none !important; }
.related-brands-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.related-brands-heading h2 { flex: 0 0 auto; margin: 0; color: #222a3a; font-size: 21px; line-height: 1.2; }
.related-brands-line { width: 100%; height: 1px; background: linear-gradient(90deg, #ddd6fe, transparent); }
.related-brands-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.related-brand-card {
    min-width: 0;
    padding: 14px 12px 12px;
    border: 1px solid #e7eaf2;
    border-radius: 14px;
    background: #fff;
    color: #2d3445;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.related-brand-card:hover,
.related-brand-card:focus-visible { border-color: #8b6af0; box-shadow: 0 9px 22px rgba(109, 75, 234, .14); transform: translateY(-3px); outline: none; }
.related-brand-media { display: flex; align-items: center; justify-content: center; height: 72px; margin-bottom: 10px; }
.related-brand-media img { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.related-brand-media.is-placeholder { color: #7354e8; font-size: 28px; }
.related-brand-card strong { display: block; overflow: hidden; color: inherit; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .related-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .related-brands-section { padding: 20px 14px; }
    .related-brands-heading h2 { font-size: 19px; }
    .related-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .related-brand-media { height: 58px; }
    .related-brand-media img { max-height: 52px; }
}
/* Register button visual system: primary CTA on Brand Detail */
.cta-registration-section .btn-register {
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#21d4d8 0%,#ed3588 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(90,103,190,.25);
    font-family: 'Poppins',sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.cta-registration-section .btn-register:hover {
    background: linear-gradient(135deg,#21d4d8 0%,#ed3588 100%);
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 13px 28px rgba(90,103,190,.32);
}
.cta-registration-section .btn-register:focus-visible {
    outline: 3px solid rgba(102,126,234,.32);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(102,126,234,.16);
}
/* Mobile gallery: larger product presentation and touch-friendly thumbnails */
@media (max-width: 600px) {
    .gallery-loader,
    .image-slider-container {
        min-height: 0;
    }

    .image-slider-wrapper {
        height: clamp(270px, 82vw, 330px);
        border-radius: 12px;
    }

    .image-slider-wrapper .image-slider-slide,
    .slider-slide-public {
        height: 100%;
        padding: 0;
    }

    .slider-slide-public img,
    .image-slider-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .slider-controls {
        padding: 0 8px;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
    }

    .slider-indicators {
        display: flex;
        gap: 8px;
        width: 100%;
        margin-top: 12px;
        padding: 2px 0 6px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .indicator {
        flex: 0 0 calc((100% - 16px) / 3);
        width: calc((100% - 16px) / 3);
        height: 82px;
        scroll-snap-align: start;
    }

    .indicator img {
        object-fit: contain;
    }
}

@media (max-width: 380px) {
    .image-slider-wrapper {
        height: 290px;
    }

    .indicator {
        height: 76px;
    }
}
/* Complete images, including linked responsive pictures. */
.brand-lightbox.public-image-dialog { box-sizing: border-box; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 68px 76px 52px; color: white; }
.brand-lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox-zoom-frame { overflow: hidden; flex: 0 0 auto; max-width: 100%; max-height: 100%; touch-action: pan-y pinch-zoom; }
.brand-lightbox.public-image-dialog .lightbox-zoom-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) { .lightbox-zoom-frame { cursor: zoom-in; } .lightbox-zoom-frame.is-zoomed { cursor: crosshair; } }

.brand-lightbox.public-image-dialog img { max-width: 100%; max-height: 100%; touch-action: pan-y pinch-zoom; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid #ffffff55; border-radius: 50%; background: #fff; color: #25324a; font-size: 38px; line-height: 1; cursor: pointer; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 20px; background: #ffffff20; font-size: 14px; }
.lightbox-arrow:focus-visible { outline: 3px solid #a991ff; outline-offset: 4px; }
.brand-lightbox, .brand-lightbox * { -webkit-user-select: none; user-select: none; }
.brand-lightbox .lightbox-arrow { display: grid; place-items: center; padding: 0; font-size: 0; }
.brand-lightbox .lightbox-arrow::before { content: ''; position: absolute; top: 50%; left: 50%; box-sizing: border-box; width: 14px; height: 14px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; }
.brand-lightbox .lightbox-prev::before { transform: translate(-50%, -50%) translateX(3px) rotate(-135deg); }
.brand-lightbox .lightbox-next::before { transform: translate(-50%, -50%) translateX(-3px) rotate(45deg); }
@media (max-width: 600px) {
    .brand-lightbox.public-image-dialog { padding: 68px 10px 76px; }
    .lightbox-arrow { top: auto; bottom: 12px; transform: none; }
    .lightbox-counter { bottom: 22px; }
}
.image-slider-wrapper, .image-slider-wrapper .image-slider-slide, .slider-indicators .indicator { background: #fff; }
.brand-image-open { min-width: 0; min-height: 0; }
.brand-image-open { cursor: zoom-in; }
.image-slider-slide img { object-fit: contain; object-position: center; }
.slider-indicators .indicator img { object-fit: contain; }
.cta-registration-section .btn-contact { min-height: 48px; padding: 12px 16px; border: 1px solid #ded9f4; background: #f7f5ff; color: #5940a0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; text-decoration: none; }
.cta-registration-section .btn-contact:hover { background: #eee9fc; }
.cta-registration-section .btn-contact i { color: inherit; }
.brand-inquiry { box-sizing: border-box; width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 30px; overflow-y: auto; border: 1px solid #e9e5f5; border-radius: 24px; background: #fff; color: #283044; box-shadow: 0 24px 90px #17223c40; }
.brand-inquiry::backdrop { background: #18203a88; backdrop-filter: blur(5px); }
.inquiry-close { position: absolute; right: 16px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f1f8; color: #52516b; font-size: 28px; cursor: pointer; }
.inquiry-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg,#e3fbfb,#f5e6f2); color: #68509d; font-size: 26px; margin-bottom: 14px; }
.inquiry-eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: 1.4px; font-weight: 700; color: #79659c; }
.brand-inquiry h2 { margin: 0 32px 10px 0; font-size: 27px; line-height: 1.2; color: #273047; }
#inquiryIntro { margin: 0; font-size: 14px; line-height: 1.6; color: #6b7284; }
.inquiry-brand { margin: 18px 0; padding: 11px 14px; border-radius: 10px; background: #f6f4fc; font-size: 12px; color: #655587; }
.inquiry-brand strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.inquiry-form { display: grid; gap: 16px; }
.inquiry-form[hidden] { display: none; }
.inquiry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.inquiry-form label { display: block; min-width: 0; font-size: 12px; font-weight: 600; color: #424a60; }
.inquiry-form input:not([type=hidden]), .inquiry-form textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 12px; border: 1px solid #dddfea; border-radius: 10px; background: #fcfcfe; color: #293149; font: inherit; font-size: 16px; }
.inquiry-form textarea { resize: vertical; min-height: 92px; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 3px solid #8565d51c; border-color: #9274d8; background: white; }
.inquiry-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.inquiry-form legend { margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.inquiry-phone { display: grid; grid-template-columns: 1fr .8fr 1.4fr; gap: 10px; }
.inquiry-form small { display: block; margin-top: 7px; color: #787e8f; font-size: 11px; line-height: 1.5; }
.inquiry-optional { font-weight: 400; color: #858999; }
.inquiry-submit { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; border: 0; border-radius: 12px; background: linear-gradient(110deg,#547dc4,#995bc1); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.inquiry-submit:disabled { opacity: .6; cursor: wait; }
.inquiry-note { margin: 0; text-align: center; font-size: 11px; color: #787e8f; }
.inquiry-status { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #994b43; }
.inquiry-status:empty { display: none; }
.inquiry-status.is-success { border-radius: 12px; background: #edf9f4; padding: 18px; color: #22634a; }
@media (max-width: 600px) { .image-slider-wrapper { height: clamp(260px, 90vw, 420px); } }
@media (max-width: 480px) { .brand-inquiry { padding: 24px 18px; border-radius: 20px; } .brand-inquiry h2 { font-size: 23px; } .inquiry-grid { grid-template-columns: 1fr; } .inquiry-phone { gap: 7px; } }
/* Keep the complete inquiry within ordinary laptop viewports. */
.brand-inquiry { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 22px 26px; }
.inquiry-icon { float: left; width: 38px; height: 38px; margin: 0 12px 8px 0; font-size: 22px; border-radius: 12px; }
.inquiry-eyebrow { padding-right: 44px; margin-bottom: 5px; }
.brand-inquiry h2 { font-size: 24px; margin-bottom: 8px; }
#inquiryIntro { clear: both; font-size: 13px; line-height: 1.45; }
.inquiry-brand { margin: 12px 0; padding: 8px 12px; }
.inquiry-brand strong { display: inline; margin-left: 6px; }
.inquiry-form { gap: 12px; }
.inquiry-form input:not([type=hidden]), .inquiry-form textarea { margin-top: 5px; padding: 9px 11px; font-weight: 400; }
.inquiry-form textarea { min-height: 72px; height: 72px; }
.inquiry-form legend { margin-bottom: 5px; }
.inquiry-form small { margin-top: 5px; }
.inquiry-submit { min-height: 44px; }
@media (min-width: 640px) {
    .inquiry-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
    .inquiry-grid, .inquiry-form > label:has(textarea), .inquiry-submit, .inquiry-note { grid-column: 1 / -1; }
    .inquiry-form > label:has(input[name="address"]) { padding-top: 22px; }
}
@media (max-width: 639px) {
    .brand-inquiry { padding: 18px; }
    .brand-inquiry h2 { clear: both; font-size: 22px; }
    .inquiry-eyebrow { min-height: 38px; display: flex; align-items: center; font-size: 9px; }
    .inquiry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .inquiry-form { gap: 10px; }
    .inquiry-close { top: 10px; right: 10px; }
}
@media (max-width: 359px) { .inquiry-grid { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-height: 650px) {
    .brand-inquiry { padding-top: 16px; padding-bottom: 16px; }
    .inquiry-form { gap: 8px; }
    .inquiry-brand { margin: 8px 0; }
}


/* Compact public brand card, with complete product images. */
.brand-detail-container { max-width: 1040px; }
.brand-detail-page { padding-top: 22px; }
.brand-detail-wrapper { gap: 16px 28px; padding: 18px; }
.brand-header-section h1 { font-size: clamp(26px, 2.5vw, 34px); margin-bottom: 12px; }
.brand-description { font-size: 14px; line-height: 1.6; }
.cta-registration-section { padding-top: 12px; }
.benefits-grid { margin-bottom: 14px; }
.benefit-card { padding: 9px 10px; }
@media (min-width: 981px) {
    .brand-detail-wrapper { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); }
    .image-slider-container, .gallery-loader { min-height: 420px; }
    .image-slider-wrapper { height: 420px; }
    .slider-indicators .indicator { flex-basis: 90px; width: 90px; height: 70px; }
}
@media (max-width: 600px) {
    .brand-detail-wrapper { padding: 14px; gap: 18px; }
    .brand-header-section h1 { font-size: 26px; }
    .image-slider-wrapper { height: clamp(260px, 78vw, 340px); }
}


/* Real image download/decode feedback for gallery and full-screen viewer. */
.brand-image-open { position: relative; }
.image-load-status { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(280px, 80%); padding: 18px; text-align: center; color: #625a80; font-size: 14px; line-height: 1.5; pointer-events: none; z-index: 1; }
.image-load-status[hidden] { display: none; }
.image-is-loading > .image-load-status::before { content: ''; width: 32px; height: 32px; border: 3px solid #b8a9e34d; border-top-color: #9473e6; border-radius: 50%; animation: image-loading-spin .8s linear infinite; }
.brand-lightbox > .image-load-status { color: #fff; }
.image-is-loading img, .image-load-failed img { visibility: hidden; }
.brand-lightbox .lightbox-arrow, .brand-lightbox .public-image-close { z-index: 2; }
@keyframes image-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .image-is-loading > .image-load-status::before { animation: none; } }
