/* === Exhibition Message Section === */
#exhibition-message {
  animation: slideDownFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#exhibition-message a.text-white:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #exhibition-message .d-flex {
    flex-direction: column;
  }
  #exhibition-message h5 {
    font-size: 1rem;
  }
  #exhibition-message p {
    font-size: 0.875rem;
  }
}

/* === Modern Corporate Sidebar === */
.modern-category-list .category-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-category-list .category-item:hover {
  background-color: rgba(13, 110, 253, 0.08);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.modern-category-list .category-item.active {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: white !important;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.modern-category-list .category-item.active .icon-wrapper {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.modern-category-list .category-item.active .badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: white !important;
}

/* Subcategory Styles */
.subcategory-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.subcategory-item:hover {
  background-color: rgba(13, 110, 253, 0.08);
  border-left-color: #0d6efd !important;
  transform: translateX(6px);
  color: #0d6efd !important;
}

.subcategory-item.active {
  background-color: rgba(13, 110, 253, 0.12) !important;
  border-left-color: #0d6efd !important;
  color: #0d6efd !important;
  font-weight: 600;
}

/* Smooth collapse animation */
.collapse {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle icon rotation */
.category-group[aria-expanded="true"] .toggle-icon,
.parent-category[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-item,
  .subcategory-item {
    padding: 1rem !important;
  }
}

/* Category Link Overlay */
.category-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-parent-wrapper [data-bs-toggle="collapse"] {
  position: relative;
  z-index: 2;
}

/* === Featured Product Highlight === */
.highlighted-product {
  position: relative;
  border: 3px solid #ffc107 !important;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3) !important;
  animation: pulse-gold 3s infinite;
  transition: all 0.3s ease;
}

.highlighted-product:hover {
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.4) !important;
  transform: translateY(-5px);
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 193, 7, 0.5); }
  100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
}

/* === Product Gallery - Full Width === */
.main-product-image {
  transition: transform 0.3s ease;
}

.main-product-image:hover {
  transform: scale(1.02);
}

.thumbnail-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
}

.thumbnail-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.thumbnail-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}

.gallery-thumb {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #0d6efd !important;
}

.gallery-thumb.active {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
  transform: translateY(-2px);
}

.thumbnail-gallery-wrapper {
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

/* === Recently Viewed Products === */
.recently-viewed-list {
  max-height: 400px;
  overflow-y: auto;
}

.recently-viewed-list::-webkit-scrollbar {
  width: 4px;
}

.recently-viewed-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.recently-viewed-list::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}

.recently-viewed-list::-webkit-scrollbar-thumb:hover {
  background: #0b5ed7;
}

.recent-product-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.recent-product-item:hover {
  background: rgba(13, 110, 253, 0.05) !important;
  border-color: rgba(13, 110, 253, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Image Modal Navigation === */
#prevImageBtn,
#nextImageBtn {
  transition: opacity 0.3s ease;
}

#prevImageBtn:hover,
#nextImageBtn:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

/* === New Add to Cart Modal Styles === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.services-grid::-webkit-scrollbar {
  width: 6px;
}

.services-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}

.service-item-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.service-item-card:hover {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.02);
}

.service-item-card .form-check-input:checked ~ label {
  font-weight: 600;
  color: #0d6efd;
}

.base-product-card {
  transition: all 0.3s ease;
}

.base-product-card:hover {
  border-color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.02);
}

.price-summary-card {
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.price-summary-card:hover {
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.price-breakdown hr {
  margin: 0.75rem 0;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-footer .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* === Table Improvements === */
.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.04);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(13, 110, 253, 0.02);
}

/* === Button Enhancements === */
.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
}

.btn-lg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

/* === Icon Transitions === */
.icon-wrapper {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Share by email */
/* Email form styling */
#shareEmailForm .form-control:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
}

/* Responsive adjustments for email modal */
@media (max-width: 576px) {
    #shareEmailModal .modal-dialog {
        margin: 10px;
    }
}

/* === New Full Width Layout Styles === */
.product-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #0d6efd;
}

.product-meta-line {
    font-size: 0.95rem;
}

.product-meta-line i {
    opacity: 0.7;
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Image Zoom Indicator */
.image-zoom-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Card Styling Enhancements */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: #dee2e6;
}

/* Quick Actions Section */
.quick-actions-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

/* Related Products Card */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-img-top {
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .product-header-card h1 {
        font-size: 1.5rem;
    }
    
    .quick-actions-card .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery-wrapper {
        padding: 15px;
    }
    
    .thumbnail-item {
        width: 80px !important;
        height: 60px !important;
    }
}

/* Loading Spinner */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Price Styling */
.text-price {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border Radius Consistency */
.rounded-xl {
    border-radius: 1rem;
}

/* Shadow Effects */
.shadow-subtle {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Aspect Ratios */
.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

/* Grid Layout for 2 columns */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-details-section {
    animation: fadeInUp 0.5s ease-out;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* === Full Width Main Image Styles === */
.main-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f8f9fa;
    line-height: 0; /* Remove extra space below image */
}

.main-product-image {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Ensure zoom indicator animation works */
.image-zoom-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Remove legacy ratio container if it exists */
.ratio-16x9 {
    /* No longer needed for main image */
}


/* === New Price Badge Styles === */
.price-badge {
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.sale-price-badge {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.regular-price-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.price-badge .current-price {
    font-size: 1.8rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .price-badge {
        min-width: 120px;
        padding: 0.75rem !important;
    }
    
    .price-badge .current-price {
        font-size: 1.4rem;
    }
    
    .d-flex.gap-4 {
        gap: 1rem !important;
    }
}

/* === Enhanced Technical Specifications === */
.tech-specs-card {
    border: 1px solid #dee2e6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-specs-card:hover {
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.tech-specs-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
}

.tech-specs-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* Table styling */
.tech-specs-table {
    border-collapse: separate;
    border-spacing: 0;
}

.tech-specs-thead {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.tech-specs-thead th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.tech-specs-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.tech-specs-row:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.tech-specs-row:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: translateX(4px);
}

.tech-specs-row td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Specification label cell */
.spec-label-cell {
    border-right: 3px solid #dee2e6;
}

.spec-icon-wrapper {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #0d6efd;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.tech-specs-row:hover .spec-icon-wrapper {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    transform: scale(1.1);
}

.spec-label {
    font-size: 0.95rem;
    color: #212529;
    transition: color 0.3s ease;
}

.tech-specs-row:hover .spec-label {
    color: #0d6efd;
}

/* Specification value cell */
.spec-value-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
    padding-left: 0.5rem;
}

.spec-value-content strong {
    color: #0d6efd;
}

.spec-value-content ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.spec-value-content li {
    margin-bottom: 0.25rem;
}

.spec-value-content li:last-child {
    margin-bottom: 0;
}

/* Footer */
.tech-specs-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Empty state */
.no-specs-message {
    padding: 3rem;
    text-align: center;
    color: #6c757d;
}

.no-specs-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .tech-specs-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .tech-specs-header h4 {
        font-size: 1.1rem;
    }
    
    .spec-label-cell,
    .spec-value-cell {
        padding: 0.75rem !important;
    }
    
    .spec-icon-wrapper {
        width: 24px;
        height: 24px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .tech-specs-thead th {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .spec-label-cell {
        border-right: 2px solid #dee2e6;
        width: 40%;
    }
    
    .spec-value-cell {
        width: 60%;
    }
}

@media (max-width: 576px) {
    .tech-specs-row {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
    }
    
    .tech-specs-row td {
        display: block;
        width: 100%;
    }
    
    .spec-label-cell {
        border-right: none;
        border-bottom: 2px solid #dee2e6;
        background: #f8f9fa;
    }
    
    .spec-value-cell {
        border-bottom: none;
    }
    
    .tech-specs-row:hover {
        transform: none;
    }
}

/* Animation for rows */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-specs-row {
    animation: fadeInRow 0.4s ease-out;
    animation-fill-mode: both;
}

.tech-specs-row:nth-child(1) { animation-delay: 0.05s; }
.tech-specs-row:nth-child(2) { animation-delay: 0.1s; }
.tech-specs-row:nth-child(3) { animation-delay: 0.15s; }
.tech-specs-row:nth-child(4) { animation-delay: 0.2s; }
.tech-specs-row:nth-child(5) { animation-delay: 0.25s; }
.tech-specs-row:nth-child(6) { animation-delay: 0.3s; }
/* Continue pattern for more rows */

/* Print styles */
@media print {
    .tech-specs-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .tech-specs-header {
        background: #000 !important;
        color: #fff !important;
    }
    
    .spec-icon-wrapper {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Animation for featured badge */
@keyframes pulse-featured {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}


/* === New Unified Modal Styles === */
.service-disabled {
    opacity: 0.6;
    background-color: #f8f9fa !important;
}

.service-disabled .form-check-input {
    cursor: not-allowed;
}

.service-disabled .badge {
    background-color: #6c757d !important;
}

#addToCartModal .modal-lg {
    max-width: 800px;
}

.service-item:hover {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.service-item {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.service-item .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#modalTotal {
    font-size: 2rem;
}

/* Animation for modal total */
@keyframes pulsePrice {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-updated {
    animation: pulsePrice 0.5s ease;
}

/* Disable text selection for disabled services */
.service-disabled label {
    cursor: not-allowed;
}

/* Style for already added services */
.service-disabled .badge {
    background-color: #28a745 !important;
}
.service-disabled .badge:before {
    content: "✓ ";
}