/* =========================================================
   GLOBAL WOOCOMMERCE RESET
========================================================= */
.woocommerce,
.woocommerce-page {
    font-family: inherit;
    color: #1f2933;
}

.woocommerce * {
    box-sizing: border-box;
}

.woocommerce a {
    color: #016b61;
    text-decoration: none;
}

.woocommerce a:hover {
    color: #014f48;
}

/* =========================================================
   PAGE WRAPPER
========================================================= */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce-billing-fields {
    max-width: 1200px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(1, 107, 97, 0.08);
}

/* =========================================================
   HEADINGS
========================================================= */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
    font-weight: 700;
    color: #016b61;
    margin-bottom: 20px;
}

/* =========================================================
   FORMS (GLOBAL)
========================================================= */
.woocommerce form {
    margin: 0;
}

.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    transition: all 0.25s ease;
}

.woocommerce form .input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
    border-color: #016b61;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 107, 97, 0.12);
}

/* =========================================================
   BUTTONS
========================================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: #016b61;
    color: #ffffff;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #014f48;
    transform: translateY(-1px);
}

/* =========================================================
   CART PAGE
========================================================= */
.woocommerce-cart table.shop_table {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce-cart table.shop_table th {
    background: #016b61;
    color: #ffffff;
    padding: 16px;
}

.woocommerce-cart table.shop_table td {
    padding: 20px 16px;
    vertical-align: middle;
}

.woocommerce-cart .cart_totals {
    background: #f5fafa;
    padding: 24px;
    border-radius: 16px;
}

.woocommerce-cart .cart_totals h2 {
    margin-bottom: 16px;
}

.woocommerce-cart .product-remove a {
    color: #dc2626;
    font-size: 18px;
}

/* =========================================================
   CHECKOUT PAGE
========================================================= */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.woocommerce-checkout #order_review {
    background: #f5fafa;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table th {
    background: transparent;
}

.woocommerce-checkout-payment {
    margin-top: 24px;
}

.woocommerce-checkout-payment ul.payment_methods {
    border: none;
}

.woocommerce-checkout-payment li {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}


/* =========================================================
   NOTICES & ERRORS
========================================================= */
.woocommerce-message,
.woocommerce-info {
    border-left: 5px solid #016b61;
    background: #ecfdf5;
    color: #065f46;
    padding: 16px;
    border-radius: 12px;
}

.woocommerce-error {
    border-left: 5px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
    padding: 16px;
    border-radius: 12px;
}

/* =========================================================
   RESPONSIVE (TABLET & MOBILE)
========================================================= */
@media (max-width: 1024px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce
{
        padding: 20px;
        margin: 20px;
    }

    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    .woocommerce-cart table.shop_table tr {
        display: block;
        margin-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
    }

    .woocommerce-cart table.shop_table td {
        display: flex;
        justify-content: space-between;
        padding: 14px 10px;
    }

    .woocommerce-cart table.shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #016b61;
    }
}

@media (max-width: 480px) {
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        width: 100%;
        padding: 14px;
    }
}
