/* ========================================
   SUITS E-COMMERCE - ESTILOS GLOBAIS
   Arquivo base com componentes compartilhados
   ======================================== */

/* Variáveis Globais */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666;
    --accent-color: #d4af37;
    --border-color: #ddd;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base */
body {
    font-family: var(--font-main);
    color: var(--primary-color);
    line-height: 1.6;
}

a, button, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

main {
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 500;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    flex: 1;
}

.header-links {
    display: flex;
    gap: 15px;
}

.header-links a {
    color: var(--white);
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.site-logo .logo-image {
    height: 160px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    pointer-events: none;
}

.site-logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    padding: 0;
}

.main-nav {
    flex: 1;
}

.nav-menu li {
    border-right: 2px solid var(--border-color);
    padding-right: 30px;
    position: relative;
    margin: 0;
}

.nav-menu li:last-child {
    border-right: none;
}

.nav-menu a {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    line-height: 1.4;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Submenu */
.submenu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item-with-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    padding: 12px 0;
    min-width: 220px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    margin-top: 0;
}

.nav-item-with-submenu:hover .submenu {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu li {
    border: none;
    padding: 0;
    margin: 0;
}

.submenu a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    gap: 0;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.submenu a:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
    padding-left: 24px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 5px;
}

.search-form input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 250px;
}

.search-form button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
    background: transparent;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Customer Menu Dropdown */
.customer-menu {
    position: relative;
    display: inline-block;
}

.customer-greeting {
    cursor: pointer;
    color: var(--white);
    padding: 5px 10px;
}

.customer-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
}

.customer-menu:hover .customer-dropdown {
    display: block;
}

.customer-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.customer-dropdown a:last-child {
    border-bottom: none;
}

.customer-dropdown a:hover {
    background: var(--bg-light);
}

/* Flash Messages */
.flash-message {
    padding: 15px 0;
    text-align: center;
    font-weight: 500;
}

.flash-success {
    background: var(--success);
    color: var(--white);
}

.flash-error {
    background: var(--danger);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb span[aria-hidden="true"] {
    color: var(--border-color);
    user-select: none;
}

/* Sections */
.featured-section, .promo-section, .all-products {
    padding: 50px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 40px 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--secondary-color);
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    border-radius: 20px;
}

.badge-new {
    background: var(--success);
}

.badge-promo {
    background: var(--danger);
}

.badge-promo {
    background: var(--danger);
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-category {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card:has(.price-old) .price-current {
    color: var(--danger);
}

.price-old {
    font-size: 18px;
    color: var(--secondary-color);
    text-decoration: line-through;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-btn, .pagination-number {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-btn:hover, .pagination-number:hover {
    background: var(--bg-light);
}

.pagination-number.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: #333;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover:not(:disabled) {
    background: #20BA5A;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utilities */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.no-data .btn {
    margin-top: 20px;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 968px) {
    body {
        overflow-x: hidden;
    }
    
.site-header {
    position: relative;
    z-index: 999;
    width: 100%;
    pointer-events: auto;
}.header-main {
    padding: 15px 0;
    position: relative;
    z-index: 999;
    pointer-events: auto;
}    .header-content {
        flex-wrap: wrap;
        position: relative;
        gap: 15px;
        z-index: 999;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 1;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .site-logo {
        order: 2;
        flex-grow: 0;
        z-index: 1;
    }
    
    .site-logo .logo-image {
        height: 80px;
        max-width: 150px;
    }
    
    .header-actions {
        order: 3;
        margin-left: auto;
        gap: 10px;
        flex-shrink: 0;
    }
    
    .search-form {
        display: none;
    }
    
    .header-actions .cart-icon {
        font-size: 20px;
        padding: 5px;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 4;
        background: white;
        padding: 15px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-menu li {
        width: 100%;
        border-right: none;
        padding-right: 0;
        margin: 0;
    }
    
    .nav-menu li:last-child {
        border-right: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .submenu {
        position: static;
        display: none !important;
        border: none;
        box-shadow: none;
        background: #f9f9f9;
        margin: 0;
        padding: 5px 0 5px 15px;
        min-width: auto;
    }
    
    .nav-item-with-submenu:hover .submenu {
        display: none !important;
    }
    
    .nav-item-with-submenu.mobile-active .submenu {
        display: block !important;
    }
    
    .submenu a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 15px 0;
        font-size: 13px;
        gap: 6px;
    }
    
    .breadcrumb-current {
        word-break: break-word;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 14px 20px;
        font-size: 15px;
        width: 100%;
    }
}
