﻿/**
 * E-commerce Styles
 * Sistema Ótica Bling2
 */

:root {
    --primary: #CC0000;
    --primary-dark: #A30000;
    --primary-light: #E53935;
    --secondary: #3D0000;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    
    --font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    
    --container-width: 1280px;
}

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: #fff;
    font-size: 0.875rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    margin-left: 20px;
}

.top-bar a:hover {
    color: var(--accent);
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo img {
    height: 48px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.search-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: var(--bg-body);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--primary-dark);
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn i {
    font-size: 1.25rem;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-link.highlight {
    background: var(--accent);
    color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1000;
    transition: left 0.3s ease;
}

.mobile-menu-open .mobile-menu {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.mobile-menu-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-search {
    display: flex;
    padding: 16px;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.mobile-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover {
    background: var(--bg-body);
}

.mobile-nav a.highlight {
    color: var(--accent);
    font-weight: 600;
}

.mobile-menu-footer {
    padding: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 16px;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-word;
}

.price-discount {
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-promo {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--danger);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--bg-white);
}

.thumb.active {
    border-color: var(--primary);
}

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

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-code {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.product-info .product-price {
    margin-bottom: 24px;
}

.price-unit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.price-unit .unit-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-unit .unit-price strong {
    color: var(--text-primary);
}

.price-old-small {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount-small {
    font-size: 0.75rem;
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.product-info .price-current {
    font-size: 2.5rem;
    display: block;
    transition: all 0.3s ease;
}

.price-installments {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.product-stock.in-stock {
    color: var(--success);
}

.product-stock.out-of-stock {
    color: var(--danger);
}

/* Shipping Calculator */
.shipping-calculator {
    background: var(--bg-body);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.shipping-calculator h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.shipping-form {
    display: flex;
    gap: 12px;
}

.shipping-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.shipping-results {
    margin-top: 16px;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.shipping-option input {
    margin: 0;
}

.shipping-option .option-info {
    flex: 1;
}

.shipping-option .option-info strong {
    display: block;
}

.shipping-option .option-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shipping-option .option-details {
    text-align: right;
}

.shipping-option .option-details span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shipping-option .option-details strong {
    color: var(--primary);
}

.cep-link {
    display: block;
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 8px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.quantity-selector button,
.quantity-selector .qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.quantity-selector button:hover,
.quantity-selector .qty-btn:hover {
    background: var(--border-color);
}

.quantity-selector button:active,
.quantity-selector .qty-btn:active {
    background: var(--primary);
    color: white;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex: 1;
}

.btn-buy-now {
    margin-bottom: 24px;
}

/* Product Extra Info */
.product-extra-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.info-item strong {
    display: block;
    font-size: 0.875rem;
}

.info-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tabs */
.product-tabs {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--bg-body);
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--bg-white);
    color: var(--primary);
}

.tab-content {
    display: none;
    padding: 24px;
}

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

.specs-table {
    width: 100%;
}

.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
    color: var(--text-secondary);
    width: 200px;
}

/* Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cart-empty h2 {
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.cart-items-list {
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item .item-details {
    flex: 1;
}

.cart-item .item-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item .item-price {
    color: var(--text-muted);
}

.cart-item .item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item .item-quantity button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
}

.cart-item .item-total {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.cart-item .item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}

.cart-item .item-remove:hover {
    color: var(--danger);
}

/* Cart Sidebar */
.cart-sidebar .coupon-form,
.cart-sidebar .shipping-form {
    display: flex;
    gap: 8px;
}

.cart-sidebar input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
}

.installments {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.checkout-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.checkout-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.option-card {
    padding: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.option-card:hover,
.option-card.active {
    border-color: var(--primary);
}

.option-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.option-card h3 {
    margin-bottom: 4px;
}

.option-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.customer-form,
.address-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.flex-2 {
    flex: 2;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    flex: 1;
}

.payment-option input {
    display: none;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option input:checked + label {
    border-color: var(--primary);
    background: rgba(204, 0, 0, 0.05);
}

.payment-option label i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.payment-option label small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-details {
    background: var(--bg-body);
    padding: 20px;
    border-radius: var(--radius);
}

/* Order Items */
.order-items {
    max-height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.order-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-item .item-info {
    flex: 1;
}

.order-item .item-name {
    font-size: 0.875rem;
    display: block;
}

.order-item .item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.order-item .item-total {
    font-weight: 600;
}

.order-summary {
    padding: 16px;
}

.security-badges {
    text-align: center;
    padding: 16px;
    color: var(--success);
    font-size: 0.875rem;
}

.security-badges i {
    margin-right: 8px;
}

.sticky {
    position: sticky;
    top: 100px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

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

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

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info i {
    color: var(--primary-light);
}

.newsletter {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
}

.newsletter h4 {
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.payment-methods-footer {
    text-align: center;
    margin-bottom: 32px;
}

.payment-methods-footer h5 {
    margin-bottom: 16px;
    color: rgba(255,255,255,0.7);
}

.payment-methods {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.payment-methods h5 {
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 40px;
    width: auto;
    max-width: 60px;
    opacity: 0.9;
    transition: all 0.3s;
    object-fit: contain;
    filter: brightness(1.1);
}

.payment-icons img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.company-info {
    font-size: 0.75rem;
    margin-top: 8px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--info); }

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #fee2e2; color: #CC0000; }

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .separator {
    opacity: 0.5;
}

.breadcrumb-nav .current {
    color: var(--text-primary);
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .product-extra-info {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .login-options,
    .payment-methods {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* Anular max-width inline em form-groups quando empilhados */
    .form-row .form-group {
        max-width: none !important;
        width: 100%;
    }
    
    /* Logo responsiva */
    .logo img {
        height: 40px;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    /* Touch targets maiores */
    .btn {
        min-height: 44px;
        padding: 10px 20px;
    }
    
    input, select, textarea {
        font-size: 16px; /* prevenir zoom no iOS */
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Header actions */
    .action-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Container com menos padding */
    .container {
        padding: 0 16px;
    }
    
    /* Seções da loja */
    .section {
        padding: 24px 0;
    }
    
    /* Product card ajustes */
    .product-card .product-info {
        padding: 10px;
    }
    
    .product-card .product-price {
        font-size: 1rem;
    }
    
    /* Safe area para iPhones com notch */
    .header {
        padding-top: env(safe-area-inset-top, 0px);
    }
    
    .footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Mobile menu ajustes */
    .mobile-menu {
        width: min(300px, 85vw);
        left: calc(-1 * min(300px, 85vw));
        padding-top: env(safe-area-inset-top, 0px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu-open .mobile-menu {
        left: 0;
    }
    
    .mobile-nav a {
        padding: 14px 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Checkout melhorias */
    .checkout-summary {
        position: static;
    }
    
    /* Product detail */
    .product-detail {
        gap: 16px;
    }
    
    .product-detail .product-title {
        font-size: 1.25rem;
    }
    
    /* Cart items */
    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .header-actions span {
        display: none;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .logo span {
        font-size: 1.125rem;
    }
    
    /* Cards de produto compactos */
    .product-card .product-info {
        padding: 8px;
    }
    
    .product-card .product-name {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
    
    .product-card .product-price {
        font-size: 1.0625rem;
        flex-direction: column;
        gap: 2px;
    }
    
    .product-card .price-current {
        font-size: 1.375rem;
    }
    
    .product-card .price-old {
        font-size: 0.8125rem;
    }
    
    /* Checkout/Cart */
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        font-size: 0.8125rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Footer compacto */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Mobile extra pequeno (phones estreitos) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .products-grid {
        gap: 6px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.875rem;
    }
    
    .header-content {
        gap: 6px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ============ GALERIA DE IMAGENS APRIMORADA ============ */

.gallery-main {
    position: relative;
    cursor: zoom-in;
}

.gallery-main img {
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-main:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--bg-white);
    transition: all 0.2s;
}

.thumb:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ============ LIGHTBOX ============ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

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

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
}

.lightbox-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    z-index: 10002;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: transparent;
    transition: all 0.2s;
    opacity: 0.6;
}

.lightbox-thumb:hover {
    opacity: 0.9;
}

.lightbox-thumb.active {
    border-color: white;
    opacity: 1;
}

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

/* Responsivo Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
    
    .lightbox-thumbs {
        bottom: 10px;
        gap: 6px;
        padding: 8px;
    }
    
    .lightbox-thumb {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
    
    .gallery-thumbs {
        gap: 8px;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
    }
}

/* =====================================================
   TOUCH DEVICES
   ===================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Gallery nav sempre visível em touch */
    .gallery-nav {
        opacity: 1;
    }
    
    /* Remover hover effects que não fazem sentido em touch */
    .gallery-main:hover img {
        transform: none;
    }
    
    /* Remover sticky hover em touch */
    .product-card:hover {
        transform: none;
    }
    
    .btn:hover {
        filter: none;
    }
    
    .nav-link:hover::after {
        transform: scaleX(0);
    }
    
    /* WhatsApp float safe area */
    .whatsapp-float {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
    }
    
    /* Toast safe area */
    #toast-container {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Lightbox nav maiores para toque */
    .lightbox-nav {
        width: 48px;
        height: 48px;
    }
    
    /* Top bar safe area */
    .top-bar {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
}

/* =====================================================
   MELHORIAS RESPONSIVAS - TABLET E MOBILE
   ===================================================== */

/* Performance: prevenir double-tap delay */
html {
    touch-action: manipulation;
}

/* Acessibilidade: reduzir animações */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet intermediário (769px-1024px) - melhorias */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-content {
        gap: 20px;
    }
    
    .search-form {
        max-width: 400px;
    }
    
    /* Tabs responsivas */
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    
    /* Product detail gap menor */
    .product-detail {
        gap: 32px;
    }
    
    /* Cart/checkout sidebar proporcional */
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
    
    /* Nav links mais compactos */
    .nav-link {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
}

/* Mobile (max-width: 768px) - melhorias adicionais */
@media (max-width: 768px) {
    /* Product detail gallery thumbs */
    .thumb {
        width: 60px;
        height: 60px;
    }
    
    .gallery-thumbs {
        gap: 8px;
    }
    
    /* Specs table ajuste */
    .specs-table td:first-child {
        width: 120px;
        font-size: 0.875rem;
    }
    
    .specs-table td {
        padding: 10px 0;
        font-size: 0.875rem;
    }
    
    /* Product extra info empilhado */
    .product-extra-info {
        gap: 12px;
    }
    
    .info-item i {
        font-size: 1.25rem;
    }
    
    /* Cart item melhorias */
    .cart-item .item-total {
        min-width: auto;
        width: 100%;
        text-align: left;
    }
    
    .cart-item .item-quantity button {
        width: 36px;
        height: 36px;
    }
    
    /* Checkout summary não sticky */
    .cart-sidebar {
        position: static;
    }
    
    /* Newsletter form full width */
    .newsletter-form {
        max-width: 100%;
    }
    
    /* Product actions empilhado */
    .product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    /* Page title responsivo */
    .page-title {
        font-size: 1.375rem;
    }
    
    /* Section padding menor */
    .section-title {
        font-size: 1.25rem;
    }
}

/* Mobile pequeno (max-width: 480px) - melhorias adicionais */
@media (max-width: 480px) {
    /* Product detail title */
    .product-detail .product-title {
        font-size: 1.125rem;
    }
    
    /* Gallery thumbs menores */
    .thumb {
        width: 48px;
        height: 48px;
    }
    
    /* Product card preço compacto */
    .price-current {
        font-size: 1rem;
    }
    
    /* Product extra info compacto */
    .product-extra-info {
        gap: 8px;
    }
    
    .info-item {
        gap: 8px;
    }
    
    .info-item i {
        font-size: 1rem;
    }
    
    .info-item strong {
        font-size: 0.8125rem;
    }
    
    .info-item span {
        font-size: 0.6875rem;
    }
    
    /* Tabs compactas */
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    /* Cart vazio compacto */
    .cart-empty {
        padding: 48px 16px;
    }
    
    .cart-empty i {
        font-size: 3rem;
    }
    
    /* Btn buy now */
    .btn-buy-now {
        margin-bottom: 16px;
    }
    
    /* Footer payment icons */
    .footer-bottom {
        gap: 12px;
    }
    
    /* Seções com menos padding */
    .section {
        padding: 16px 0;
    }
    
    /* Lightbox full screen */
    .lightbox-content img {
        max-height: 50vh;
    }
    
    .lightbox-thumb {
        width: 40px;
        height: 40px;
    }
    
    /* Top bar mais compacto */
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }
}

/* Mobile extra pequeno (max-width: 360px) - melhorias adicionais */
@media (max-width: 360px) {
    /* Product grid 1 coluna para phones muito estreitos opcional */
    .product-card .product-name {
        font-size: 0.75rem;
    }
    
    .product-card .product-price {
        font-size: 1rem;
    }
    
    .product-card .price-current {
        font-size: 1.25rem;
    }

    /* Gallery thumbs mínimos */
    .thumb {
        width: 40px;
        height: 40px;
    }
    
    /* Tabs scroll horizontal */
    .tabs-header {
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    
    /* Cart item image menor */
    .cart-item .item-image,
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item .item-details h4 {
        font-size: 0.875rem;
    }
}

/* Landscape mobile - melhorias */
@media (max-width: 768px) and (orientation: landscape) {
    /* Header compacto em landscape */
    .header {
        padding: 8px 0;
    }
    
    .logo img {
        height: 32px;
    }
    
    /* Product grid 3 colunas em landscape */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Product detail lado a lado em landscape */
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    /* Lightbox melhor em landscape */
    .lightbox-content img {
        max-height: 70vh;
    }
    
    /* Section padding menor */
    .section {
        padding: 12px 0;
    }
}