/*=========================================================
    SHOPEE CLEAN STYLE - Baseado no modelo docs/layout.html
==============================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, #ee4d2d 0%, #ff6633 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: linear-gradient(90deg, #ee4d2d 0%, #ff6633 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links-left,
.header-links-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-link:hover {
    color: white;
}

.header-link i {
    font-size: 14px;
}

.header-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.header-main {
    background: linear-gradient(90deg, #ee4d2d 0%, #ff6633 100%);
}

.header-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    max-height: 48px;
    width: auto;
}

.search-container {
    flex: 1;
    display: flex;
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 10px 32px;
    background: #fb5533;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: #ee4d2d;
}

.search-button i {
    font-size: 20px;
}

.cart-link {
    color: white;
    font-size: 26px;
    position: relative;
    text-decoration: none;
    padding: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.cart-link:hover {
    opacity: 0.8;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: white;
    color: #ee4d2d;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Banner Styles */
.banner {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
}

.banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.banner-main {
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6b35 100%);
    border-radius: 4px;
    padding: 48px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.banner-button {
    background: white;
    color: #ee4d2d;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
}

.banner-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banner-small {
    flex: 1;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-small-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.banner-small-text {
    font-size: 12px;
    color: #666;
}

/* Benefits Bar Styles */
.benefits-bar,
.benefits-section {
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 16px auto;
    width: 100%;
    max-width: 1200px;
    border-radius: 4px;
}

.benefits-container,
.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 8px;
    border-radius: 8px;
    flex: 1;
    max-width: 120px;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-icon i {
    font-size: 32px;
}

.benefit-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

/* Categories Styles */
.categories {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
    width: 100%;
}

.section-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    background: white;
    border-radius: 4px;
    overflow: visible;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    gap: 0;
    padding: 20px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-item:hover .category-icon {
    transform: scale(1.15);
}

.category-item:hover .category-name {
    color: #ee4d2d;
}

.category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    transition: all 0.3s ease;
    position: relative;
}

.category-icon i {
    font-size: 28px;
    color: #ee4d2d;
    transition: all 0.3s ease;
}

/* Cores específicas para cada categoria */
.category-item:nth-child(1) .category-icon {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
}

.category-item:nth-child(1) .category-icon i {
    color: #ffb700;
}

.category-item:nth-child(2) .category-icon {
    background: linear-gradient(135deg, #ffe6f0 0%, #ffcce0 100%);
}

.category-item:nth-child(2) .category-icon i {
    color: #ff4081;
}

.category-item:nth-child(3) .category-icon {
    background: linear-gradient(135deg, #e6f7ff 0%, #ccedff 100%);
}

.category-item:nth-child(3) .category-icon i {
    color: #00bcd4;
}

.category-item:nth-child(4) .category-icon {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
}

.category-item:nth-child(4) .category-icon i {
    color: #ee4d2d;
}

.category-item:nth-child(5) .category-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.category-item:nth-child(5) .category-icon i {
    color: #9c27b0;
}

.category-item:nth-child(6) .category-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.category-item:nth-child(6) .category-icon i {
    color: #4caf50;
}

.category-item:nth-child(7) .category-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.category-item:nth-child(7) .category-icon i {
    color: #ff9800;
}

.category-item:nth-child(8) .category-icon {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.category-item:nth-child(8) .category-icon i {
    color: #e91e63;
}

.category-item:nth-child(9) .category-icon {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.category-item:nth-child(9) .category-icon i {
    color: #009688;
}

.category-item:nth-child(10) .category-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.category-item:nth-child(10) .category-icon i {
    color: #2196f3;
}

.category-name {
    font-size: 12px;
    text-align: center;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.3s ease;
    max-width: 80px;
}

/* Flash Sale Styles */
.flash-sale {
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px 16px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flash-sale-text {
    background: linear-gradient(90deg, #ee4d2d 0%, #ff6633 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-sale-text i {
    color: #ee4d2d;
    font-size: 24px;
    -webkit-text-fill-color: #ee4d2d;
}

.countdown {
    display: flex;
    gap: 4px;
    align-items: center;
}

.countdown-box {
    background: #333;
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.see-all {
    color: #ee4d2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.see-all:hover {
    color: #ff6633;
    gap: 8px;
}

.flash-sale-container {
    position: relative;
    overflow: hidden;
}

.flash-sale-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: none;
}

.flash-sale-grid::-webkit-scrollbar {
    display: none;
}

.flash-sale-grid .product-card {
    min-width: 190px;
    max-width: 190px;
    flex: 0 0 auto;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #ee4d2d;
    color: white;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

.slider-nav i {
    font-size: 20px;
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #ee4d2d;
}

.product-image-container {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 190px;
}

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

.product-image-container img:not([src]),
.product-image-container img[src=""],
.product-image-container img[src*="undefined"] {
    display: none;
}

.product-image-container:not(:has(img[src])):before {
    content: '📦';
    font-size: 48px;
    color: #ccc;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: -4px;
    background: #ffce3d;
    color: #ee4d2d;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px 0 0 2px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.discount-badge::after {
    content: '';
    position: absolute;
    right: 0;
    top: 100%;
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-top: 4px solid #d4a729;
}

.flash-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 5px 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.flash-badge i {
    font-size: 12px;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ee4d2d;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
}

.official-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ee4d2d;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 2px;
    z-index: 2;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.5;
    min-height: 40px;
    font-weight: 400;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    color: #ee4d2d;
    font-size: 16px;
    font-weight: 600;
}

.product-original-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
    margin-left: 6px;
}

.product-sold {
    color: #999;
    font-size: 11px;
}

.sale-progress {
    margin-top: 8px;
}

.progress-bar {
    height: 16px;
    background: #ffe8e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ffd0c4;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ee4d2d 0%, #ff6633 100%);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popular-button {
    margin-top: 8px;
    width: 100%;
    background: linear-gradient(90deg, #ff9966 0%, #ff9999 100%);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-button:hover {
    background: linear-gradient(90deg, #ff8855 0%, #ff8888 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

.product-price-section {
    margin-top: 8px;
}

.product-sold-info {
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.stars {
    color: #ffc107;
    font-size: 10px;
}

.rating-count {
    color: #999;
    font-size: 10px;
}

/* Product Grid Styles */
.product-grid-section {
    max-width: 1200px;
    margin: 48px auto 24px;
    padding: 0 16px;
    width: 100%;
}

.product-grid-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 0;
}

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ee4d2d 50%, transparent 100%);
}

.header-text {
    color: #ee4d2d;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Footer Styles */
.footer {
    background: #fbfbfb;
    border-top: 4px solid #ee4d2d;
    margin-top: 48px;
    padding: 48px 16px 24px;
}

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

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 32px;
}

.footer-section {
    flex: 0 0 calc(25% - 23px);
    max-width: calc(25% - 23px);
    min-width: 0;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ee4d2d;
}

.footer-links a i {
    font-size: 14px;
}

/* Footer Social Links */
.footer-social a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-social a:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-country {
    font-size: 12px;
    color: #666;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-links-left a:nth-child(3),
    .header-links-left a:nth-child(5) {
        display: none;
    }
    .benefits-container {
        gap: 4px;
    }
    .benefit-item {
        padding: 8px 4px;
    }
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    .benefit-icon i {
        font-size: 28px;
    }
    .benefit-name {
        font-size: 11px;
    }
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .header-text {
        font-size: 20px;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-section {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .header-top-container {
        padding: 4px 8px;
    }
    .header-links-left {
        gap: 8px;
    }
    .header-links-right {
        gap: 8px;
    }
    .header-link {
        font-size: 11px;
    }
    .header-link i {
        font-size: 12px;
    }
    .header-main-container {
        padding: 8px;
        gap: 12px;
    }
    .logo img {
        max-height: 40px;
    }
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    .search-button {
        padding: 8px 20px;
    }
    .search-button i {
        font-size: 18px;
    }
    .cart-link {
        font-size: 24px;
        padding: 4px;
    }
    .benefits-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px;
        gap: 12px;
    }
    .benefit-item {
        min-width: 80px;
        flex: 0 0 auto;
    }
    .benefit-icon {
        width: 45px;
        height: 45px;
    }
    .benefit-icon i {
        font-size: 24px;
    }
    .benefit-name {
        font-size: 10px;
    }
    .banner-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 12px 0;
    }
    .category-icon {
        width: 40px;
        height: 40px;
    }
    .category-icon i {
        font-size: 22px;
    }
    .category-name {
        font-size: 11px;
    }
    .flash-sale {
        padding: 16px 8px;
    }
    .flash-sale-text {
        font-size: 16px;
    }
    .flash-sale-grid .product-card {
        min-width: 160px;
    }
    .slider-nav {
        width: 32px;
        height: 32px;
    }
    .slider-nav i {
        font-size: 16px;
    }
    .slider-nav.prev {
        left: -16px;
    }
    .slider-nav.next {
        right: -16px;
    }
    .product-grid-header {
        padding: 16px 0;
        margin-bottom: 16px;
    }
    .header-text {
        font-size: 18px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    .footer-grid {
        gap: 25px;
    }
    .footer-section {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .banner-main {
        padding: 32px;
    }
    .banner-title {
        font-size: 24px;
    }
}
