/* ============================================
   WOOCOMMERCE OVERRIDES
   Only loaded on WooCommerce pages
   ============================================ */

/* Cart Page */
.woocommerce-cart .woocommerce table.shop_table {
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-card);
}

.woocommerce-cart .woocommerce table.shop_table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
}

.woocommerce-cart .woocommerce table.shop_table td {
    border-top: 1px solid var(--border-color);
    padding: 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

.woocommerce table.shop_table img {
    width: 80px;
    height: auto;
    border-radius: 0;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--brand-blue) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--brand-blue-light) !important;
    transform: translateY(-1px);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--brand-blue) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--brand-blue-light) !important;
}

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-input);
    border-radius: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    font-family: var(--font-primary);
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--brand-blue);
    background: var(--accent-glow);
    border-left: 3px solid var(--brand-blue);
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 32px;
}

/* Form Login */
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 32px;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="password"],
.woocommerce-form-register input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-input);
    border-radius: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-primary);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--brand-blue);
    background: var(--bg-card);
    border-left: none;
    border-right: none;
    border-bottom: none;
    color: var(--text-primary);
}

.woocommerce-error {
    border-top-color: #ef4444;
    background: var(--bg-card);
    color: var(--text-primary);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--brand-blue);
}

/* Product Rating Stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .icon.star-filled {
    color: #f59e0b;
    fill: #f59e0b;
}

.rating-stars .icon.star-empty {
    color: var(--text-tertiary);
}

.rating-count {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Booking date fields on single product */
.booking-date-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.booking-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.booking-field .form-control {
    width: 100%;
}

.booking-field .required {
    color: #ef4444;
}

/* Price display */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Quantity */
.woocommerce .quantity .qty {
    padding: 10px 12px;
    border: 1.5px solid var(--border-input);
    border-radius: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.88rem;
    width: 80px;
}

/* Remove default WooCommerce styles that conflict */
.woocommerce-page .woocommerce {
    color: var(--text-primary);
}

.woocommerce-page .woocommerce a {
    color: var(--brand-blue);
}

.woocommerce-page .woocommerce a:hover {
    color: var(--brand-blue-light);
}

/* Responsive */
@media (max-width: 768px) {
    .booking-date-fields {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }
}
