/**
 * WooCommerce Overrides CSS
 */

.xtech-shop-header {
    margin-bottom: 3rem;
}

.xtech-shop-header__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.xtech-shop-header__desc {
    font-size: 1.125rem;
    color: var(--xtech-text-secondary);
}

/* Shop Controls */
.xtech-shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--xtech-bg-elevated);
    padding: 1rem 1.5rem;
    border-radius: var(--xtech-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.woocommerce-result-count {
    color: var(--xtech-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.woocommerce-ordering select {
    background: var(--xtech-bg-base);
    color: var(--xtech-text-main);
    border: 1px solid var(--xtech-border);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: var(--xtech-radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

/* Forms & Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    background: var(--xtech-bg-base);
    border: 1px solid var(--xtech-border);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--xtech-radius-sm);
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--xtech-text-secondary);
}

.woocommerce .button {
    background: var(--xtech-gradient);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--xtech-radius);
    font-weight: 600;
    cursor: pointer;
}

.woocommerce .button:hover {
    opacity: 0.9;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: var(--xtech-bg-elevated);
    padding: 1rem 1.5rem;
    border-radius: var(--xtech-radius);
    border-left: 4px solid var(--xtech-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.woocommerce-error {
    border-left-color: var(--xtech-error);
    list-style: none;
}

/* Cart Table */
.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form__contents th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--xtech-border);
    color: var(--xtech-text-secondary);
}

.woocommerce-cart-form__contents td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Checkout */
#customer_details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

#order_review_heading {
    margin-top: 3rem;
}

#order_review {
    background: var(--xtech-bg-elevated);
    padding: 2rem;
    border-radius: var(--xtech-radius-lg);
}

/* My Account */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--xtech-bg-elevated);
    border-radius: var(--xtech-radius-sm);
    color: var(--xtech-text-main);
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--xtech-gradient);
    color: #fff;
}
