/* ==========================================================================
   WooCommerce Overrides for OMOTOSHODESIGN
   ========================================================================== */

/* Remove default WooCommerce styles that conflict */
.woocommerce .products ul,
.woocommerce ul.products {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Override default product styling */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

/* Hide default WooCommerce elements we replace */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .star-rating {
    display: none;
}

/* Cart Page */
.woocommerce-cart .woocommerce {
    padding: 2rem 0;
}

.woocommerce table.shop_table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.woocommerce table.shop_table th {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.woocommerce table.shop_table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.woocommerce table.shop_table .product-thumbnail img {
    width: 80px;
    height: auto;
}

.woocommerce table.shop_table .product-name a {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
}

.woocommerce table.shop_table .product-name a:hover {
    opacity: 0.7;
}

/* Cart Totals */
.woocommerce .cart_totals {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

@media (min-width: 768px) {
    .woocommerce .cart_totals {
        float: right;
    }
}

.woocommerce .cart_totals h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Checkout */
.woocommerce-checkout .woocommerce {
    padding: 2rem 0;
}

.woocommerce form .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce form .form-row label {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.875rem;
    background: transparent;
    transition: border-color 0.3s;
    border-radius: 0;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--foreground);
}

/* Checkout buttons */
.woocommerce #place_order,
.woocommerce .checkout-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--foreground) !important;
    color: var(--primary-foreground) !important;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: var(--font-body);
    text-align: center;
}

.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
    background-color: rgba(20, 20, 20, 0.85) !important;
}

/* Coupon form */
.woocommerce .coupon .input-text {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.875rem;
    border-radius: 0;
}

.woocommerce .coupon .button {
    padding: 0.75rem 1.5rem;
    background-color: var(--foreground);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.3s;
}

.woocommerce .coupon .button:hover {
    background-color: rgba(20, 20, 20, 0.85);
}

/* Remove item button */
.woocommerce a.remove {
    color: var(--muted-foreground) !important;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.woocommerce a.remove:hover {
    color: #dc2626 !important;
    background: transparent !important;
}

/* My Account */
.woocommerce-account .woocommerce {
    padding: 2rem 0;
}

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

@media (min-width: 768px) {
    .woocommerce-MyAccount-navigation {
        float: left;
        width: 25%;
        margin-bottom: 0;
    }

    .woocommerce-MyAccount-content {
        float: right;
        width: 72%;
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    font-weight: 600;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    opacity: 0.7;
}

/* Sale badge */
.woocommerce span.onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    background-color: var(--foreground);
    color: var(--primary-foreground);
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    line-height: 1.6;
    min-height: auto;
    min-width: auto;
}

/* Star rating */
.woocommerce .star-rating {
    color: var(--terracotta);
}

/* Price display */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--foreground);
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    opacity: 0.5;
    margin-right: 0.5rem;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}

/* Widget area (if used) */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: var(--border);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--foreground);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--foreground);
    border: none;
    border-radius: 0;
}
