.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Cambiar a columna para pantallas pequeñas */
    gap: 40px;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row; /* Cambiar a fila para pantallas más grandes */
    }
}

.product-image {
    flex: 1;
    max-width: 500px;
    border: 2px solid #e6f3ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px; /* Añadir margen inferior para espacio en pantallas pequeñas */
}
.product-image img {
    width: 100%;
    height: auto;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 24px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 20px;
}

.product-description {
    color: #4a90e2;
    margin-bottom: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #2196F3;
    background: white;
    cursor: pointer;
    color: #2196F3;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: #e3f2fd;
}

.quantity-controls span {
    width: 50px; /* Puedes omitir esta propiedad en span ya que no se puede establecer un ancho */
    height: 30px; /* Esto también puede omitirse */
    display: inline-block; /* Esto permite aplicar width y height */
    text-align: center;
    border: 1px solid #2196F3; /* Esto puede ser útil si deseas tener un borde alrededor del span */
    color: #2196F3;
    line-height: 30px; /* Centra el texto verticalmente en el span */
}


.add-to-cart {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background: #1976D2;
}

.add-to-cart svg {
    width: 20px;
    height: 20px;
}

.volume-discount {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.volume-discount th {
    background: #2196F3;
    color: white;
    padding: 12px;
}

.volume-discount td {
    padding: 10px;
    text-align: center;
    border: 1px solid #bbdefb;
    background: #e3f2fd;
}

.distributor-price {
    margin-top: 20px;
    color: #1976D2;
    font-size: 14px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
}

.container-tabs {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px 20px;
    background: #f5f9ff;
    border-radius: 8px;
}

.tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 0;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.tab.active {
    color: #2196F3;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2196F3;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specs-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.specs-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.specs-table td:first-child {
    width: 200px;
    font-weight: 500;
}

.category-header {
    background-color: #2196F3 !important;
    color: white;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 12px;
    color: #444;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.features-list li::before {
    content: '•';
    color: #2196F3;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.specs-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.specs-table td:first-child {
    width: 200px;
    font-weight: 500;
}

.category-header {
    background-color: #2196F3 !important;
    color: white;
}

.category-header td {
    padding: 12px;
    font-weight: bold;
}

/* Ajustes de tipografía y tamaños para pantallas pequeñas */
@media (max-width: 767px) {
    .product-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .product-price {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .product-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .quantity-controls button {
        width: 25px;
        height: 25px;
    }

    .add-to-cart {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Opcional: Ajuste de la tabla de descuentos y especificaciones */
.volume-discount, .specs-table {
    font-size: 12px;
}

@media (max-width: 576px) {
    .tabs {
        gap: 15px;
        font-size: 12px;
    }

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

    .specs-table td, .specs-table th {
        padding: 8px;
    }
}