/* ==========================================================================
   KapanStore (zpro.am) Brand Showcase & /brands Directory Styles
   Tailwind v2.2.19 Safe Scoped CSS (360px - 2560px+)
   ========================================================================== */

.zpro-bs-section,
.zpro-bs-section *,
.zpro-bs-section *::before,
.zpro-bs-section *::after {
    box-sizing: border-box;
}

.zpro-bs-section {
    width: 100%;
    max-width: 100%;
    padding: 12px 0;
}

.zpro-bs-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.zpro-bs-container--flush {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 640px) {
    .zpro-bs-container:not(.zpro-bs-container--flush) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Header */
.zpro-bs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.zpro-bs-header-copy {
    min-inline-size: 0;
    width: 100%;
    flex: 0 0 auto;
}

.zpro-bs-header .zpro-bs-header-copy {
    flex: 1 1 260px;
    width: auto;
}

.zpro-bs-title {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.25;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -0.015em;
}

@media (min-width: 768px) {
    .zpro-bs-title {
        font-size: 1.625rem;
    }
}

.zpro-bs-subtitle {
    margin: 4px 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #52525b;
}

.zpro-bs-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-block-size: 44px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e4e4e7;
    background-color: #ffffff;
    color: #18181b;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.zpro-bs-all-link:hover {
    border-color: rgba(204, 0, 0, 0.4);
    color: #cc0000;
    background-color: #fffafa;
}

.zpro-bs-all-link svg {
    width: 15px;
    height: 15px;
    transition: transform 180ms ease;
}

.zpro-bs-all-link:hover svg {
    transform: translateX(3px);
}

/* Focus accessibility */
.zpro-bs-all-link:focus-visible,
.zpro-bs-card-link:focus-visible,
.zpro-bs-arch-cell:focus-visible,
.zpro-bs-bento-hero:focus-visible,
.zpro-bs-bento-tile:focus-visible {
    outline: 3px solid #cc0000;
    outline-offset: 2px;
}

/* ==========================================================================
   VARIANT 1: STUDIO CARDS (Refined 4x2 Elevated Studio Grid)
   ========================================================================== */
.zpro-bs-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 520px) {
    .zpro-bs-studio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .zpro-bs-studio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

.zpro-bs-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-inline-size: 0;
}

.zpro-bs-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.zpro-bs-card-link:hover {
    border-color: rgba(204, 0, 0, 0.42);
    box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.11);
    transform: translateY(-2px);
}

.zpro-bs-logo-tray {
    width: 100%;
    height: 84px;
    border-radius: 10px;
    background-color: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 519px) {
    .zpro-bs-logo-tray {
        height: 76px;
    }
}

.zpro-bs-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 200ms ease;
}

.zpro-bs-card-link:hover .zpro-bs-logo-img {
    transform: scale(1.03);
}

.zpro-bs-logo-fallback {
    font-size: 1rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Top-pinned Brand Name + Country (Left) and Count (Right) */
.zpro-bs-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    min-inline-size: 0;
}

.zpro-bs-card-titles {
    min-inline-size: 0;
    flex: 1 1 auto;
}

.zpro-bs-name {
    margin: 0;
    font-size: 0.96875rem;
    font-weight: 700;
    line-height: 1.25;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 180ms ease;
}

.zpro-bs-card-link:hover .zpro-bs-name {
    color: #cc0000;
}

.zpro-bs-origin {
    margin: 3px 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #6b7280;
    min-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zpro-bs-count {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #4b5563;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Category Pills aligned cleanly below Brand Name / Country row */
.zpro-bs-pills {
    margin-top: 10px;
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-self: flex-start;
    gap: 5px;
    min-inline-size: 0;
}

.zpro-bs-pill {
    display: inline-block;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: #f4f5f6;
    border: 1px solid #eceef0;
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   VARIANT 2: ARCHITECTURAL GALLERY GRID (1px Hairline Editorial Frame)
   ========================================================================== */
.zpro-bs-arch-frame {
    background-color: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
}

@media (min-width: 1024px) {
    .zpro-bs-arch-frame {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.zpro-bs-arch-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-inline-size: 0;
    min-block-size: 44px;
    background-color: #ffffff;
    padding: 18px 12px 15px;
    text-decoration: none;
    transition: background-color 180ms ease;
}

@media (min-width: 768px) {
    .zpro-bs-arch-cell {
        padding: 24px 20px 18px;
    }
}

.zpro-bs-arch-cell:hover {
    background-color: #fafafb;
}

.zpro-bs-arch-logo-wrap {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
}

@media (min-width: 768px) {
    .zpro-bs-arch-logo-wrap {
        height: 76px;
        padding: 6px 14px;
    }
}

.zpro-bs-arch-logo-img {
    max-width: 86%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 200ms ease;
}

.zpro-bs-arch-cell:hover .zpro-bs-arch-logo-img {
    transform: scale(1.04);
}

.zpro-bs-arch-name {
    margin: 12px 0 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #18181b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 180ms ease;
}

.zpro-bs-arch-cell:hover .zpro-bs-arch-name {
    color: #cc0000;
}

.zpro-bs-arch-caption {
    margin: 4px 0 0;
    font-size: 0.725rem;
    line-height: 1.35;
    color: #6b7280;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zpro-bs-arch-foot {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #52525b;
    font-variant-numeric: tabular-nums;
    transition: color 180ms ease;
}

.zpro-bs-arch-cell:hover .zpro-bs-arch-foot {
    color: #cc0000;
}

.zpro-bs-arch-arrow {
    display: inline-block;
    transition: transform 180ms ease;
}

.zpro-bs-arch-cell:hover .zpro-bs-arch-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   VARIANT 3: SPOTLIGHT BENTO (2 Wide Hero Cards + 6 Compact Studio Tiles)
   ========================================================================== */
.zpro-bs-bento-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.zpro-bs-bento-heroes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 768px) {
    .zpro-bs-bento-heroes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.zpro-bs-bento-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.zpro-bs-bento-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #18181b 0%, #cc0000 100%);
}

.zpro-bs-bento-hero:hover {
    border-color: rgba(204, 0, 0, 0.42);
    box-shadow: 0 14px 28px -12px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.zpro-bs-bento-hero-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-inline-size: 0;
}

@media (min-width: 520px) {
    .zpro-bs-bento-hero-top {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }
}

.zpro-bs-bento-hero-stage {
    width: 100%;
    height: 92px;
    border-radius: 12px;
    background-color: #f6f7f8;
    border: 1px solid #eceef0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    flex-shrink: 0;
}

@media (min-width: 520px) {
    .zpro-bs-bento-hero-stage {
        width: 210px;
        height: 98px;
    }
}

.zpro-bs-bento-hero-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 200ms ease;
}

.zpro-bs-bento-hero:hover .zpro-bs-bento-hero-img {
    transform: scale(1.03);
}

.zpro-bs-bento-hero-info {
    min-inline-size: 0;
    flex: 1 1 auto;
}

.zpro-bs-bento-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.zpro-bs-bento-hero-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #18181b;
    transition: color 180ms ease;
}

.zpro-bs-bento-hero:hover .zpro-bs-bento-hero-name {
    color: #cc0000;
}

.zpro-bs-bento-hero-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #18181b;
    border-radius: 9999px;
    padding: 3px 10px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.zpro-bs-bento-hero-origin {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

.zpro-bs-bento-hero-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eceef0;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    align-content: space-between;
    justify-content: space-between;
    gap: 10px 12px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .zpro-bs-bento-hero-foot {
        flex-wrap: nowrap;
        align-items: stretch;
    }
}

.zpro-bs-bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-inline-size: 0;
    flex: 1 1 160px;
    align-self: flex-start;
}

.zpro-bs-bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 23px;
    margin-top: auto;
    margin-left: auto;
    align-self: flex-end;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #cc0000;
    white-space: nowrap;
    flex-shrink: 0;
}

.zpro-bs-bento-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 180ms ease;
}

.zpro-bs-bento-hero:hover .zpro-bs-bento-cta svg {
    transform: translateX(3px);
}

/* Compact Bento Grid Bottom Row */
.zpro-bs-bento-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .zpro-bs-bento-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .zpro-bs-bento-tiles {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }
}

.zpro-bs-bento-tile {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
    min-block-size: 44px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 12px;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.zpro-bs-bento-tile:hover {
    border-color: rgba(204, 0, 0, 0.42);
    box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.zpro-bs-bento-tile-stage {
    width: 100%;
    height: 66px;
    border-radius: 9px;
    background-color: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    overflow: hidden;
}

.zpro-bs-bento-tile-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.zpro-bs-bento-tile-name {
    margin: 10px 0 0;
    font-size: 0.84375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 180ms ease;
}

.zpro-bs-bento-tile:hover .zpro-bs-bento-tile-name {
    color: #cc0000;
}

.zpro-bs-bento-tile-sub {
    margin: 3px 0 0;
    font-size: 0.71875rem;
    line-height: 1.3;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .zpro-bs-all-link,
    .zpro-bs-all-link svg,
    .zpro-bs-card-link,
    .zpro-bs-logo-img,
    .zpro-bs-arch-cell,
    .zpro-bs-arch-logo-img,
    .zpro-bs-arch-arrow,
    .zpro-bs-bento-hero,
    .zpro-bs-bento-hero-img,
    .zpro-bs-bento-cta svg,
    .zpro-bs-bento-tile {
        transition: none !important;
        transform: none !important;
    }
}
