/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #173B8F;
    --primary-dark: #0f2863;
    --secondary-color: #FFCC00;
    --secondary-dark: #e5b800;
    --success-color: #00E676;
    --bg-color: #F3F3F3;
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --text-muted: #888888;
    --border-color: #EAEAEA;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding-top: 60px; /* Space for fixed header */
    padding-bottom: 70px; /* Space for bottom mobile nav */
    overflow-x: hidden;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Base Container */
.container {
    width: 100%;
    max-width: 600px; /* Mobile first focus */
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.main-header .logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header .logo-img {
    height: 30px;
    object-fit: contain;
}

.main-header .logo-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.5px;
    line-height: 1;
}

.main-header .logo-text span {
    display: block;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

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

.search-trigger-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-trigger-btn:active {
    background-color: var(--secondary-dark);
}

.menu-hamburger {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

/* Sidebar Drawer Navigation */
.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: var(--primary-color);
    color: #FFFFFF;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.drawer-menu.active {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(2px);
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-logo {
    display: flex;
    flex-direction: column;
}

.drawer-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.drawer-nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--secondary-color);
}

.drawer-nav-item:active, .drawer-nav-item.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--secondary-color);
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-socials {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.drawer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: background-color 0.2s;
}

.drawer-socials a:active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Banner Slider */
.slider-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s;
}

.slider-dot.active {
    background-color: var(--secondary-color);
    width: 16px;
    border-radius: 4px;
}

/* Category Icons */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.category-icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.category-icon-wrapper img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.category-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Horizontal Product Card */
.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    align-items: center;
}

.product-card-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #FAFAFA;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    line-height: 1.3;
    margin-bottom: 2px;
}

.product-card-sku {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-card-old-price {
    font-size: 10px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.product-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--success-color);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card-action {
    align-self: flex-end;
    margin-left: auto;
}

.product-card-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.2s;
}

.whatsapp-float:active {
    transform: scale(0.9);
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    height: 100%;
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Badge wrapper for cart counter */
.nav-cart-badge-wrapper {
    position: relative;
}

.nav-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 9px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Back bar */
.back-header {
    background-color: #FFFFFF;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
    position: sticky;
    top: 60px;
    z-index: 900;
}

.back-btn {
    border: none;
    background: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.back-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Detail Page Gallery */
.gallery-container {
    width: 100%;
    height: 250px;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.gallery-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

/* Copy Link */
.copy-link-btn {
    align-self: flex-start;
    background-color: #F0F2F5;
    color: #4A5568;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 12px;
}

/* Stock status and meta */
.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.stock-tag {
    color: var(--success-color);
    font-weight: 700;
    background-color: rgba(0, 230, 118, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.out-of-stock-tag {
    color: #FF5252;
    font-weight: 700;
    background-color: rgba(255, 82, 82, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Call to actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:active {
    background-color: var(--secondary-dark);
}

/* Shipping calculator */
.shipping-calc {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.shipping-calc-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.shipping-calc-input-group {
    display: flex;
    gap: 8px;
}

.shipping-calc-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    background-color: #FAFAFA;
}

.shipping-calc-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.shipping-calc-result {
    margin-top: 12px;
    font-size: 12px;
    color: #444;
}

/* Tabs & Product Sheets */
.product-tabs {
    margin-top: 24px;
}

.tab-header {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.tab-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
}

.spec-label {
    width: 100px;
    font-weight: 700;
    color: var(--text-color);
    flex-shrink: 0;
}

.spec-value {
    color: #555555;
}

/* Cart Items & Summary */
.cart-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #FAFAFA;
    object-fit: contain;
}

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

.cart-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

.quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: #F9FAFB;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

.quantity-val {
    font-size: 13px;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #FF5252;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* Cart Billing Details Form */
.form-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.form-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    background-color: #FAFAFA;
}

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

/* Summary Box */
.summary-box {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
}

/* Buttons green WhatsApp Send */
.btn-whatsapp-submit {
    background-color: #25D366;
    color: #FFFFFF;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-submit:active {
    background-color: #1ebe5d;
}

/* Big Search Form */
.search-form-container {
    background-color: #FFFFFF;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.search-input-field {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background-color: #F8F9FA;
}

.search-submit-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

/* Search options filter row */
.filter-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    overflow-x: auto;
}

.filter-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    background-color: #FFFFFF;
    color: #555;
    font-weight: 600;
}

.filter-toggle-btn {
    background-color: #F1F3F5;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.filter-drawer {
    background-color: #FFFFFF;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: none;
}

.filter-drawer.active {
    display: block;
}

/* Auth components */
.auth-container {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding-bottom: 10px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
}

/* History */
.order-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.order-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.order-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pendente {
    background-color: #FFF3CD;
    color: #856404;
}

.status-atendimento {
    background-color: #CCE5FF;
    color: #004085;
}

.status-concluido {
    background-color: #D4EDDA;
    color: #155724;
}

.status-cancelado {
    background-color: #F8D7DA;
    color: #721C24;
}

/* Info pages static styling */
.static-page-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.static-page-card h1, .static-page-card h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.static-page-card p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}
