/* ═══════════════════════════════════════════════════════════════
   GADGETOPIAH — SHOP PAGE CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── Shop Page Header ────────────────────────────────────────── */
.shop-page-header {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    padding: 52px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.shop-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0,115,230,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.shop-page-header .page-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

/* Category Nav in header */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.cat-item:hover, .cat-item.current-cat {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.cat-item i { font-size: 22px; }
.cat-info { text-align: left; }
.cat-name { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cat-count { display: block; font-size: 11px; opacity: 0.6; margin-top: 2px; }

/* ── Shop Layout ─────────────────────────────────────────────── */
.shop-content-section {
    padding: 48px 0;
    background: var(--bg-color);
}
.layout-sidebar-left {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
.layout-full { display: block; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.shop-sidebar {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}
.widget { margin-bottom: 36px; }
.widget-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--primary-color);
}

/* Price Filter */
.price-inputs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.price-range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
    margin: 8px 0;
}
.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,115,230,0.35);
}
.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
}
.price-label { font-size: 13px; color: var(--text-color); font-weight: 600; }
.price-sep { color: var(--text-muted); }

.btn-filter {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
    margin-top: 6px;
}
.btn-filter:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Category Filter List */
.filter-list { list-style: none; }
.filter-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.filter-list li a {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.filter-list li a:hover, .filter-list li a.active { color: var(--primary-color); font-weight: 600; }
.count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

/* Color Swatches */
.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Checkbox List */
.checkbox-list li { margin-bottom: 10px; }
.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}
.checkbox-list label:hover { color: var(--text-color); }
.checkbox-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* Top Rated Widget */
.mini-product-list { list-style: none; }
.mini-product-list li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.mini-product-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mini-product-list img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--bg-light);
    padding: 6px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.mini-product-info h5 { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.4; }
.mini-product-info h5 a:hover { color: var(--primary-color); }
.mini-product-info .price { font-size: 14px; font-weight: 700; }
.mini-product-info .star-rating { font-size: 11px; margin-bottom: 4px; }

/* ── Main Shop Area ──────────────────────────────────────────── */
.shop-main { flex: 1; min-width: 0; }

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
    flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 16px; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
}
.woocommerce-breadcrumb a { color: var(--text-color); }
.woocommerce-breadcrumb a:hover { color: var(--primary-color); }
.woocommerce-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* Result count */
.woocommerce-result-count {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Ordering */
.woocommerce-ordering {
    margin: 0;
}
.woocommerce-ordering select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    color: var(--text-color);
    background: #fff;
    cursor: pointer;
}

/* View Mode Buttons */
.view-modes { display: flex; gap: 6px; }
.view-modes a {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.view-modes a:hover, .view-modes a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Shop grid overrides */
.shop-grid { margin-bottom: 40px; }
.shop-card .product-image { background: var(--bg-light); }

/* Active filters bar */
.woocommerce-widget-layered-nav-list { list-style: none; }
.woocommerce .woocommerce-widget-layered-nav-list__item a { font-size: 13px; color: var(--text-light); }
.woocommerce .woocommerce-widget-layered-nav-list__item a:hover { color: var(--primary-color); }

/* No products found */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
}
.no-products-found p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Partners Row at bottom of shop */
.partners-row {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}
.partners-carousel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.partners-carousel img {
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.3s, opacity 0.3s;
    max-height: 36px;
}
.partners-carousel img:hover { filter: none; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Cart Page Header ────────────────────────────────────────── */
.cart-page-header {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    padding: 48px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cart-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,141,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cart-page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}
.cart-breadcrumbs {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 2;
}
.cart-breadcrumbs a { color: rgba(255,255,255,0.8); }
.cart-breadcrumbs a:hover { color: #fff; }
.cart-breadcrumbs .sep { margin: 0 8px; opacity: 0.4; }

/* ── Cart Section ────────────────────────────────────────────── */
.cart-section {
    padding: 52px 0;
    min-height: 400px;
}

/* ── Cart Layout (two-column) ────────────────────────────────── */
.cart-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.cart-items-column {
    flex: 1;
    min-width: 0;
}
.cart-totals-column {
    width: 360px;
    flex-shrink: 0;
}

/* ── Cart Table ──────────────────────────────────────────────── */
.cart-table-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.cart-table-wrap table.cart {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.cart-table-wrap table.cart thead {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.cart-table-wrap table.cart thead th {
    padding: 16px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    text-align: left;
    border: none;
}
.cart-table-wrap table.cart tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.cart-table-wrap table.cart tbody tr:last-child { border-bottom: none; }
.cart-table-wrap table.cart tbody tr:hover { background: #fafafa; }
.cart-table-wrap table.cart td {
    padding: 20px 18px;
    vertical-align: middle;
    border: none;
}

/* Product Thumbnail */
.cart-item-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Product Name */
.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
}
.cart-item-title:hover { color: var(--primary-color); }
.cart-item-info dl {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.cart-item-info dt {
    font-weight: 600;
    color: var(--text-light);
    display: inline;
}
.cart-item-info dd {
    display: inline;
    margin: 0;
}
.backorder-notification {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* Price & Subtotal */
.cart-item-price,
.cart-item-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}
.cart-item-subtotal {
    color: var(--primary-color);
}

/* Quantity */
.cart-qty .qty-wrap {
    display: inline-flex;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-qty .qty-wrap input.qty {
    width: 48px;
    height: 100%;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    outline: none;
    background: #fff;
    -moz-appearance: textfield;
}
.cart-qty .qty-wrap input.qty::-webkit-outer-spin-button,
.cart-qty .qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-qty .qty-minus,
.cart-qty .qty-plus {
    width: 38px;
    height: 100%;
    border: none;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cart-qty .qty-minus:hover,
.cart-qty .qty-plus:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Remove Button */
.remove-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-size: 13px;
}
.remove-item:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ── Cart Actions Bar (coupon + update) ──────────────────────── */
.cart-actions-row td {
    padding: 20px 18px !important;
    background: var(--bg-light);
}
.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.coupon-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}
.coupon-input {
    width: 220px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s;
}
.coupon-input:focus { border-color: var(--primary-color); }
.coupon-input::placeholder { color: var(--text-muted); }
.coupon-btn {
    height: 44px;
    padding: 0 24px;
    white-space: nowrap;
}
.cart-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}
.update-cart-btn {
    height: 44px;
    padding: 0 24px;
}

/* ── Cart Totals Card ────────────────────────────────────────── */
.cart-totals-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.cart-totals-card .cart_totals > h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    color: var(--text-color);
}
.cart-totals-card .cart_totals > h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
.cart_totals table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: none;
}
.cart_totals table.shop_table tbody th,
.cart_totals table.shop_table tbody td {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}
.cart_totals table.shop_table tbody th {
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    width: 40%;
}
.cart_totals table.shop_table tbody td {
    text-align: right;
    color: var(--text-light);
}
.cart_totals table.shop_table .cart-subtotal td {
    color: var(--text-color);
    font-weight: 600;
}
.cart_totals table.shop_table .order-total th,
.cart_totals table.shop_table .order-total td {
    border-bottom: none;
    padding-top: 18px;
}
.cart_totals table.shop_table .order-total td {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}
.cart_totals table.shop_table .order-total .includes_tax {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Shipping calculator inside totals */
.cart_totals .woocommerce-shipping-totals td { text-align: right; }
.cart_totals .shipping-calculator-button {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cart_totals .shipping-calculator-button:hover { color: var(--primary-hover); }
.cart_totals .shipping-calculator-form {
    margin-top: 12px;
    text-align: left;
}
.cart_totals .shipping-calculator-form select,
.cart_totals .shipping-calculator-form input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    margin-bottom: 8px;
    background: #fff;
    color: var(--text-color);
}
.cart_totals .shipping-calculator-form button {
    width: 100%;
    height: 42px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 20px;
    padding: 0;
    text-align: center;
}
.wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,141,0,0.3);
}
.wc-proceed-to-checkout .checkout-button:hover {
    background: linear-gradient(135deg, var(--primary-hover), #cc7000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,141,0,0.4);
}

/* Continue Shopping link in totals */
.cart-continue-link {
    margin-top: 16px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.cart-continue-link .action-link {
    font-size: 13px;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    font-weight: 500;
}
.cart-continue-link .action-link:hover { color: var(--primary-color); }

/* Payment methods icons */
#payment { margin-top: 16px; }
.payment-methods-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 28px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ── Empty Cart ──────────────────────────────────────────────── */
.cart-empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}
.cart-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 40px;
    color: var(--primary-color);
}
.cart-empty-state h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
}
.cart-empty-state p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── Cross Sells ─────────────────────────────────────────────── */
.cart-cross-sells {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.cart-cross-sells > h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.cart-cross-sells > h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
.cart-cross-sells ul.products {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Cart Notices (inside container via woocommerce_before_cart) ── */
.cart-section .woocommerce-message:first-child,
.cart-section .woocommerce-error:first-child,
.cart-section .woocommerce-info:first-child {
    margin-top: 0;
}
.cart-section .woocommerce-message,
.cart-section .woocommerce-error,
.cart-section .woocommerce-info {
    margin-bottom: 24px;
}

/* ── Cart Notice Styling ─────────────────────────────────────── */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info {
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.woocommerce-cart .woocommerce-message::before,
.woocommerce-cart .woocommerce-error::before,
.woocommerce-cart .woocommerce-info::before { display: none; }
.woocommerce-cart .woocommerce-message .button,
.woocommerce-cart .woocommerce-error .button,
.woocommerce-cart .woocommerce-info .button {
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
}
.woocommerce-cart .woocommerce-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.woocommerce-cart .woocommerce-message { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.woocommerce-cart .woocommerce-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── Applied Coupons ──────────────────────────────────────────── */
.woocommerce-cart .cart_totals .coupon-description {
    font-weight: 700;
    color: #15803d;
}
.cart_totals .cart-discount td { color: #15803d; }
.cart_totals .cart-discount .amount { color: #15803d; }

/* ── Topbar collapsed variant ────────────────────────────────── */
.browse-categories.collapsed {
    background: transparent !important;
    color: var(--text-color) !important;
    border-right: 1px solid var(--border-color);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .layout-sidebar-left { flex-direction: column; }
    .shop-sidebar { width: 100%; position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .widget { margin-bottom: 0; }

    /* Cart responsive */
    .cart-layout { flex-direction: column; }
    .cart-totals-column { width: 100%; }
    .cart-totals-card { position: static; }
    .cart-cross-sells ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .shop-sidebar { grid-template-columns: 1fr; }
    .shop-toolbar { flex-direction: column; align-items: flex-start; }
    .category-nav { gap: 12px; }
    .cat-item { padding: 8px 10px; }
    .cat-item i { font-size: 18px; }

    /* Cart responsive */
    .cart-section { padding: 36px 0; }
    .cart-items-column { overflow-x: auto; }
    .cart-table-wrap { min-width: 600px; }
    .cart-actions-bar { flex-direction: column; align-items: stretch; }
    .coupon-inner { width: 100%; }
    .coupon-input { flex: 1; width: auto; }
    .cart-actions-right { justify-content: center; }
    .cart-cross-sells ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .shop-page-header { padding: 36px 0 24px; }
    .shop-page-header .page-title { font-size: 28px; margin-bottom: 20px; }
    .category-nav { gap: 8px; }

    /* Cart responsive */
    .cart-empty-state { padding: 50px 20px; }
    .cart-empty-icon { width: 80px; height: 80px; font-size: 32px; }
    .cart-cross-sells ul.products { grid-template-columns: 1fr; }
    .wc-proceed-to-checkout .checkout-button { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Checkout Section ────────────────────────────────────────── */
.checkout-section {
    padding: 52px 0;
    min-height: 400px;
}

/* ── Checkout Layout (two-column) ────────────────────────────── */
.checkout-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.checkout-fields-column {
    flex: 1;
    min-width: 0;
}
.checkout-summary-column {
    width: 420px;
    flex-shrink: 0;
}

/* ── Checkout Section Titles ─────────────────────────────────── */
.checkout-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    color: var(--text-color);
}
.checkout-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ── Checkout Fields (Billing / Shipping) ────────────────────── */
.checkout-fields {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 28px;
    margin-bottom: 24px;
}
.checkout-fields .checkout-billing {
    margin-bottom: 32px;
}
.checkout-fields .checkout-shipping {
    padding-top: 4px;
}

/* Form row */
.woocommerce form .form-row {
    padding: 0;
    margin-bottom: 16px;
}
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 48%;
}
.woocommerce form .form-row-wide {
    width: 100%;
}

/* Labels */
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    display: block;
}
.woocommerce form .form-row label .required {
    color: #dc2626;
    border: none;
}

/* Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-color);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    line-height: 46px;
}
.woocommerce form .form-row textarea {
    height: 100px;
    line-height: 1.5;
    padding: 12px 14px;
    resize: vertical;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,141,0,0.1);
}

/* Select2 styling */
.woocommerce form .form-row .select2-container .select2-selection--single {
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 14px;
}
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1;
}
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
}
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted);
}

/* Checkbox / radio inputs */
.woocommerce form .form-row input[type="checkbox"],
.woocommerce form .form-row input[type="radio"] {
    accent-color: var(--primary-color);
    margin-right: 6px;
}

/* Create account checkbox */
.woocommerce form .form-row.create-account {
    margin-top: 8px;
}

/* ── Login / Coupon forms (top of checkout) ──────────────────── */
.woocommerce form.checkout_coupon,
.woocommerce form.login {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 0 0 16px;
    background: var(--bg-light);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.woocommerce form.checkout_coupon p,
.woocommerce form.login p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}
.woocommerce form.checkout_coupon .form-row,
.woocommerce form.login .form-row {
    margin: 0;
}
.woocommerce form.checkout_coupon .form-row input.input-text,
.woocommerce form.login .form-row input.input-text {
    width: 200px;
    height: 42px;
}
.woocommerce form.checkout_coupon button,
.woocommerce form.login button {
    height: 42px;
    padding: 0 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--primary-color);
    color: #fff;
}
.woocommerce form.checkout_coupon button:hover,
.woocommerce form.login button:hover {
    background: var(--primary-hover);
}

/* ── Order Summary Card ──────────────────────────────────────── */
.checkout-summary-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 28px;
    position: sticky;
    top: 100px;
}

/* Order review table */
.checkout-summary-card table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    border: none;
    border-radius: 0;
}
.checkout-summary-card table.shop_table thead th {
    padding: 12px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    background: none;
}
.checkout-summary-card table.shop_table tbody td,
.checkout-summary-card table.shop_table tfoot td,
.checkout-summary-card table.shop_table tfoot th {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
    text-align: left;
}
.checkout-summary-card table.shop_table tbody td.product-name {
    font-weight: 600;
    color: var(--text-color);
}
.checkout-summary-card table.shop_table tbody td.product-total {
    text-align: right;
    color: var(--text-color);
    font-weight: 600;
}
.checkout-summary-card table.shop_table tbody .cart_item:last-child td {
    border-bottom: 1px solid var(--border-color);
}
.checkout-summary-card table.shop_table tfoot th {
    font-weight: 600;
    color: var(--text-color);
}
.checkout-summary-card table.shop_table tfoot td {
    text-align: right;
    color: var(--text-light);
}
.checkout-summary-card table.shop_table tfoot .cart-subtotal td {
    color: var(--text-color);
    font-weight: 600;
}
.checkout-summary-card table.shop_table tfoot .order-total th,
.checkout-summary-card table.shop_table tfoot .order-total td {
    padding-top: 16px;
    border-bottom: none;
    font-size: 18px;
    font-weight: 800;
}
.checkout-summary-card table.shop_table tfoot .order-total td {
    color: var(--primary-color);
}

/* ── Payment Methods ─────────────────────────────────────────── */
.woocommerce-checkout-payment {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}
.woocommerce-checkout-payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.woocommerce-checkout-payment ul.payment_methods li {
    margin-bottom: 10px;
}
.woocommerce-checkout-payment ul.payment_methods li:last-child {
    margin-bottom: 0;
}
.woocommerce-checkout-payment ul.payment_methods li input {
    accent-color: var(--primary-color);
    margin-right: 8px;
}
.woocommerce-checkout-payment ul.payment_methods li label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
}
.woocommerce-checkout-payment ul.payment_methods li .payment_box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 8px;
    margin-left: 24px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}
.woocommerce-checkout-payment ul.payment_methods li .payment_box p {
    margin: 0;
}
.woocommerce-checkout-payment .place-order {
    text-align: center;
}
.woocommerce-checkout-payment .place-order .button {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,141,0,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.woocommerce-checkout-payment .place-order .button:hover {
    background: linear-gradient(135deg, var(--primary-hover), #cc7000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,141,0,0.4);
}

/* Payment method icons */
.woocommerce-checkout-payment ul.payment_methods li img {
    max-height: 24px;
    margin-left: 8px;
}

/* Privacy / TOS */
.woocommerce-checkout-payment .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    text-align: left;
}
.woocommerce-checkout-payment .woocommerce-privacy-policy-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ── Login Required Message ──────────────────────────────────── */
.checkout-login-required {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-size: 14px;
    color: #c2410c;
    text-align: center;
}

/* ── Ship to different address checkbox ──────────────────────── */
.woocommerce-shipping-fields {
    margin-top: 4px;
}
.woocommerce-shipping-fields .ship-to-different-address {
    margin-bottom: 16px;
}
.woocommerce-shipping-fields .ship-to-different-address input[type="checkbox"] {
    accent-color: var(--primary-color);
    margin-right: 8px;
}
.woocommerce-shipping-fields .ship-to-different-address label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
}
.woocommerce-shipping-fields .shipping_address {
    padding-top: 4px;
}

/* ── Checkout Notices ────────────────────────────────────────── */
.checkout-section .woocommerce-info,
.checkout-section .woocommerce-message,
.checkout-section .woocommerce-error {
    margin-bottom: 24px;
}

/* ── Responsive Checkout ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .checkout-layout { flex-direction: column; }
    .checkout-summary-column { width: 100%; }
    .checkout-summary-card { position: static; }
}
@media (max-width: 768px) {
    .checkout-section { padding: 36px 0; }
    .checkout-fields { padding: 20px; }
    .checkout-summary-card { padding: 20px; }
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last { width: 100%; }
    .woocommerce form.checkout_coupon .form-row input.input-text { width: 100%; }
}
@media (max-width: 480px) {
    .checkout-section { padding: 24px 0; }
}
