/*
Theme Name: Astra Child - Oxilog
Template: astra
Description: Child theme for Oxilog with custom product card design
Version: 1.0
*/

:root {
    --oxi-navy: #14304d;
    --oxi-teal: #2f7fa8;
    --oxi-gold: #d4a24e;
}

/* ---------- Guest header: hide menu + cart, show just Login ---------- */
.oxi-guest .main-header-menu,
.oxi-guest .ast-header-menu,
.oxi-guest .ast-site-header-cart,
.oxi-guest .ast-header-woo-cart,
.oxi-guest .astra-cart-drawer,
.oxi-guest .ast-mobile-menu-trigger-minimal,
.oxi-guest .menu-toggle,
.oxi-guest button.slide-nav {
    display: none !important;
}

.oxi-guest-login-btn {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 9999;
    background: var(--oxi-teal);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 8px;
}
.oxi-guest-login-btn:hover { background: var(--oxi-navy); color: #fff !important; }

/* ---------- Live total + Buy Now (single product page) ---------- */
.oxi-live-total {
    font-size: 15px;
    color: var(--oxi-navy);
    margin: 12px 0 10px;
}
.oxi-live-total strong { font-size: 20px; }
.oxi-buy-now-btn {
    background: var(--oxi-gold);
    color: var(--oxi-navy);
    border: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-left: 8px;
}
.oxi-buy-now-btn:hover { background: #b8863a; }

/* ---------- Checkout: only show payment method + Place Order ---------- */
.woocommerce-checkout #customer_details,
.woocommerce-checkout table.shop_table,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields > h3 {
    display: none !important;
}
.woocommerce-checkout #order_review { padding-top: 0; }

/* ---------- Product card ---------- */
.oxilog-card {
    background: linear-gradient(180deg, #eaf3fb 0%, #cfe4f4 100%);
    border-radius: 18px;
    padding: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.oxilog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.oxilog-pill-category {
    background: #ffffff;
    color: #14304d;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oxilog-pill-category img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.oxilog-pill-price {
    background: #14304d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.oxilog-icon-tile {
    background: #14304d;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
}

.oxilog-icon-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oxilog-icon-tile img.oxilog-fallback-icon {
    width: 55%;
    height: 55%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.oxilog-title {
    font-size: 17px;
    font-weight: 700;
    color: #14304d;
    line-height: 1.35;
    margin-bottom: 8px;
}

.oxilog-subtitle {
    font-size: 13px;
    color: #5b7086;
    margin-bottom: 18px;
    flex-grow: 1;
}

.oxilog-actions {
    display: flex;
    gap: 10px;
}

.oxilog-btn-preview {
    flex: 1;
    text-align: center;
    background: transparent;
    border: 1.5px solid #14304d;
    color: #14304d;
    border-radius: 10px;
    padding: 11px 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.oxilog-btn-cart {
    flex: 1.4;
    text-align: center;
    background: #2f7fa8;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 11px 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.oxilog-btn-cart:hover {
    background: #256686;
    color: #fff;
}

/* =========================================================
   New compact row-style product card (replaces the old grid tiles)
   ========================================================= */
.oxi-row-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.oxi-row-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 6px rgba(20,48,77,0.06);
}

.oxi-row-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}
.oxi-row-icon img { width: 100%; height: 100%; object-fit: cover; }

.oxi-row-info { flex: 1; min-width: 0; }

.oxi-row-title {
    display: block;
    color: #1a2733;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 8px;
}

.oxi-row-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.oxi-pill-dark {
    background: #1a2733;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
}

.oxi-row-cart {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--oxi-teal, #2f7fa8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.oxi-row-cart.is-disabled {
    background: #cfd9e2;
    color: #5b7086;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    width: 70px;
    padding: 4px;
    line-height: 1.2;
}
.oxi-row-cart.added::after { content: "✓"; color: #fff; font-weight: 900; }

/* ---------- Category header bars ---------- */
.oxi-category-bar {
    background: var(--oxi-teal, #2f7fa8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 26px 0 14px;
}
.oxi-category-bar:first-child { margin-top: 0; }

.oxi-view-all {
    display: block;
    text-align: center;
    background: #1a2733;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 14px;
    border-radius: 12px;
    margin: 16px 0 30px;
}
.oxi-view-all:hover { background: #0e1822; color: #fff; }
