/* Estilos para el carrito de compras (responsive y profesional) */
.shopping-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.shopping-cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close-cart {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #d19c97;
}

.cart-items {
    flex-grow: 1;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px; /* Reduced image size */
    height: 60px; /* Reduced image size */
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
    width: 70%; /* Adjusted for better layout */
}

.cart-item-price {
    color: #D19C97;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px; /* Reduced width for a more compact layout */
    margin-top: 5px;
    gap: 8px; /* Reduced gap */
}

.cart-item-quantity button {
    padding: 6px 8px; /* Reduced padding for smaller buttons */
    background: #eee;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px; /* Reduced font size */
    transition: background-color 0.3s ease;
    width: 30px; /* Adjusted button width */
    height: 30px; /* Adjusted button height */
}

.cart-item-quantity button:hover {
    background-color: #ddd;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 8px; /* Reduced gap */
}

.cart-item-actions button {
    padding: 6px 12px; /* Reduced padding */
    background: #D19C97;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 14px; /* Reduced font size */
}

.cart-item-actions button:hover {
    background: #c88e88;
}

.cart-footer {
    position: relative;
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.cart-footer .cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}


/* Estilos responsivos */
@media (max-width: 768px) {
    .shopping-cart-sidebar {
        max-width: 100%;
        right: -100%;
    }

    .shopping-cart-sidebar.active {
        right: 0;
    }

    .cart-item img {
        width: 50px;
        height: 50px;
    }

    .cart-item-details {
        max-width: 70%;
    }

    .cart-item-quantity {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-quantity button {
        padding: 6px 10px;
        font-size: 16px;
        width: 30px;
        height: 30px;
    }

    .cart-item-actions button {
        font-size: 14px;
        padding: 6px 15px;
    }

}

/* Botones al estar en focus */
.cart-item-quantity button:focus,
.cart-item-actions button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.btn-whatsapp {
    color: #000000;
    background-color: #8bee8f;
    border-color: #8bee8f;
    box-shadow: none;
}

.btn-whatsapp:hover {
    color: #000000;
    background-color: #9bfe9f;
    border-color: #9bfe9f;
}
.text-multiline-truncate {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;  /* Número de líneas que quieres mostrar */
    line-clamp: 2;
    overflow: hidden;
}
#snowflakes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(calc(-100px + 200px * random()));
        opacity: 0.2;
    }
}

/* Form validation styles cart */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Error message styles */
.checkout-error {
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact Cart Styles partial*/
.compact-cart {
    font-size: 0.9rem;
    margin-top: -3rem;
}

.compact-cart .card {
    border-radius: 0.5rem;
}

.compact-cart .card-header {
    padding: 0.75rem 1rem;
}

.compact-cart .table {
    margin-bottom: 0;
}

.compact-cart .table thead th {
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.compact-cart .table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle !important;
}

.compact-cart .quantity-input {
    width: 80px !important;
}

.compact-cart .quantity-input .form-control {
    padding: 0.25rem;
    font-size: 0.85rem;
}

.compact-cart .quantity-input .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.compact-cart .product-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.compact-cart .product-name {
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

 /* Responsive adjustments */
@media (max-width: 768px) {
    .compact-cart .row {
        flex-direction: column;
    }

    .compact-cart {
        margin-top: 0;
    }

    .compact-cart .col-lg-7,
    .compact-cart .col-lg-5 {
        padding-left: 0;
        padding-right: 0;
    }
}

.product-name {
    display: block;
    margin-bottom: 0.25rem;
}

.quantity-input .btn-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    margin-top: 150px;
    /* Adjust this value to fine-tune vertical position */
    transform: translateY(0%);
    /* Helps with precise vertical centering */
}

/* Table Blur Effect */
.table-blurred {
    filter: blur(3px);
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Spinner styling */
.spinner-border.text-primary {
    color: rgb(2, 14, 26) !important;
    border-width: 0.25em;
}

/* Enhanced Order Summary Styles */
.step-section h4 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.order-summary-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3f8 100%);
    border: 1px solid #e3e6ef;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-ticket {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-ticket-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.order-number {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-ticket-body {
    line-height: 1.0;
}

.order-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.order-ticket-label {
    font-weight: 500;
    color: #495057;
    flex-shrink: 0;
    margin-right: 1rem;
}

.order-ticket-value {
    font-weight: 600;
    color: #111;
    text-align: right;
    flex-grow: 1;
}

.order-ticket-section-title {
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.order-ticket-total {
    border-top: 2px solid #e9ecef;
    margin-top: 1.5rem;
    padding-top: 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3f8 100%);
    border-radius: 6px;
    padding: 1rem;
}

.order-ticket-total .order-ticket-row {
    margin-bottom: 0;
    font-size: 1.15rem;
}

.order-ticket-total .order-ticket-label,
.order-ticket-total .order-ticket-value {
    font-weight: 700;
    color: #111;
}

.order-ticket-total .order-ticket-value {
    color: #c1121f;
}

.order-product-item {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem !important;
}

.order-product-item:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

.fw-semibold {
    font-weight: 600;
    color: #2c3e50;
}

/* Discount styling */
.discount-row {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem !important;
}

.discount-row .order-ticket-label {
    color: #155724;
}

.discount-row .order-ticket-value {
    color: #155724;
}

/* Enhanced shipping display */
.shipping-free {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Delivery method buttons - Fixed CSS */
.btn-group.w-100 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.btn-delivery {
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1;
    position: relative;
    border: none !important;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
}

.btn-delivery:focus {
    box-shadow: none;
    outline: none;
}

.btn-delivery.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    z-index: 1;
    transform: translateY(-1px);
}

.btn-delivery:not(.active):hover {
    color: #495057 !important;
    background-color: #e9ecef !important;
    transform: translateY(-1px);
}

.btn-delivery i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Payment method buttons - Enhanced */
.payment-methods-container {
    margin: 20px 0;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 500px;
}

.payment-method-btn {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.payment-method-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.payment-method-btn.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
    transform: translateY(-1px);
}

.payment-method-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.payment-icon {
    font-size: 1.8rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.payment-method-btn.active .payment-icon {
    color: #28a745;
}

.payment-method-btn:hover:not(.disabled) .payment-icon {
    color: #667eea;
}

.payment-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.payment-method-btn.active .payment-label {
    color: #155724;
}

.payment-check {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #28a745;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-btn.active .payment-check {
    opacity: 1;
    animation: checkBounce 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 8px;
    }

    .payment-method-btn {
        min-height: 70px;
        padding: 10px 5px;
    }

    .payment-icon {
        font-size: 1.5rem;
    }

    .payment-label {
        font-size: 0.75rem;
    }

    .order-ticket {
        padding: 1rem;
    }

    .order-ticket-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .order-ticket-label,
    .order-ticket-value {
        text-align: left;
    }
}

/* Animations */
@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.payment-method-btn.active {
    animation: pulse 0.3s ease-in-out;
}

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Timeline Styles */
.checkout-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.checkout-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.checkout-timeline .progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: rgb(76, 83, 175);
    z-index: 1;
    transition: width 0.3s ease;
    width: 0%;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.timeline-step.active .step-circle {
    background: rgb(76, 83, 175);
    transform: scale(1.1);
}

.timeline-step.completed .step-circle {
    background: #28a745;
    transform: scale(1.0);
}

.timeline-step.completed .step-circle::after {
    font-size: 14px;
}

.step-label {
    font-size: 14px;
    color: #777;
    font-weight: 500;
    text-align: center;
}

.timeline-step.active .step-label {
    color: rgb(76, 83, 175);
    font-weight: 600;
}

.timeline-step.completed .step-label {
    color: #28a745;
    font-weight: 500;
}

/* Step content styles */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*----- Formato del div de los mensajes -----*/
.flash-message { font-family: Play,Lucila,Verdana,sans-serif; font-size: 14px; margin: 5px auto; padding: 0.07em 0 0; text-align: center; width: 35%; }
.flash-message { float: right; left: 64%; position: fixed; top: 38px; z-index: 1055; }
@media (max-width: 767px) {
    .flash-message { left: 5% !important; top: 50px; width: 90%; }
    /*body { padding-top: 40px !important; }*/
}
/* Variables de diseño */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Estilos generales */
.product-hero-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.product-breadcrumb .breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #334155;
    font-weight: 500;
}

/* Galería de producto */
.product-gallery {
    position: relative;
}

.product-image-main {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    padding: 0.5rem;
    background: white;
    border-radius: var(--radius-md);
}

.image-container img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    .image-container img {
        max-height: 600px;
    }
}

.image-container:hover img {
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    white-space: nowrap;
}

.product-badge.free-shipping {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    bottom: 1rem;
    right: 1rem;
    top: auto;
}

.product-badge.new-product {
    background: linear-gradient(135deg, var(--success-color), #059669);
    top: 1rem;
    right: 1rem;
}

.product-badge.discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    top: 1rem;
    right: 1rem;
}

/* Si hay múltiples badges, ajustar posiciones */
.image-container .product-badge.new-product ~ .product-badge.discount {
    top: 3.5rem;
}

.image-container .product-badge.new-product ~ .product-badge.free-shipping {
    bottom: 1rem;
}

.image-container .product-badge.discount ~ .product-badge.free-shipping {
    bottom: 1rem;
}

/* Detalles del producto */
.product-details {
    padding-left: 2rem;
}

@media (max-width: 992px) {
    .product-details {
        padding-left: 0;
        padding-top: 2rem;
    }
}

.product-meta-top {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-brand {
    background: #dbeafe;
    color: var(--primary-dark);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.product-name {
    color: #1e293b;
    line-height: 1.3;
    font-weight: 700;
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .product-name {
        font-size: 2rem;
    }
}

/* Rating */
.product-rating .rating-wrapper {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-rating .stars {
    color: var(--warning-color);
    font-size: 1rem;
}

.product-rating .stars .far {
    color: #e2e8f0;
}

.product-rating .rating-score {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-rating .reviews-count {
    font-size: 0.875rem;
}

/* Precio */
.product-price {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.price-current {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

@media (min-width: 768px) {
    .price-currency {
        font-size: 1.15rem;
    }
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-left: 0.25rem;
}

@media (min-width: 768px) {
    .price-amount {
        font-size: 2rem;
    }
}

.price-original {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .price-original {
        font-size: 1rem;
    }
}

.price-original del {
    color: #94a3b8;
}

.discount-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Especificaciones */
.product-specs .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    border: 1px solid var(--border-color);
}

.spec-content strong {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.spec-content small {
    font-size: 0.75rem;
}

/* Descripción corta */
.product-short-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-short-description p {
    margin: 0;
    font-size: 0.9rem;
}

/* Control de cantidad */
.product-quantity .quantity-control {
    display: flex;
    max-width: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.quantity-control .quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: white;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-control .quantity-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.quantity-control .quantity-input {
    width: 70px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
    color: #1e293b;
    padding: 0.5rem;
}

.quantity-control .quantity-input:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--border-color);
}

/* Botones de acción */
.product-actions .btn {
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.product-actions .add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.product-actions .btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #25d366);
    color: white;
}

.product-actions .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

.product-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-actions .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.product-actions .btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Compartir */
.product-share {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #64748b;
    border: 1px solid var(--border-color);
    background: white;
}

.share-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-icon.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-icon.link:hover {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

/* Tabs */
.product-tabs-container {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.product-detail-tabs {
    padding: 0 1.5rem;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.product-detail-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.product-detail-tabs .nav-link:hover {
    color: var(--primary-color);
}

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

.product-tab-content {
    background: white;
}

.description-content {
    color: #475569;
    line-height: 1.7;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4 {
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

/* Notificación de copiado */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .product-name {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .product-image-main {
        padding: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-hero-banner {
        padding: 0.5rem 0;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .product-actions {
        margin-bottom: 1rem;
    }
    
    .product-actions .btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .product-actions .btn i {
        font-size: 0.9rem;
    }
    
    .copy-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* Estados de hover y focus */
.btn:focus,
.quantity-btn:focus,
.share-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animaciones de entrada */
.product-image-main,
.product-details,
.product-tabs-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
   MEJORAS PARA PESTAÑAS DE PRODUCTO
   ==================== */

.product-tabs-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    margin-top: 2rem;
}

/* ----- Navegación de las pestañas ----- */
.product-detail-tabs {
    border-bottom: 1px solid var(--secondary); /* Usa el color secundario de tu tema */
    padding: 0;
    display: flex;
    background-color: #fafafa;
}

.product-detail-tabs .nav-item {
    margin-bottom: -1px; /* Para que el borde activo se superponga al contenedor */
    flex: 1;
    text-align: center;
}

.product-detail-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    color: var(--gray);
    font-weight: 500;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-tabs .nav-link:hover {
    color: var(--primary);
    background-color: rgba(194, 28, 52, 0.03);
}

.product-detail-tabs .nav-link.active {
    color: var(--primary);
    background-color: #fff;
    font-weight: 600;
    border-bottom: 3px solid var(--primary);
}

.product-detail-tabs .nav-link i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* ----- Contenido de las pestañas ----- */
.product-tab-content {
    background: #fff;
}

.product-tab-content .tab-pane {
    padding: 2rem;
}

.product-tab-content .tab-pane h4 {
    color: var(--dark);
    font-weight: 600;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--secondary);
}

.description-content {
    line-height: 1.7;
    color: #555;
}

.description-content p {
    margin-bottom: 1rem;
}

/* ----- Efectos de transición ----- */
.tab-pane.fade {
    transition: opacity 0.15s linear;
}

.tab-pane.fade.show.active {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 768px) {
    .product-detail-tabs {
        flex-direction: column;
    }
    
    .product-detail-tabs .nav-item {
        width: 100%;
    }
    
    .product-detail-tabs .nav-link {
        justify-content: flex-start;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .product-detail-tabs .nav-link.active {
        border-bottom: 3px solid var(--primary);
        border-left: 4px solid var(--primary);
    }
    
    .product-tab-content .tab-pane {
        padding: 1.5rem;
    }
}
    .checkout-cart-card { border:1px solid var(--border-color,#e2e8f0); border-radius:12px; background:#fff; overflow:hidden; margin-bottom:1.5rem; box-shadow:0 4px 12px rgba(0,0,0,0.03); }
    .checkout-cart-header { background:var(--brand-primary,#C21C34) !important; color:#fff; padding:0.85rem 1rem; }
    .checkout-cart-header h5 { color:#fff; font-weight:600; font-size:1rem; margin:0; }
    .checkout-cart-body { padding:1rem; }
    .checkout-cart-wrapper { position:relative; min-height:300px; }
    .checkout-cart-items { display:flex; flex-direction:column; gap:0.25rem; }
    .checkout-cart-item { align-items:flex-start; padding-bottom:0.75rem; margin-bottom:0.75rem; border-bottom:1px solid #e2e8f0; }
    .checkout-cart-item:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
    .checkout-cart-img { width:58px; height:58px; object-fit:cover; border-radius:8px; border:1px solid #e2e8f0; }
    .checkout-cart-name { font-size:0.95rem; font-weight:600; color:var(--text-main,#0f172a); line-height:1.25; }
    .checkout-cart-unit { font-size:0.85rem; color:var(--text-muted,#475569); }
    .checkout-cart-stock { font-size:0.8rem; }
    .checkout-cart-qty-btn { width:28px; height:28px; border-radius:50%; border:1px solid #e2e8f0; background:#fff; color:var(--brand-primary,#C21C34); display:inline-flex; align-items:center; justify-content:center; padding:0; transition:all .2s; }
    .checkout-cart-qty-btn:hover:not(:disabled) { background:var(--brand-light,#fdf2f4); border-color:var(--brand-primary,#C21C34); }
    .checkout-cart-qty-btn:disabled { opacity:0.5; cursor:not-allowed; }
    .checkout-cart-qty { font-weight:700; color:var(--text-main); min-width:26px; text-align:center; display:inline-block; }
    .checkout-cart-total { min-width:70px; display:flex; justify-content:flex-end; align-items:flex-start; }
    .checkout-cart-price { font-size:1.05rem; font-weight:700; color:var(--brand-primary,#C21C34); }
    .checkout-cart-subtotal { border-top:1px solid #e2e8f0; background:#fff; margin-top:1rem; padding:1rem 0 0.25rem; }
    .checkout-cart-subtotal h5 { font-size:1rem; }
    .loading-overlay { position:absolute; inset:0; background:rgba(255,255,255,0.92); display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:50; border-radius:8px; backdrop-filter:blur(2px); }
    .table-blurred { filter:blur(2px); opacity:0.5; pointer-events:none; }
    .text-primary { color:var(--brand-primary,#C21C34) !important; }