/* ================================================
   PRODUCT STYLES - AIControl Vietnam
   ================================================ */

/* ================================================
   SHOP PAGE STYLES
   ================================================ */

/* Breadcrumb */

:root {
  /**
  @font family declaration
  */
  --tp-ff-teko: 'Teko', serif;
  --tp-ff-body: 'Inter', sans-serif;
  --tp-ff-heading: 'Inter', sans-serif;
  --tp-ff-inter: 'Inter', sans-serif;
  --tp-ff-p: 'Inter', sans-serif;
  --tp-ff-besley: 'Besley', serif;
  --tp-ff-mango-thin: 'MangoGrotesqueThin', serif;
  --tp-ff-mango-light: 'MangoGrotesqueLight', serif;
  --tp-ff-mango: 'MangoGrotesque', serif;
  --tp-ff-mango-medium: 'MangoGrotesqueMed', serif;
  --tp-ff-mango-semibold: 'MangoGrotesqueSemBd', serif;
  --tp-ff-mango-bold: 'MangoGrotesque', serif;
  --tp-ff-clash-light: 'ClashDisplay-Light', serif;
  --tp-ff-clash-regular: 'ClashDisplay-Regular', serif;
  --tp-ff-clash-medium: 'ClashDisplay-Medium', serif;
  --tp-ff-clash-semibold: 'ClashDisplay-Semibold', serif;
  --tp-ff-clash-bold: 'ClashDisplay-Bold', serif;
  --tp-ff-grotesk: 'Space Grotesk', serif;
  --tp-ff-platform: 'Platform', serif;
  --tp-ff-playfair: 'Playfair Display', serif;
  --tp-ff-satisfy: 'Satisfy', cursive;
  --tp-ff-dirtyline: 'dirtyline-36daysoftype-2022', serif;
  --tp-ff-phudu: 'Phudu', serif;
  --tp-ff-poppins: 'Poppins', serif;
  --tp-ff-onest: 'Onest', serif;
  --tp-ff-fontawesome: "Font Awesome 6 Pro";

    --spec-bg: #ffffff;
  --spec-border: #e6e9ef;
  --spec-muted: #6b7280;
  --spec-accent: #0ea5a2; /* teal-ish */
  --spec-label-color: #111827;
  --spec-radius: 8px;
  --spec-gap: 12px;
  --spec-padding: 18px;
  --spec-item-bg-hover: #fbfdff;
  --spec-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --spec-font-size: 14px;
  /**
  @color declaration
  */
  --tp-common-white: #ffffff;
  --tp-common-black: #141414;
  --tp-common-black-2: #232323;
  --tp-common-black-3: #000;
  --tp-common-black-4: #0a0a0a;
  --tp-common-black-5: #121212;
  --tp-common-black-6: #212121;
  --tp-common-black-7: #0E0F11;
  --tp-common-black-8: #1a1b1e;
  --tp-common-black-9: #16302f;
  --tp-common-black-10: #21212D;
  --tp-common-cream: #f9f4e8;
  --tp-common-cream-2: #FFF6BF;
  --tp-common-cream-3: #ffffe6;
  --tp-common-yellow: #ffc446;
  --tp-common-yellow-1: #FFF669;
  --tp-common-yellow-green: #E9FF48;
  --tp-common-green-light: #D0FF71;
  --tp-common-green-regular: #C1ED00;
  --tp-common-green-solid: #17312F;
  --tp-common-pink-light: #FDE1DA;
  --tp-common-paste: #43D4A0;
  --tp-common-paste-2: #0C5752;
  --tp-common-sky: #C5FCFC;
  --tp-common-red: #FF4851;
  --tp-common-red-2: #FF481F;
  --tp-common-red-3: #FF5722;
  --tp-common-blue: #7463FF;
  --tp-common-brown: #453030;
  --tp-grey-1: #f8f8f8;
  --tp-grey-2: #f1f1f1;
  --tp-grey-3: #F8F8FB;
  --tp-grey-4: #F6F8EF;
  --tp-coffe-1: #653624;
  --tp-coffe-2: #552411;
  --tp-cream-1: #B7AB98;
  --tp-cream-2: #CFC292;
  --tp-text-body: #2e2d2d;
  --tp-theme-green: #A0FF27;
  --tp-theme-pink: #EC6FD5;
  --tp-theme-yellow: #FFB701;
  --tp-border-1: #EAEBED;
  --tp-border-2: #e7e7e7;

  /* main color */
  --tp-brand-primary-color: #34679A;      
  --tp-navi-background-color: #14293D;
  --tp-secondary-color: #2AB7CA;
  --accent-color: #F6C90E;
  --temp1: #F0A500;
  --section-background: #8DA9C4;



  /* main text color */
  --tp-heading-text-color: #0F0F0F;
  --tp-primary-text-color: #34679A;
  --tp-h2-text-color: #1C1C1C;
  --tp-subtitle-text-color: #3C3C3C;
  --tp-white-text-color: #FFFFFF;
  --tp-sub-white-text-color: #E1E8F0;
}
.breadcrumb__area {
    background: #f5f5f5;
}

.breadcrumb__content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #FF5722;
}

.breadcrumb-item.active {
    color: #333;
}

/* Filter Buttons */
.filter-buttons .btn {
    margin-left: 5px;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.filter-buttons .btn-primary {
    background: #FF5722;
    border-color: #FF5722;
    color: white;
}

.filter-buttons .btn-outline-secondary {
    border-color: #ccc;
    color: #666;
}

.filter-buttons .btn-outline-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* Product Item Card */
.product-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Product Thumbnail */
.product-thumb {
    background: #f8f8f8;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
}

.product-thumb .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-placeholder i {
    font-size: 48px;
}

.product-thumb .placeholder-icon i {
    font-size: 48px;
}

/* Product Badges */
.product-thumb .badge {
    position: absolute;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.badge-new,
.product-thumb .badge.bg-success {
    top: 10px;
    left: 10px;
    background-color: #28a745 !important;
}

.badge-featured,
.product-thumb .badge.bg-danger {
    top: 10px;
    right: 10px;
    background-color: var(--tp-secondary-color) !important;
}

.badge-sale,
.product-thumb .badge.bg-warning {
    bottom: 10px;
    left: 10px;
    background-color: #ffc107 !important;
    color: #333;
}

/* Product Content */
.product-content {
    padding: 20px;
}

.product-brand .badge {
    background-color: #f0f0f0 !important;
    color: #666;
    font-weight: 500;
    padding: 5px 12px;
    font-size: 12px;
}

.product-title {
    font-size: 16px;
    min-height: 48px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--tp-primary-text-color);
}

.product-desc {
    font-size: 13px;
    color: #666;
    min-height: 40px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Product Price */
.product-price {
    margin-bottom: 15px;
}

.product-price .old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 14px;
}

.product-price .new-price {
      color: var(--tp-primary-text-color);
    font-weight: bold;
    font-size: 18px;
}

.product-price .price {
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

/* Stock Status */
.stock-status {
    margin-bottom: 15px;
    font-size: 13px;
}

.stock-status i {
    margin-right: 5px;
}

.stock-status .text-success {
    color: #28a745 !important;
}

.stock-status .text-danger {
    color: #dc3545 !important;
}

.stock-status .text-warning {
    color: #ffc107 !important;
}

/* View Button */
.product-content .btn,
.btn-view-detail {
      color: var(--tp-primary-text-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-content .btn:hover,
.btn-view-detail:hover {
      color: var(--tp-primary-text-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #666;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
}


/* ================================================
   PRODUCT DETAIL PAGE STYLES
   ================================================ */

/* Product Detail Section */
.product-detail {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Product Images Container */
.product-images {
    position: sticky;
    top: 100px;
    display: flex;
    gap: 1rem;
}

@media (min-width: 768px) {
    .product-images {
        gap: 1.5rem;
    }
}

/* Main Image Container */
.main-image-container {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    height: clamp(300px, 60vh, 600px);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-container .placeholder {
    text-align: center;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.main-image-container .placeholder i {
    font-size: 100px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: clamp(60px, 15vw, 120px);
    flex-shrink: 0;
    height: clamp(300px, 60vh, 600px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Custom scrollbar for thumbnails */
.gallery-thumbnails::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* For Firefox */
.gallery-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s;
}

.gallery-item.active {
      color: var(--tp-primary-text-color);
}

.gallery-item:hover:not(.active) {
    border-color: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.product-info .badge {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 8px;
}

.product-info .badge.bg-primary {
    background-color: var(--tp-brand-primary-color) !important;
}

.product-info .badge.bg-danger {
    background-color: var(--tp-secondary-color) !important;
}

.product-info .badge.bg-success {
    background-color: #28a745 !important;
}

.product-info .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #333;
}

.product-info .badge.bg-secondary {
    background-color: #6c757d !important;
}

.product-info .badge.bg-light {
    background-color: #f8f9fa !important;
    color: #333;
    border: 1px solid #dee2e6;
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin-bottom: 1rem;
    font-family: var(--tp-ff-inter);
}

/* SKU */
.product-info .text-muted {
    color: #6c757d !important;
}

/* Rating Stars */
.rating {
    margin-bottom: 1rem;
}

.rating i {
    font-size: 16px;
    margin-right: 2px;
}

.rating .fa-star {
    color: #ffc107;
}

.rating .fa-star-o {
    color: #999;
}

/* Product Price Box */
.product-detail .product-price {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.product-price .old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.product-price .new-price {
    font-size: 32px;
    color: var(--tp-brand-primary-color);
    font-weight: bold;
}

.product-price .price {
    font-size: 32px;
    color: #FF5722;
    font-weight: bold;
}

.product-price .badge.bg-danger {
    font-size: 14px;
}

/* Short Description */
.short-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Stock Status */
.product-info .stock-status {
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.product-info .stock-status i {
    margin-right: 8px;
}

.product-info .stock-status .text-success {
    color: #28a745 !important;
}

.product-info .stock-status .text-danger {
    color: #dc3545 !important;
}

.product-info .stock-status .text-warning {
    color: #ffc107 !important;
}

/* Product Attributes */
.product-attributes {
    margin-bottom: 1.5rem;
}

.product-attributes p {
    margin-bottom: 0.5rem;
    font-size: 15px;
    color: #666;
}

.product-attributes strong {
    color: #333;
    margin-right: 10px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-buttons .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .btn i {
    margin-right: 8px;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.action-buttons .btn:first-child {
    background: var(--tp-brand-primary-color);
    color: white;
    border: none;
}

.action-buttons .btn:first-child:hover {
    background: var(--tp-brand-primary-color);
}

/* Product Meta (Categories & Tags) */
.product-meta p {
    margin-bottom: 0.5rem;
}

.product-meta .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* View Count */
.product-info .fa-eye {
    margin-right: 5px;
}

/* Product Tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: #333;
    border-bottom-color: #ccc;
}

.nav-tabs .nav-link.active {
    color: var(--tp-brand-primary-color);
    border-bottom-color: var(--tp-brand-primary-color);
    background: transparent;
}

.tab-content {
    padding: 30px 0;
}

/* Description Content */
.description-content {
    line-height: 1.8;
    color: #666;
}

.description-content h2,
.description-content h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content ul,
.description-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.description-content li {
    margin-bottom: 8px;
}

/* Features List */
.features-content h4 {
    margin-bottom: 1rem;
}

.features-content .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
}

.features-content .list-group-item i {
    margin-right: 0.5rem;
}

.features-content .text-success {
    color: #28a745 !important;
}

/* Mobile responsive specifications */
@media (max-width: 768px) {
    .specifications-content {
        padding: 20px;
        margin: 15px 0;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 15px 0;
    }
    
    .spec-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .spec-value {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .spec-item:hover {
        background: #f8f9fa;
        margin: 0 -15px;
        padding: 12px 15px;
        border-radius: 5px;
        transition: all 0.2s ease;
    }
}

/* Simple Specifications Section */
/* Specifications Container */
.specifications-content {
    background: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Heading */
.specifications-content h4 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* List Layout */
.spec-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Each Row */
.spec-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.spec-item:nth-child(odd) {
    background: #fafafa;
}

.spec-item:hover {
    background: #f3f8ff;
}

.spec-item:last-child {
    border-bottom: none;
}

/* Label Column */
.spec-label {
    font-weight: 600;
    color: #1f2937;
    min-width: 180px;
    flex-shrink: 0;
    margin-right: 20px;
    line-height: 1.5;
}

/* Value Column */
.spec-value {
    color: #374151;
    flex: 1;
    line-height: 1.5;
    word-break: break-word;
}

.spec-value a {
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.spec-value a:hover {
    color: #004a99;

}

/* Responsive Design */
@media (max-width: 768px) {
    .specifications-content {
        padding: 20px;
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .spec-label {
        min-width: unset;
        margin-right: 0;
        font-weight: 600;
        font-size: 15px;
        color: #111;
    }

    .spec-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .specifications-content {
        padding: 18px;
    }

    .specifications-content h4 {
        font-size: 18px;
    }

    .spec-label {
        font-size: 14px;
    }

    .spec-value {
        font-size: 13.5px;
    }
}






/* Downloads & Video Section */
.downloads-content h4 {
    margin-bottom: 1rem;
}

.downloads-content .ratio {
    margin-bottom: 2rem;
}

.downloads-content .btn {
    margin-bottom: 10px;
}

.downloads-content .btn i {
    margin-right: 8px;
}

/* Related Products */
.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-card .product-image {
    background: #f8f8f8;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-image i {
    font-size: 48px;
    color: #ccc;
}

.product-card h5 {
    font-size: 14px;
    min-height: 40px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
}

.product-card .text-primary {
    color: var(--tp-primary-text-color) !important;
}

.product-card .fw-bold {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.product-card .btn {
    font-size: 13px;
    padding: 8px 15px;
}


/* ================================================
   RESPONSIVE STYLES
   ================================================ */

@media (max-width: 991px) {
    .product-images {
        margin-bottom: 2rem;
        position: static;
    }
    
    .filter-buttons {
        margin-top: 15px;
    }
    
    .filter-buttons .btn {
        margin-bottom: 5px;
    }
}

@media (max-width: 767px) {
    .product-title {
        font-size: 24px;
    }
    
    .product-price .new-price,
    .product-price .price {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 24px;
    }
    
    /* Mobile specifications styling is handled above */
}

@media (min-width: 576px) {
    .action-buttons {
        gap: 1rem;
    }
}

/* ================================================
   RESPONSIVE DESCRIPTION CONTENT STYLES
   ================================================ */

/* Base Responsive Styles for Description Content */
.description-content,
.features-content,
.specifications-content {
    width: 100%;
    overflow-x: hidden;
}

/* Make all images responsive */
.description-content img,
.features-content img,
.specifications-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
}

/* Responsive tables */
.description-content table,
.features-content table,
.specifications-content table {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    margin: 15px 0;
    border-collapse: collapse;
}

.description-content table td,
.description-content table th,
.features-content table td,
.features-content table th,
.specifications-content table td,
.specifications-content table th {
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

/* Responsive text */
.description-content h2,
.features-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.description-content h3,
.features-content h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.description-content h4,
.features-content h4 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-top: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.description-content h5,
.description-content h6,
.features-content h5,
.features-content h6 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-top: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.description-content p,
.features-content p,
.specifications-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description-content ul,
.description-content ol,
.features-content ul,
.features-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.description-content li,
.features-content li {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Responsive iframes (videos) */
.description-content iframe,
.features-content iframe {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .description-content,
    .features-content,
    .specifications-content {
        padding: 15px;
    }

    .description-content img,
    .features-content img {
        margin: 10px auto;
    }

    .description-content h2,
    .features-content h2 {
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .description-content table,
    .features-content table,
    .specifications-content table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .description-content table td,
    .description-content table th,
    .features-content table td,
    .features-content table th,
    .specifications-content table td,
    .specifications-content table th {
        padding: 8px;
        min-width: 100px;
    }

    /* Better list spacing on mobile */
    .description-content ul,
    .description-content ol,
    .features-content ul,
    .features-content ol {
        padding-left: 15px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .description-content,
    .features-content,
    .specifications-content {
        padding: 10px;
    }

    .description-content table,
    .features-content table,
    .specifications-content table {
        font-size: 0.8rem;
    }

    .description-content table td,
    .description-content table th,
    .features-content table td,
    .features-content table th,
    .specifications-content table td,
    .specifications-content table th {
        padding: 6px;
        min-width: 80px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .description-content,
    .features-content,
    .specifications-content {
        padding: 20px;
    }

    .description-content img,
    .features-content img {
        max-width: 90%;
    }
}

/* Tablet-specific specifications styling */
@media (min-width: 769px) and (max-width: 1024px) {
    .specifications-content {
        padding: 25px;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    .description-content,
    .features-content {
        padding: 25px;
    }
    
    .specifications-content {
        padding: 40px;
    }

    .description-content img,
    .features-content img {
        max-width: 85%;
    }
    
    /* Enhanced desktop specifications styling */
    .specifications-content {
        padding: 35px;
    }
    
    .spec-label {
        min-width: 180px;
        font-size: 15px;
    }
    
    .spec-value {
        font-size: 15px;
    }
}

/* Prevent horizontal scroll */
.tab-content {
    overflow-x: hidden;
}

/* Fix for very wide content */
.description-content *,
.features-content *,
.specifications-content * {
    max-width: 100%;
}



/* Highlight active thumbnail with brand blue border and subtle ring */
.product-images .gallery-thumbnails .gallery-item img {
    border: 2px solid transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
    display: block;
}

.product-images .gallery-thumbnails .gallery-item.active img {
    border-color: var(--tp-brand-primary-color);
    /* Tailwind blue-600 */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* Slight hover affordance for thumbnails */
.product-images .gallery-thumbnails .gallery-item img:hover {
    transform: translateY(-2px);
    transition: transform .12s ease;
}