/*
Theme Name: FreioGas Theme
Theme URI: https://dumontweb.com.br
Author: Dumont Web
Author URI: https://dumontweb.com.br
Description: Tema leve e responsivo para Freio Gás e Água - Distribuidora de gás em Pelotas/RS
Version: 2.0.0
License: GPL v2 or later
Text Domain: freiogas-theme
*/

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SVG Icons (used by PHP helpers) ===== */
.benefit-icon svg,
.header-cta svg,
.hero-cta svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-contact svg,
.store-phone svg,
.contact-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== Product Cards (plugin) ===== */
.fg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.fg-product-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fg-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.fg-product-sku {
    display: inline-block;
    background: #04653d;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.fg-product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #042918;
    margin-bottom: 0.5rem;
}

.fg-product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #04653d;
    margin-bottom: 0.5rem;
}

.fg-product-stock {
    font-size: 0.875rem;
    color: #0cd55e;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fg-product-stock::before {
    content: '●';
    margin-right: 0.4rem;
}

.fg-product-stock.out-of-stock {
    color: #dc2626;
}

.fg-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: #0cd55e;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.fg-product-btn:hover {
    background: #0bb54e;
    transform: translateY(-2px);
}

.fg-product-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.fg-product-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== Order Form (plugin) ===== */
.fg-order-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.fg-order-form h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #042918;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fg-form-group {
    margin-bottom: 1.25rem;
}

.fg-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.fg-form-group .required {
    color: #dc2626;
}

.fg-form-group select,
.fg-form-group input[type="text"],
.fg-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fafafa;
}

.fg-form-group select:focus,
.fg-form-group input:focus,
.fg-form-group textarea:focus {
    outline: none;
    border-color: #04653d;
    background: #fff;
}

.fg-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
}

.fg-quantity-btn {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.fg-quantity-btn:first-child {
    border-radius: 12px 0 0 12px;
}

.fg-quantity-btn:last-child {
    border-radius: 0 12px 12px 0;
}

.fg-quantity-btn:hover {
    background: #04653d;
    color: #fff;
    border-color: #04653d;
}

.fg-quantity-input {
    width: 60px !important;
    text-align: center;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    -moz-appearance: textfield;
}

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

.fg-add-item-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: #04653d;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.fg-add-item-btn::before {
    content: '+ ';
}

.fg-add-item-btn:hover {
    background: #024c2f;
}

.fg-add-hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #0cd55e;
    margin-top: 0.5rem;
    font-weight: 500;
}

.fg-items-wrapper {
    border: 2px dashed #0cd55e;
    border-radius: 12px;
    padding: 1rem;
}

.fg-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.fg-items-total {
    color: #042918;
    font-weight: 800;
}

.fg-items-empty {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.875rem;
    padding: 0.5rem;
}

.fg-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fg-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

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

.fg-item-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.fg-remove-item {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.fg-remove-item:hover {
    background: #fef2f2;
}

.fg-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: #f88a2b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(248, 138, 43, 0.3);
}

.fg-submit-btn:hover {
    background: #e07a1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(248, 138, 43, 0.4);
}

.fg-submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fg-submit-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.fg-form-success {
    background: #f0fdf4;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #bbf7d0;
}

.fg-form-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #fecaca;
}

.fg-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fg-spin 0.6s linear infinite;
}

@keyframes fg-spin {
    to { transform: rotate(360deg); }
}

/* ===== Floating WhatsApp Button ===== */
.fg-whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: fg-float 3s ease-in-out infinite;
}

.fg-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.fg-whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

@keyframes fg-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== WordPress Admin Bar Fix ===== */
.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}
