/* Mercado Livre theme colors - Updated to match official site */
:root {
    --ml-yellow: #ffe600;
    --ml-blue: #3483fa;
    --ml-green: #00a650;
    --ml-orange: #ff7733;
    --ml-gray: #666;
    --ml-light-gray: #f5f5f5;
    --ml-text-gray: #666666;
    --ml-border-gray: #e6e6e6;
    --ml-price-gray: #999999;
    --ml-discount-green: #00a650;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    background-color: #f5f5f5;
}

.star {
    color: #3483fa;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #e0e0e0;
    margin: 0 2px;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: #3483fa;
}

.carousel-dot:hover {
    background: #2968c8;
}

input[type="text"]::placeholder {
    color: #bdbdbd;
    opacity: 1;
}

/* Header icons styling to match official Mercado Livre */
.header-icon {
    color: #333;
    width: 28px;
    height: 28px;
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 4px;
    stroke-width: 1.5;
}

.header-icon:hover {
    color: #000;
}

.header-menu-icon {
    stroke-width: 1.5;
}

.header-cart-icon {
    position: relative;
    stroke-width: 1.5;
}

.custom-border {
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.custom-border:hover {
    border-color: #3483fa;
}

.custom-border-blue {
    border: 1px solid #3483fa;
}

.custom-border-blue:hover {
    border-color: #2968c8;
}

.oferta-dia-bg {
    background-color: #3483fa !important;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-track img {
    flex-shrink: 0;
    width: 100%;
}

/* Color option styles removed - color feature no longer available */

.voltage-option,
.frequency-option {
    transition: all 0.3s ease;
}

.voltage-option:hover,
.frequency-option:hover {
    background-color: #f5f5f5;
    border-color: #3483fa;
}

.voltage-option.selected,
.frequency-option.selected {
    border-color: #3483fa;
    background-color: #e3f2fd;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    /* Color option responsive styles removed */
    
    .text-2xl {
        font-size: 1.4rem;
    }
}

/* Button animations */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Modal animations */
#quantity-modal {
    animation: fadeIn 0.3s ease;
}

#quantity-modal .absolute {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Scroll improvements */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus,
input:focus {
    outline: 2px solid #3483fa;
    outline-offset: 2px;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: #f44336;
}

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

/* Seller info and guarantees styling */
.seller-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.guarantee-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.guarantee-content {
    flex: 1;
}

.guarantee-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.guarantee-description {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* Action buttons styling */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #3483fa;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.action-button:hover {
    color: #2968c8;
    background-color: #f8fafc;
}

.action-button:active {
    transform: translateY(1px);
}

/* Logo styling */
.store-logo {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 14px;
}

.store-logo .yellow-text {
    color: #ffe600;
}

/* Responsive improvements */
@media (max-width: 360px) {
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
    
    .guarantee-item {
        padding: 8px 0;
    }
    
    .guarantee-icon {
        width: 28px;
        height: 28px;
    }
}
