/* =============================================
   GOURMERIA.JP - SHARED FRONTEND STYLES
   Modern, Responsive E-commerce Design
   Mobile-First Approach
   ============================================= */

/* =============================================
   CSS CUSTOM PROPERTIES (Design System)
   ============================================= */
:root {
    /* Colors - Primary */
    --color-primary: #c9a84c;
    --color-primary-hover: #a0782e;
    --color-primary-light: rgba(212, 175, 55, 0.1);

    /* Colors - Dark/Brand */
    --color-dark: #2c1810;
    --color-dark-secondary: #5d3a2b;

    /* Colors - Text */
    --color-text: #1a1a1a;
    --color-text-secondary: #6c757d;
    --color-text-muted: #adb5bd;
    --color-text-light: #f8f9fa;

    /* Colors - Background */
    --color-bg: #fefefe;
    --color-bg-alt: #f5f2ed;
    --color-bg-cream: #f8f4e6;
    --color-bg-card: #ffffff;

    /* Colors - Border */
    --color-border: #e9ecef;
    --color-border-light: #f0f0f0;

    /* Colors - Status */
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 9000;
    --z-modal: 9500;
    --z-toast: 10000;

    /* Header Height */
    --header-height: 70px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Body scroll lock for modals */
body.menu-open,
body.modal-open {
    overflow: hidden;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: linear-gradient(135deg, #2c1810 0%, #5d3a2b 100%);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c9a84c;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* =============================================
   MAIN NAVIGATION
   ============================================= */
.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #f8f9fa;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: #c9a84c;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* =============================================
   CATEGORIES DROPDOWN
   ============================================= */
.categories-dropdown {
    position: relative;
}

/* Botão semântico para o dropdown de categorias */
.categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: #f8f9fa;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.3s ease;
}

.categories-btn:hover {
    color: #c9a84c;
}

.categories-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.categories-dropdown:hover .categories-btn .fa-chevron-down,
.categories-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: var(--z-dropdown);
}

.categories-dropdown:hover .dropdown-menu,
.categories-btn[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: #2c1810;
    color: #c9a84c;
    padding-left: 2rem;
    outline: none;
}

/* Overlay do menu mobile */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Skip link acessibilidade */
.focusable:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    z-index: calc(var(--z-toast) + 1);
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
    overflow: visible;
}

/* =============================================
   HEADER ACTIONS
   ============================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #c9a84c;
}

.header-btn.primary {
    background: #c9a84c;
    color: white;
}

.header-btn.primary:hover {
    background: #a0782e;
    color: white;
}

/* =============================================
   CART BUTTON
   ============================================= */
.cart-btn {
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cart-btn.has-items {
    opacity: 1;
}

.cart-btn.has-items:hover {
    background: rgba(212, 175, 55, 0.2);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    color: #f8f9fa;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #2c1810;
}

.mobile-menu-content {
    padding: 2rem 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu-section {
    margin-bottom: 2rem;
}

.mobile-menu-section h3 {
    font-size: 1.1rem;
    color: #c9a84c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-menu-section a {
    display: block;
    padding: 0.75rem 0;
    color: #4a4a4a;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-menu-section a:hover {
    color: #c9a84c;
}

/* =============================================
   HERO SECTION (Homepage)
   ============================================= */
.hero {
    background: linear-gradient(135deg, #f8f4e6 0%, #ede4d3 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="chocolatePattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="3" fill="%23d4af37" opacity="0.15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23chocolatePattern)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px;
    justify-content: center;
}

.btn-primary {
    background: #c9a84c;
    color: white;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: #a0782e;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: white;
    color: #4a4a4a;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    transform: translateY(-2px);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   PRODUCT GRID & CARDS
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
    display: block;
    width: 100%;
    height: 240px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.4rem;
    color: #c9a84c;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-price .old-price {
    font-size: 1rem;
    color: #adb5bd;
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 400;
}

.add-to-cart {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.add-to-cart:hover {
    background: #c9a84c;
    transform: translateY(-1px);
}

/* =============================================
   CATEGORIES SECTION & CARDS
   ============================================= */
.categories-section {
    background: #f5f2ed;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    text-decoration: none;
}

.category-icon {
    font-size: 3rem;
    color: #c9a84c;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter {
    background: linear-gradient(135deg, #c9a84c, #a0782e);
    color: white;
    text-align: center;
}

.newsletter .section-title,
.newsletter .section-subtitle {
    color: white;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

.newsletter-form button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #000;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: #1a1a1a;
    color: #adb5bd;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #c9a84c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c9a84c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #343a40;
    color: #6c757d;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert.success {
    background: #d1f2eb;
    color: #0c5460;
    border-left: 4px solid #20c997;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* =============================================
   PAGE HERO (Interior pages - smaller hero)
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, #2c1810 0%, #5d3a2b 100%);
    padding: 7rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="heroPattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="3" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23heroPattern)"/></svg>');
    opacity: 0.5;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c9a84c;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.breadcrumb .current {
    color: #c9a84c;
    font-weight: 500;
}

/* =============================================
   CONTENT SECTION (White card sections)
   ============================================= */
.content-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 0.75rem;
}

.content-section p {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul,
.content-section ol {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8L1 3h10z" fill="%236c757d"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
    cursor: pointer;
}

.contact-form button[type="submit"],
.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: #c9a84c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.contact-form button[type="submit"]:hover,
.contact-form .btn-submit:hover {
    background: #a0782e;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: inherit;
    line-height: 1.4;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #c9a84c;
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: #c9a84c;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =============================================
   INFO GRID (About page)
   ============================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.info-card .info-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f4e6, #ede4d3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: #c9a84c;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =============================================
   RESPONSIVE - min-width: 768px (Desktop)
   ============================================= */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* =============================================
   RESPONSIVE - max-width: 767px (Mobile)
   ============================================= */
@media (max-width: 767px) {
    .header-content {
        padding: 0.75rem 15px;
        gap: 0.5rem;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .header-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .header-btn span {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .alert {
        left: 15px;
        right: 15px;
        max-width: none;
    }

    /* Page hero responsive */
    .page-hero {
        padding: 6rem 0 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    /* Content section responsive */
    .content-section {
        padding: 1.5rem;
        border-radius: 12px;
    }

    /* Info grid responsive */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =============================================
   RESPONSIVE - max-width: 480px (Small Mobile)
   ============================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 0.5rem 10px;
    }

    .header-actions {
        gap: 0.15rem;
    }

    .header-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        min-width: 40px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Page hero responsive */
    .page-hero {
        padding: 5.5rem 0 1.75rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Breadcrumb responsive */
    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Content section responsive */
    .content-section {
        padding: 1.25rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    /* Form responsive */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .contact-form button[type="submit"],
    .contact-form .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* FAQ responsive */
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 1.25rem 1rem;
        font-size: 0.9rem;
    }

    /* Info grid responsive */
    .info-grid {
        gap: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-dark { color: var(--color-dark); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.px-2 { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-3 { padding-left: var(--space-lg); padding-right: var(--space-lg); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* Width Utilities */
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* Visibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   WISHLIST BUTTON
   ============================================= */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: var(--color-error);
}

.wishlist-btn.active {
    color: var(--color-error);
    background: #fff;
}

.wishlist-btn.active i {
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =============================================
   QUICK VIEW OVERLAY
   ============================================= */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.quick-view-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* =============================================
   LOADING SKELETON
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 80%;
}

.skeleton-image {
    height: 200px;
}

.skeleton-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

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

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   QUANTITY SELECTOR
   ============================================= */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.quantity-selector button:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.quantity-selector button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: var(--font-semibold);
    -moz-appearance: textfield;
}

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

/* =============================================
   PRICE TAG
   ============================================= */
.price-tag {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.price-current {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.price-original {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--color-error);
    background: rgba(220, 53, 69, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* =============================================
   TABS
   ============================================= */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    gap: var(--space-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    border: none;
    background: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tab-btn:hover {
    color: var(--color-text);
}

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

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: var(--space-xl) 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RATING STARS
   ============================================= */
.rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--color-primary);
}

.rating-stars .empty {
    color: var(--color-border);
}

.rating-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* =============================================
   BADGES & TAGS
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--color-primary);
    color: white;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.badge-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--color-error);
}

.badge-new {
    background: var(--color-info);
    color: white;
}

.badge-sale {
    background: var(--color-error);
    color: white;
}

.badge-sold-out {
    background: var(--color-text-muted);
    color: white;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: var(--space-lg);
}

.empty-state-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    color: var(--color-text);
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   TOOLTIP
   ============================================= */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: var(--color-dark);
    color: white;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip, 1000);
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-5px);
}

/* =============================================
   RESPONSIVE - TABLET (768px+)
   ============================================= */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .container {
        padding: 0 var(--space-xl);
    }

    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
    .d-md-grid { display: grid; }
}

/* =============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================= */
@media (min-width: 1024px) {
    .d-lg-none { display: none; }
    .d-lg-block { display: block; }
    .d-lg-flex { display: flex; }
    .d-lg-grid { display: grid; }
}

/* =============================================
   SKIP LINK / ACCESSIBILITY HELPERS
   ============================================= */
main#main-content {
    /* Garante que o conteúdo não fique oculto pelo header fixo
       em páginas sem hero section. O hero já tem padding-top embutido. */
    scroll-margin-top: var(--header-height);
}

/* Páginas internas: compensar header fixo quando não há hero */
.page-hero {
    margin-top: 0; /* padding-top já inclui a altura do header */
}

/* =============================================
   CONTACT PAGE - responsivo 2 colunas
   ============================================= */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   ALERT - versão estática (formulários de página)
   ============================================= */
.alert-static {
    position: static;
    opacity: 1;
    transform: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    header,
    footer,
    .mobile-menu,
    .scroll-top-btn,
    .btn,
    .add-to-cart {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: underline;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
