/* OLX Grid View Styles */
.olx-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: #f2f4f5;
    overflow-y: auto;
    flex-grow: 1;
}

@media (min-width: 769px) {
    .olx-category-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 32px;
    }
}

.olx-category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.olx-category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #eef2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.card-icon-wrapper .cat-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.card-icon-wrapper .cat-icon-fa {
    font-size: 24px;
    color: #002f34;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #002f34;
    line-height: 1.3;
}

/* Category Search */
.category-search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-top: 16px;
}

.category-selector-header .category-search-input,
.category-search-input {
    width: 100% !important;
    padding: 14px 14px 14px 48px !important;
    border: 1px solid #cdd0d5 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #002f34 !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
}

.category-search-input:focus {
    border-color: #002f34 !important;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f9799;
    font-size: 18px;
}

/* Search Dropdown Results */
.search-dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cdd0d5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f2f4f5;
    transition: background-color 0.2s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: #f2f4f5;
}

.search-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #002f34;
}

.search-item-path {
    font-size: 13px;
    color: #7f9799;
    margin-top: 4px;
}

.search-dropdown-item.no-results {
    color: #7f9799;
    cursor: default;
    background-color: #fff;
}

/* Selected Category Breadcrumb on Details Page */
.custom-category-breadcrumb-wrapper {
    background: #fff;
    border: 1px solid #e1e4e6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.custom-category-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.breadcrumb-label {
    font-size: 12px;
    font-weight: 600;
    color: #7f9799;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-path {
    font-size: 15px;
    font-weight: 500;
    color: #002f34;
    display: flex;
    align-items: center;
}

.breadcrumb-change-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f2f4f5;
    color: #002f34;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.breadcrumb-change-btn:hover {
    background: #002f34;
    color: #fff;
}

/* ==========================================================================
   CASCADING CATEGORY SELECTOR (359SHARE BRAND STYLING)
   ========================================================================== */
.category-cascading-container {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
}

.category-cascading-col {
    width: 320px;
    min-width: 320px;
    border-right: 1px solid #edf0f2;
    overflow-y: auto;
    padding: 12px 0;
    background: #fff;
}

.category-selector-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    border-left: 4px solid transparent !important;
    border-radius: 0;
    background: #fff;
    color: #2b2b2b;
    position: relative;
}

.category-selector-item:hover {
    background: #fafaf9;
    color: #002f34;
}

.category-selector-item.is-selected {
    background: #fff8ec !important; /* 359Share warm golden tint */
    border-left: 4px solid #f2bb63 !important; /* Signature brand accent bar */
    font-weight: 600 !important;
}

.category-selector-item.is-selected .cat-name {
    color: #002f34 !important;
    font-weight: 600 !important;
}

.category-selector-item.is-selected .cat-icon-wrapper {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(242, 187, 99, 0.3) !important;
    border: 1px solid rgba(242, 187, 99, 0.4) !important;
}

.category-selector-item.is-selected .cat-arrow {
    color: #e09b2d !important;
    opacity: 1 !important;
    transform: translateX(3px);
}

.cat-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f4f6f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.cat-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cat-icon-fa {
    font-size: 18px;
    color: #002f34;
}

.cat-name {
    flex-grow: 1;
    font-size: 15px;
    color: #2b2b2b;
    transition: color 0.15s ease;
}

.cat-arrow {
    color: #7f9799;
    font-size: 13px;
    opacity: 0.7;
    transition: all 0.15s ease;
}
