/* product-detail.css — VERBATIM port of ProductDetailDisplayNew.php inline styles
 * Lines 900-1166 of the original PHP component. DO NOT MODIFY.
 */

/* === BREADCRUMBS === */
.product-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.product-breadcrumb .breadcrumb {
    font-size: 0.85rem;
    padding: 0.75rem 0;
}

.product-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: #495057;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

.product-detail-container {
    padding: 4rem 0;
    background: white;
}

.product-detail-container.theme-professional {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-detail-container.theme-creative {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-detail-container.theme-creative .product-detail-content {
    color: white;
}

.product-detail-container.theme-industrial {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.product-detail-container.theme-industrial .product-detail-content {
    color: white;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-detail-image img:hover {
    transform: scale(1.02);
}

.creative-border img {
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
}

.industrial-shadow img {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.product-title {
    color: #2c3e50;
    line-height: 1.2;
}

.product-subtitle {
    font-weight: 300;
    font-style: italic;
}

.product-description .lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

.product-features ul li {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.product-variants .variant-selector {
    margin-bottom: 1.5rem;
}

.variant-selector label {
    margin-bottom: 0.5rem;
    color: #495057;
}

.variant-selector .form-select {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Speed swatch active + hover states */
.speed-swatch {
    transition: all 0.2s ease !important;
}

.speed-swatch:hover {
    border-color: #6366f1 !important;
    background: #f5f3ff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.speed-swatch.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.speed-swatch.active span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Also style the size swatches active state better */
.swatch-btn.active-swatch:not(.speed-swatch) {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border-color: #1e293b !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
    transform: translateY(-1px);
}

.swatch-btn:not(.speed-swatch):hover {
    border-color: #6366f1 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

/* Visual Button Selector Grid (ported from PHP ProductDetailDisplay.php lines 874-978) */
.variant-btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.variant-btn:hover {
    border-color: #1e293b;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variant-btn.active {
    border-color: #1e293b;
    background: #1e293b;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.variant-btn.active .variant-btn-label {
    color: white;
    font-weight: 700;
}

.variant-btn.active .variant-btn-price {
    color: #86efac;
}

.variant-btn-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.variant-btn-price {
    font-size: 12px;
    color: #16a34a;
    font-weight: 700;
    margin-top: 2px;
}

.variant-btn-price.free {
    color: #16a34a;
    font-weight: 700;
}

/* Speed button styles */
.speed-btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.speed-btn {
    padding: 14px 12px;
}

.speed-btn .speed-icon {
    font-size: 18px;
    margin-bottom: 4px;
    color: #6366f1;
}

.speed-btn.active .speed-icon {
    color: white;
}

.speed-btn.speed-asap {
    border-color: #f59e0b33;
}

.speed-btn.speed-asap:hover,
.speed-btn.speed-asap.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.speed-btn.speed-emergency {
    border-color: #ef444433;
}

.speed-btn.speed-emergency:hover,
.speed-btn.speed-emergency.active {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 576px) {
    .speed-btn-grid {
        grid-template-columns: 1fr;
    }

    .variant-btn {
        min-width: 60px;
        padding: 8px 12px;
    }
}

.pricing-container {
    border: 1px solid #dee2e6;
}

.starting-price-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.bulk-discount {
    font-size: 0.85rem;
}

.add-to-cart-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.3);
}

.quantity-selector input {
    text-align: center;
}

.quantity-control {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background: white;
}

.quantity-control .quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-control .quantity-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.05);
}

.quantity-control .quantity-btn:active {
    background: #dee2e6;
}

.quantity-control .quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-control input.form-control {
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-radius: 0;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 60px;
    padding: 0.375rem 0.5rem;
}

.quantity-control input.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

/* Gallery Styles */
.product-gallery {
    text-align: center;
}

.gallery-thumbnail {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem !important;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    border-color: #6c757d;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #007bff;
    transform: scale(1.1);
}

.gallery-thumbnail.active:hover {
    border-color: #0056b3;
    transform: scale(1.15);
}

/* Swatch Styles */
.swatch-btn {
    transition: all 0.2s ease;
}

.swatch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.active-swatch {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #007bff;
}

/* Override for black color swatch to be visible */
.rounded-circle.active-swatch {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #212529 !important;
}

/* Gang Sheet Builder Button (from ProductDetailDisplayNew.php lines 620-719) */
.gangsheet-builder-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f97316 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 8px 30px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gangsheet-builder-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
}

.gangsheet-builder-btn:hover::before {
    left: 100%;
}

.gangsheet-builder-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.5),
        0 15px 40px rgba(118, 75, 162, 0.4),
        0 0 40px rgba(249, 115, 22, 0.3);
    text-decoration: none;
    color: #fff;
}

.gangsheet-builder-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.gangsheet-builder-btn .btn-icon {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.gangsheet-builder-btn .btn-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gangsheet-builder-btn .btn-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.gangsheet-builder-btn .btn-sparkle:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.gangsheet-builder-btn .btn-sparkle:nth-child(2) {
    top: 70%;
    right: 15%;
    animation-delay: 0.5s;
}

.gangsheet-builder-btn .btn-sparkle:nth-child(3) {
    bottom: 20%;
    left: 25%;
    animation-delay: 1s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 2rem 0;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-actions .row>div {
        margin-bottom: 1rem;
    }

    .quantity-selector {
        text-align: center;
    }
}