/* BetterMe theme: common.css — shared page, form, account, cart, checkout styles */

/* ---------- Generic page body ---------- */
.page-body {
    padding: 40px 0 80px;
}

.page-text p {
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ---------- Privacy Policy ---------- */
.privacy-policy {
}

.privacy-policy .page-title {
    font-size: 32px;
    font-weight: 600;
    color: #1E2426;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-policy .divider {
    margin: 24px auto;
    width: 60px;
}

.privacy-policy .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.privacy-policy .entry-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1E2426;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.privacy-policy .entry-content h2:first-of-type {
    margin-top: 0;
}

.privacy-policy .entry-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-top: 28px;
    margin-bottom: 12px;
}

.privacy-policy .entry-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.privacy-policy .entry-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.privacy-policy .entry-content li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.privacy-policy .entry-content a {
    color: #1E2426;
    text-decoration: underline;
    font-weight: 500;
}

.privacy-policy .entry-content a:hover {
    color: #3cc99a;
}

/* ---------- Collections grid ---------- */
.collections-grid {
    margin-top: 32px;
}

/* ---------- Simple form ---------- */
.simple-form .form-row {
    margin-bottom: 20px;
    max-width: 480px;
}

.simple-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.simple-form input[type="text"],
.simple-form input[type="email"],
.simple-form input[type="password"],
.simple-form input[type="search"],
.simple-form input[type="tel"],
.simple-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.simple-form input:focus,
.simple-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* ---------- Account page ---------- */
.account-page .u-columns.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.account-page h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.account-page .lost_password {
    margin-top: 12px;
    font-size: 14px;
}

.account-page .lost_password a {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .account-page .u-columns.col2-set {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---------- Cart page ---------- */
.cart-page .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-page .shop_table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #1a1a1a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-page .shop_table td {
    padding: 16px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-page .product-thumbnail img {
    width: 80px;
    height: auto;
    display: block;
}

.cart-page .product-name a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
}

.cart-page .product-remove a.remove {
    font-size: 22px;
    color: #999;
    text-decoration: none;
}

.cart-page .product-remove a.remove:hover {
    color: #d12d26;
}

.cart-page .quantity input.qty {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cart-page .actions {
    text-align: right;
    padding-top: 20px;
}

.cart-page .actions .button,
.cart-page .coupon .button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cart-page .coupon {
    float: left;
    display: flex;
    gap: 10px;
}

.cart-page .coupon input.input-text {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-collaterals {
    margin-top: 30px;
}

.cart-collaterals .cart_totals {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
}

.cart-collaterals .cart_totals h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}

.cart-collaterals .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart-collaterals .cart_totals th,
.cart-collaterals .cart_totals td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.cart-collaterals .cart_totals td {
    text-align: right;
}

.cart-collaterals .wc-proceed-to-checkout {
    margin-top: 20px;
}

.cart-collaterals .wc-proceed-to-checkout .checkout-button {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    padding: 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Checkout page ---------- */
.checkout-page .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.checkout-page .woocommerce-billing-fields h3,
.checkout-page .woocommerce-shipping-fields h3,
.checkout-page #order_review_heading {
    font-size: 18px;
    margin-bottom: 16px;
}

.checkout-page .form-row {
    margin-bottom: 16px;
}

.checkout-page .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.checkout-page .form-row input.input-text,
.checkout-page .form-row select,
.checkout-page .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.checkout-page .form-row-first,
.checkout-page .form-row-last {
    width: 48%;
    display: inline-block;
}

.checkout-page .form-row-first {
    margin-right: 4%;
}

.checkout-page .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-page .woocommerce-checkout-review-order-table th,
.checkout-page .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.checkout-page .woocommerce-checkout-review-order-table td.product-total,
.checkout-page .woocommerce-checkout-review-order-table .order-total td {
    text-align: right;
}

.checkout-page #payment {
    margin-top: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 24px;
}

.checkout-page #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.checkout-page #payment .place-order .button {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .checkout-page .col2-set {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-page .coupon {
        float: none;
        margin-bottom: 16px;
    }
}

/* ---------- Search results ---------- */
.search-result-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.search-result-item h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

/* ---------- Header search form ---------- */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-form input[type="search"] {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}
