/**
* Theme Name: Partdo Child
* Description: This is a child theme of Partdo, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: partdo
* Version: 1.5.2
*/

/* ── Brand archive page ────────────────────────────────────────── */

/* Brand header panel — now lives inside .primary-column via JS move */
.tax-product_brand .woocommerce-products-header {
    background: var(--color-info-light);
    border: 1px solid var(--color-info-dark);
    border-radius: var(--theme-theme-radius-base);
    padding: 1.5rem 1.75rem 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Red gradient accent strip on left edge */
.tax-product_brand .woocommerce-products-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--color-gradient-1);
    border-radius: 4px 0 0 4px;
}

/* Brand name */
.tax-product_brand .woocommerce-products-header__title.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

/* Description — collapsed to ~3 lines by default */
.tax-product_brand .term-description {
    font-family: var(--theme-primary-font);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-description);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    overflow: hidden;
    max-height: 5.1em;
    transition: max-height 0.35s ease;
}
.tax-product_brand .term-description.ttf-desc-expanded {
    max-height: 1200px;
}
.tax-product_brand .term-description p {
    margin: 0 0 0.6rem 0;
}
.tax-product_brand .term-description p:last-child {
    margin-bottom: 0;
}

/* Read more / Read less toggle button */
.ttf-brand-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    margin-top: 0.6rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--theme-primary-font);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.2s;
}
.ttf-brand-read-more:hover {
    opacity: 0.75;
    color: var(--color-primary);
}
.ttf-brand-read-more svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.ttf-brand-read-more.ttf-expanded svg {
    transform: rotate(180deg);
}

/* Tighten filter chips row */
.tax-product_brand .wpc-custom-selected-terms {
    margin-top: 0.25rem;
}

/* =========================================================
   Cart totals (TTF redesign v2 — 2026-04-23)
   Card container · grouped shipping · hero Total · mobile
   ========================================================= */
.ttf-cart-totals {
    background: #fff;
    border: 1px solid #e9e9ec;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.02);
}
.ttf-cart-totals h2 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a90;
    margin: 0 0 1rem;
    line-height: 1;
}

/* Ship-to pill */
.ttf-ship-to {
    position: relative;
    padding: 0.85rem 1rem;
    margin: 0 0 1.1rem;
    background: #f7f7f9;
    border-radius: 10px;
    line-height: 1.35;
    border: 0;
}
.ttf-ship-to__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a90;
    margin: 0 0 0.25rem;
}
.ttf-ship-to__address {
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 5.5rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ttf-ship-to__address--empty {
    white-space: normal;
    font-weight: 400;
    color: #6b6b72;
    margin-right: 0;
}
.ttf-ship-to__change {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    color: #d42027 !important;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    line-height: 1;
    padding-bottom: 1px;
}
.ttf-ship-to__change:hover { color: #a8161c !important; }

/* Price stack — borderless rows, airy spacing */
.ttf-cart-totals .ttf-totals-table {
    border: 0;
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}
.ttf-cart-totals .ttf-totals-table th,
.ttf-cart-totals .ttf-totals-table td {
    border: 0 !important;
    padding: 0.4rem 0 !important;
    background: transparent !important;
    font-size: 0.92rem;
    line-height: 1.35;
    vertical-align: top;
}
.ttf-cart-totals .ttf-totals-table th {
    font-weight: 500;
    color: #5a5a60;
    text-align: left;
}
.ttf-cart-totals .ttf-totals-table td {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

/* Subtotal — sits alone above the shipping group */
.ttf-cart-totals .cart-subtotal th,
.ttf-cart-totals .cart-subtotal td {
    padding-top: 0.1rem !important;
    padding-bottom: 0.7rem !important;
}

/* Shipping group: soft divider above, method list inline */
.ttf-cart-totals .woocommerce-shipping-totals th,
.ttf-cart-totals .woocommerce-shipping-totals td {
    border-top: 1px solid #eceef1 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.2rem !important;
}
.ttf-cart-totals .woocommerce-shipping-totals ul#shipping_method {
    margin: 0; padding: 0; list-style: none;
}
.ttf-cart-totals .woocommerce-shipping-totals ul#shipping_method li {
    margin: 0; padding: 0;
}

/* Fee rows (ProTrack surcharge) — sub-row under shipping, no divider */
.ttf-cart-totals tr.fee th,
.ttf-cart-totals tr.fee td {
    border-top: 0 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    font-size: 0.86rem;
    color: #6b6b72;
}
.ttf-cart-totals tr.fee th {
    padding-left: 1rem;
    position: relative;
    font-weight: 500;
}
.ttf-cart-totals tr.fee th::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.65rem;
    width: 0.45rem;
    height: 0.45rem;
    border-left: 1px solid #c9cbd1;
    border-bottom: 1px solid #c9cbd1;
}
.ttf-cart-totals tr.fee td {
    color: #1a1a1a;
    font-weight: 500;
}

/* Coupons — match fee sub-row styling */
.ttf-cart-totals tr.cart-discount th,
.ttf-cart-totals tr.cart-discount td {
    border-top: 0 !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    font-size: 0.86rem;
}
.ttf-cart-totals tr.cart-discount td { color: #2a8a40; font-weight: 600; }

/* Total — the hero */
.ttf-cart-totals .order-total th,
.ttf-cart-totals .order-total td {
    padding-top: 1.15rem !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #1a1a1a !important;
    vertical-align: baseline;
}
.ttf-cart-totals .order-total th {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
}
.ttf-cart-totals .order-total td {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.ttf-cart-totals .order-total td .woocommerce-Price-amount { font-size: inherit; }
.ttf-cart-totals .order-total td small.includes_tax,
.ttf-cart-totals .order-total td small.tax_label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: #8a8a90;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Proceed to checkout */
.ttf-cart-totals .wc-proceed-to-checkout {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ttf-cart-totals .wc-proceed-to-checkout .checkout-button {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
    .ttf-cart-totals {
        padding: 1.1rem 1rem 1rem;
        border-radius: 12px;
    }
    .ttf-cart-totals h2 { font-size: 0.72rem; }
    .ttf-ship-to { padding: 0.75rem 0.85rem; }
    .ttf-ship-to__address {
        margin-right: 0;
        white-space: normal;
    }
    .ttf-ship-to__change {
        position: static;
        display: inline-block;
        transform: none;
        margin-top: 0.4rem;
    }
    .ttf-cart-totals .ttf-totals-table th,
    .ttf-cart-totals .ttf-totals-table td {
        font-size: 0.88rem;
        padding: 0.35rem 0 !important;
    }
    .ttf-cart-totals .order-total td { font-size: 1.5rem; }
}

/* AWS search: hide redundant clear (X) — it overlapped the magnifying-glass
   submit button. Magnifying glass submits; users clear via select-all/delete. */
.aws-container .aws-search-form .aws-search-clear,
.aws-container.aws-show-clear .aws-search-form .aws-search-clear {
    display: none !important;
}
.aws-container .aws-show-clear .aws-search-field,
.aws-container.aws-show-clear .aws-search-field {
    padding-right: 10px !important;
}
.aws-container .aws-search-form .aws-wrapper .aws-loader {
    right: 10px !important;
}

/* ── Recently Viewed Products heading — mobile size/casing fix ─────
   The parent theme renders the "Recently Viewed Products" h2 with a much
   larger font-size on mobile than other in-page section headings. Bring
   it in line with the standard section heading scale, and drop the
   forced uppercase so it reads like body content. */
section.recently-viewed h2.entry-title {
    font-size: 1.2rem;
    line-height: 1.25;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    section.recently-viewed h2.entry-title { font-size: 1.4rem; }
}

/* Footer styles are injected inline via functions.php for cache reliability */