body {
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 70px;
}

/* Professional Card Styles - Same as booking page */
.professional-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.professional-card h1 {
    color: #6366f1;
    font-weight: 700;
    margin: 0;
}

.professional-card .text-primary {
    color: #6366f1 !important;
}

.professional-card i.fas {
    font-size: 1.5rem;
}

.professional-card .text-muted {
    color: #64748b !important;
    font-size: 0.95rem;
}

.detail-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-gallery {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #f8fafc;
}

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

.thumbnail-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #8b5cf6;
    transform: scale(1.05);
}

/* Option Cards - Modern Design */
.option-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e5e7eb, #e5e7eb);
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    border-color: #667eea;
}

.option-card:hover::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.option-card.selected::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 5px;
}

/* Flash Sale Option Cards */
.option-card.has-flash-sale {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.option-card.has-flash-sale::before {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    height: 5px;
}

.option-card.has-flash-sale:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
}

.option-card.has-flash-sale.selected {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffe6e6 0%, #fff5f5 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.option-card.has-flash-sale.selected::before {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    animation: flash-pulse 2s infinite;
}

@keyframes flash-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Option Card Header */
.option-card h6 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-card.selected h6 {
    color: #667eea;
}

.option-card.has-flash-sale h6 {
    color: #dc3545;
}

/* Option Card Badge */
.option-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.option-badge.flash {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: #fff;
    animation: badge-pulse 2s infinite;
}

.option-badge.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
}

/* Option Card Price Display */
.option-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.option-price-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.option-card.has-flash-sale .option-price-main {
    color: #dc3545;
}

.option-price-original {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.option-discount-badge {
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Option Card Details */
.option-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.option-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #6b7280;
}

.option-detail-item i {
    color: #667eea;
    font-size: 0.875rem;
}

.option-card.has-flash-sale .option-detail-item i {
    color: #dc3545;
}

.option-detail-item strong {
    color: #1f2937;
    font-weight: 600;
}

/* Stock Badge in Options */
.option-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.option-stock-badge.available {
    background: #dcfce7;
    color: #166534;
}

.option-stock-badge.low {
    background: #fef3c7;
    color: #92400e;
}

.option-stock-badge.out {
    background: #fecaca;
    color: #991b1b;
}

/* Check Icon for Selected */
.option-check-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.option-card.selected .option-check-icon {
    display: flex;
    animation: check-pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.option-card.has-flash-sale.selected .option-check-icon {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

@keyframes check-pop {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Countdown Timer Styles */
.countdown-timer {
    display: flex;
    gap: 0.5rem;
}

.countdown-item {
    text-align: center;
    min-width: 60px;
}

.countdown-value {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Flash Sale Countdown Timer - Improved Visibility */
.flash-countdown-detail {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-countdown-detail .text-xs {
    color: #fff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.flash-detail-hours,
.flash-detail-minutes,
.flash-detail-seconds {
    background: #fff;
    color: #dc3545 !important;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 45px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.flash-countdown-detail .flex {
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-item {
        min-width: 50px;
        padding: 0.5rem !important;
    }
    
    .countdown-value {
        font-size: 1.25rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .option-card {
        padding: 16px;
    }
    
    .option-card h6 {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .option-price-main {
        font-size: 1.5rem;
    }
    
    .option-check-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }
    
    .option-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .option-badge {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* Helper Classes */
.fs-7 {
    font-size: 0.75rem !important;
}

.text-yellow-500 {
    color: #f59e0b;
}

.text-red-500 {
    color: #ef4444;
}

.text-gray-400 {
    color: #9ca3af;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.add-to-cart-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.price-display {
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #8b5cf6;
    background: white;
    color: #8b5cf6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #8b5cf6;
    color: white;
}

.quantity-input {
    width: 80px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-weight: 600;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-available {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.stock-low {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.stock-out {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
}

/* Detail Tab Styling */
.detail-tab-btn {
    transition: all 0.2s ease;
}

.detail-tab-btn.active {
    background: white !important;
    color: #7c3aed !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Line clamp utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Tab content */
.tab-pane {
    display: block;
}

.tab-pane.hidden {
    display: none;
}

.expandable-text .expand-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .detail-container {
        margin: 1rem;
        border-radius: 1.5rem;
    }
}

/* CKEditor Rich Text Content Styling */
.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4,
.text-content h5,
.text-content h6 {
    font-weight: 600;
    margin: 0.5rem 0;
    color: #374151;
}

.text-content h1 {
    font-size: 1.5rem;
}

.text-content h2 {
    font-size: 1.3rem;
}

.text-content h3 {
    font-size: 1.1rem;
}

.text-content h4 {
    font-size: 1rem;
}

.text-content p {
    margin: 0.5rem 0;
}

.text-content strong,
.text-content b {
    font-weight: 600;
    color: #1f2937;
}

.text-content em,
.text-content i {
    font-style: italic;
}

.text-content u {
    text-decoration: underline;
}

.text-content s {
    text-decoration: line-through;
}

.text-content ul,
.text-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.text-content ul li {
    list-style-type: disc;
}

.text-content ol li {
    list-style-type: decimal;
}

.text-content li {
    margin: 0.25rem 0;
}

.text-content a {
    color: #7c3aed;
    text-decoration: underline;
}

.text-content a:hover {
    color: #5b21b6;
}

.text-content blockquote {
    border-left: 4px solid #d1d5db;
    margin: 0.5rem 0;
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
}

.text-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.text-content th,
.text-content td {
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    text-align: left;
}

.text-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Ensure rich text content doesn't break layout */
.text-content * {
    max-width: 100%;
    word-wrap: break-word;
}

.text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}