/* ============================================
   FILTRO SÃO JOÃO - ESTILOS CSS (MOBILE FIRST)
   Baseado no template Pé de Algodão
   ============================================ */

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #BA584B;
    --primary-hover: #A04A3F;
    --text-dark: #444444;
    --text-medium: #666666;
    --text-light: #999999;
    --border-color: #E5E7EB;
    --bg-white: #FFFFFF;
    --bg-light: #F9F9F9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ============================================
   PROMO BAR
   ============================================ */

.promo-bar {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.promo-bar .promo-separator {
    display: none;
}

.promo-bar span:not(:first-child) {
    display: none;
}

@media (min-width: 768px) {
    .promo-bar {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .promo-bar .promo-separator {
        display: inline;
        margin: 0 8px;
    }
    
    .promo-bar span:not(:first-child) {
        display: inline;
    }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .header-container {
        padding: 14px 20px;
    }
    
    .logo-icon {
        font-size: 22px;
    }
    
    .logo-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

.nav-menu {
    display: none;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    min-width: 32px;
    min-height: 32px;
    position: relative;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 40px 16px;
    text-align: center;
    background: linear-gradient(135deg, #FEF7ED 0%, #FFFFFF 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }
}

.hero p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.hero-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FILTERS
   ============================================ */

.filters {
    padding: 20px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .filters {
        padding: 24px 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

.filter-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-medium);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-section {
    padding: 20px 16px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .products-section {
        padding: 24px 20px;
    }
}

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

@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

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

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

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--bg-light);
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 32px;
}

@media (min-width: 768px) {
    .product-name {
        font-size: 13px;
        min-height: 40px;
    }
}

.product-line {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .product-price {
        font-size: 16px;
    }
}

.product-installments {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-btn {
    display: flex;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0 12px 12px 12px;
}

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

.product-btn:active {
    transform: scale(0.98);
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 20px 16px;
    text-align: center;
    color: var(--text-medium);
    font-size: 12px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .footer {
        padding: 24px 20px;
        margin-bottom: 0;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================
   MOBILE FIXED BUY BAR
   ============================================ */

.mobile-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .mobile-buy-bar {
        display: none;
    }
}

.mobile-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
}

.mobile-buy-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-buy-btn:active {
    background-color: var(--primary-hover);
}

/* ============================================
   SIDE CART (DO TEMPLATE)
   ============================================ */

/* ── Overlay ── */
.side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
}

/* ── Drawer ── */
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(420px, 92vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color, #e0e0e0);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
}

/* ── Open state ── */
.side-cart.active {
    transform: translateX(0);
}
.side-cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Header ── */
.side-cart-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, #BA584B 0%, #A04A3F 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.side-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Close button (X) ── */
.side-cart-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.side-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.side-cart-close:active {
    transform: scale(0.95);
}

/* ── Body / Content ── */
.side-cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.side-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.side-cart-empty p {
    font-size: 16px;
    margin: 0;
}

.side-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Cart Item ── */
.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* ── Thumbnail ── */
.cart-item-image {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    display: block;
    flex-shrink: 0;
}

/* ── Item Info ── */
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-details {
    font-size: 13px;
    color: #666;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #BA584B;
    margin-top: auto;
}

.cart-item-quantity {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}

.cart-item-quantity button {
    background-color: var(--bg-light, #f9f9f9);
    border: 1px solid var(--border-color, #e0e0e0);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-item-quantity button:hover {
    background-color: var(--primary-color, #BA584B);
    color: white;
    border-color: var(--primary-color, #BA584B);
}

/* ── Remove button ── */
.cart-item-remove {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    align-self: flex-start;
}
.cart-item-remove:hover {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
    transform: scale(1.1);
}

/* ── Footer ── */
.side-cart-footer {
    position: sticky;
    bottom: 0;
    background: #fafafa;
    padding: 16px;
    border-top: 2px solid #f0f0f0;
    z-index: 2;
    flex-shrink: 0;
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}

.side-cart-total span:last-child {
    color: #BA584B;
}

/* ── Clear cart button ── */
.side-cart-clear {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #BA584B;
    color: #BA584B;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.side-cart-clear:hover {
    background: #BA584B;
    color: #fff;
    border-color: #BA584B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(186, 88, 75, 0.3);
}
.side-cart-clear:active {
    transform: scale(0.98);
}

/* ── Checkout button ── */
.side-cart-checkout {
    width: 100%;
    min-height: 44px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #BA584B 0%, #A04A3F 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.side-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 88, 75, 0.4);
}

/* ── Mobile adjustments for side cart ── */
@media (max-width: 768px) {
    .side-cart-header h3 {
        font-size: 16px;
    }
    .side-cart-clear {
        font-size: 13px;
        padding: 10px 14px;
    }
    .side-cart-checkout {
        font-size: 14px;
    }
    .cart-item-image {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.breadcrumb {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .breadcrumb {
        padding: 16px 20px;
    }
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    padding: 20px 16px;
}

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

.product-detail-gallery {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .product-detail-gallery {
        margin-bottom: 0;
    }
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    background-color: var(--bg-light);
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .product-detail-title {
        font-size: 28px;
    }
}

.product-detail-line {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .product-detail-price {
        font-size: 32px;
    }
}

.product-detail-installments {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-detail-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-detail-cta {
        flex-direction: row;
    }
}

.cta-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cta-btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-section {
    margin-bottom: 24px;
}

.product-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-section-content {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.specs-table th,
.specs-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.specs-table th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
}

.specs-table td {
    color: var(--text-medium);
}

.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-question {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ============================================
   UTILITIES
   ============================================ */

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

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-light);
    background-color: var(--bg-light);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   PRODUTO - PÁGINA INTERNA
   ============================================ */

.product-detail {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .product-detail {
        padding: 40px 20px;
    }
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

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

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

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

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-line-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.product-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-detail-title {
        font-size: 32px;
    }
}

.product-detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .product-detail-price {
        font-size: 36px;
    }
}

.product-detail-installments {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* Product Detail Button - Match Template Style */
.product-detail-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(186, 88, 75, 0.3);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-family: 'Montserrat', sans-serif;
}

.product-detail-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(186, 88, 75, 0.4);
    transform: translateY(-2px);
}

.product-detail-btn:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .product-detail-btn {
        padding: 18px;
        font-size: 18px;
        border-radius: 12px;
        margin-bottom: 24px;
    }
}

.product-back-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Product Sections */
.product-section {
    margin-bottom: 32px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.product-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .product-section h2 {
        font-size: 24px;
    }
}

.product-section p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table thead {
    background-color: var(--primary-color);
    color: white;
}

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.specs-table th {
    font-weight: 700;
}

.specs-table tbody tr:hover {
    background-color: rgba(186, 88, 75, 0.05);
}

/* FAQ */
.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    background-color: var(--bg-white);
    transition: var(--transition);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background-color: var(--bg-light);
}

.faq-item p {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cart-page {
        padding: 40px 20px;
    }
}

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

@media (min-width: 768px) {
    .cart-container {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

.cart-items-section h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    align-items: center;
}

.cart-item-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

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

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px;
    font-size: 14px;
}

.cart-summary-section {
    position: sticky;
    top: 80px;
}

.cart-summary {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cart-summary h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-medium);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(186, 88, 75, 0.3);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.continue-shopping-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.continue-shopping-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-cart-message p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.btn-back-shopping {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

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