

.product-details {
    padding: 40px 0;
    background: #ffffff;
}

.product-details .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    padding: 15px 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb-separator {
    color: #9ca3af;
    padding: 0 8px;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

.product-layout-utopya {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 20px 0;
}

.product-images-utopya {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-utopya {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image-utopya:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.main-image-utopya img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-utopya:hover img {
    transform: scale(1.05);
}

.image-zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-utopya:hover .image-zoom-hint {
    opacity: 1;
}

.image-zoom-hint i {
    font-size: 14px;
}

.image-thumbnails-utopya {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-utopya {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.thumbnail-utopya:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.thumbnail-utopya.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-info-utopya {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title-utopya {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.product-meta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.product-sku-utopya,
.product-category-utopya {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-sku-utopya .sku-label,
.product-category-utopya .category-label {
    font-weight: 600;
    color: #374151;
    min-width: 60px;
    font-size: 12px;
}

.product-sku-utopya .sku-value {
    font-weight: 600;
    color: #1f2937;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
}

.product-category-utopya .category-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 8px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    display: inline-block;
}

.product-category-utopya .category-link:hover {
    background: #eff6ff;
    border-color: #2563eb;
    text-decoration: none;
}

.product-price-section-utopya {
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.price-row-utopya {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.current-price-utopya {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.compare-price-utopya {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-badge-utopya {
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.stock-status-utopya {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.stock-indicator.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.stock-indicator.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

.low-stock-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.price-locked-utopya {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
}

.add-to-cart-section-utopya {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.quantity-selector-utopya {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-selector-utopya label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qty-btn-utopya {
    width: 38px;
    height: 38px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-utopya:hover {
    background: #e5e7eb;
    color: #1f2937;
}

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

.qty-input-utopya {
    width: 70px;
    height: 38px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    background: white;
    -moz-appearance: textfield;
    appearance: textfield;
    caret-color: #1f2937;
}

.qty-input-utopya::-webkit-outer-spin-button,
.qty-input-utopya::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-utopya:focus,
.qty-input-utopya:focus-visible {
    outline: none;
    box-shadow: none;
    background: #fff;
}

.qty-controls:focus-within {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.quick-quantity-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quick-qty-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-qty-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.quick-qty-btn:hover::before {
    width: 200px;
    height: 200px;
}

.quick-qty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.quick-qty-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-add-cart-utopya {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-add-cart-utopya:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-add-cart-utopya:active {
    transform: translateY(0);
}

.out-of-stock-message-utopya,
.approval-required-message-utopya,
.login-required-message-utopya {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.out-of-stock-message-utopya {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.approval-required-message-utopya {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.login-required-message-utopya {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.btn-login-utopya {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-login-utopya:hover {
    background: #1d4ed8;
}

.product-short-desc-utopya {
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}

.product-short-desc-utopya h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.product-short-desc-utopya p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.product-description {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
}

.product-description h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.related-products {
    margin-top: 60px;
    padding: 40px 0;
    background: #f9fafb;
}

.related-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-products h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 30px 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f9fafb;
}

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.product-card .product-info {
    padding: 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-card .price {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.product-card .stock {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.product-card .stock.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.product-card .stock.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

.image-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-lightbox-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@media (max-width: 968px) {
    .product-layout-utopya {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images-utopya {
        position: relative;
        top: 0;
    }

    .product-title-utopya {
        font-size: 26px;
    }

    .current-price-utopya {
        font-size: 30px;
    }

    .product-meta-info {
        padding: 14px;
    }

    .add-to-cart-section-utopya {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .product-details {
        padding: 20px 0;
    }

    .main-image-utopya {
        max-width: 100%;
    }

    .lightbox-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-next {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .lightbox-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 6px 12px;
    }

    .image-zoom-hint {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 10px;
        right: 10px;
    }

    .product-title-utopya {
        font-size: 22px;
    }

    .current-price-utopya {
        font-size: 28px;
    }

    .product-meta-info {
        padding: 12px;
        gap: 8px;
    }

    .product-sku-utopya,
    .product-category-utopya {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .product-sku-utopya .sku-label,
    .product-category-utopya .category-label {
        min-width: 60px;
        font-size: 13px;
    }

    .add-to-cart-section-utopya {
        padding: 16px;
    }

    .qty-controls {
        width: 100%;
        max-width: 180px;
    }

    .qty-btn-utopya {
        width: 44px;
        height: 44px;
        font-size: 18px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .qty-input-utopya {
        width: 70px;
        height: 44px;
        min-height: 44px;
        font-size: 16px;
        touch-action: manipulation;
    }

    .btn-add-cart-utopya {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        width: 100%;
    }

    .lightbox-prev,
    .lightbox-next {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .lightbox-close {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .quick-qty-btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    
    .related-products-grid {
        grid-template-columns: 1fr !important;
        
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .thumbnail-utopya {
        width: 60px;
        height: 60px;
    }

    .quick-quantity-buttons {
        gap: 6px;
        margin-top: 8px;
    }

    .quick-qty-btn {
        padding: 5px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 60px;
    }
}