/* === REUSABLE COMPONENTS === */

/* === 1. BREADCRUMBS === */
.breadcrumbs {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--gold);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--gold-light);
}

.breadcrumbs .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-main);
}

/* === 2. CATEGORY CARDS === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 200px;
}

.category-card:active {
    transform: scale(0.98);
}

.category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.category-info h3 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 3px;
}

.category-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.category-brands {
    font-size: 11px;
    color: var(--gold-light);
    display: block;
    margin-top: 3px;
}

/* === 3. BRAND CARDS === */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.brand-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    aspect-ratio: 1;
}

.brand-card:active {
    transform: scale(0.98);
}

.brand-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-info {
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.brand-info h3 {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 2px;
    font-weight: 600;
}

.brand-info p {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
}

/* === 4. PRODUCT CARDS === */
.products-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.products-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.products-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--gold);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.product-info {
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.product-info h3 {
    font-size: 11px;
    color: var(--text-main);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* === 5. GRID VIEW CONTROLS === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.page-title-section {
    flex: 1;
}

.brand-title, .category-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.brand-subtitle, .category-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.grid-controls {
    display: flex;
    gap: 8px;
}

.grid-btn {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.grid-btn svg {
    fill: var(--text-muted);
    transition: fill 0.3s;
}

.grid-btn:active {
    transform: scale(0.95);
}

.grid-btn.active {
    background: var(--gold);
    border-color: var(--gold);
}

.grid-btn.active svg {
    fill: #000;
}

/* === 6. PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:active {
    transform: scale(0.95);
}

.pagination-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 5px;
}

/* === 7. WHATSAPP CTA === */
.whatsapp-cta {
    width: 100%;
    background: #25D366;
    color: #fff;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
    margin-top: 20px;
}

.whatsapp-cta:active {
    transform: scale(0.98);
}

.whatsapp-cta svg {
    flex-shrink: 0;
}

/* === 8. TRUST BADGES === */
.product-trust {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.sale-banner {
    background: linear-gradient(45deg, #ff3366, #ff6b3d);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.live-viewers {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #ff3366;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}
