/* ── Product Detail Specific Styles ── */

.catalog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--cat-easing);
}

.catalog-gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

/* Info Side */

.catalog-product-fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    z-index: 20;
}

.catalog-product-compare-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: var(--cat-text-muted, #64748b);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    transition: all 0.2s;
}

.catalog-product-compare-btn:hover {
    color: var(--cat-primary, #6366f1);
    transform: scale(1.05);
}

.catalog-product-compare-btn.active {
    background: var(--cat-primary, #6366f1);
    color: #fff;
}

.catalog-product-meta-item {
    display: inline-flex;
    align-items: center;
}

.catalog-product-meta-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.catalog-product-meta-icon {
    color: #94a3b8;
}

/* Meta row (SKU + Category) */
.catalog-product-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.catalog-product-meta-row .catalog-product-sku,
.catalog-product-meta-row .catalog-product-cat {
    margin-bottom: 0;
}

.catalog-price-range-label {
    font-size: 0.9rem;
    font-weight: normal;
    color: #64748b;
}

/* Wholesale Block */
.catalog-wholesale-card {
    margin-top: 10px;
    background: rgba(99, 102, 241, 0.06);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
}

.catalog-wholesale-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.catalog-wholesale-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    color: #4f46e5;
    font-size: 1.15rem;
    font-weight: 800;
}

.catalog-wholesale-min-qty {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 2px;
}

/* Secondary Meta (Production/Delivery) */
.catalog-product-meta-secondary {
    margin: 4px 0 10px;
    font-size: 0.9em;
}
.catalog-product-meta-secondary:first-of-type {
    margin-top: 8px;
}

.catalog-product-meta-two-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 15px 0;
    align-items: center;
}
.catalog-product-meta-two-cols .catalog-product-meta-secondary {
    margin: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.catalog-product-meta-addon-icon {
    opacity: 0.6;
    width: 16px;
    text-align: center;
}

/* Contact Card */
.catalog-contact-card {
    margin-top: 15px;
    margin-bottom: 25px; /* Increased margin for separation */
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 15px;
    background: #f8fafc;
}

.catalog-quick-contact-wrapper {
    margin-bottom: 10px;
    padding: 0 15px;
}

.catalog-contact-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 10px;
}

.catalog-contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.catalog-contact-info {
    flex: 1;
    min-width: 0;
}

.catalog-contact-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.catalog-contact-detail {
    font-size: 0.82rem;
    color: #64748b;
}

.catalog-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.catalog-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--cat-transition), transform var(--cat-transition);
}

.catalog-contact-link:hover {
    transform: translateY(-2px);
}

.catalog-contact-link-phone {
    background: #eff6ff;
    color: #2563eb;
}

.catalog-contact-link-email {
    background: #f0fdf4;
    color: #16a34a;
}

.catalog-contact-link-tg {
    background: #e8f4fd;
    color: #229ed9;
}

.catalog-contact-link-viber {
    background: #f3f0ff;
    color: #7360f2;
}

.catalog-contact-link-wa {
    background: #f0fdf4;
    color: #25d366;
}

.catalog-show-mobile-contact {
    margin-top: -10px;
    margin-bottom: 30px;
}

.catalog-product-bottom-actions {
    margin: 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* ── Stock notification area: compact action buttons ── */
.catalog-stock-notif-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.catalog-backorder-btn,
.catalog-notify-open-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.catalog-backorder-btn {
    background: var(--cat-primary, #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.catalog-backorder-btn:hover {
    background: var(--cat-primary-h, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    color: #fff;
}

.catalog-notify-open-modal-btn {
    background: transparent;
    color: var(--cat-primary, #6366f1);
    border: 1.5px solid var(--cat-primary, #6366f1);
}
.catalog-notify-open-modal-btn:hover {
    background: var(--cat-primary, #6366f1);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .catalog-backorder-btn,
    .catalog-notify-open-modal-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
    }
}


.catalog-price-label-from { margin-right: 6px; }
.catalog-price-label-sep { margin: 0 4px; }

/* Matrix Attribute View */
.catalog-matrix-attrs {
    margin-top: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.catalog-config-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.catalog-config-matrix-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.catalog-config-matrix-table th:last-child {
    border-right: none;
}

.catalog-config-matrix-table td {
    padding: 12px 16px;
    border-bottom: 1px dashed #e2e8f0;
    border-right: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.catalog-config-matrix-table td:last-child {
    border-right: none;
}

.catalog-config-matrix-table tr:last-child td {
    border-bottom: none;
}

.catalog-config-matrix-table tr:hover td {
    background: #f8fafc;
}

.matrix-attr-name {
    font-weight: 600;
    color: #334155;
    background: #fff;
    width: 250px;
}

.matrix-attr-val {
    min-width: 120px;
    color: #1e293b;
}

@media (max-width: 768px) {
    .catalog-config-matrix-table {
        font-size: 0.85rem;
    }
    .catalog-config-matrix-table th, 
    .catalog-config-matrix-table td {
        padding: 10px;
    }
		.catalog-product-meta-two-cols {
    justify-content: left;
}
}
@media (max-width: 480px) {
		.catalog-product-meta-two-cols {
    justify-content: center;
}
}

/* GLightbox Custom Counter */
.glightbox-custom-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    z-index: 2147483647; 
    pointer-events: none;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
