/* ==============================================================================
   DOT JEANS CO. — BRAND SHOWCASE STYLES (brand.css)
   Complements category.css with Brand-Specific Banners, Cards & Wholesale Enquiry
   ============================================================================== */

/* ── Brand Hero Banner ────────────────────────────────────── */
.brand-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    background-color: #0b1420;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 64px;
    /* offset sticky navbar */
}

.brand-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.6s ease, transform 0.8s ease;
    filter: brightness(0.75);
}

.brand-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(8, 16, 26, 0.92) 0%,
            rgba(8, 16, 26, 0.72) 50%,
            rgba(8, 16, 26, 0.85) 100%);
    z-index: 1;
}

.brand-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 36px;
    width: 100%;
}

.brand-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 16px;
}

.brand-hero-badge.badge-kocoa {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.brand-hero-badge.badge-crosscountry {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.brand-hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 0 28px 0;
}

.brand-switch-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 29, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.brand-switch-btn {
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-switch-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.brand-switch-btn.active {
    background: #ffffff;
    color: #0c1926;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Breadcrumb adjustments ────────────────────────────────── */
.cat-breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    background: transparent;
}

.cat-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cat-breadcrumb a:hover {
    color: #0f1d2f;
}

.cat-breadcrumb .sep {
    color: #cbd5e1;
    font-size: 11px;
}

.cat-breadcrumb .current {
    color: #0f1d2f;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Toolbar & View All Products Button ─────────────────────── */
.cat-toolbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 36px 20px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-toolbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f1d2f;
    letter-spacing: 0.5px;
}

.brand-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.view-all-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1d2f;
    background: #ffffff;
    border: 1px solid #d8e0e8;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-all-products-btn:hover {
    background: #0f1d2f;
    color: #ffffff;
    border-color: #0f1d2f;
    box-shadow: 0 4px 12px rgba(15, 29, 47, 0.18);
}

/* ── Layout & Products Grid ────────────────────────────────── */
.cat-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 36px 60px 36px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
}

.cat-products-area {
    padding: 0;
}

.product-grid-cat {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ── Brand Specific Product Card (NO PRICE) ─────────────────── */
.pcard {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf0f3;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
}

.pcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
}

.pcard-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f1f3f5;
    cursor: pointer;
}

.pcard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pcard:hover .pcard-img-wrap img {
    transform: scale(1.05);
}

.pcard-brand-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 29, 47, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.pcard-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pcard-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f1d2f;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.pcard-wholesale-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: fit-content;
}

.pcard-sizes {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.pcard-sizes strong {
    color: #334155;
}

.pcard-colors {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 16px;
}

.pcard-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pcard-action-row {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.pcard-enquiry-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    background: #0f1d2f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pcard-enquiry-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.pcard-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pcard-details-btn:hover {
    background: #e2e8f0;
    color: #0f1d2f;
}

/* ── Wholesale Enquiry Modal ───────────────────────────────── */
.enquiry-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 18, 30, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.enquiry-modal-backdrop.open {
    display: flex;
}

.enquiry-modal-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enquiry-modal-header {
    padding: 22px 28px;
    background: #0f1d2f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.enquiry-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enquiry-modal-header h3 i {
    color: #38bdf8;
}

.enquiry-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.enquiry-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.enquiry-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
}

.enquiry-selected-product {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 22px;
}

.enquiry-prod-thumb {
    width: 60px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}

.enquiry-prod-meta {
    flex: 1;
}

.enquiry-prod-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2563eb;
    text-transform: uppercase;
}

.enquiry-prod-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f1d2f;
    margin: 3px 0;
}

.enquiry-prod-tag {
    font-size: 11.5px;
    color: #64748b;
}

.enquiry-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.enquiry-form-grid .full-span {
    grid-column: 1 / -1;
}

.enquiry-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enquiry-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.enquiry-field label mark {
    color: #dc2626;
    background: transparent;
}

.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
    padding: 10px 14px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.enquiry-field input:focus,
.enquiry-field select:focus,
.enquiry-field textarea:focus {
    border-color: #0f1d2f;
    box-shadow: 0 0 0 3px rgba(15, 29, 47, 0.08);
}

.enquiry-field textarea {
    resize: vertical;
    min-height: 70px;
}

.enquiry-submit-row {
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

.enquiry-btn-primary {
    flex: 1;
    padding: 13px;
    background: #0f1d2f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.enquiry-btn-primary:hover {
    background: #1e3a5f;
    box-shadow: 0 4px 14px rgba(15, 29, 47, 0.25);
}

.enquiry-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: #10b981;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.enquiry-btn-wa:hover {
    background: #059669;
}

/* ── Toast Message ─────────────────────────────────────────── */
.brand-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f1d2f;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Skeletons for Loading State ───────────────────────────── */
@keyframes skeletonPulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }

    100% {
        opacity: 1;
    }
}

.skeleton-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #edf0f3;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e2e8f0;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.skeleton-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    background: #e2e8f0;
    border-radius: 4px;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

/* ── Responsive Rules ──────────────────────────────────────── */
@media (max-width: 1100px) {
    .brand-hero-title {
        font-size: 40px;
    }

    .cat-layout {
        padding: 0 20px 50px 20px;
        gap: 24px;
    }

    .cat-toolbar {
        padding: 12px 20px 16px 20px;
    }

    .cat-breadcrumb {
        padding: 14px 20px;
    }

    .product-grid-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 860px) {
    .cat-layout {
        grid-template-columns: 1fr;
    }

    .cat-sidebar {
        display: none;
        /* Accessible via mobile filter drawer */
    }

    .brand-hero-content {
        padding: 40px 20px;
    }

    .brand-hero-title {
        font-size: 32px;
    }

    .brand-hero-desc {
        font-size: 14px;
    }

    .product-grid-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .pcard-info {
        padding: 12px;
    }

    .pcard-name {
        font-size: 13.5px;
        min-height: auto;
    }

    .pcard-action-row {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-hero {
        min-height: 320px;
    }

    .brand-hero-title {
        font-size: 26px;
    }

    .brand-switch-bar {
        width: 100%;
        justify-content: center;
    }

    .brand-switch-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 11.5px;
    }

    .cat-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .brand-toolbar-right {
        justify-content: space-between;
    }

    .product-grid-cat {
        grid-template-columns: 1fr;
    }

    .enquiry-form-grid {
        grid-template-columns: 1fr;
    }

    .enquiry-submit-row {
        flex-direction: column;
    }
}