/* 
 * CATALOGO DIGITAL - SYSTEMLIKE
 * Visual Design: Bauhaus Technical Minimalism
 * Geometry: Sharp edges (4px radius), thin borders, high typographic contrast
 */

:root {
    --primary: #171717; /* Overridden dynamically by PHP */
    --primary-hover: #262626;
    --primary-light: rgba(23, 23, 23, 0.05);
    --primary-rgb: 23, 23, 23;
    
    /* Neutrals */
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    
    /* Technical / Premium Geometry */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 4px;
    
    /* Elevators & Shadows */
    --shadow-flat: 0 0 0 1px var(--border);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.08);
    
    --header-height: 80px;
}

/* 1. Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
}

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

button {
    cursor: pointer;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 2. Premium Sticky Header */
.store-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.header-logo-section img {
    height: 48px;
    max-width: 140px;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}

.header-title-wrapper {
    display: flex;
    flex-direction: column;
}

.header-shop-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.1;
}

.header-shop-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.header-search-wrapper {
    flex: 1;
    max-width: 440px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    height: 42px;
    transition: all 0.2s ease;
}

.header-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.header-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
}

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

.cart-trigger-btn {
    background: var(--primary);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

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

.cart-badge-count {
    background: #ffffff;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 50px;
}

/* 3. Category Bar under Header */
.category-menu-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}

.category-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.category-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-links::-webkit-scrollbar {
    display: none;
}

.category-link-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 0;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    opacity: 0.75;
}

.category-link-item a:hover {
    color: var(--primary);
    opacity: 1;
}

.category-link-item.active a {
    color: var(--primary);
    opacity: 1;
    position: relative;
}

.category-link-item.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.offers-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.offers-btn:hover {
    background: #ef4444;
    color: white;
}

/* 4. Slideshow Banners */
.home-slideshow {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0 auto;
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--border);
}

.slide-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    color: white;
    z-index: 2;
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 500px;
}

.slide-desc {
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 440px;
    opacity: 0.85;
    line-height: 1.5;
}

.slide-btn {
    align-self: flex-start;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.slide-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.2s;
}

.home-slideshow:hover .slide-nav-btn {
    opacity: 1;
}

.slide-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.slide-nav-btn.prev { left: 16px; }
.slide-nav-btn.next { right: 16px; }

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

.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

/* 5. Value Props Grid */
.value-props-bar {
    max-width: 1200px;
    margin: 24px auto 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.prop-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prop-icon {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.prop-info {
    display: flex;
    flex-direction: column;
}

.prop-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.prop-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* 6. Sticky Search Toolbar */
.sticky-toolbar {
    position: sticky;
    top: calc(var(--header-height) + 52px);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 98;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.search-wrapper:focus-within {
    border-color: var(--primary);
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* 7. Product Grid and Cards */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
}

.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 200px;
}

.category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    position: relative;
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-img-placeholder {
    color: var(--text-muted);
    font-size: 2rem;
    opacity: 0.25;
}

.card-tag-promo {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    z-index: 2;
    letter-spacing: 0.5px;
}

.card-tag-soldout {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 800;
    z-index: 2;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
    height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-area-card {
    margin-top: auto;
    margin-bottom: 8px;
}

.old-price-card {
    font-size: 0.72rem;
    text-decoration: line-through;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1px;
}

.current-price-card {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #10b981; /* Green */
    line-height: 1.2;
}

.installment-card {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

.buy-btn-card {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    width: 100%;
}

.product-card:hover .buy-btn-card {
    background: var(--primary);
    color: #ffffff;
}

.card-footer-pix-text {
    font-size: 0.68rem;
    color: #10b981;
    font-weight: 700;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Destaques Section specific */
.destaques-section {
    margin-bottom: 30px;
}

.destaques-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 5px 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.destaques-scroll::-webkit-scrollbar {
    display: none;
}

.destaque-card {
    flex: 0 0 170px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.destaque-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* 8. Slide-out Cart Drawer */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-drawer-backdrop.active {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 10100;
    display: flex;
    flex-direction: column;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-backdrop.active .cart-drawer {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
}

.cart-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: white;
    object-fit: contain;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.82rem;
    font-weight: 800;
}

.cart-item-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.drawer-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    overflow: hidden;
    height: 26px;
}

.drawer-qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 100%;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}

.drawer-qty-btn:hover {
    background: var(--bg);
}

.drawer-qty-val {
    font-size: 0.78rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.checkout-footer {
    padding: 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-input-group {
    display: flex;
    flex-direction: column;
}

.drawer-input-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.drawer-input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.82rem;
    background: var(--surface);
}

.drawer-input:focus {
    border-color: var(--primary);
}

.footer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: background 0.2s;
}

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

/* 9. Product Details Modal (Mobile-First Sheet) */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.2s ease-out;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.modal-body-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    padding: 24px;
}

.modal-media-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 */
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
}

.carousel-track {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.carousel-slide img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    z-index: 5;
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.carousel-nav-btn.prev { left: 8px; }
.carousel-nav-btn.next { right: 8px; }

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

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--primary);
    width: 14px;
    border-radius: 3px;
}

.thumbnail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.thumbnail-list::-webkit-scrollbar { display: none; }

.thumbnail-item {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

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

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: black;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 6px 10px;
    text-align: left;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.specs-table td {
    color: var(--text-main);
    font-weight: 700;
}

.modal-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-product-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.25;
}

.modal-product-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    white-space: pre-line;
}

.modal-price-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.modal-price-box .price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.modal-price-box .normal-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
}

.modal-price-box .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1px;
}

.modal-price-box .promo-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ef4444;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.modal-select {
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0 10px;
    font-size: 0.82rem;
    background: #ffffff;
    color: var(--text-main);
}

.modal-action-box {
    margin-top: 8px;
}

/* Animations */
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 10. Unified Auth Modal Elements */
.auth-form-group {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: 0.82rem;
    background: #ffffff;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--primary);
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* 11. Sleek Footer */
.store-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 60px 24px 32px 24px;
    margin-top: 64px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.footer-logo img {
    height: 38px;
    object-fit: contain;
}

.footer-brand-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.footer-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-security {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.security-badge:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.04);
}

.security-badge i {
    font-size: 1.35rem;
    color: #10b981;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.footer-signature {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-signature a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-signature a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 12. Responsive Breakpoints */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }
    
    body {
        padding-bottom: 72px; /* For mobile bar */
    }

    .header-container {
        padding: 0 12px;
    }

    .header-logo-section img {
        height: 38px;
    }

    .header-shop-title {
        font-size: 1rem;
    }

    .header-shop-subtitle {
        display: none;
    }

    .header-search-wrapper {
        display: none; /* Hide header search on mobile, handled in toolbar */
    }

    .cart-trigger-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .cart-trigger-text {
        display: none;
    }

    .category-menu-bar {
        position: sticky;
        top: var(--header-height);
    }

    .category-menu-container {
        padding: 0 12px;
    }

    .category-links {
        gap: 18px;
        width: 100%;
    }

    .category-link-item a {
        padding: 12px 0;
        font-size: 0.78rem;
    }

    .offers-btn {
        display: none;
    }

    .sticky-toolbar {
        top: calc(var(--header-height) + 40px); /* adjusted categories height */
        padding: 8px 0;
    }
    
    .search-container {
        padding: 0 12px;
    }

    .search-wrapper {
        height: 38px;
        border-radius: var(--radius-sm);
    }

    .home-slideshow {
        height: 200px;
        margin: 12px 12px 0 12px;
        border-radius: var(--radius-md);
    }

    .slide-overlay {
        padding: 20px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
        justify-content: flex-end;
    }

    .slide-title {
        font-size: 1.25rem;
        margin-bottom: 4px;
        max-width: 100%;
    }

    .slide-desc {
        font-size: 0.78rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 100%;
    }

    .slide-btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .slide-nav-btn {
        display: none !important; /* Hide slideshow navigation on mobile */
    }

    .value-props-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
        margin-top: 12px;
    }

    .prop-card {
        padding: 10px;
        gap: 8px;
    }

    .prop-icon {
        font-size: 1.25rem;
    }

    .prop-title {
        font-size: 0.7rem;
    }

    .prop-desc {
        font-size: 0.65rem;
    }

    /* Vitrine Mobile Grid */
    .container {
        padding: 16px 12px 60px 12px;
    }

    .category-section {
        margin-bottom: 24px;
        scroll-margin-top: 140px;
    }

    .category-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 8px;
        gap: 8px;
        border-radius: var(--radius-md);
    }

    .product-name {
        font-size: 0.78rem;
        height: 2.2rem;
        margin-bottom: 4px;
    }

    .current-price-card {
        font-size: 0.95rem;
    }

    .old-price-card {
        font-size: 0.68rem;
    }

    .installment-card {
        font-size: 0.68rem;
    }

    .buy-btn-card {
        padding: 7px 10px;
        font-size: 0.7rem;
    }

    .destaques-scroll {
        padding: 5px 0 10px 0;
    }

    .destaque-card {
        flex: 0 0 135px;
        padding: 8px;
    }

    /* Drawer responsiveness */
    .cart-drawer {
        max-width: 100vw;
        right: -100vw;
    }

    /* Modal Mobile Bottom Sheet Behavior */
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        max-height: 82vh;
        border-radius: 12px 12px 0 0;
        animation: slideUpModalSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .modal-body-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        padding-top: 40px; /* space for close button */
    }

    .modal-media-col {
        gap: 10px;
    }

    .thumbnail-list {
        gap: 6px;
    }

    .thumbnail-item {
        width: 42px;
        height: 42px;
    }

    .modal-product-name {
        font-size: 1.05rem;
    }

    .modal-product-desc {
        font-size: 0.78rem;
    }

    .modal-price-box {
        padding: 10px;
    }

    .modal-price-box .normal-price {
        font-size: 1.15rem;
    }

    .modal-price-box .promo-price {
        font-size: 1.25rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 500px) {
    .value-props-bar {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes slideUpModalSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Floating Cart Notification Bar (Mobile) */
.cart-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: none; /* Flex when active */
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
    z-index: 999;
    cursor: pointer;
    animation: slideUpFloatingBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-floating-bar.show {
    display: flex;
}

.cart-bar-badge {
    background: white;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Dynamic Modal Controls */
.add-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    height: 48px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
}

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

.card-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    height: 48px;
    font-size: 1.1rem;
}

.card-qty-btn {
    background: none;
    border: none;
    height: 100%;
    color: var(--text-main);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    width: 50px;
    font-size: 1.4rem;
}

.card-qty-btn:hover {
    background: var(--bg);
}

.card-qty-val {
    color: var(--text-main);
    text-align: center;
    font-weight: 700;
}
