/* ============================================
   SHIKO THEME - WOOCOMMERCE OVERRIDES
   v1.6.1.5 — Full UX overhaul
   ============================================ */

/* --- General WooCommerce form styling --- */
body.shiko-theme .woocommerce form .form-row { margin-bottom: 16px; }
body.shiko-theme .woocommerce form .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--shiko-text);
}
body.shiko-theme .woocommerce form .form-row .required { color: var(--shiko-accent); }

body.shiko-theme .woocommerce form .form-row input.input-text,
body.shiko-theme .woocommerce form .form-row textarea,
body.shiko-theme .woocommerce form .form-row select,
body.shiko-theme .woocommerce .select2-container--default .select2-selection--single,
body.shiko-theme .woocommerce-page .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius);
    background: var(--shiko-input-bg);
    color: var(--shiko-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    height: auto;
    line-height: 1.5;
}

body.shiko-theme .woocommerce form .form-row input.input-text:focus,
body.shiko-theme .woocommerce form .form-row textarea:focus,
body.shiko-theme .woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--shiko-accent);
    box-shadow: 0 0 0 3px rgba(228, 3, 3, 0.1);
}

/* Select2 styling */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    background: var(--shiko-input-bg) !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: var(--shiko-radius) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--shiko-text) !important;
    line-height: 1.5 !important;
    padding: 0 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}
.select2-dropdown {
    background: var(--shiko-bg-secondary) !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: var(--shiko-radius) !important;
}
.select2-results__option {
    color: var(--shiko-text) !important;
    padding: 8px 14px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--shiko-accent) !important;
    color: #fff !important;
}



/* ===================================================================
   CART PAGE — v1.9.18 Complete rewrite
   Overrides WooCommerce responsive table & smallscreen styles
   =================================================================== */

/* Container */
body.shiko-theme.woocommerce-cart .woocommerce {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 10px 80px;
}

/* Hide default title */
body.shiko-theme.woocommerce-cart .entry-title,
body.shiko-theme.woocommerce-cart .page-title {
    display: none !important;
}

/* --- Kill WC responsive table ::before labels --- */
body.shiko-theme.woocommerce-cart table.shop_table td::before {
    display: none !important;
}

/* --- Table → card layout on ALL screens --- */
body.shiko-theme.woocommerce-cart table.shop_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
    width: 100% !important;
}
body.shiko-theme.woocommerce-cart table.shop_table thead {
    display: none !important;
}
body.shiko-theme.woocommerce-cart table.shop_table tbody {
    display: block !important;
}

/* --- Product row = card --- */
body.shiko-theme.woocommerce-cart table.shop_table tr.cart_item,
body.shiko-theme.woocommerce-cart table.shop_table tr.woocommerce-cart-form__cart-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--shiko-bg-secondary) !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    padding-right: 30px !important; /* space for × button */
    position: relative !important;
    margin: 0 !important;
}

/* --- All cells: reset WC responsive table --- */
body.shiko-theme.woocommerce-cart table.shop_table td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    width: auto !important;
    float: none !important;
}

/* --- Remove button: × at top-right --- */
body.shiko-theme.woocommerce-cart td.product-remove {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: auto !important;
    order: 99 !important;
}
body.shiko-theme.woocommerce-cart td.product-remove a.remove {
    color: var(--shiko-text-muted) !important;
    font-size: 20px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    line-height: 1 !important;
    text-decoration: none !important;
    z-index: 8 !important;
    pointer-events: auto !important;
}
body.shiko-theme.woocommerce-cart td.product-remove a.remove:hover {
    background: rgba(228,3,3,0.1) !important;
    color: var(--shiko-accent) !important;
}

/* --- Thumbnail --- */
body.shiko-theme.woocommerce-cart td.product-thumbnail {
    width: 64px !important;
    flex-shrink: 0 !important;
    order: 1 !important;
}
body.shiko-theme.woocommerce-cart td.product-thumbnail a {
    display: block !important;
}
body.shiko-theme.woocommerce-cart td.product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid var(--shiko-border) !important;
}

/* --- Product name --- */
body.shiko-theme.woocommerce-cart td.product-name {
    flex: 1 !important;
    min-width: 0 !important;
    order: 2 !important;
}
body.shiko-theme.woocommerce-cart td.product-name a {
    color: var(--shiko-text) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: block !important;
}
body.shiko-theme.woocommerce-cart td.product-name dl.variation {
    margin: 4px 0 0 !important;
}
body.shiko-theme.woocommerce-cart td.product-name dl.variation dt,
body.shiko-theme.woocommerce-cart td.product-name dl.variation dd {
    font-size: 11px !important;
    color: var(--shiko-text-muted) !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Price --- */
body.shiko-theme.woocommerce-cart td.product-price {
    font-size: 12px !important;
    color: var(--shiko-text-muted) !important;
    order: 5 !important;
}

/* --- Quantity --- */
body.shiko-theme.woocommerce-cart td.product-quantity {
    flex-shrink: 0 !important;
    order: 3 !important;
}
body.shiko-theme.woocommerce-cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--shiko-bg-tertiary) !important;
}
body.shiko-theme.woocommerce-cart td.product-quantity .qty {
    width: 40px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    color: var(--shiko-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
}
body.shiko-theme.woocommerce-cart td.product-quantity .qty::-webkit-inner-spin-button,
body.shiko-theme.woocommerce-cart td.product-quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

/* --- Subtotal --- */
body.shiko-theme.woocommerce-cart td.product-subtotal {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--shiko-accent) !important;
    margin-left: auto !important;
    order: 4 !important;
}
body.shiko-theme.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
    color: var(--shiko-accent) !important;
}

/* --- Actions row (update cart + coupon) --- */
body.shiko-theme.woocommerce-cart table.shop_table tr td.actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 8px 0 !important;
    background: transparent !important;
    border: none !important;
}
body.shiko-theme.woocommerce-cart .coupon {
    display: flex !important;
    gap: 6px !important;
    flex: 1 !important;
}
body.shiko-theme.woocommerce-cart .coupon label {
    display: none !important;
}
body.shiko-theme.woocommerce-cart .coupon input.input-text {
    flex: 1 !important;
    padding: 10px 12px !important;
    background: var(--shiko-bg-secondary) !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: 8px !important;
    color: var(--shiko-text) !important;
    font-size: 13px !important;
    font-family: inherit !important;
}
body.shiko-theme.woocommerce-cart .coupon button,
body.shiko-theme.woocommerce-cart button[name="update_cart"] {
    padding: 10px 16px !important;
    font-size: 13px !important;
    background: var(--shiko-bg-secondary) !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: 8px !important;
    color: var(--shiko-text) !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-family: inherit !important;
}
body.shiko-theme.woocommerce-cart .coupon button:hover,
body.shiko-theme.woocommerce-cart button[name="update_cart"]:hover {
    border-color: var(--shiko-accent) !important;
    color: var(--shiko-accent) !important;
}
/* Disabled update button — subtle, not red */
body.shiko-theme.woocommerce-cart button[name="update_cart"]:disabled {
    opacity: 0.4 !important;
    cursor: default !important;
}

/* --- Cart totals card --- */
body.shiko-theme.woocommerce-cart .cart-collaterals {
    display: block !important;
    width: 100% !important;
    float: none !important;
}
body.shiko-theme.woocommerce-cart .cart_totals {
    background: var(--shiko-bg-secondary) !important;
    border: 1px solid var(--shiko-border) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    width: 100% !important;
    float: none !important;
    margin-top: 20px !important;
}
body.shiko-theme.woocommerce-cart .cart_totals h2 {
    font-size: 15px !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--shiko-border) !important;
    color: var(--shiko-text) !important;
}
body.shiko-theme.woocommerce-cart .cart_totals table {
    border: none !important;
    background: transparent !important;
}
body.shiko-theme.woocommerce-cart .cart_totals th,
body.shiko-theme.woocommerce-cart .cart_totals td {
    background: transparent !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--shiko-border) !important;
    font-size: 13px !important;
    color: var(--shiko-text-secondary) !important;
}
body.shiko-theme.woocommerce-cart .cart_totals .order-total th,
body.shiko-theme.woocommerce-cart .cart_totals .order-total td {
    font-size: 16px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding-top: 12px !important;
    color: var(--shiko-text) !important;
}
body.shiko-theme.woocommerce-cart .cart_totals .order-total td .woocommerce-Price-amount {
    color: var(--shiko-accent) !important;
}
/* Cart totals responsive table — kill labels */
body.shiko-theme.woocommerce-cart .cart_totals td::before {
    display: none !important;
}

/* --- Proceed to checkout --- */
body.shiko-theme.woocommerce-cart .wc-proceed-to-checkout a {
    display: block !important;
    padding: 14px 20px !important;
    background: var(--shiko-accent) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 12px !important;
}
body.shiko-theme.woocommerce-cart .wc-proceed-to-checkout a:hover {
    opacity: 0.9 !important;
}

/* Hide proceed button when sticky bar is visible */
body.shiko-theme.shiko-has-sticky-checkout .woocommerce-cart .wc-proceed-to-checkout {
    display: none !important;
}

/* --- Sticky checkout bar --- */
.shiko-sticky-checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--shiko-bg-secondary);
    border-top: 1px solid var(--shiko-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.shiko-sticky-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.shiko-sticky-total { flex: 1; }
.shiko-sticky-label { display: block; font-size: 11px; color: var(--shiko-text-muted); }
.shiko-sticky-amount { font-size: 20px; font-weight: 700; color: var(--shiko-accent); }
.shiko-sticky-save { display: block; font-size: 11px; color: var(--shiko-success); font-weight: 500; }
.shiko-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--shiko-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.shiko-sticky-btn:hover { opacity: 0.9; }
body.shiko-has-sticky-checkout { padding-bottom: 80px; }

/* --- WC messages (success/error/info) --- */
body.shiko-theme.woocommerce-cart .woocommerce-message,
body.shiko-theme.woocommerce-cart .woocommerce-error,
body.shiko-theme.woocommerce-cart .woocommerce-info {
    background: var(--shiko-bg-secondary) !important;
    border: 1px solid var(--shiko-border) !important;
    border-left: 4px solid var(--shiko-accent) !important;
    border-radius: 8px !important;
    color: var(--shiko-text) !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    font-size: 14px !important;
}
body.shiko-theme.woocommerce-cart .woocommerce-message a,
body.shiko-theme.woocommerce-cart .woocommerce-info a {
    color: var(--shiko-accent) !important;
}
body.shiko-theme.woocommerce-cart .woocommerce-message::before,
body.shiko-theme.woocommerce-cart .woocommerce-error::before,
body.shiko-theme.woocommerce-cart .woocommerce-info::before {
    color: var(--shiko-accent) !important;
}

/* Hide Ecomus emoji trust badges */
body.shiko-theme.shiko-cart-page-body [class*="trust"],
body.shiko-theme.shiko-cart-page-body [class*="safe-pay"] {
    display: none !important;
}

/* ===== CHECKOUT PAGE — Clean form layout ===== */

body.shiko-theme.woocommerce-checkout .woocommerce {
    max-width: var(--shiko-max-width);
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* Hide default checkout title */
body.shiko-theme.woocommerce-checkout .entry-title,
body.shiko-theme.woocommerce-checkout .page-title {
    display: none !important;
}

/* 2-column layout */
body.shiko-theme.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    max-width: 100%;
}
body.shiko-theme.woocommerce-checkout #customer_details {
    grid-column: 1;
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: 12px;
    padding: 24px;
}
body.shiko-theme.woocommerce-checkout .woocommerce-checkout-review-order {
    grid-column: 2;
    grid-row: 1 / span 10;
    position: sticky;
    top: 80px;
    height: fit-content;
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: 12px;
    padding: 24px;
}
body.shiko-theme.woocommerce-checkout #payment {
    grid-column: 1;
}
body.shiko-theme.woocommerce-checkout h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--shiko-border);
    color: var(--shiko-text);
}
body.shiko-theme.woocommerce-checkout .col2-set {
    display: block;
}

/* Form fields */
body.shiko-theme.woocommerce-checkout .form-row {
    margin-bottom: 14px;
}
body.shiko-theme.woocommerce-checkout .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--shiko-text);
    margin-bottom: 6px;
    display: block;
}
body.shiko-theme.woocommerce-checkout .form-row input.input-text,
body.shiko-theme.woocommerce-checkout .form-row select,
body.shiko-theme.woocommerce-checkout .form-row textarea {
    background: var(--shiko-input-bg);
    color: var(--shiko-text);
    border: 1px solid var(--shiko-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
}
body.shiko-theme.woocommerce-checkout .form-row input:focus,
body.shiko-theme.woocommerce-checkout .form-row select:focus {
    border-color: var(--shiko-accent);
    outline: none;
}

/* Order review table */
body.shiko-theme.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
body.shiko-theme.woocommerce-checkout-review-order-table th,
body.shiko-theme.woocommerce-checkout-review-order-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--shiko-border);
    font-size: 13px;
    color: var(--shiko-text-secondary);
}
body.shiko-theme.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--shiko-accent);
}
.shiko-checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shiko-checkout-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--shiko-border);
    flex-shrink: 0;
}

/* Place order button */
body.shiko-theme.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    background: var(--shiko-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 12px;
    transition: opacity 0.2s;
}
body.shiko-theme.woocommerce-checkout #place_order:hover {
    opacity: 0.9;
}

/* Payment methods */
body.shiko-theme.woocommerce-checkout #payment {
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: 12px;
    padding: 20px;
}
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
body.shiko-theme.woocommerce-checkout #payment li.wc_payment_method {
    padding: 12px;
    border: 1px solid var(--shiko-border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--shiko-bg-tertiary);
}
body.shiko-theme.woocommerce-checkout #payment li.wc_payment_method label {
    color: var(--shiko-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
body.shiko-theme.woocommerce-checkout #payment .payment_box {
    color: var(--shiko-text-secondary);
    font-size: 13px;
    padding: 12px 0 0;
}

/* Select2 (country) dark mode */
body.shiko-theme .select2-container--default .select2-selection--single {
    background: var(--shiko-input-bg) !important;
    border-color: var(--shiko-border) !important;
    border-radius: 8px !important;
    height: 44px !important;
}
body.shiko-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--shiko-text) !important;
    line-height: 42px !important;
    padding: 0 14px !important;
}
body.shiko-theme .select2-dropdown {
    background: var(--shiko-bg-secondary) !important;
    border-color: var(--shiko-border) !important;
}
body.shiko-theme .select2-results__option {
    color: var(--shiko-text) !important;
    padding: 8px 14px !important;
}
body.shiko-theme .select2-results__option--highlighted {
    background: var(--shiko-bg-tertiary) !important;
}
body.shiko-theme .select2-search__field {
    background: var(--shiko-input-bg) !important;
    color: var(--shiko-text) !important;
}

/* Validation */
body.shiko-theme.woocommerce-checkout .form-row.woocommerce-validated input {
    border-color: #28a745 !important;
}
body.shiko-theme.woocommerce-checkout .form-row.woocommerce-invalid input {
    border-color: #dc3545 !important;
}

/* Checkout — single column, centered */
body.shiko-theme.woocommerce-checkout form.checkout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
body.shiko-theme.woocommerce-checkout .woocommerce-checkout-review-order {
    position: static;
}
@media (max-width: 768px) {
    body.shiko-theme.woocommerce-checkout #payment {
        padding: 16px;
    }
}

/* ===== PAYMENT METHODS — Accordion ===== */
body.shiko-theme.woocommerce-checkout #payment {
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius-lg);
    padding: 24px;
    margin-top: 20px;
}

body.shiko-theme.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius);
    overflow: hidden;
}

body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li {
    border-bottom: 1px solid var(--shiko-border);
    padding: 0;
    margin: 0;
}
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li:last-child { border-bottom: none; }

body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--shiko-text);
    transition: background 0.2s;
}
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li label:hover {
    background: var(--shiko-bg-tertiary);
}

body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--shiko-accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Payment images — larger, uniform, dark-mode safe */
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li img {
    height: 40px;
    max-height: 44px;
    min-height: 36px;
    width: auto;
    max-width: 120px;
    min-width: 50px;
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    padding: 5px 8px;
    border-radius: 6px;
    vertical-align: middle;
}

/* Payment description — accordion style: hidden by default, shown on selected */
body.shiko-theme.woocommerce-checkout #payment div.payment_box {
    background: var(--shiko-bg-tertiary);
    color: var(--shiko-text-secondary);
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--shiko-border);
    margin: 0;
    display: none;
}
body.shiko-theme.woocommerce-checkout #payment div.payment_box::before { display: none; }

/* Active payment method — highlight + show description */
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li.shiko-payment-active,
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    background: var(--shiko-bg-tertiary);
}
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li.shiko-payment-active div.payment_box,
body.shiko-theme.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) div.payment_box {
    display: block;
}

/* Place order button */
body.shiko-theme.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    margin-top: 8px;
}

/* ===== ACCOUNT PAGES ===== */
body.shiko-theme .woocommerce-account .woocommerce {
    max-width: var(--shiko-max-width);
    margin: 0 auto;
    padding: 32px 20px 60px;
}

body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius-lg);
    overflow: hidden;
}

body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--shiko-border);
}
body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }

body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    color: var(--shiko-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.shiko-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--shiko-bg-tertiary);
    color: var(--shiko-accent);
}

body.shiko-theme .woocommerce-account .woocommerce-MyAccount-content {
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius-lg);
    padding: 32px;
    min-height: 300px;
}

@media (min-width: 769px) {
    .woocommerce-account .woocommerce {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 24px;
        align-items: start;
    }
    .woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
    .woocommerce-account .woocommerce-MyAccount-navigation { position: sticky; top: 90px; }
}

body.shiko-theme .woocommerce-account .woocommerce-form-login,
body.shiko-theme .woocommerce-account .woocommerce-form-register {
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius-lg);
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
}

body.shiko-theme .woocommerce-account .u-columns { justify-content: center; }

/* Order status badges */
body.shiko-theme .woocommerce-orders-table__cell-order-status mark {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--shiko-bg-tertiary);
    color: var(--shiko-text-secondary);
}
body.shiko-theme .woocommerce-orders-table__cell-order-status mark.order-status--completed { background: #D1FAE5; color: #065F46; }
body.shiko-theme .woocommerce-orders-table__cell-order-status mark.order-status--processing { background: #DBEAFE; color: #1E40AF; }
body.shiko-theme .woocommerce-orders-table__cell-order-status mark.order-status--on-hold { background: #FEF3C7; color: #92400E; }
body.shiko-theme .woocommerce-orders-table__cell-order-status mark.order-status--cancelled { background: #FEE2E2; color: #991B1B; }

/* ===== SINGLE PRODUCT PAGE — Revamped v1.6.3 ===== */

/* PDP Container — reset WC defaults */
.shiko-pdp {
    max-width: var(--shiko-max-width);
    margin: 0 auto;
}
/* Kill WC default float layout */
.shiko-pdp div.images,
.shiko-pdp .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    opacity: 1 !important;
}
.shiko-pdp .summary.entry-summary {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}
.shiko-pdp .woocommerce-tabs {
    clear: none !important;
}

/* Hero: 2-column grid */
.shiko-pdp-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1.12fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 18px;
}

/* Gallery — minimal approach: DON'T touch FlexSlider internals */
.shiko-pdp-gallery {
    position: sticky;
    top: 76px;
}

/* Kill WC default float/width, force opacity visible */
.shiko-pdp-gallery .woocommerce-product-gallery,
.shiko-pdp-gallery .images {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    opacity: 1 !important;
    position: relative;
}

/* FlexSlider viewport — rounded, bordered container */
.shiko-pdp-gallery .flex-viewport {
    border-radius: var(--shiko-radius-lg);
    border: 1px solid var(--shiko-border);
    background: var(--shiko-bg-tertiary);
}

/* Single-image (no FlexSlider) — style the image div directly */
.shiko-pdp-gallery .woocommerce-product-gallery--without-images .woocommerce-product-gallery__image,
.shiko-pdp-gallery .woocommerce-product-gallery:not(.woocommerce-product-gallery--with-images) .woocommerce-product-gallery__image {
    border-radius: var(--shiko-radius-lg);
    border: 1px solid var(--shiko-border);
    background: var(--shiko-bg-tertiary);
    overflow: hidden;
}

/* Product image — fill width, let height be natural */
.shiko-pdp-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sale badge */
.shiko-pdp-gallery .onsale,
.shiko-pdp .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

/* Zoom trigger icon */
.shiko-pdp-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.shiko-pdp-gallery .woocommerce-product-gallery__trigger:hover {
    opacity: 1;
}

/* Thumbnails (<ol> from FlexSlider) */
.shiko-pdp-gallery .flex-control-thumbs {
    display: flex !important;
    gap: 8px;
    margin: 10px 0 0 !important;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}
.shiko-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 56px;
    width: 56px !important;
    margin: 0 !important;
}
.shiko-pdp-gallery .flex-control-thumbs li img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent !important;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.5;
    display: block;
}
.shiko-pdp-gallery .flex-control-thumbs li img:hover,
.shiko-pdp-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--shiko-accent) !important;
    opacity: 1;
}

/* Summary */
.shiko-pdp-summary {
    padding: 0 !important;
}

.shiko-pdp-category {
    font-size: 11px;
    color: var(--shiko-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.shiko-pdp-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--shiko-text);
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.2;
}

.shiko-pdp-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--shiko-accent);
    margin-bottom: 12px;
}
.shiko-pdp-price del {
    color: var(--shiko-text-muted);
    font-weight: 400;
    font-size: 1rem;
}
.shiko-pdp-price ins {
    text-decoration: none;
    color: var(--shiko-accent);
}
.shiko-pdp-price .woocommerce-Price-amount { color: inherit; }

.shiko-pdp-excerpt {
    color: var(--shiko-text-secondary);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--shiko-border);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shiko-pdp-excerpt p { margin: 0 0 6px; }
.shiko-pdp-excerpt p:last-child { margin-bottom: 0; }

.shiko-pdp-summary .variations_form table.variations,
.shiko-pdp-summary form.cart table.variations {
    margin-bottom: 0 !important;
}

.shiko-pdp-summary .woocommerce-variation-add-to-cart,
.shiko-pdp-summary .single_variation_wrap {
    margin-top: 8px;
}

/* Trust Badges */
.shiko-pdp-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--shiko-border);
}
.shiko-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--shiko-text-secondary);
    font-weight: 500;
}
.shiko-trust-item svg {
    width: 16px;
    height: 16px;
    stroke: #28a745;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Add to cart form inside summary */
.shiko-pdp-summary form.cart {
    margin-bottom: 0 !important;
}
.shiko-pdp-summary .variations {
    margin-bottom: 10px;
}
.shiko-pdp-summary .variations td,
.shiko-pdp-summary .variations th {
    background: transparent;
    border: none;
    padding: 6px 0;
}
.shiko-pdp-summary .variations td.label label {
    font-size: 13px;
    font-weight: 600;
    color: var(--shiko-text);
}
.shiko-pdp-summary .variations td.value select {
    background: var(--shiko-input-bg);
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius);
    padding: 10px 14px;
    color: var(--shiko-text);
    width: 100%;
    font-size: 14px;
}
/* Add-to-cart row: qty beside button */
.shiko-pdp-summary .cart,
body.shiko-theme .product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-top: 10px;
}
.shiko-pdp-summary .single_add_to_cart_button {
    flex: 1 !important;
    width: auto !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700;
    border-radius: var(--shiko-radius) !important;
    margin-top: 0 !important;
}
/* Show qty with +/- wrapper */
.shiko-pdp-summary .quantity,
body.shiko-theme .product form.cart .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--shiko-border, #333) !important;
    border-radius: var(--shiko-radius, 8px) !important;
    overflow: hidden !important;
    background: var(--shiko-bg-tertiary, #1a1a1a) !important;
}
/* +/- buttons injected by JS */
.shiko-qty-btn {
    width: 36px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--shiko-text, #fff);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.shiko-qty-btn:hover {
    background: rgba(255,255,255,0.08);
}
.shiko-qty-btn:active {
    background: rgba(255,255,255,0.12);
}
body.shiko-theme .product .quantity .qty {
    width: 40px !important;
    height: 42px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid var(--shiko-border, #333) !important;
    border-right: 1px solid var(--shiko-border, #333) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--shiko-text, #fff) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
}
/* Variation price update */
.shiko-pdp-summary .woocommerce-variation-price {
    margin-bottom: 12px;
}
.shiko-pdp-summary .woocommerce-variation-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--shiko-accent);
}
/* Reset variations link */
.shiko-pdp-summary .reset_variations {
    font-size: 13px;
    color: var(--shiko-text-muted);
    margin-left: 8px;
}

/* ── Collapsible Accordion Sections ── */
.shiko-pdp-section {
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--shiko-bg-secondary);
}

.shiko-pdp-accordion {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--shiko-text);
    font-family: inherit;
    text-align: left;
    transition: background 0.2s;
}
.shiko-pdp-accordion:hover {
    background: var(--shiko-bg-tertiary);
}
.shiko-pdp-accordion svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-left: auto;
    transition: transform 0.25s ease;
}
.shiko-pdp-accordion[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.shiko-pdp-review-count {
    font-size: 13px;
    color: var(--shiko-text-muted);
    font-weight: 400;
}

.shiko-pdp-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.shiko-pdp-accordion-body.open {
    max-height: 5000px;
}

.shiko-pdp-accordion-inner {
    padding: 0 20px 20px;
    color: var(--shiko-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}
.shiko-pdp-accordion-inner p {
    margin: 0 0 8px;
}
.shiko-pdp-accordion-inner p:last-child {
    margin-bottom: 0;
}
.shiko-pdp-accordion-inner table {
    width: 100%;
    border-collapse: collapse;
}
.shiko-pdp-accordion-inner table th,
.shiko-pdp-accordion-inner table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--shiko-border);
    font-size: 14px;
    text-align: left;
    background: transparent;
}
.shiko-pdp-accordion-inner table th {
    color: var(--shiko-text-muted);
    font-weight: 500;
    width: 35%;
}
.shiko-pdp-accordion-inner table td p {
    margin: 0;
}

/* ── Related / Upsell Products ── */
.shiko-pdp .related.products,
.shiko-pdp .upsells.products {
    margin-top: 24px;
    clear: both;
}
.shiko-pdp .related.products > h2,
.shiko-pdp .upsells.products > h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--shiko-text);
}
.shiko-pdp .related.products ul.products,
.shiko-pdp .upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.shiko-pdp .related.products ul.products::before,
.shiko-pdp .related.products ul.products::after,
.shiko-pdp .upsells.products ul.products::before,
.shiko-pdp .upsells.products ul.products::after {
    display: none !important;
}
.shiko-pdp .related.products ul.products li.product,
.shiko-pdp .upsells.products ul.products li.product {
    background: var(--shiko-bg-secondary);
    border: 1px solid var(--shiko-border);
    border-radius: var(--shiko-radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.shiko-pdp .related.products ul.products li.product:hover,
.shiko-pdp .upsells.products ul.products li.product:hover {
    border-color: var(--shiko-border-hover);
    transform: translateY(-2px);
}
.shiko-pdp .related.products ul.products li.product a img,
.shiko-pdp .upsells.products ul.products li.product a img {
    width: 100% !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    margin: 0 !important;
}
.shiko-pdp .related.products ul.products li.product .woocommerce-loop-product__title,
.shiko-pdp .upsells.products ul.products li.product .woocommerce-loop-product__title,
.shiko-pdp .related.products ul.products li.product h2,
.shiko-pdp .upsells.products ul.products li.product h2 {
    font-size: 13px !important;
    font-weight: 600;
    padding: 10px 12px 4px !important;
    margin: 0 !important;
    color: var(--shiko-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shiko-pdp .related.products ul.products li.product .price,
.shiko-pdp .upsells.products ul.products li.product .price {
    padding: 0 12px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--shiko-accent);
}
.shiko-pdp .related.products ul.products li.product .button,
.shiko-pdp .upsells.products ul.products li.product .button,
.shiko-pdp .related.products ul.products li.product .add_to_cart_button,
.shiko-pdp .upsells.products ul.products li.product .add_to_cart_button {
    display: none !important;
}
.shiko-pdp .related.products ul.products li.product .star-rating,
.shiko-pdp .upsells.products ul.products li.product .star-rating {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .shiko-pdp-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .shiko-pdp-gallery {
        position: static;
    }
    .shiko-pdp-title { font-size: 1.25rem; }
    .shiko-pdp-price { font-size: 1.25rem; }
    .shiko-pdp-trust { grid-template-columns: 1fr 1fr; gap: 6px; }
    .shiko-pdp .related.products ul.products,
    .shiko-pdp .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Star rating */
body.shiko-theme .woocommerce .star-rating { color: #FBBF24; }

/* Sale badge — branded, high specificity to override plugin/theme defaults */
body.shiko-theme .woocommerce span.onsale,
body.shiko-theme .onsale,
.shiko-pdp span.onsale,
.shiko-pdp-gallery span.onsale,
.woocommerce span.onsale {
    background: var(--shiko-accent, #E40303) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    margin: 0 !important;
}

/* ===== WooCommerce Notices ===== */
body.shiko-theme .woocommerce-info,
body.shiko-theme .woocommerce-message,
body.shiko-theme .woocommerce-error {
    border-top: 3px solid var(--shiko-accent) !important;
    background: var(--shiko-bg-secondary);
    color: var(--shiko-text);
    padding: 12px 16px 12px 48px;
    margin-bottom: 20px;
    border-radius: var(--shiko-radius-lg);
    position: relative;
    line-height: 1.5;
}
body.shiko-theme .woocommerce-info::before,
body.shiko-theme .woocommerce-message::before,
body.shiko-theme .woocommerce-error::before {
    color: var(--shiko-accent) !important;
}
body.shiko-theme .woocommerce-error {
    border-top-color: #e74c3c !important;
}
body.shiko-theme .woocommerce-error::before {
    color: #e74c3c !important;
}
body.shiko-theme .woocommerce-info a,
body.shiko-theme .woocommerce-message a {
    color: var(--shiko-accent);
    font-weight: 600;
}
body.shiko-theme .woocommerce-info a:hover,
body.shiko-theme .woocommerce-message a:hover {
    color: var(--shiko-accent-hover);
}

/* ===== Fix blue text globally ===== */
body.shiko-theme .woocommerce a { color: var(--shiko-text); }
body.shiko-theme .woocommerce a:hover { color: var(--shiko-accent); }
body.shiko-theme .woocommerce td a,
body.shiko-theme .woocommerce th a {
    color: var(--shiko-text);
}
body.shiko-theme .woocommerce td a:hover,
body.shiko-theme .woocommerce th a:hover {
    color: var(--shiko-accent);
}

/* ===== WPLoyalty Widget Compatibility ===== */
.wlr-launcher-icon,
.wlr-myaccount-page { color: var(--shiko-text); }
.wlr-myaccount-page .wlr-heading { color: var(--shiko-text); }
.wlr-myaccount-page .wlr-point-value { color: var(--shiko-accent); }

/* ===== PayTabs Gateway Specific ===== */
.wc_payment_method .payment_box iframe {
    max-width: 100%;
    border-radius: var(--shiko-radius);
}

/* ===== Shop loop: hide default WC buttons (using card-as-link pattern) ===== */
body.shiko-theme .woocommerce ul.products li.product a.button,
body.shiko-theme .woocommerce ul.products li.product a.add_to_cart_button,
body.shiko-theme .woocommerce ul.products li.product a.product_type_variable,
body.shiko-theme .woocommerce ul.products li.product a.product_type_grouped,
body.shiko-theme .woocommerce ul.products li.product a.product_type_external {
    display: none;
}

/* ===== Product Description: Hide image captions ===== */
.shiko-pdp-section figcaption,
.shiko-pdp-section .wp-caption-text,
.woocommerce-product-details__short-description figcaption,
.woocommerce-product-details__short-description .wp-caption-text,
.woocommerce-Tabs-panel figcaption,
.woocommerce-Tabs-panel .wp-caption-text,
.product .entry-content figcaption,
.product .entry-content .wp-caption-text {
    display: none !important;
}
.shiko-pdp-section .wp-caption,
.woocommerce-product-details__short-description .wp-caption,
.product .entry-content .wp-caption {
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* ===== Global: Add-to-Cart button (all product page templates) ===== */
body.shiko-theme .single_add_to_cart_button,
body.shiko-theme .product .cart .single_add_to_cart_button,
body.shiko-theme .woocommerce .single_add_to_cart_button {
    flex: 1 !important;
    width: auto !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    background: var(--shiko-accent, #E40303) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--shiko-radius, 8px) !important;
    cursor: pointer !important;
    transition: opacity 0.2s, transform 0.1s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
}
body.shiko-theme .single_add_to_cart_button:hover {
    opacity: 0.9 !important;
}
body.shiko-theme .single_add_to_cart_button:active {
    transform: scale(0.98) !important;
}

/* ===== Global: Quantity input — spin button removal ===== */
body.shiko-theme .product .quantity .qty::-webkit-inner-spin-button,
body.shiko-theme .product .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ===== Global: Variation table + selects (dark-mode safe) ===== */
body.shiko-theme .product .variations select,
body.shiko-theme .woocommerce div.product .variations select {
    background: var(--shiko-bg-tertiary, #1a1a1a) !important;
    color: var(--shiko-text, #fff) !important;
    border: 1px solid var(--shiko-border, #333) !important;
    border-radius: var(--shiko-radius, 8px) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    width: 100% !important;
}
body.shiko-theme .product .variations td,
body.shiko-theme .product .variations th {
    padding: 8px 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}
body.shiko-theme .product .variations label {
    color: var(--shiko-text-secondary, #aaa) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ===== WooCommerce Tabs: Dark-mode border fix ===== */
body.shiko-theme .woocommerce-tabs,
body.shiko-theme .woocommerce div.product .woocommerce-tabs {
    border-color: var(--shiko-border, #333) !important;
}
body.shiko-theme .woocommerce-tabs .panel,
body.shiko-theme .woocommerce-tabs ul.tabs {
    border-color: var(--shiko-border, #333) !important;
    background: transparent !important;
}

/* ===== Responsive: All sections auto-width on resize ===== */
body.shiko-theme .product,
body.shiko-theme .product .entry-summary,
body.shiko-theme .product .summary,
body.shiko-theme .woocommerce div.product,
body.shiko-theme .woocommerce div.product div.summary {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}
body.shiko-theme .product .woocommerce-product-gallery,
body.shiko-theme .woocommerce div.product div.images {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
body.shiko-theme .product img {
    max-width: 100% !important;
    height: auto !important;
}
body.shiko-theme .product .woocommerce-tabs,
body.shiko-theme .product .related.products,
body.shiko-theme .product .upsells.products,
body.shiko-theme .product form.cart,
body.shiko-theme .product .woocommerce-variation-add-to-cart,
body.shiko-theme .shiko-pdp-section,
body.shiko-theme .shiko-pdp-trust,
body.shiko-theme .shiko-pdp-meta {
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* =================================================================
 * PRODUCT PAGE — Universal styling (works with any template)
 * v1.7.10 — Element-level styles, no forced layout overrides
 * ================================================================= */

/* ── Gallery: cinematic framing ── */
body.shiko-theme div.product .flex-viewport,
body.shiko-theme div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    border-radius: 12px !important;
    border: 1px solid var(--shiko-border, #333) !important;
    overflow: hidden !important;
    background: var(--shiko-bg-tertiary, #111) !important;
}
body.shiko-theme div.product .woocommerce-product-gallery__image:only-child img {
    border-radius: 12px !important;
    border: 1px solid var(--shiko-border, #333) !important;
}
body.shiko-theme div.product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
body.shiko-theme div.product .woocommerce-product-gallery {
    opacity: 1 !important;
}

/* ── Thumbnails: horizontal strip ── */
body.shiko-theme div.product .flex-control-thumbs {
    display: flex !important;
    gap: 8px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-x: auto !important;
}
body.shiko-theme div.product .flex-control-thumbs li {
    flex: 0 0 60px !important;
    width: 60px !important;
    margin: 0 !important;
}
body.shiko-theme div.product .flex-control-thumbs li img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    opacity: 0.5 !important;
    display: block !important;
}
body.shiko-theme div.product .flex-control-thumbs li img:hover,
body.shiko-theme div.product .flex-control-thumbs li img.flex-active {
    border-color: var(--shiko-accent, #E40303) !important;
    opacity: 1 !important;
}

/* ── Zoom trigger ── */
body.shiko-theme div.product .woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 5 !important;
    background: rgba(0,0,0,0.4) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
}
body.shiko-theme div.product:hover .woocommerce-product-gallery__trigger {
    opacity: 0.8 !important;
}
body.shiko-theme div.product .woocommerce-product-gallery__trigger img {
    width: 16px !important;
    height: 16px !important;
    filter: invert(1) !important;
}

/* ── Nav arrows ── */
body.shiko-theme div.product .flex-direction-nav a {
    background: rgba(0,0,0,0.4) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
}
body.shiko-theme div.product .woocommerce-product-gallery:hover .flex-direction-nav a {
    opacity: 0.7 !important;
}

/* ── Product title ── */
body.shiko-theme div.product .product_title,
body.shiko-theme div.product .entry-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--shiko-text) !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
}

/* ── Price ── */
body.shiko-theme div.product .price,
body.shiko-theme div.product .summary .price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--shiko-accent) !important;
    margin-bottom: 16px !important;
}
body.shiko-theme div.product .price del {
    color: var(--shiko-text-muted) !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
}
body.shiko-theme div.product .price ins {
    text-decoration: none !important;
    color: var(--shiko-accent) !important;
}
body.shiko-theme div.product .price .woocommerce-Price-amount {
    color: inherit !important;
}

/* ── Summary text ── */
body.shiko-theme div.product .woocommerce-product-details__short-description {
    color: var(--shiko-text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
}

/* ── Add-to-cart form ── */
body.shiko-theme div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}
body.shiko-theme div.product .single_add_to_cart_button {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    background: var(--shiko-accent, #E40303) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--shiko-radius, 8px) !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    text-transform: none !important;
}
body.shiko-theme div.product .single_add_to_cart_button:hover {
    opacity: 0.9 !important;
}

/* ── Quantity ── */
body.shiko-theme div.product .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--shiko-border, #333) !important;
    border-radius: var(--shiko-radius, 8px) !important;
    overflow: hidden !important;
    background: var(--shiko-bg-tertiary, #1a1a1a) !important;
    flex-shrink: 0 !important;
}
body.shiko-theme div.product .quantity .qty {
    width: 48px !important;
    height: 42px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    color: var(--shiko-text) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
}
body.shiko-theme div.product .quantity .qty::-webkit-inner-spin-button,
body.shiko-theme div.product .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

/* ── Variation table ── */
body.shiko-theme div.product .variations {
    margin-bottom: 12px !important;
}
body.shiko-theme div.product .variations td,
body.shiko-theme div.product .variations th {
    padding: 8px 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}
body.shiko-theme div.product .variations td.label label {
    color: var(--shiko-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
body.shiko-theme div.product .variations select {
    background: var(--shiko-bg-tertiary, #1a1a1a) !important;
    color: var(--shiko-text) !important;
    border: 1px solid var(--shiko-border, #333) !important;
    border-radius: var(--shiko-radius, 8px) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    width: 100% !important;
}
body.shiko-theme div.product .reset_variations {
    color: var(--shiko-text-muted) !important;
    font-size: 13px !important;
}

/* ── Variation price update ── */
body.shiko-theme div.product .woocommerce-variation-price .price {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--shiko-accent) !important;
}

/* ── Product meta ── */
body.shiko-theme div.product .product_meta {
    font-size: 13px !important;
    color: var(--shiko-text-muted) !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--shiko-border) !important;
}
body.shiko-theme div.product .product_meta a {
    color: var(--shiko-text-secondary) !important;
}
body.shiko-theme div.product .product_meta a:hover {
    color: var(--shiko-accent) !important;
}

/* ── WC Tabs (default, non-accordion) — dark mode ── */
body.shiko-theme div.product .woocommerce-tabs {
    margin-top: 32px !important;
}
body.shiko-theme div.product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    display: flex !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 0 -1px !important;
    border-bottom: 1px solid var(--shiko-border) !important;
    background: transparent !important;
}
body.shiko-theme div.product .woocommerce-tabs ul.tabs::before,
body.shiko-theme div.product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}
body.shiko-theme div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
body.shiko-theme div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--shiko-accent) !important;
}
body.shiko-theme div.product .woocommerce-tabs ul.tabs li a {
    color: var(--shiko-text-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    display: block !important;
}
body.shiko-theme div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--shiko-text) !important;
}
body.shiko-theme div.product .woocommerce-tabs .panel {
    border: none !important;
    padding: 24px 0 !important;
    background: transparent !important;
    color: var(--shiko-text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
body.shiko-theme div.product .woocommerce-tabs .panel h2 {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
}

/* ── Related / Upsell ── */
body.shiko-theme div.product .related.products,
body.shiko-theme div.product .upsells.products {
    margin-top: 48px !important;
    padding-top: 32px !important;
    border-top: 1px solid var(--shiko-border) !important;
}
body.shiko-theme div.product .related.products > h2,
body.shiko-theme div.product .upsells.products > h2 {
    font-size: 1.25rem !important;
    margin-bottom: 20px !important;
}
body.shiko-theme div.product .related.products ul.products,
body.shiko-theme div.product .upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.shiko-theme div.product .related.products li.product,
body.shiko-theme div.product .upsells.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    body.shiko-theme div.product .flex-control-thumbs li {
        flex: 0 0 48px !important;
        width: 48px !important;
    }
    body.shiko-theme div.product .flex-control-thumbs li img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 6px !important;
    }
    body.shiko-theme div.product form.cart {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    body.shiko-theme div.product .single_add_to_cart_button {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 12px 16px !important;
    }
    body.shiko-theme div.product .quantity {
        flex-shrink: 0 !important;
        width: auto !important;
    }
    body.shiko-theme div.product .quantity .qty {
        width: 44px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    body.shiko-theme div.product .related.products ul.products,
    body.shiko-theme div.product .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.shiko-theme div.product .woocommerce-tabs ul.tabs {
        overflow-x: auto !important;
    }
    body.shiko-theme div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 14px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
}


/* ===== Cart readability and conversion refinements ===== */
body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper {
    margin: 14px 0 18px;
    border: 1px solid var(--shiko-border);
    border-radius: 14px;
    background: var(--shiko-bg-secondary);
    overflow: hidden;
}
body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    color: var(--shiko-text);
    font-weight: 600;
}
body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper summary::-webkit-details-marker { display: none; }
body.shiko-theme.woocommerce-cart .shiko-coupon-summary-hint {
    font-size: 12px;
    color: var(--shiko-text-muted);
    font-weight: 500;
}
body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper:not([open]) .coupon {
    display: none !important;
}
body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper[open] .coupon {
    display: flex !important;
    padding: 0 18px 18px;
}
body.shiko-theme.woocommerce-cart .shiko-cart-pricing-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}
body.shiko-theme.woocommerce-cart .shiko-cart-price-was {
    color: var(--shiko-text-muted);
}
body.shiko-theme.woocommerce-cart .shiko-cart-price-now {
    color: var(--shiko-text);
    font-weight: 700;
}
body.shiko-theme.woocommerce-cart .shiko-save-text,
body.shiko-theme.woocommerce-cart .shiko-save-amount,
body.shiko-theme.woocommerce-cart .shiko-sticky-save {
    color: var(--shiko-success) !important;
    font-weight: 700;
}
body.shiko-theme.woocommerce-cart .cart_totals .shop_table .cart-subtotal td,
body.shiko-theme.woocommerce-cart .cart_totals .shop_table .order-total td {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
body.shiko-theme.woocommerce-cart .cart_totals .shop_table .cart-subtotal td .woocommerce-Price-amount,
body.shiko-theme.woocommerce-cart .cart_totals .shop_table .order-total td .woocommerce-Price-amount {
    color: var(--shiko-accent);
    font-weight: 700;
}
body.shiko-theme.woocommerce-cart .product-name {
    line-height: 1.45;
}
body.shiko-theme.woocommerce-cart .product-name a {
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 700;
}
@media (max-width: 768px) {
    body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper {
        margin-bottom: 16px;
    }
    body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper[open] .coupon {
        flex-direction: column;
        align-items: stretch !important;
    }
    body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper[open] .coupon .input-text,
    body.shiko-theme.woocommerce-cart .shiko-coupon-wrapper[open] .coupon button {
        width: 100%;
    }
    body.shiko-theme.woocommerce-cart .cart_totals .shop_table .cart-subtotal td,
    body.shiko-theme.woocommerce-cart .cart_totals .shop_table .order-total td {
        justify-content: space-between;
    }
}


/* v1.9.8 cart recovery */
body.shiko-theme.woocommerce-cart .shiko-cart-cta-fallback {
    display: block !important;
    max-width: 680px !important;
    margin: 16px auto 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}
body.shiko-theme.woocommerce-cart .shiko-cart-cta-fallback a {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: var(--shiko-accent) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
