/* 
 * WooCommerce Premium Design System 
 * Theme: Minoform / Architecture & Furniture
 * Description: Clean, Brutalist, Architectural Aesthetic
 */

:root {
    --wc-bg: #ffffff;
    --wc-text: #111111;
    --wc-muted: #666666;
    --wc-border: #e8e8e8;
    --wc-accent: #c5a47e;
    --wc-soft: #fafafa;
}

/* --- 1. Layout & Reset --- */
.woocommerce-MyAccount-content {
    background: transparent;
    padding: 0;
    width: 100%;
}

.minoform-account-wrapper {
    background-color: var(--wc-bg);
    padding-top: 80px;
}

.account-layout-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
}

@media (max-width: 1024px) {
    .account-layout-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- 2. Global Form Row Fix (The "Bozuk" Issue) --- */
.woocommerce form .form-row,
.woocommerce-page form .form-row {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
    /* Matched to cart33.html */
    float: none !important;
    width: 100% !important;
    clear: both;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    display: block !important;
    margin-bottom: 10px !important;
    /* Matched to cart33.html */
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    color: #888 !important;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-Input {
    width: 100% !important;
    padding: 15px 0 !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    background: transparent !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    color: var(--text-color) !important;
    outline: none !important;
}

.woocommerce form .form-row textarea {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid #ddd !important;
    padding: 15px !important;
    min-height: 100px !important;
    font-family: var(--font-body) !important;
    resize: vertical !important;
    outline: none !important;
    transition: 0.3s !important;
    border-radius: 0 !important;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce-Input:focus {
    border-bottom-color: var(--text-color) !important;
    outline: none !important;
    background: transparent !important;
}

.woocommerce form .form-row textarea:focus {
    border-color: var(--text-color) !important;
    background: transparent !important;
}

/* Parallel Columns Fix */
@media (min-width: 769px) {

    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last,
    .woocommerce-page form .form-row-first,
    .woocommerce-page form .form-row-last {
        width: 48% !important;
        float: left !important;
        clear: none !important;
    }

    .woocommerce form .form-row-last,
    .woocommerce-page form .form-row-last {
        float: right !important;
    }

    .woocommerce form .form-row-wide,
    .woocommerce-page form .form-row-wide {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}

/* Clearfix */
.woocommerce form::after,
.woocommerce-EditAccountForm::after,
.woocommerce-address-fields__field-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* --- 3. Hero & Navigation --- */
.account-hero {
    width: 100% !important;
    height: 40vh !important;
    min-height: 300px !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.account-hero .products-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.minoform-account-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: var(--wc-soft);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.minoform-account-nav li.is-active a {
    background: var(--wc-text);
    color: #fff;
}

/* --- 4. Address Labels & Headers --- */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-address-fields h3 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--wc-text);
    display: inline-block;
}

address {
    font-style: normal;
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--wc-muted);
    background: var(--wc-soft);
    padding: 35px;
    border: 1px solid var(--wc-border);
    min-height: 180px;
}

/* --- 5. Buttons --- */
.woocommerce .button,
.woocommerce-Button {
    background: var(--wc-text) !important;
    color: #fff !important;
    padding: 20px 40px !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border-radius: 0 !important;
    border: 1px solid var(--wc-text) !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: 0.3s !important;
}

.woocommerce .button:hover {
    background: transparent !important;
    color: var(--wc-text) !important;
}

/* --- 6. Notices (Alerts) --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--wc-soft) !important;
    color: var(--wc-text) !important;
    border-top: 3px solid var(--wc-text) !important;
    padding: 20px 30px !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    margin-bottom: 40px !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* --- 7. Order Table --- */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--wc-border);
}

.woocommerce-orders-table th {
    background: var(--wc-text);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
    text-align: left;
    font-size: 0.85rem;
}

.woocommerce-orders-table td {
    border-bottom: 1px solid var(--wc-border);
    padding: 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--wc-muted);
}

.woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}

.woocommerce-button.view {
    padding: 10px 20px !important;
    font-size: 0.75rem !important;
    background: transparent !important;
    color: var(--wc-text) !important;
    border: 1px solid var(--wc-border) !important;
}

.woocommerce-button.view:hover {
    border-color: var(--wc-text) !important;
    background: var(--wc-text) !important;
    color: #fff !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   CART PAGE DESIGN V5 - Pixel-Perfect Match (dosyalar/cart.html)
   ===================================================== */

/* 1. Global Page Style */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    padding-bottom: 0;
    background-color: var(--bg-color);
}

.woocommerce-cart .page-hero-title,
.woocommerce-cart .entry-title {
    display: none !important;
}

/* 2. Cart Hero Centered (Like cart.html) */
.cart-hero-centered .products-hero-content,
.cart-hero-centered .cart-hero-content {
    text-align: center !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-hero-centered .breadcrumb-mini {
    text-align: center;
}

.cart-hero-centered .hero-title-main {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.cart-hero {
    height: 40vh !important;
    min-height: 350px !important;
    margin-bottom: 0 !important;
    margin-bottom: 70px !important;
    background: #111;
}

.cart-hero-bg img {
    opacity: 0.5;
}

/* 3. Main Layout - 2 Column Grid (cart items + sidebar) */
.woocommerce-cart .minoform-cart-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 120px;
}

/* Grid applied to .woocommerce div (direct parent of form + collaterals) */
.woocommerce-cart .minoform-cart-wrapper>.woocommerce {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

/* Hide the notices wrapper from taking grid space unnecessarily */
.woocommerce-cart .minoform-cart-wrapper .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .woocommerce-cart .minoform-cart-wrapper>.woocommerce {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* 4. Product List - Clean Blueprint (Matched to cart.html) */
.woocommerce-cart-form {
    width: 100%;
}

.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.shop_table.cart thead,
.shop_table.cart tbody {
    display: block;
    width: 100%;
}

/* Cart Header - "ÜRÜN" left / "TOPLAM" right */
.shop_table.cart thead tr {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--text-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop_table.cart thead th {
    display: none;
    padding: 0 !important;
    border: none !important;
}

.shop_table.cart thead th.product-name,
.shop_table.cart thead th.product-subtotal {
    display: block;
}

/* Cart Item Row - 5 column grid like cart.html */
.shop_table.cart tbody tr.cart_item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto 40px;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}

.shop_table.cart tbody tr.cart_item:hover {
    border-bottom-color: var(--text-color);
}

.shop_table.cart tbody td {
    display: block;
    padding: 0 !important;
    border: none !important;
}

/* Product Thumbnail - 100x130, full color */
.woocommerce-cart .product-thumbnail img,
.shop_table.cart .product-thumbnail img,
.woocommerce-cart-form__cart-item .product-thumbnail img {
    width: 100px !important;
    height: 130px !important;
    min-width: 100px !important;
    min-height: 130px !important;
    max-width: 100px !important;
    max-height: 130px !important;
    object-fit: cover;
    transition: 0.6s ease;
}

.cart_item:hover .product-thumbnail img {
    transform: scale(1.05);
}

/* Meta Labels (Category | Collection) */
.item-meta {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    line-height: 1;
}

.item-meta span:first-child::after {
    content: '|';
    margin-left: 10px;
    opacity: 0.3;
}

/* Product Name Link */
.product-name a {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.2;
    margin-bottom: 5px;
}

/* Product Price (below name) */
.product-price,
td.product-name .product-price {
    font-family: var(--font-body);
    color: #666;
    font-size: 1rem;
}

/* Product Subtotal (total column) */
.product-subtotal {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Quantity Control - matching cart.html qty box with -/+ buttons */
.quantity {
    display: flex;
    border: 1px solid var(--border-color);
    height: 40px;
    align-items: center;
}

.quantity .qty {
    width: 50px;
    border: none !important;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    background: transparent !important;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
    user-select: none;
    color: var(--text-color);
}

.qty-btn:hover {
    background: var(--soft-gray, #f5f5f5);
}

/* Remove button - X icon, rightmost column */
.product-remove {
    grid-column: 5;
    text-align: right;
}

/* Remove button - needs very high specificity to override WooCommerce defaults */
.woocommerce-cart table.cart a.remove,
.woocommerce a.remove,
table.cart td.product-remove a.remove,
a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    font-weight: 300 !important;
}

.woocommerce-cart table.cart a.remove:hover,
.woocommerce a.remove:hover,
table.cart td.product-remove a.remove:hover,
a.remove:hover {
    color: var(--text-color) !important;
    background: none !important;
    transform: rotate(90deg);
}

/* 5. Cart Actions Row */
.shop_table.cart tbody tr:last-child {
    display: block;
    border: none;
}

.actions {
    padding-top: 60px !important;
    border: none !important;
}

.cart-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.coupon {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.coupon .input-text {
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    width: 280px !important;
}

.coupon .input-text::placeholder {
    color: #bbb;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.coupon .button {
    background: transparent !important;
    color: var(--text-color) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    padding: 12px 20px !important;
    border: none !important;
}

button[name="update_cart"] {
    background: var(--text-color) !important;
    color: #fff !important;
    padding: 16px 40px !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 0.8rem !important;
    transition: 0.4s !important;
    border: none !important;
}

button[name="update_cart"]:hover {
    opacity: 0.8;
}

/* 6. Cart Totals Sidebar - "SEPET ÖZETİ" style (matched to cart.html) */
.cart-collaterals {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.cart_totals {
    width: 100% !important;
    background: var(--soft-gray, #fafafa);
    padding: 40px;
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.cart_totals h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 15px;
    white-space: nowrap;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table tr {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart_totals th,
.cart_totals td {
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: none !important;
    width: auto !important;
}

.cart_totals th {
    text-align: left;
    color: var(--text-color);
    font-weight: 400;
}

.cart_totals td {
    text-align: right;
    font-weight: 500;
}

/* Total row styling - matching cart.html .summary-row.total */
.cart_totals .order-total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ddd !important;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Hide shipping calculator extras */
.cart_totals .woocommerce-shipping-destination,
.cart_totals .shipping-calculator-button,
.cart_totals .shipping-calculator-form {
    display: none !important;
}

/* Cart totals order total row uppercase */
.cart_totals .order-total th {
    text-transform: uppercase;
    font-family: var(--font-display);
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 40px;
}

.wc-proceed-to-checkout a.checkout-button,
.wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--text-color) !important;
    color: #fff !important;
    padding: 24px 0 !important;
    text-align: center !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    border: 1px solid var(--text-color) !important;
    border-radius: 0 !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
.wc-block-cart__submit-button:hover {
    background: transparent !important;
    color: var(--text-color) !important;
}

/* =====================================================
   RESPONSIVE - Cart Page (Matched to cart.html @media)
   ===================================================== */
@media (max-width: 768px) {
    .cart-hero {
        margin-bottom: 10px !important;
    }

    .cart-hero-centered .hero-title-main {
        font-size: 3rem;
    }

    /* 1. Disable Standard WooCommerce Responsive Labels */
    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        content: none !important;
        display: none !important;
    }

    /* Force th visibility in responsive tables (overrides core hiding) */
    .woocommerce table.shop_table_responsive tbody th,
    .woocommerce-page table.shop_table_responsive tbody th {
        display: block !important;
    }

    /* 2. Force Table Header Hide */
    .shop_table.cart thead {
        display: none !important;
    }

    /* 3. Grid Layout for Cart Item Row - High Specificity */
    .woocommerce table.shop_table_responsive tr.cart_item,
    .woocommerce-page table.shop_table_responsive tr.cart_item {
        display: grid !important;
        grid-template-columns: 100px 1fr !important;
        /* Increased thumbnail column width */
        grid-template-rows: auto auto auto !important;
        /* Name+Price | Quantity | Subtotal */
        gap: 10px 20px !important;
        padding: 20px 0 !important;
        position: relative;
        border-bottom: 1px solid var(--border-color);
        background: transparent !important;
        /* Override potential zebra striping */
    }

    /* 4. Thumbnail: Spans 3 rows on the left - Force Visibility */
    .woocommerce table.shop_table_responsive tr td.product-thumbnail,
    .woocommerce-page table.shop_table_responsive tr td.product-thumbnail {
        display: block !important;
        /* Unlock from table-cell */
        grid-row: 1 / span 3 !important;
        grid-column: 1 !important;
        margin-bottom: 0 !important;
        height: 100%;
        min-height: 120px;
        /* Increased min-height */
        /* Ensure space if image loads late */
        width: 100% !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .product-thumbnail img {
        width: 100px !important;
        /* Increased width */
        height: 120px !important;
        /* Increased height */
        object-fit: cover;
        display: block !important;
    }

    /* 5. Name & Price Container (TD) */
    .woocommerce table.shop_table_responsive tr td.product-name,
    .woocommerce-page table.shop_table_responsive tr td.product-name {
        display: flex !important;
        grid-row: 1 !important;
        grid-column: 2 !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left !important;
        width: auto !important;
        /* Override 100% width from woo */
    }

    .product-name a {
        font-size: 1.1rem !important;
        margin-bottom: 5px;
        display: block;
    }

    /* Price is nested inside .product-name */
    .product-price {
        display: block !important;
        font-size: 0.95rem !important;
        color: #666;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* 6. Quantity */
    .woocommerce table.shop_table_responsive tr td.product-quantity,
    .woocommerce-page table.shop_table_responsive tr td.product-quantity {
        display: block !important;
        grid-row: 2 !important;
        grid-column: 2 !important;
        padding: 5px 0 !important;
        margin: 0 !important;
        text-align: left !important;
        width: auto !important;
    }

    .quantity {
        height: 35px;
        width: fit-content;
    }

    /* 7. Subtotal */
    .woocommerce table.shop_table_responsive tr td.product-subtotal,
    .woocommerce-page table.shop_table_responsive tr td.product-subtotal {
        display: flex !important;
        grid-row: 3 !important;
        grid-column: 2 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        color: var(--text-color);
        font-weight: 700;
        align-items: center;
        text-align: left !important;
        width: auto !important;
    }

    /* 8. Remove button - Position absolute top right */
    .woocommerce table.shop_table_responsive tr td.product-remove,
    .woocommerce-page table.shop_table_responsive tr td.product-remove {
        display: flex !important;
        position: absolute !important;
        top: 0;
        right: 0;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10;
        align-items: center;
        justify-content: center;
        background: transparent !important;
    }

    .woocommerce-cart table.cart a.remove {
        font-size: 1.5rem !important;
        color: #999 !important;
        display: block !important;
    }

    /* Cart Actions stuck or stacking */
    .cart-actions-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .coupon {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        border: none;
    }

    .coupon .input-text {
        width: 100% !important;
        border: 1px solid var(--border-color) !important;
        padding: 15px !important;
    }

    .coupon .button {
        width: 100% !important;
        background: #000 !important;
        color: #fff !important;
        text-align: center;
    }

    button[name="update_cart"] {
        width: 100%;
        margin-top: 10px;
    }

    /* Totals */
    .cart-collaterals {
        width: 100% !important;
        float: none !important;
    }

    .cart_totals {
        width: 100% !important;
        padding: 25px;
        margin-top: 30px;
        position: static !important;
        /* Undo sticky on mobile if height is issue */
    }

    .cart_totals th {
        width: 50% !important;
        text-align: left !important;
        font-size: 0.85rem !important;
    }

    .cart_totals td {
        width: 50% !important;
        text-align: right !important;
        font-weight: 700;
        font-size: 0.85rem !important;
    }

    .cart_totals table tr {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 10px;
    }

    .cart_totals .order-total th,
    .cart_totals .order-total td {
        font-size: 1.2rem !important;
        border: none !important;
    }

    /* Sticky Mobile Footer Bar */
    .mobile-sticky-checkout {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        box-sizing: border-box;
    }

    .mobile-sticky-checkout.active {
        display: flex;
        animation: slideUp 0.4s ease forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .mobile-sticky-checkout .checkout-button {
        display: block !important;
        width: 100% !important;
        background: var(--text-color) !important;
        color: #fff !important;
        padding: 18px 0 !important;
        text-align: center !important;
        font-family: var(--font-display) !important;
        font-weight: 800 !important;
        font-size: 0.9rem !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        text-decoration: none !important;
        border: none !important;
    }

    /* Keep the in-page button visible and standard */
    .woocommerce-cart .wc-proceed-to-checkout {
        position: static !important;
        margin-top: 30px;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Add padding to bottom of page for content visibility */
    .woocommerce-cart .minoform-cart-wrapper {
        padding-bottom: 120px !important;
    }
}

/* =====================================================
   CHECKOUT PAGE DESIGN - Matching Cart Design Language
   ===================================================== */

/* 1. Checkout Container - Constrain width and padding */
.woocommerce-checkout .minoform-cart-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 120px;
    overflow-x: hidden !important;
    /* Contain leaks */
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .woocommerce-checkout .minoform-cart-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 769px) {

    .woocommerce-checkout .minoform-cart-wrapper,
    .woocommerce-checkout .container,
    .woocommerce-checkout .cart-container {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
}

/* Override WooCommerce Blocks max-width */
.wp-block-woocommerce-checkout {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Checkout Layout - Sidebar and Main */
.wc-block-components-sidebar-layout {
    display: flex !important;
    flex-wrap: wrap !important;
    /* Allow wrapping */
    gap: 80px !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
}

.wc-block-components-main {
    flex: 1 !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. Checkout Sidebar - Reset main container, style child blocks */
.wc-block-components-sidebar {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    position: sticky !important;
    top: 100px !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

@media (max-width: 1024px) {
    .wc-block-components-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        position: static !important;
        gap: 20px !important;
    }
}

/* Style the Order Summary block as a box */
.wp-block-woocommerce-checkout-order-summary-block {
    background: var(--soft-gray, #fafafa) !important;
    padding: 40px !important;
    border: 1px solid var(--border-color) !important;
}

/* Style the new Secondary Box as a box */
.checkout-secondary-box {
    background: var(--soft-gray, #fafafa) !important;
    padding: 40px !important;
    border: none !important;
}

/* Sidebar heading - "Sipariş Özeti" */
.wc-block-components-sidebar .wc-block-components-checkout-order-summary .wc-block-components-panel__button,
.wc-block-components-sidebar .wc-block-components-checkout-order-summary>div:first-child {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 1.2rem !important;
}

/* 13. Moved sections inside sidebar */
.wc-block-components-sidebar #shipping-option,
.wc-block-components-sidebar #payment-method,
.wc-block-components-sidebar #order-notes {
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Remove top margin/border from the first item in secondary box */
.checkout-secondary-box>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__heading {
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__container {
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
    display: none !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step {
    padding-left: 0 !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__heading::before {
    display: none !important;
}

/* Actions inside sidebar - stack vertically */
.wc-block-components-sidebar .wc-block-checkout__actions {
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--border-color) !important;
}

.wc-block-components-sidebar .wc-block-checkout__actions .wc-block-components-button {
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-sidebar .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
    text-align: center !important;
    order: 2 !important;
}

/* Remove step left border/numbering in sidebar */
.wc-block-components-sidebar .wc-block-components-checkout-step::before,
.wc-block-components-sidebar .wc-block-components-checkout-step::after {
    display: none !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__container::before,
.wc-block-components-sidebar .wc-block-components-checkout-step__container::after {
    display: none !important;
}

/* Sidebar product items */
.wc-block-components-order-summary-item {
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.wc-block-components-order-summary-item__image img {
    border-radius: 0 !important;
    object-fit: cover;
}

.wc-block-components-order-summary-item__description {
    font-family: var(--font-body) !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
}

/* Sidebar totals - Match cart_totals design */
.wc-block-components-totals-wrapper {
    border-top: none !important;
    border-bottom: none !important;
}

.wc-block-components-totals-item {
    font-family: var(--font-body) !important;
}

.wc-block-components-totals-item__label {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    color: var(--text-color) !important;
}

.wc-block-components-totals-item__value {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* Checkout Order Total - Match "TOPLAM" styling */
.wc-block-components-totals-footer-item {
    border-top: 1px solid #ddd !important;
    margin-top: 15px !important;
    padding-top: 20px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--font-display) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* 4. Checkout Section Headings */
.wc-block-components-checkout-step__heading {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 1rem !important;
}

.wc-block-components-checkout-step__description {
    font-family: var(--font-body) !important;
    color: #999 !important;
    font-size: 0.85rem !important;
}

/* Step content border - cleaner */
.wc-block-components-checkout-step__content {
    border: none !important;
}

.wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
    border-left-color: var(--border-color) !important;
}

/* 5. Checkout Form Inputs */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input {
    border-radius: 0 !important;
    border-color: var(--border-color) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    transition: border-color 0.3s ease !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus {
    border-color: var(--text-color) !important;
    box-shadow: none !important;
}

.wc-block-components-text-input label {
    font-family: var(--font-body) !important;
}

/* 6. Shipping & Payment Options Styling */
.wc-block-components-radio-control__option {
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 0 !important;
    margin-bottom: 5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.wc-block-components-radio-control__option:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* Specific styling for the selected/checked state */
.wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-radio-control__option--checked {
    border-bottom-color: var(--text-color) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wc-block-components-radio-control__label {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    font-size: 0.95rem !important;
}

.wc-block-components-radio-control__secondary-label {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 0.85rem !important;
    color: #111 !important;
}

/* Hide the default radio circle if possible for a cleaner look, or just style it */
.wc-block-components-radio-control__input {
    accent-color: var(--text-color) !important;
    margin-right: 15px !important;
}

/* Shipping Method Description Text */
.wc-block-components-radio-control__description {
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    color: #888 !important;
    margin-top: 4px !important;
}

/* 7. Place Order Button - Full-width, matches "ÖDEMEYE GEÇ" */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions .wc-block-components-button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--text-color) !important;
    color: #fff !important;
    padding: 24px 0 !important;
    text-align: center !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    border: 1px solid var(--text-color) !important;
    border-radius: 0 !important;
    cursor: pointer !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions .wc-block-components-button:hover {
    background: transparent !important;
    color: var(--text-color) !important;
}

/* 8. Checkout Actions Row */
.wc-block-checkout__actions {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid var(--border-color) !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
    font-family: var(--font-body) !important;
    color: #999 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--text-color) !important;
}

/* 9. Coupon Panel */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
}

.wc-block-components-totals-coupon__content input {
    border-radius: 0 !important;
    border-color: var(--border-color) !important;
    font-family: var(--font-body) !important;
}

/* Sticky Bottom Bar for Mobile */
.mobile-checkout-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    z-index: 99999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-sizing: border-box;
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.mobile-checkout-sticky-bar .total-section {
    display: flex;
    flex-direction: column;
}

.mobile-checkout-sticky-bar .total-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-checkout-sticky-bar .total-amount {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
}

.mobile-checkout-sticky-bar button {
    background: var(--text-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    /* Make button take remaining space */
    max-width: 200px;
}

@media (max-width: 768px) {
    .mobile-checkout-sticky-bar {
        display: flex;
    }

    /* Hide original buttons on mobile to avoid duplication */
    .woocommerce-checkout .place-order {
        padding-bottom: 80px;
        /* Space for sticky bar */
    }

    .woocommerce-checkout #place_order {
        display: none !important;
    }
}

/* 10. Notices & Error Messages */
.wc-block-components-notice-banner {
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
}

/* 11. Checkboxes */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    border-radius: 0 !important;
}

.wc-block-components-checkbox__label {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
}

/* 12. Order notes */
.wc-block-checkout__add-note .wc-block-components-textarea {
    border-radius: 0 !important;
    border-color: var(--border-color) !important;
    font-family: var(--font-body) !important;
}

/* 13. Moved sections inside sidebar */
.wc-block-components-sidebar #shipping-option,
.wc-block-components-sidebar #payment-method,
.wc-block-components-sidebar #order-notes {
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--border-color) !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__heading {
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__container {
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
    display: none !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step {
    padding-left: 0 !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__heading::before {
    display: none !important;
}

/* Actions inside sidebar - stack vertically */
.wc-block-components-sidebar .wc-block-checkout__actions {
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--border-color) !important;
}

.wc-block-components-sidebar .wc-block-checkout__actions .wc-block-components-button {
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-sidebar .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
    text-align: center !important;
    order: 2 !important;
}

/* Remove step left border/numbering in sidebar */
.wc-block-components-sidebar .wc-block-components-checkout-step::before,
.wc-block-components-sidebar .wc-block-components-checkout-step::after {
    display: none !important;
}

.wc-block-components-sidebar .wc-block-components-checkout-step__container::before,
.wc-block-components-sidebar .wc-block-components-checkout-step__container::after {
    display: none !important;
}

/* Checkout responsive */
@media (max-width: 1024px) {
    .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        gap: 30px !important;
        /* Slightly reduced gap for mobile */
    }

    .wc-block-components-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }
}

/* =====================================================
   MY ACCOUNT PAGE DESIGN
   ===================================================== */

/* 1. Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    width: 25% !important;
    float: left !important;
    margin-right: 5% !important;
    background: transparent !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--border-color);
    background: #fff;
}

.woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: var(--soft-gray, #fafafa);
    color: #000;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--soft-gray, #fafafa);
    color: #000;
    font-weight: 700;
    border-left: 3px solid #000;
}

.woocommerce-MyAccount-navigation li a i {
    width: 20px;
    text-align: center;
    color: #777;
}

.woocommerce-MyAccount-navigation li.is-active a i {
    color: #000;
}

/* 2. My Account Content Area */
.woocommerce-MyAccount-content {
    width: 70% !important;
    float: right !important;
}

/* 3. Dashboard Shortcuts Grid */
.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.shortcut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    gap: 15px;
}

.shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #000;
}

.shortcut-card i {
    font-size: 2rem;
    color: #000;
    margin-bottom: 5px;
}

.shortcut-card span {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-color);
}

.shortcut-card:hover span {
    color: #000;
}

/* My Account Responsive */
@media (max-width: 991px) {
    .woocommerce-MyAccount-navigation {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 40px !important;
    }

    .woocommerce-MyAccount-content {
        width: 100% !important;
        float: none !important;
    }

    .dashboard-shortcuts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-shortcuts {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SIDEBAR PRODUCT WIDGET (Son Ürünler)
   ===================================================== */
.widget_products ul.product_list_widget {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_products ul.product_list_widget li {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--border-color);
}

.widget_products ul.product_list_widget li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none;
}

.widget_products ul.product_list_widget li a {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    text-decoration: none !important;
    color: var(--text-color);
    flex: 1;
}

.widget_products ul.product_list_widget li img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.widget_products ul.product_list_widget li .product-title {
    font-family: var(--font-display);
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
    display: block;
    margin-bottom: 5px;
}

.widget_products ul.product_list_widget li .amount {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem !important;
    color: #666;
    font-weight: 500;
}

.widget_products ul.product_list_widget li del {
    font-size: 0.8rem;
    color: #999;
    margin-right: 5px;
}

.widget_products ul.product_list_widget li ins {
    text-decoration: none;
    font-weight: 700;
    color: #111;
}

/* =====================================================
   CHECKOUT PAGE DESIGN (Matches cart33.html)
   ===================================================== */

/* 1. Layout - Two Columns */
.woocommerce-checkout .cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
    padding-bottom: 120px;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .woocommerce-checkout .cart-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }

    .woocommerce-checkout .minoform-cart-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.woocommerce-checkout .checkout-content {
    width: 100%;
}

.woocommerce-checkout .cart-summary {
    background: var(--soft-gray);
    padding: 30px;
    /* Reduced from 50px */
    border: 1px solid var(--border-color);
    position: sticky;
    top: 120px;
    /* Increased to clear sticky header */
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 90;
    /* Ensure it stays above other content but below header if z-index is managed accurately */
}

@media (max-width: 768px) {
    .woocommerce-checkout .cart-summary {
        padding: 30px 15px !important;
    }
}

@media (max-width: 1024px) {
    .woocommerce-checkout .cart-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* 2. Form Sections */
.woocommerce-checkout h2.section-title-sm {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

/* Specific fix for Order Summary Title Border */
#order_review_heading {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Force Check-out Field Groups to Stack Vertically */
.checkout-billing-group,
.checkout-shipping-group,
.checkout-payment-section {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 30px;
}

.woocommerce-checkout .col2-set {
    width: 100%;
    float: none;
    display: block;
    /* Legacy fallback */
}

.woocommerce-billing-fields__field-wrapper {
    width: 100%;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
}

/* Aggressive Select2 & Overflow Fixes for Mobile */
@media (max-width: 768px) {

    .select2-container,
    .select2-container--default,
    .select2-search--dropdown,
    .select2-dropdown,
    select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .wc-block-components-checkout-step__content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix any hidden elements or woo blocks forcing width */
    .wc-block-components-address-form,
    .wc-block-components-checkout-order-summary,
    .wc-block-components-checkout-step,
    .wc-block-components-sidebar-layout,
    .woocommerce-checkout {
        width: 100vw !important;
        /* Force viewpoint width */
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .woocommerce-checkout .cart-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
}

.woocommerce-checkout .form-row {
    margin-bottom: 25px !important;
    gap: 0px !important;
    /* Matched to cart33.html */
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-input-wrapper .input-text {
    width: 100% !important;
    padding: 15px 0 !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    outline: none !important;
    transition: 0.3s !important;
    background: transparent !important;
    color: var(--text-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5 !important;
}

#order_comments {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid #ddd !important;
    padding: 15px !important;
    min-height: 100px !important;
    font-family: var(--font-body) !important;
    resize: vertical !important;
    outline: none !important;
    transition: 0.3s !important;
    border-radius: 0 !important;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce-input-wrapper .input-text:focus {
    border-bottom-color: var(--text-color) !important;
    background: transparent !important;
}

#order_comments:focus {
    border-color: var(--text-color) !important;
    background: transparent !important;
}

.woocommerce form .form-row label {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #888 !important;
    margin-bottom: 10px !important;
    /* Matched to cart33.html */
}

/* Placeholder styling */
.woocommerce form .form-row .input-text::placeholder,
.woocommerce form .form-row textarea::placeholder,
.woocommerce-input-wrapper .input-text::placeholder {
    color: #ccc !important;
}

/* Select2 Custom Styling to match Underline design */
.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    height: auto !important;
    padding: 15px 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color) !important;
    line-height: 1.5 !important;
    padding-left: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-bottom-color: var(--text-color) !important;
}



/* 4. Order Summary Widget */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: none;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none;
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.woocommerce-checkout-review-order-table th {
    text-align: left;
    color: var(--text-color);
    font-weight: 400;
}

.woocommerce-checkout-review-order-table td {
    text-align: right;
    font-weight: 600;
    color: var(--text-color);
}

.woocommerce-checkout-review-order-table .cart_item td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table .product-name {
    text-align: left;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table .product-total {
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-top: 1px solid #ddd;
    margin-top: 25px;
    padding-top: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    font-family: var(--font-display);
}

/* Fix for duplicate payment section if remove_action fails */
#order_review #payment {
    display: none !important;
}

/* 5. Payment Methods */
/* 5. Payment Methods (Restructured via JS) */
#payment {
    background: transparent !important;
    border-radius: 0;
}

#payment ul.payment_methods {
    border-bottom: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

#payment ul.payment_methods li {
    flex: 1 !important;
    min-width: 200px !important;
    padding: 25px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
    list-style: none !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-align: center !important;
    position: relative !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#payment ul.payment_methods li:hover {
    border-color: #999 !important;
}

#payment ul.payment_methods li.active {
    border-color: var(--text-color) !important;
    background: var(--text-color) !important;
    color: #fff !important;
}

#payment ul.payment_methods li input {
    /* Hide radio button visually but keep accessible */
    opacity: 0 !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

#payment ul.payment_methods li label {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    /* Matches cart33.html */
    letter-spacing: 1px !important;
    cursor: pointer !important;
    color: inherit !important;
    /* Inherit from li */
    margin: 0 !important;
    pointer-events: none !important;
    /* Let click pass to li */
}

/* Hide original payment boxes inside LI */
#payment ul.payment_methods li .payment_box {
    display: none !important;
}

/* New Container for Payment Info (Outside list) */
#payment-info-container {
    margin-bottom: 30px;
}

.cloned-payment-box {
    background: var(--soft-gray);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-top: 0;
    font-size: 0.9rem;
    color: #666;
    display: none;
    /* JS toggles this */
}

.cloned-payment-box::before {
    display: none !important;
}

.cloned-payment-box p:last-child {
    margin-bottom: 0;
}

#payment div.payment_box {
    background: var(--soft-gray);
    color: #666;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    position: relative;
}

#payment div.payment_box::before {
    display: none;
}

#payment #place_order {
    display: block;
    width: 100%;
    background: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 24px 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
    border: 1px solid var(--text-color);
    float: none;
}

#payment #place_order:hover {
    background: transparent;
    color: var(--text-color);
}

.woocommerce-terms-and-conditions-wrapper {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* Hide Privacy Policy Text */
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text {
    display: none !important;
}

/* =====================================================
   6. Custom Order Summary Widget (review-order.php)
   ===================================================== */
.summary-mini-list {
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

/* Ensure images in summary list are visible */
.summary-item-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    display: block !important;
    margin-right: 15px;
    /* fallback spacing if grid fails */
}

.summary-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    /* separator like screenshot */
    padding-bottom: 15px;
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item-info h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.2;
    color: var(--text-color);
}

/* Hide Quantity label text "Adet:" if desired, or style it */
.summary-item-info span {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

.summary-item-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
}

/* Totals Section */
.summary-totals .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-color);
}

.summary-totals .summary-row span:first-child {
    color: #555;
    font-weight: 400;
    /* Regular weight for labels */
}

.summary-totals .summary-row span:last-child {
    font-weight: 600;
}

.summary-totals .summary-row.total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    font-family: var(--font-display);
    align-items: center;
}

.summary-totals .summary-row.total span:first-child {
    color: var(--text-color);
}

#place_order {
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    padding: 20px 0 !important;
}

/* Remove default WooCommerce styling interference */
.woocommerce-importer,
.woocommerce-order {
    display: block;
    /* Placeholder to prevent empty ruleset lint */
}

/* =====================================================
   6. Custom Order Summary Widget (review-order.php)
   ===================================================== */
.summary-mini-list {
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

/* Ensure images in summary list are visible */
.summary-item-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    display: block !important;
    margin-right: 15px;
    /* fallback spacing if grid fails */
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item-image {
    flex: 0 0 60px;
    margin-right: 15px;
}

.summary-item-info {
    flex: 1;
    margin-right: 10px;
}

.summary-item-info h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.3;
    color: #000;
}

.summary-item-info span {
    font-size: 0.75rem;
    color: #999;
    display: block;
}

.summary-item-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
    text-align: right;
    white-space: nowrap;
}

/* Totals Section */
.summary-totals .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #333;
}

.summary-totals .summary-row span:first-child {
    color: #333;
    font-weight: 400;
}

.summary-totals .summary-row span:last-child {
    font-weight: 400;
    color: #333;
    text-align: right;
}

/* Fix for Shipping Row Alignment - Now using div structure */
.summary-totals .woocommerce-shipping-totals.shipping {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
    align-items: center;
}

.summary-totals .woocommerce-shipping-totals.shipping span:first-child {
    color: #333;
    font-weight: 400;
}

.summary-totals .woocommerce-shipping-totals.shipping span:last-child {
    font-weight: 400;
    color: #333;
    text-align: right;
}

/* Hide radio inputs if single method */
.summary-totals .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-totals .woocommerce-shipping-methods li {
    margin: 0;
}

.summary-totals .summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    font-family: var(--font-display);
    align-items: center;
}

.summary-totals .summary-row.total span:first-child {
    color: #000;
    font-weight: 600;
}

/* Place Order Button - Black, Full Width */
#place_order {
    background-color: #111 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    padding: 18px 0 !important;
    border-radius: 0 !important;
    border: none !important;
    margin-top: 20px !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    transition: opacity 0.3s;
}

#place_order:hover {
    opacity: 0.9;
    background-color: #000 !important;
}

/* Payment Methods Mobile Responsive */
@media (max-width: 768px) {
    #payment ul.payment_methods {
        flex-direction: column !important;
        gap: 15px !important;
    }

    #payment ul.payment_methods li {
        width: 100% !important;
        min-width: 100% !important;
        padding: 20px !important;
    }

    .cloned-payment-box {
        padding: 25px !important;
        font-size: 0.85rem !important;
    }

    .woocommerce-checkout .cart-summary {
        padding: 30px !important;
    }
}

/* =====================================================
   THANKYOU / ORDER RECEIVED PAGE
   ===================================================== */

/* Thank You Message */
.thankyou-custom {
    max-width: var(--container-width, 1400px);
    margin: 0 auto;
    padding: 0 30px 120px;
}

.thankyou-message {
    text-align: center;
    margin-bottom: 60px;
}

.thankyou-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 20px;
    display: block;
}

.thankyou-message h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--wc-text);
}

.thankyou-message p {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Order Info Grid */
.thankyou-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--wc-soft, #f8f8f8);
    border: 1px solid var(--wc-border, #e8e8e8);
    text-align: center;
}

.thankyou-info-item h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.thankyou-info-item p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wc-text, #111);
    word-break: break-word;
}

/* ---- Two-column grid: Order Details + Addresses ---- */
.thankyou-details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .thankyou-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left column: Order details table */
.thankyou-details-left {
    min-width: 0;
}

/* Right column: Addresses */
.thankyou-details-right {
    min-width: 0;
}

/* Style the order details title */
.thankyou-custom .woocommerce-order-details__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--wc-text, #111);
    margin-top: 0;
}

/* Order table styling */
.thankyou-custom .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.thankyou-custom .woocommerce-table--order-details th,
.thankyou-custom .woocommerce-table--order-details td {
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--wc-border, #e8e8e8) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    vertical-align: middle;
}

.thankyou-custom .woocommerce-table--order-details thead th {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wc-text, #111);
}

.thankyou-custom .woocommerce-table--order-details tbody td {
    color: #555;
}

.thankyou-custom .woocommerce-table--order-details tbody .product-name {
    font-weight: 600;
    color: var(--wc-text, #111);
}

.thankyou-custom .woocommerce-table--order-details tbody .product-name a {
    color: var(--wc-text, #111);
    text-decoration: none;
}

.thankyou-custom .woocommerce-table--order-details tbody .product-name strong {
    font-weight: 400;
    color: #999;
}

.thankyou-custom .woocommerce-table--order-details tfoot th {
    color: #555;
    font-weight: 400;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.thankyou-custom .woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 600;
}

.thankyou-custom .woocommerce-table--order-details tfoot tr:last-child th,
.thankyou-custom .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wc-text, #111);
    border-top: 2px solid var(--wc-text, #111) !important;
    border-bottom: none !important;
    padding-top: 25px !important;
    font-family: var(--font-display);
    text-transform: uppercase;
}

/* Customer Details - Stacked Addresses */
.customer-details-stacked {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 0 !important;
}

.address-box-custom {
    background: var(--wc-soft, #f8f8f8);
    padding: 30px 35px;
    border: 1px solid var(--wc-border, #e8e8e8);
}

.address-box-title {
    font-family: var(--font-display) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 18px !important;
    margin-top: 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wc-border, #e8e8e8);
    color: var(--wc-text, #111);
}

.address-box-custom address {
    font-style: normal;
    line-height: 1.8;
    color: #555;
    font-size: 0.9rem;
}

.address-box-custom address p {
    margin-bottom: 5px;
}

.address-box-custom address strong {
    color: var(--wc-text, #111);
}

/* ---- BACS Bank Details Section ---- */
.thankyou-custom .woocommerce-bacs-bank-details {
    margin-top: 0;
    margin-bottom: 50px;
}

.thankyou-custom .wc-bacs-bank-details-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--wc-text, #111);
    margin-top: 0;
}

.thankyou-custom .wc-bacs-bank-details-account-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--wc-text, #111);
}

.thankyou-custom ul.bacs_details,
.thankyou-custom ul.wc-bacs-bank-details {
    list-style: none !important;
    padding: 30px 35px !important;
    margin: 0 0 30px 0 !important;
    background: var(--wc-soft, #f8f8f8) !important;
    border: 1px solid var(--wc-border, #e8e8e8) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.thankyou-custom ul.bacs_details li,
.thankyou-custom ul.wc-bacs-bank-details li,
.thankyou-custom .woocommerce-bacs-bank-details ul.order_details li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    padding: 12px 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--wc-border, #e8e8e8) !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    color: #666 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.thankyou-custom ul.bacs_details li:last-child,
.thankyou-custom ul.wc-bacs-bank-details li:last-child,
.thankyou-custom .woocommerce-bacs-bank-details ul.order_details li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.thankyou-custom ul.bacs_details li:first-child,
.thankyou-custom ul.wc-bacs-bank-details li:first-child,
.thankyou-custom .woocommerce-bacs-bank-details ul.order_details li:first-child {
    padding-top: 0 !important;
}

.thankyou-custom ul.bacs_details li strong,
.thankyou-custom ul.wc-bacs-bank-details li strong,
.thankyou-custom .woocommerce-bacs-bank-details ul.order_details li strong {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--wc-text, #111) !important;
    font-family: var(--font-body) !important;
    letter-spacing: 0 !important;
    display: inline !important;
    text-transform: none !important;
}

/* Continue Shopping Button */
.thankyou-continue-btn {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    color: var(--wc-text, #111);
    border: 2px solid var(--wc-text, #111);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    margin-top: 40px;
    transition: 0.3s;
}

.thankyou-continue-btn:hover {
    background: var(--wc-text, #111);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .thankyou-custom {
        padding: 0 15px 80px;
    }

    .thankyou-message h2 {
        font-size: 1.5rem;
    }

    .thankyou-info-grid {
        grid-template-columns: 1fr;
        padding: 25px;
        text-align: left;
    }

    .thankyou-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ddd;
        padding-bottom: 12px;
    }

    .thankyou-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .thankyou-info-item h4 {
        margin-bottom: 0;
    }

    .address-box-custom {
        padding: 20px;
    }

    .thankyou-continue-btn {
        width: 100%;
        text-align: center;
        padding: 15px 30px;
    }

    .thankyou-custom ul.bacs_details {
        padding: 20px;
    }
}

/* --- Variable Product Fixes (Variation Swatches Plugin Support) --- */

/* 1. Reset the conflicting 'form.cart' style from style.css */
.woocommerce div.product form.cart.variations_form,
.variations_form.cart {
    display: block !important;
    height: auto !important;
    margin-bottom: 30px !important;
}

/* 2. Apply the flex layout to the inner container instead */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    height: 55px !important;
    width: 100% !important;
    margin-top: 20px;
}

/* 3. Style Quantity Input */
.woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    margin: 0 !important;
    height: 100% !important;
    display: flex !important;
    border: 1px solid var(--border-color) !important;
}

/* 4. Style Add to Cart Button */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
    height: 100% !important;
    padding: 0 30px !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--text-color) !important;
    color: #fff !important;
    border: 1px solid var(--text-color) !important;
    transition: all 0.3s ease !important;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    background: transparent !important;
    color: var(--text-color) !important;
}

/* 5. Disable Swatches Button */
.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #ccc !important;
    border-color: #ccc !important;
    color: #fff !important;
}

/* 6. Fix for Variation Price */
.woocommerce-variation-price {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* =====================================================
   SHOP FILTER - COLOR SWATCHES
   ===================================================== */
.color-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-filter-list li {
    margin: 0;
}

.color-filter-list a {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 0 2px #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.color-filter-list a:hover {
    transform: scale(1.1);
    box-shadow: inset 0 0 0 2px #fff, 0 2px 5px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

.color-filter-list a.active {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--text-color);
    transform: scale(1.1);
    border-color: var(--text-color);
}

/* Tooltip on hover */
.color-filter-list a::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
    z-index: 10;
    font-family: var(--font-body);
}

.color-filter-list a:hover::after {
    opacity: 1;
}

/* Mobile Popup Color Filter */
.popup-content .color-filter-list {
    justify-content: center;
    margin-bottom: 20px;
}

/* =====================================================
   MOBILE SHOP RESPONSIVENESS
   ===================================================== */
@media (max-width: 768px) {

    /* Container Padding */
    .woocommerce-shop .container,
    .woocommerce.archive .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Force 2 Columns on Mobile */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    /* Fix Product Details */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.85rem !important;
    }

    /* Hide Sidebar if not in off-canvas (Assuming sidebar is #secondary or similar) */
    /* Only hide desktop sidebar wrapper if it exists and isn't the mobile filter */
    .shop-sidebar-desktop {
        display: none !important;
    }

    /* Ensure images cover correctly */
    .woocommerce ul.products li.product a img {
        height: 200px !important;
        /* Fixed height for consistency */
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {

    /* Hide Desktop Sidebar explicitly */
    .shop-sidebar {
        display: none !important;
    }

    /* Adjust main content width if it was calc() */
    .shop-products-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Ensure no horizontal scroll */
    body,
    html {
        overflow-x: hidden;
    }
}

/* =====================================================
   MOBILE SHOP LAYOUT FIX (FINAL)
   ===================================================== */
@media (max-width: 768px) {

    /* Hide Desktop Sidebar */
    .sidebar-filters.desktop-only,
    .shop-sidebar,
    .shop-sidebar-desktop {
        display: none !important;
    }

    /* Layout Reset */
    .products-layout {
        display: block !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .products-content {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Product Grid - 2 Columns */
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    /* Product Image Height Control */
    .woocommerce ul.products li.product a img,
    ul.products li.product a img {
        height: 180px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    /* Toolbar */
    .toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .woocommerce-ordering,
    .woocommerce-result-count {
        width: 100%;
    }

    .orderby {
        width: 100%;
    }
}

/* Mobile Grid Fix for specific theme classes */
@media (max-width: 768px) {

    .products-grid-3col,
    .products-grid-4col,
    .products-grid-2col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .products-grid-3col>div,
    .products-grid-3col>li,
    .products-grid-4col>div,
    .products-grid-4col>li {
        width: 100% !important;
        max-width: 100% !important;
        flex: auto !important;
    }
}

/* =====================================================
   ÜRÜN BOYUTLARI — Frontend Dimensions Table
   ===================================================== */
.dims-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dims-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.dims-table thead th {
    background: var(--text-color, #111);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 15px;
    text-align: left;
    white-space: nowrap;
}

.dims-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
    white-space: nowrap;
}

.dims-table tbody tr:last-child td {
    border-bottom: none;
}

.dims-table tbody tr:hover td {
    background: #fafafa;
}

/* Mobile: Card layout for dimensions table */
@media (max-width: 768px) {
    .dims-table thead {
        display: none;
    }

    .dims-table,
    .dims-table tbody,
    .dims-table tr,
    .dims-table td {
        display: block;
        width: 100%;
    }

    .dims-table tbody tr {
        background: #fafafa;
        padding: 15px;
        margin-bottom: 12px;
        border: 1px solid #eee;
    }

    .dims-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .dims-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e8e8e8;
        white-space: normal;
    }

    .dims-table tbody td:last-child {
        border-bottom: none;
    }

    .dims-table tbody td::before {
        content: attr(data-label);
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #111;
        flex-shrink: 0;
        margin-right: 15px;
    }
}