/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1E88E5, #1976D2);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: #4CAF50;
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #45a049;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart, .user {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.cart:hover, .user:hover {
    background: rgba(255,255,255,0.1);
}

.cart i, .user i {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF5722;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.navigation {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    overflow-x: auto;
    padding: 5px 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb nav span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb nav span:last-child {
    color: #333;
    font-weight: 500;
}

.breadcrumb nav i {
    font-size: 10px;
    color: #999;
}

/* Product Main */
.product-main {
    background: white;
    padding: 30px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 120px 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #1E88E5;
}

.thumbnail:hover {
    border-color: #1E88E5;
    transform: scale(1.05);
}

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

.more-images {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.more-images:hover {
    background: #e3f2fd;
    border-color: #1E88E5;
    color: #1E88E5;
}

/* Main Image */
.product-image-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.image-container {
    position: relative;
    max-width: 100%;
    text-align: center;
}

#main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.zoom-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-header {
    position: relative;
    margin-bottom: 20px;
}

.product-header h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
}

.product-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-meta .separator {
    margin: 0 8px;
    color: #ddd;
}

.product-link {
    color: #1E88E5;
    text-decoration: none;
}

.product-link:hover {
    text-decoration: underline;
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
}

.full-badge {
    background: #1E88E5;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stars {
    color: #FFD700;
    font-size: 16px;
}

.rating-score {
    font-weight: 600;
    color: #333;
}

.rating-link {
    color: #1E88E5;
    text-decoration: none;
    font-size: 14px;
}

.rating-link:hover {
    text-decoration: underline;
}

.product-actions-top {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.share-btn, .favorite-btn {
    background: none;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.share-btn:hover, .favorite-btn:hover {
    border-color: #1E88E5;
    color: #1E88E5;
}

/* Specs */
.product-specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.spec-label {
    font-weight: 500;
    color: #333;
}

.spec-value {
    color: #666;
}

.spec-badge {
    background: #1E88E5;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Seller */
.seller-info {
    margin-bottom: 25px;
    font-size: 14px;
}

.sold-by {
    color: #666;
}

.seller-name {
    color: #1E88E5;
    font-weight: 600;
}

/* Pricing */
.pricing {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.price-original {
    margin-bottom: 5px;
}

.price-original span {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.price-installments {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.price-label {
    color: #666;
    font-size: 16px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #4CAF50;
}

.price-method {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.discount-info {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
}

/* Payment Options */
.payment-options {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-label {
    font-weight: 500;
    color: #333;
}

.payment-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.payment-price {
    font-weight: 600;
    color: #333;
}

.payment-installments {
    color: #666;
}

.payment-total {
    color: #666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-buy-now, .btn-add-cart {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-buy-now {
    background: #4CAF50;
    color: white;
    text-decoration: none;
}

.btn-buy-now:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-add-cart {
    background: #4CAF50;
    color: white;
}

.btn-add-cart:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Shipping */
.shipping-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.shipping-calculator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-calculator i {
    color: #1E88E5;
}

#calc-shipping {
    color: #1E88E5;
    text-decoration: none;
    font-weight: 500;
}

#calc-shipping:hover {
    text-decoration: underline;
}

/* Product Details */
.product-details {
    background: white;
    padding: 40px 0;
    margin-top: 30px;
}

.details-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    color: #1E88E5;
    border-bottom-color: #1E88E5;
}

.tab-content {
    display: none;
}

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

.tab-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.specs-grid {
    display: grid;
    gap: 15px;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-name {
    font-weight: 500;
    color: #333;
}

.spec-value {
    color: #666;
}

.reviews-summary {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.rating-score-large {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.stars-large {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

.total-reviews {
    color: #666;
    font-size: 16px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: #1E88E5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #1E88E5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.zoom-content {
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
}

.zoom-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.shipping-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.shipping-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.calc-btn {
    background: #1E88E5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.calc-btn:hover {
    background: #1976D2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 100px 1fr 350px;
        gap: 20px;
    }
    
    .product-info {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
        order: 3;
    }
    
    .header-actions {
        order: 2;
    }
    
    .nav-menu {
        gap: 15px;
        justify-content: flex-start;
    }
    
    .breadcrumb nav {
        font-size: 12px;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .thumbnail {
        min-width: 80px;
        height: 80px;
    }
    
    .more-images {
        min-width: 80px;
        height: 80px;
    }
    
    .product-image-main {
        order: -1;
    }
    
    .product-header h1 {
        font-size: 20px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .action-buttons {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px;
        margin: -15px;
        border-top: 1px solid #eee;
        z-index: 100;
    }
    
    .details-tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 15px 20px;
    }
    
    .spec-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-header h1 {
        font-size: 18px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .btn-buy-now, .btn-add-cart {
        padding: 12px;
        font-size: 14px;
   
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info {
    animation: fadeInUp 0.6s ease-out;
}

.thumbnail {
    animation: fadeInUp 0.6s ease-out;
}

.thumbnail:nth-child(1) { animation-delay: 0.1s; }
.thumbnail:nth-child(2) { animation-delay: 0.2s; }
.thumbnail:nth-child(3) { animation-delay: 0.3s; }
.thumbnail:nth-child(4) { animation-delay: 0.4s; }

