/* =========================================
   1. GERAL, BANNER E BREADCRUMB
   ========================================= */
body.shop-page {
    background-color: #f4f5f7 !important;
}

/* SISTEMA DE BANNER DINÂMICO */
.promo-banner-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #e8e9eb;
    margin-top: 80px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.breadcrumb {
    padding: 20px 5%;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.shop-layout {
    display: flex;
    gap: 30px;
    padding: 40px 5%;
    min-height: 70vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. MENU LATERAL (SIDEBAR)
   ========================================= */
.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.shop-sidebar h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
    display: block;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    display: block;
}

.shop-sidebar li {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    font-weight: 500;
    display: block;
}

.shop-sidebar li:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* =========================================
   3. CARDS DE PRODUTOS
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #e8e9eb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 450px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

.card-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: 0.2s;
}

.product-card:hover .card-carousel-nav {
    opacity: 1;
}

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

.card-carousel-nav.prev {
    left: 0;
}

.card-carousel-nav.next {
    right: 0;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-brand {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

/* NOVO: TÍTULO SEMPRE MAIÚSCULO */
.card-title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin: 5px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
}

.card-price-main {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px;
}

.card-price-sub {
    font-size: 11px;
    font-weight: 600;
    color: #777;
    margin-bottom: 10px;
}

/* AÇÃO DUPLA NA BASE DO CARD (VER MAIS + AÇÃO) */
.card-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.btn-card-half {
    flex: 1;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-ver-mais {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.btn-ver-mais:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-controls-home {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 5px;
    justify-content: space-between;
}

.qty-btn-home {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-home:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-value-home {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    width: 25px;
    text-align: center;
}

.produto-indisponivel {
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.1);
    background: rgba(255, 0, 0, 0.05);
    cursor: default;
    font-size: 12px;
}

/* =========================================
   4. PAGINAÇÃO E LIGHTBOX
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    background: #e8e9eb;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #ccc;
}

.page-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: #f00;
    transform: scale(1.1);
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-nav:hover {
    background: var(--primary-color);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

/* =========================================
   5. BOTÕES FLUTUANTES (SACOLA E LUPA)
   ========================================= */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
    z-index: 990;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s transform;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000 !important;
    color: #fff !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 100% !important;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 5px;
}

.floating-search {
    position: fixed;
    bottom: 100px;
    right: 30px;
    height: 60px;
    width: 60px;
    background: var(--primary-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
    transition: width 0.4s ease, background 0.3s;
    z-index: 990;
    overflow: hidden;
}

.floating-search.active {
    width: 320px;
    background: #fff;
    border: 2px solid var(--primary-color);
}

.floating-search input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding-left: 20px;
    padding-right: 90px;
    font-size: 15px;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.floating-search.active input {
    opacity: 1;
    pointer-events: auto;
}

.btn-search-icon {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-search.active .btn-search-icon {
    color: var(--primary-color);
}

.btn-search-close {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    display: none;
    z-index: 5;
}

.floating-search.active .btn-search-close {
    display: block;
}

/* =========================================
   6. CARRINHO LATERAL
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

.cart-sidebar {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 50%;
    max-width: 600px;
    height: calc(100vh - 80px);
    background: #111;
    color: #fff;
    z-index: 999;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px 30px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge-inside {
    background: #333;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 20px;
}

.close-cart {
    background: none;
    border: none;
    color: #999;
    font-size: 35px;
    cursor: pointer;
    transition: 0.2s;
}

.close-cart:hover {
    color: #fff;
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #eee;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

.cart-qty-box {
    display: inline-flex;
    align-items: center;
    background: #e0e0e0;
    border-radius: 4px;
    padding: 2px 5px;
}

.cart-qty-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    width: 25px;
    cursor: pointer;
    color: #111;
}

.cart-qty-val {
    font-size: 13px;
    font-weight: 700;
    width: 30px;
    text-align: center;
    color: #111;
}

.cart-footer {
    background: #0a0a0a;
    padding: 30px;
    border-top: 1px solid #222;
}

.cart-customer-info input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
    outline: none;
}

.cart-customer-info input:focus {
    border-color: var(--primary-color);
}

.total-linha {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.total-linha.destaque {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.cart-disclaimer {
    font-size: 11px;
    color: #666;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    background: #ff9900;
    color: #111;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

/* =========================================
   7. RESPONSIVIDADE (MOBILE E TABLET)
   ========================================= */
@media (max-width: 768px) {
    .promo-banner-container {
        height: 150px;
    }

    /* Banner menor no mobile */
    .shop-layout {
        flex-direction: column;
        padding: 20px 5%;
    }

    .shop-sidebar {
        width: 100%;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }

    .floating-search {
        bottom: 100px;
        right: 20px;
    }

    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
    }

    .floating-search.active {
        width: calc(100vw - 40px);
    }

    .cart-sidebar {
        width: 100%;
    }
}