/**
 * WooCommerce Base Styles
 * Basic WooCommerce styling for the MBK theme
 */

/* Ensure WooCommerce elements use theme fonts */
.woocommerce,
.woocommerce-page {
    font-family: inherit;
}

/* Product Grid */
.woocommerce ul.products {
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    list-style: none;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    border-radius: 0.375rem;
}

.woocommerce-message {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.woocommerce-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.woocommerce-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #059669;
}

/* Star Rating */
.woocommerce .star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star;
}

.woocommerce .star-rating::before {
    content: "\73\73\73\73\73";
    color: #d1d5db;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.woocommerce .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.woocommerce .star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    color: #fbbf24;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.woocommerce-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #10b981;
}

/* Tables */
.woocommerce table.shop_table {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    width: 100%;
}

.woocommerce table.shop_table th {
    background-color: #f9fafb;
    padding: 0.75rem;
    font-weight: 600;
}

.woocommerce table.shop_table td {
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

/* Forms */
.woocommerce form .form-row {
    margin-bottom: 1rem;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Notices */
.woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}
