/* Product detail — gallery, share, cart CTA */

.thumbnail-gallery-vertical {
    min-height: 1px;
    max-height: 430px;
}

.thumbnail-item img.active-thumbnail,
.thumbnail-item-mobile img.active-thumbnail {
    border-width: 2px;
    border-style: solid;
    border-color: var(--theme-primary, #2563eb);
    opacity: 1 !important;
}

.thumbnail-item img,
.thumbnail-item-mobile img {
    opacity: 0.7;
}

.theme-btn-action {
    background-color: var(--theme-accent, #ef4444);
    color: var(--theme-primary-fg, #ffffff);
    border: 1px solid var(--theme-accent, #ef4444);
    transition: all 0.3s ease;
}

.theme-btn-action:hover {
    background-color: var(--theme-primary, #2563eb);
    border-color: var(--theme-primary, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-btn-action:active {
    transform: translateY(0);
}

.theme-price-text {
    color: var(--theme-text, #1f2937) !important;
}

.thumbnail-item img:hover,
.thumbnail-item-mobile img:hover {
    opacity: 1;
    border-color: var(--theme-primary, #2563eb);
}

.product-detail-page .thumbnail-navigation button:disabled {
    background-color: var(--theme-btn-disabled-bg, #6b7280) !important;
    border-color: var(--theme-btn-disabled-bg, #6b7280) !important;
    opacity: 0.65;
    color: var(--theme-btn-disabled-fg, #ffffff) !important;
}

.thumbnail-container-mobile {
    max-width: calc(100% - 80px);
}

.product-detail-page .prose p {
    margin-bottom: 1rem;
    line-height: 1.625;
    color: var(--theme-text-primary, #374151);
}

.social-share-buttons .fab,
.social-share-buttons .fas {
    margin-right: 0;
}

.share-btn-mini {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px;
    height: 32px;
}

.share-btn-mini i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
}

@media (max-width: 575.98px) {
    .social-share-buttons {
        margin-bottom: 1rem !important;
    }

    .social-share-buttons .d-flex {
        gap: 0.5rem !important;
    }

    .share-label {
        font-size: 0.875rem;
        white-space: nowrap;
        margin-right: 0.25rem;
    }

    .share-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .share-btn-mini i {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 576px) {
    .social-share-buttons .d-flex {
        gap: 0.75rem !important;
    }

    .share-label {
        margin-right: 0.5rem;
    }
}

.copy-success-mini {
    background-color: var(--theme-success, #198754) !important;
    border-color: var(--theme-success, #198754) !important;
    color: var(--theme-success-fg, #ffffff) !important;
}

.product-detail-page .btn-secondary {
    background-color: var(--theme-bg-subtle-alt, #6c757d) !important;
    border-color: var(--theme-bg-subtle-alt, #6c757d) !important;
    color: var(--theme-text-inverse, #ffffff) !important;
}

.product-detail-page .btn-outline-secondary {
    border-color: var(--theme-border-subtle, #6c757d) !important;
    color: var(--theme-text-secondary, #6c757d) !important;
}

.product-detail-page .btn-outline-secondary:hover {
    background-color: var(--theme-bg-subtle-alt, #6c757d) !important;
    color: var(--theme-text-inverse, #ffffff) !important;
}

.pd-text-primary {
    color: var(--theme-text-primary);
}

.pd-text-muted {
    color: var(--theme-text-muted);
}

.pd-text-secondary {
    color: var(--theme-text-secondary, #4b5563);
}

.pd-hr {
    border-color: var(--theme-border);
}

.pd-placeholder-panel {
    background-color: var(--theme-bg-subtle);
}

.pd-placeholder-text {
    color: var(--theme-text-muted);
}

.pd-description-title {
    color: var(--theme-text-primary);
}

.pd-description-card {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border);
}

.pd-description-prose {
    color: var(--theme-text-secondary);
}

.pd-sidebar-card {
    background-color: var(--theme-bg-surface);
}

.pd-sidebar-title {
    color: var(--theme-text-primary);
}

.pd-sale-badge {
    background-color: var(--theme-accent, #ef4444);
}

.pd-sale-badge-danger {
    background-color: #dc3545;
}

.pd-sale-badge-warning {
    background-color: #ffc107;
}

.pd-sale-badge-success {
    background-color: #28a745;
}

.pd-sale-badge-info {
    background-color: #17a2b8;
}

.pd-sale-price {
    color: var(--theme-accent, #ef4444);
}

.pd-sale-price-danger {
    color: #dc3545;
}

.pd-sale-price-warning {
    color: #ffc107;
}

.pd-sale-price-success {
    color: #28a745;
}

.pd-sale-price-info {
    color: #17a2b8;
}

.pd-breadcrumb {
    color: var(--theme-text-muted);
}

.pd-breadcrumb-link {
    color: var(--theme-text-primary);
}

.pd-breadcrumb-icon {
    color: var(--theme-text-muted);
}

.pd-breadcrumb-current {
    color: var(--theme-text-primary);
}

.pd-cart-card {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border);
}

.pd-quantity-label {
    color: var(--theme-text-muted);
}

.pd-quantity-input {
    border: 1px solid var(--theme-border);
    background-color: var(--theme-bg-surface);
    color: var(--theme-text-primary);
}

.pd-sale-badge,
.pd-sale-price {
    border-radius: 0.375rem;
}

.pd-price-strike {
    color: var(--theme-text-muted, #6b7280);
}

.pd-stock-in {
    background-color: var(--theme-success-bg, #dcfce7);
    color: var(--theme-success-text, #166534);
}

.pd-stock-out {
    background-color: var(--theme-error-bg, #fee2e2);
    color: var(--theme-error-text, #991b1b);
}

.pd-btn-stockout {
    background-color: var(--theme-btn-disabled-bg, #9ca3af);
    color: var(--theme-btn-disabled-fg, #ffffff);
}

.pd-thumb-nav-hidden {
    display: none;
}

.pd-thumb-nav-btn {
    border: 1px solid var(--theme-border);
    color: var(--theme-text-muted);
    background-color: var(--theme-bg-surface);
}

.pd-thumb-img-border {
    border: 1px solid var(--theme-border);
}

.share-btn-facebook {
    border-color: var(--theme-primary, #2563eb);
    color: var(--theme-primary, #2563eb);
    background-color: transparent;
}

.share-btn-facebook:hover {
    background-color: var(--theme-primary, #2563eb);
    color: var(--theme-primary-fg, #ffffff);
}

.share-btn-pinterest {
    border-color: var(--theme-accent, #ef4444);
    color: var(--theme-accent, #ef4444);
    background-color: transparent;
}

.share-btn-pinterest:hover {
    background-color: var(--theme-accent, #ef4444);
    color: var(--theme-accent-fg, #ffffff);
}

.share-btn-copy {
    border-color: var(--theme-border, #9ca3af);
    color: var(--theme-text-secondary, #4b5563);
    background-color: transparent;
}

.share-btn-copy:hover {
    background-color: var(--theme-bg-subtle-alt, #9ca3af);
    color: var(--theme-text-inverse, #ffffff);
}
