/* Loja — Giovanna Spina */

.loja-intro {
    font-size: 15px;
    line-height: 28px;
    color: #575757;
    max-width: 720px;
}

.loja-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.loja-sidebar.loja-filters {
    position: sticky;
    top: 90px;
    padding: 24px;
    background-color: #f6f6f6;
    border-radius: 5px;
}

.loja-filter-field {
    margin-bottom: 18px;
}

.loja-filters label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 6px;
    color: #232323;
}

.loja-filters input,
.loja-filters select {
    width: 100%;
    height: 44px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    color: #232323;
}

.loja-filters-clear {
    margin-top: 6px;
}

.loja-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.loja-product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.loja-product-card-link:hover .loja-product-card-name {
    color: #a99271;
}

.loja-product-card-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 5px;
    background: #f1edea;
    margin-bottom: 18px;
}

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

.loja-product-card-link:hover .loja-product-card-image img {
    transform: scale(1.03);
}

.loja-product-card-name {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 8px;
    color: #232323;
    transition: color 0.3s ease;
}

.loja-product-card-price {
    font-size: 16px;
    font-weight: 500;
    color: #a99271;
    margin: 0;
}

.loja-empty {
    text-align: center;
    padding: 60px 20px;
    color: #575757;
}

/* Produto */
.loja-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.loja-product-gallery-main {
    border-radius: 5px;
    overflow: hidden;
    background: #f1edea;
    margin-bottom: 12px;
}

.loja-product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.loja-product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.loja-product-thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 72px;
    height: 72px;
    overflow: hidden;
}

.loja-product-thumb.is-active {
    border-color: #a99271;
}

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

.loja-product-price-lg {
    font-size: 28px;
    font-weight: 500;
    color: #a99271;
    margin-bottom: 25px;
}

.loja-product-meta {
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}

.loja-product-meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a99271;
    margin-bottom: 4px;
}

.loja-product-meta dd {
    margin: 0 0 14px;
    color: #232323;
}

.loja-product-meta dd:last-child {
    margin-bottom: 0;
}

.loja-product-block h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #232323;
    margin-bottom: 12px;
}

.loja-product-block {
    margin-bottom: 25px;
}

.loja-product-block ul {
    padding-left: 18px;
    margin: 0;
    color: #575757;
    line-height: 28px;
}

.loja-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
}

.loja-product-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
}

.loja-product-qty-wrap button {
    width: 40px;
    height: 44px;
    border: 0;
    background: #f6f6f6;
    font-size: 18px;
    cursor: pointer;
}

.loja-product-qty-wrap input {
    width: 48px;
    height: 44px;
    border: 0;
    text-align: center;
    font-size: 15px;
}

/* Carrinho no header */
.header-cart-loja {
    position: relative;
    display: inline-block;
    margin-left: 12px;
    color: #232323;
    font-size: 20px;
    vertical-align: middle;
}

.header-cart-loja:hover {
    color: #a99271;
}

.header-cart-loja-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50%;
    background: #a99271;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* Drawer carrinho */
.loja-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loja-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.loja-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    z-index: 10051;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.loja-cart-drawer.is-open {
    transform: translateX(0);
}

body.loja-cart-open {
    overflow: hidden;
}

.loja-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e4e4e4;
    flex-shrink: 0;
}

.loja-cart-close {
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #232323;
}

.loja-cart-drawer-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.loja-cart-drawer-body {
    padding: 20px 24px 24px;
    overflow: visible;
}

.loja-cart-drawer-summary {
    flex-shrink: 0;
    padding: 20px 24px 28px;
    border-top: 1px solid #e4e4e4;
    background: #fff;
}

.loja-cart-drawer-summary:empty {
    display: none;
}

.loja-cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.loja-cart-item-image {
    width: 72px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f1edea;
}

.loja-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loja-cart-item-price {
    color: #a99271;
    font-size: 14px;
}

.loja-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.loja-cart-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #e4e4e4;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.loja-cart-remove {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    text-decoration: underline;
    color: #575757;
    cursor: pointer;
}

.loja-cart-totals {
    margin-bottom: 16px;
}

.loja-cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.loja-cart-row-total {
    font-weight: 600;
    font-size: 17px;
    padding-top: 8px;
    border-top: 1px solid #e4e4e4;
}

/* Frete no carrinho */
.loja-cart-shipping {
    margin-top: 8px;
    margin-bottom: 0;
    padding-top: 18px;
    padding-bottom: 0;
    border-top: 1px solid #e4e4e4;
    border-bottom: 0;
}

.loja-cart-shipping-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 8px;
    color: #232323;
}

.loja-cart-shipping-row {
    display: flex;
    gap: 8px;
}

.loja-cart-shipping-row input {
    flex: 1;
    height: 40px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
}

.loja-cart-shipping-row .btn {
    flex-shrink: 0;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 14px;
    white-space: nowrap;
}

.loja-cart-shipping-status,
.loja-cart-shipping-empty {
    font-size: 12px;
    color: #575757;
    margin: 8px 0 0;
}

.loja-shipping-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.loja-shipping-option label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.loja-shipping-option-body strong {
    display: block;
    color: #232323;
    font-weight: 500;
}

.loja-shipping-option-meta {
    color: #575757;
    font-size: 12px;
}

/* Checkout */
.loja-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.loja-checkout-fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 32px;
}

.loja-checkout-fieldset legend {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #232323;
    margin-bottom: 16px;
}

.loja-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.loja-checkout-field-full {
    grid-column: 1 / -1;
}

.loja-checkout-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: #232323;
}

.loja-checkout-field input {
    width: 100%;
    height: 44px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 14px;
}

.loja-checkout-cep-row {
    display: flex;
    gap: 8px;
}

.loja-checkout-cep-row input {
    flex: 1;
}

.loja-checkout-help {
    font-size: 13px;
    color: #575757;
}

.loja-checkout-error {
    color: #b94a48;
    font-size: 14px;
    margin-bottom: 16px;
}

.loja-checkout-summary {
    position: sticky;
    top: 90px;
    padding: 24px;
    background: #f6f6f6;
    border-radius: 5px;
}

.loja-checkout-summary-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #232323;
}

.loja-checkout-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 12px;
}

.loja-checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #575757;
}

.loja-checkout-total-estimate {
    font-size: 13px;
    line-height: 22px;
    color: #232323;
    font-weight: 500;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e4e4e4;
}

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

    .loja-checkout-summary {
        position: static;
        order: -1;
    }

    .loja-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .loja-sidebar.loja-filters {
        position: static;
    }

    .loja-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .loja-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

    .loja-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .loja-products-grid {
        grid-template-columns: 1fr;
    }

    .loja-cart-drawer {
        max-width: 100%;
    }
}
