/**
 * Vesta IT - WooCommerce Minimal & High-Performance Styles
 * Clean, modern, responsive shop styling without bloat.
 */

.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-right: 4px solid var(--v-cyan);
    border-radius: var(--v-radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    color: var(--v-text);
    list-style: none;
    box-shadow: var(--v-shadow-sm);
}

.woocommerce-message {
    border-right-color: var(--v-emerald);
}

.woocommerce-error {
    border-right-color: var(--v-rose);
}

/* Products Grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.products li.product {
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--v-transition);
    position: relative;
}

ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--v-shadow-lg);
    border-color: rgba(14, 165, 233, 0.4);
}

ul.products li.product img {
    border-radius: var(--v-radius-md);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 16px;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--v-text);
}

ul.products li.product .price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--v-emerald);
    margin-top: auto;
    margin-bottom: 16px;
}

ul.products li.product .button {
    background: var(--v-surface-2);
    color: var(--v-text);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius-md);
    padding: 10px 16px;
    text-align: center;
    font-weight: 700;
    transition: var(--v-transition);
}

ul.products li.product .button:hover {
    background: var(--v-gradient-brand);
    color: #fff;
    border-color: transparent;
}

/* Single Product Layout */
.vesta-single-product-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.vesta-product-gallery {
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius-xl);
    padding: 16px;
    overflow: hidden;
}

.vesta-product-gallery img {
    border-radius: var(--v-radius-lg);
    width: 100%;
    height: auto;
}

.vesta-product-summary {
    display: flex;
    flex-direction: column;
}

.vesta-product-summary .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--v-emerald);
    margin: 16px 0 24px;
}

.vesta-product-summary .cart {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.vesta-product-summary .quantity input {
    width: 70px;
    padding: 12px;
    border: 1.5px solid var(--v-border);
    border-radius: var(--v-radius-md);
    text-align: center;
    background: var(--v-surface-2);
    font-weight: 700;
}

/* Modern Checkout & Cart */
.vesta-cart-grid, .vesta-checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
}

.vesta-card-box {
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius-xl);
    padding: 32px;
    box-shadow: var(--v-shadow-sm);
}

/* Custom My Account Dashboard */
.vesta-account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--v-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--v-radius-xl);
    padding: 20px;
}

.vesta-account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--v-radius-md);
    font-weight: 600;
    color: var(--v-text-muted);
}

.vesta-account-nav-link:hover, .vesta-account-nav-link.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--v-cyan);
}

@media (max-width: 900px) {
    .vesta-single-product-grid, .vesta-cart-grid, .vesta-checkout-grid {
        grid-template-columns: 1fr;
    }
}
