/* Custom Single Product Page Styles */

/* Three Column Layout */
.book-cover-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-details {
    padding: 0 1rem;
}

.purchase-options {
    position: sticky;
    top: 2rem;
}

/* Book Cover */
.book-cover-section img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Social Sharing Buttons */
.book-cover-section .flex {
    margin-top: 1.5rem;
}

.book-cover-section button {
    transition: all 0.2s ease;
}

.book-cover-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Product Details */
.product-details h1 {
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.product-details .text-lg {
    margin-bottom: 1rem;
}

/* Format Badge */
.inline-block.bg-gray-200 {
    background-color: #e5e7eb !important;
    color: #374151 !important;
}

/* Synopsis */
.product-details h2 {
    margin-bottom: 0.75rem;
}

.product-details .text-gray-700 {
    line-height: 1.6;
}

/* Other Info Grid */
.product-details .grid {
    gap: 1rem;
}

.product-details .bg-gray-50 {
    padding: 1rem;
}

.product-details .w-10 {
    width: 2.5rem;
    height: 2.5rem;
}

.product-details .w-5 {
    width: 1.25rem;
    height: 1.25rem;
}

/* Purchase Options */
.purchase-options .bg-gray-50 {
    background-color: #f9fafb;
}

.purchase-options h3 {
    margin-bottom: 1rem;
}

.purchase-options .flex {
    margin-bottom: 1rem;
}

.purchase-options .text-3xl {
    font-size: 2rem;
    font-weight: 700;
}

/* Quantity Selector */
.purchase-options button {
    transition: all 0.2s ease;
}

.purchase-options button:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .purchase-options {
        position: static;
        margin-top: 2rem;
    }
    
    .product-details {
        padding: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .book-cover-section {
        margin-bottom: 2rem;
    }
    
    .product-details {
        margin-bottom: 2rem;
    }
    
    .purchase-options {
        margin-top: 0;
    }
    
    .product-details .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-details .bg-gray-50 {
        padding: 0.75rem;
    }
    
    .product-details .w-10 {
        width: 2rem;
        height: 2rem;
    }
    
    .product-details .w-5 {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 640px) {
    .product-details .grid {
        grid-template-columns: 1fr;
    }
    
    .product-details h1 {
        font-size: 1.875rem;
    }
    
    .purchase-options .text-3xl {
        font-size: 1.75rem;
    }
    
    .book-cover-section img {
        max-width: 280px;
    }
}

/* Enhanced Hover Effects */
.bg-gray-50:hover {
    background-color: #f3f4f6;
    transition: background-color 0.2s ease;
}

/* Focus States */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .purchase-options,
    .social-sharing,
    .discord-banner {
        display: none;
    }
    
    .bg-gray-50 {
        background-color: white !important;
    }
    
    .shadow-lg {
        box-shadow: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000 !important;
    }
    
    .bg-gray-50 {
        background-color: #fff !important;
        border: 1px solid #000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
