/* ============================================
   ALBUM GRID GALLERY v2.1 - Grid so only
   Dieu khien Flatsome Product Gallery
   ============================================ */

/* === AN thumbnail slider mac dinh cua Flatsome === */
.product-thumbnails.thumbnails {
    display: none !important;
}

/* === GRID WRAP === */
.agg-grid-wrap {
    padding: 15px;
    background: var(--agg-bg-color, #1a1a2e);
    border-radius: 12px;
}

/* === TABS === */
.agg-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.agg-tab {
    padding: 5px 12px;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-family: inherit;
}

.agg-tab:hover,
.agg-tab.agg-tab-active {
    color: var(--agg-active-color, #e94560);
    border-bottom-color: var(--agg-active-color, #e94560);
}

.agg-tab-all {
    margin-left: auto;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
}

.agg-tab-all:hover {
    color: var(--agg-active-color, #e94560);
}

/* === GRID SO === */
.agg-numbers {
    display: grid;
    gap: 6px;
    overflow-y: auto;
    padding-right: 4px;
}

.agg-num {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--agg-num-bg-color, #2a2a3e);
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
    overflow: hidden;
    position: relative;
}

.agg-num img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.agg-num span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.agg-num:hover {
    border-color: #666;
    transform: scale(1.05);
}

.agg-num:hover img {
    transform: scale(1.1);
}

.agg-num.agg-num-active {
    border-color: var(--agg-active-color, #e94560);
    box-shadow: 0 0 10px var(--agg-active-shadow, rgba(233,69,96,0.4));
}

.agg-num.agg-num-active img {
    opacity: 0.85;
}

/* === SCROLLBAR === */
.agg-numbers::-webkit-scrollbar {
    width: 4px;
}
.agg-numbers::-webkit-scrollbar-track {
    background: var(--agg-bg-color, #1a1a2e);
    border-radius: 4px;
}
.agg-numbers::-webkit-scrollbar-thumb {
    background: var(--agg-active-color, #e94560);
    border-radius: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 849px) {
    .agg-numbers {
        max-height: 280px !important;
    }
}
