@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --gold: #c9a962;
    --gold-light: #e8d5a3;
    --gold-dark: #9a7b3c;
    --radius: 8px;
    --transition: all 0.3s ease;
}

:root,
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(201, 169, 98, 0.2);
    --border-hover: rgba(201, 169, 98, 0.5);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --bg-gradient-end: #1a1510;
    --bg-image-gradient-from: #1a1a1a;
    --bg-image-gradient-to: #0d0d0d;
    --hero-glow: rgba(201, 169, 98, 0.08);
    --header-backdrop: rgba(10, 10, 10, 0.85);
}

[data-theme="light"] {
    --bg-primary: #faf8f5;
    --bg-secondary: #f0ebe3;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f2ec;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #888888;
    --border: rgba(154, 123, 60, 0.22);
    --border-hover: rgba(154, 123, 60, 0.45);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --bg-gradient-end: #ede5d5;
    --bg-image-gradient-from: #f5f2ec;
    --bg-image-gradient-to: #e8e2d8;
    --hero-glow: rgba(201, 169, 98, 0.18);
    --header-backdrop: rgba(250, 248, 245, 0.9);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

/* Top Bar */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.top-bar a {
    color: var(--text-secondary);
}

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

.top-bar-link-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.top-bar-link-btn:hover {
    color: var(--gold);
}

/* Header */
.site-header {
    background: var(--header-backdrop);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-link img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: none;
}

.logo-text .brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-text .brand-tagline {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .logo-link img { height: 60px; }
    .logo-text { display: block; }
}

/* Navigation */
.main-nav {
    display: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    z-index: 100;
}

.main-nav li:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu a {
    padding: 0.5rem 1.25rem;
    text-transform: none;
    font-size: 0.85rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-form {
    display: none;
    position: relative;
}

.search-form input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 1rem 0.4rem 2.25rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 200px;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--gold);
    width: 240px;
}

.search-form .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--gold);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-card);
    border-color: var(--gold);
}

.theme-toggle .bi {
    font-size: 1.1rem;
}

.theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: inline;
}

.admin-theme-toggle {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    border-radius: var(--radius);
    height: auto;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-theme-toggle:hover {
    color: var(--gold);
}

.admin-theme-toggle .theme-label {
    font-family: 'Inter', sans-serif;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

@media (min-width: 992px) {
    .main-nav { display: block; }
    .search-form { display: block; }
    .menu-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.mobile-menu .sub-menu a {
    padding-left: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mobile-search {
    padding: 0.75rem 1rem;
}

.mobile-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    color: var(--text-primary);
}

/* Hero Carousel */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-gradient-end) 100%);
    padding: 3rem 0;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, var(--hero-glow) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* Features Bar */
.features-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

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

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-item .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-item .feature-icon .bi {
    color: var(--gold);
}

.product-card-image .placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
    color: var(--gold);
}

.empty-cart .icon .bi,
.contact-card .icon .bi {
    font-size: inherit;
    color: var(--gold);
}

.cart-item-image .bi {
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.4;
}

.search-form .search-icon .bi {
    font-size: 0.95rem;
}

.icon-btn .bi {
    font-size: 1.25rem;
}

.social-links a .bi {
    font-size: 1.1rem;
}

.carousel-nav .bi {
    font-size: 1.25rem;
}

.admin-nav a .bi {
    margin-right: 0.5rem;
    opacity: 0.85;
}

.text-gold {
    color: var(--gold);
}

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

.btn .bi {
    margin-right: 0.25rem;
}

.carousel-thumb-placeholder .bi {
    color: var(--gold);
    opacity: 0.5;
}

.feature-item h3 {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Section Titles */
.section {
    padding: 3rem 0;
}

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

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-card-image {
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--bg-image-gradient-from), var(--bg-image-gradient-to));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--gold);
    color: var(--bg-primary);
}

.badge-shipping {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-card-body h3 a {
    color: inherit;
}

.product-card-body h3 a:hover {
    color: var(--gold);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.product-price small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.size-selector {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.size-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--gold);
    color: var(--gold);
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg-primary);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

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

.btn-block {
    width: 100%;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.product-detail-image {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold);
    margin: 1rem 0;
}

.product-description {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.variant-selector {
    margin: 1.5rem 0;
}

.variant-selector label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 80px;
}

.variant-option:hover,
.variant-option.selected {
    border-color: var(--gold);
    background: rgba(201, 169, 98, 0.1);
}

.variant-option .size {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.variant-option .price {
    font-size: 0.85rem;
    color: var(--gold);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius);
}

/* Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-table th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.cart-summary-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.shipping-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 520px;
}

.shipping-panel h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shipping-panel.shipping-free p {
    color: var(--text-secondary);
    margin: 0;
}

.shipping-cep-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.shipping-cep-row {
    display: flex;
    gap: 0.75rem;
}

.shipping-cep-row .form-control {
    flex: 1;
    max-width: 200px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option:hover,
.shipping-option.selected {
    border-color: var(--gold);
    background: var(--bg-secondary);
}

.shipping-option input {
    accent-color: var(--gold);
}

.shipping-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

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

.shipping-option-price {
    color: var(--gold);
    font-weight: 600;
}

.auth-mode-options {
    display: grid;
    gap: 0.75rem;
}

.auth-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.auth-mode-option:hover {
    border-color: var(--gold);
}

.auth-mode-option input {
    margin-top: 0.25rem;
    accent-color: var(--gold);
}

.auth-mode-option span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auth-mode-option small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-cart .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 3rem 0 1.5rem;
}

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

.footer-brand img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-section h4 {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    flex-shrink: 0;
}

.admin-sidebar .logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar .logo img {
    height: 60px;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(201, 169, 98, 0.1);
    color: var(--gold);
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 2rem;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.status-inactive {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"] {
    accent-color: var(--gold);
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-card h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 0.75rem;
}

.product-image-preview {
    width: 160px;
    height: 160px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-preview-empty {
    border-style: dashed;
}

.image-input-options {
    display: grid;
    gap: 0.75rem;
}

.image-input-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variant-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

.variant-row-extended {
    grid-template-columns: 1fr 1fr 1fr auto auto;
}

@media (max-width: 768px) {
    .variant-row,
    .variant-row-extended {
        grid-template-columns: 1fr 1fr;
    }
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-gradient-end));
    position: relative;
}

.login-theme-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card img {
    height: 100px;
    margin-bottom: 1.5rem;
}

.login-card h1 {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.text-danger {
    color: #e57373;
    font-size: 0.85rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
}

/* Product Carousel */
.product-carousel-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    padding: 0.5rem 0;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}

.product-carousel-slide {
    flex: 0 0 calc(25% - 0.94rem);
    scroll-snap-align: start;
    min-width: 220px;
}

.product-carousel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

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

.product-carousel-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--bg-image-gradient-from), var(--bg-image-gradient-to));
    position: relative;
    overflow: hidden;
}

.product-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-carousel-image .badge-shipping {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.product-carousel-info {
    padding: 1rem;
}

.product-carousel-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.product-carousel-info h3 a {
    color: var(--text-primary);
}

.product-carousel-info h3 a:hover {
    color: var(--gold);
}

.product-carousel-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-carousel-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.product-carousel-price small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-carousel-actions {
    display: flex;
    gap: 0.5rem;
}

.carousel-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-nav:hover {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
}

.product-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.product-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.product-carousel-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

.carousel-row-active {
    background: rgba(201, 169, 98, 0.05);
}

.carousel-product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg-secondary);
}

.carousel-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .product-carousel-slide {
        flex: 0 0 calc(33.333% - 0.84rem);
    }
}

@media (max-width: 768px) {
    .product-carousel-slide {
        flex: 0 0 calc(50% - 0.63rem);
        min-width: 180px;
    }

    .carousel-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-carousel-slide {
        flex: 0 0 85%;
    }
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.flex-wrap { flex-wrap: wrap; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.order-detail-grid,
.order-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.free-shipping-note {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted);
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius);
}

.free-shipping-note i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.free-shipping-note--compact {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
    margin-top: 0.35rem;
}

.shipping-free .free-shipping-note {
    margin-top: 0.75rem;
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-status-large {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.order-status-0 { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.order-status-1 { background: rgba(33, 150, 243, 0.15); color: #64b5f6; }
.order-status-2 { background: rgba(156, 39, 176, 0.15); color: #ce93d8; }
.order-status-3 { background: rgba(255, 152, 0, 0.15); color: #ffb74d; }
.order-status-4 { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.order-status-5 { background: rgba(244, 67, 54, 0.15); color: #e57373; }

.order-manual-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    vertical-align: middle;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.address-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.address-form-row .form-group {
    flex: 1 1 160px;
    min-width: 0;
}

.address-form-row .address-form-state {
    flex: 0 0 72px;
    max-width: 96px;
}

.address-cep-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.address-cep-row .form-control {
    max-width: 160px;
}

.viacep-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-height: 1.2em;
}

.viacep-status.is-loading {
    color: var(--gold);
}

.viacep-status.is-success {
    color: #81c784;
}

.viacep-status.is-error {
    color: #e57373;
}

.address-form-hint {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-items-card {
    overflow: hidden;
}

.order-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.order-items-header h3 {
    margin: 0;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item-card {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.order-item-card .form-group {
    margin-bottom: 0.875rem;
}

.order-item-card .form-group:last-child {
    margin-bottom: 0;
}

.order-item-meta {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-item-qty {
    flex: 0 0 88px;
    margin-bottom: 0 !important;
}

.order-item-subtotal {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.order-item-subtotal-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-item-subtotal .line-subtotal {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

.order-item-meta .remove-item-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.order-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.order-step.active {
    color: var(--gold);
}

.order-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.order-step.active .order-step-dot {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.25);
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 1rem;
    }

    .cart-table td {
        display: block;
        border: none;
        padding: 0.25rem 0;
    }
}

/* Paginação */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    background: var(--bg-card);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Loading do frete */
.shipping-panel {
    position: relative;
}

.shipping-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: 0.95rem;
    z-index: 5;
}

.spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(201, 169, 98, 0.35);
    border-top-color: var(--gold);
    border-radius: 50%;
    display: inline-block;
    animation: vm-spin 0.7s linear infinite;
}

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