/* WooCommerce Premium Styles for EstetiClick */

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: var(--este-text-muted);
    margin: 0;
}

.woocommerce-breadcrumb a {
    color: var(--este-primary);
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Catalog Ordering */
.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 10px 35px 10px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.woocommerce-ordering select:hover {
    border-color: var(--este-primary);
    background-color: #fff;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--este-primary);
    box-shadow: 0 0 0 3px rgba(234, 29, 118, 0.1);
}

/* Pagination */
.woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    border: none !important;
}

.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li span.current {
    background: var(--este-primary) !important;
    color: #fff !important;
    border-color: var(--este-primary) !important;
    box-shadow: 0 4px 10px rgba(234, 29, 118, 0.2);
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--este-primary);
    color: var(--este-primary);
    background: #fff;
}

/* Mesh Background for Hero */
.mesh-bg {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(234, 29, 118, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(234, 29, 118, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.02) 0px, transparent 50%);
}

/* Result Count */
.woocommerce-result-count {
    margin: 0;
    float: none !important;
}

/* Remove default WC margins that might break layout */
.woocommerce-main-content {
    margin-top: 2rem;
}

/* --- WooCommerce Cart Block Premium Facelift --- */

/* Wrapper & Global */
.wc-block-cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    font-family: 'Inter', sans-serif !important;
    max-width: var(--este-container) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Product List Column */
.wc-block-cart__main {
    flex: 1 !important;
    min-width: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc-block-cart-items {
    border: none !important;
}

.wc-block-cart-items__row {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}

.wc-block-cart-items__row:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04) !important;
}

/* Product Info */
.wc-block-components-product-name {
    font-weight: 900 !important;
    color: #0f172a !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.wc-block-components-product-metadata {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* Quantity Selector & Remove */
.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
}

.wc-block-components-quantity-selector {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 2px !important;
    border: 1px solid #f1f5f9 !important;
}

.wc-block-cart-item__remove-link {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* Price & Subtotals */
.wc-block-components-product-price {
    text-align: right !important;
}

.wc-block-components-product-price del,
.wc-block-components-product-price .is-discounted {
    color: #cbd5e1 !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    display: block !important;
    text-decoration-color: #cbd5e1 !important;
}

.wc-block-components-product-price ins,
.wc-block-components-product-price>.wc-block-components-product-price__value {
    color: #ea1d76 !important;
    font-weight: 900 !important;
    font-size: 1.3rem !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 1.2 !important;
}

/* Economy Badge */
.wc-block-components-product-sale-badge {
    background: #f0fdf4 !important;
    color: #10b981 !important;
    font-weight: 800 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    border: 1px solid #bbf7d0 !important;
    margin-top: 8px !important;
    display: inline-block !important;
}

/* Sidebar (Totals) */
.wc-block-cart__sidebar {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 30px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05) !important;
    position: sticky !important;
    top: 100px !important;
    width: 380px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.wc-block-cart__sidebar-title {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #1e293b !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
}

/* Totals Row */
.wc-block-components-totals-item {
    padding: 14px 0 !important;
    border-bottom: 1px dashed #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.wc-block-components-totals-item__label {
    font-weight: 600 !important;
    color: #64748b !important;
    font-size: 0.95rem !important;
}

.wc-block-components-totals-item__value {
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 1rem !important;
}

/* Highlight Discounts */
.wc-block-components-totals-item:has(.wc-block-components-totals-item__label:contains("Descontos")),
.wc-block-components-totals-item:has(span[aria-label*="Desconto"]) {
    color: #10b981 !important;
}

.wc-block-components-totals-item:has(span[aria-label*="Desconto"]) .wc-block-components-totals-item__value {
    color: #10b981 !important;
}

/* Estimated Total Highlight */
.wc-block-components-totals-footer-item {
    border: none !important;
    background: #f8fafc !important;
    margin: 20px -30px 0 -30px !important;
    padding: 25px 30px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #1e293b !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #ea1d76 !important;
}

/* Checkout Button */
.wc-block-cart__submit-container {
    padding: 0 !important;
    margin-top: 25px !important;
}

.wc-block-cart__submit-button {
    background: linear-gradient(135deg, #ea1d76 0%, #de005d 100%) !important;
    color: #fff !important;
    padding: 18px !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 15px -3px rgba(234, 29, 118, 0.3) !important;
}

.wc-block-cart__submit-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(234, 29, 118, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Coupons Section */
.wc-block-components-totals-coupon {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-weight: 700 !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .wc-block-cart {
        flex-direction: column !important;
    }

    .wc-block-cart__sidebar {
        position: static !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
}

/* --- Single Product Page Premium Styles --- */
.product-layout-grid {
    max-width: var(--este-container);
    margin: 0 auto;
}

.sticky-purchase-box {
    position: sticky;
    top: 120px;
    background: #fff;
    border-radius: 28px;
    border: 1px solid #f1f5f9;
    padding: 2.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sticky-purchase-box:hover {
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.12);
}

/* Mesh Background Refinement */
.mesh-bg {
    background-color: #fff !important;
    background-image:
        radial-gradient(at 100% 0%, rgba(234, 29, 118, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.02) 0px, transparent 50%) !important;
}

/* Responsive Product Layout */
@media (max-width: 992px) {
    .product-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }

    .sticky-purchase-box {
        position: static !important;
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .shop-premium-header h1 {
        font-size: 1.75rem !important;
    }
}