/* ═══════════════════════════════════════════════════
   BeezyTech Load More — bt-load-more.css
   Covers: homepage shortcode grid + shop page override
═══════════════════════════════════════════════════ */

/* ── Grid layout ─────────────────────────────────── */
.bt-products-wrap {
    width: 100%;
    margin: 0 auto;
}

.bt-products-grid {
    display: grid;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    gap: 1rem;
}

.bt-columns-2 { grid-template-columns: repeat(2, 1fr); }
.bt-columns-3 { grid-template-columns: repeat(3, 1fr); }
.bt-columns-4 { grid-template-columns: repeat(4, 1fr); }
.bt-columns-5 { grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }

/* 5-col → 4-col at 1280px, 3-col at 1024px */
@media (max-width: 1280px) {
    .bt-columns-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .bt-columns-4,
    .bt-columns-5 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
    .bt-columns-3,
    .bt-columns-4,
    .bt-columns-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .bt-products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* ── Product card ────────────────────────────────── */
.bt-product-item { margin: 0; padding: 0; }

.bt-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.bt-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.bt-product-image-link {
    display: block;
    overflow: hidden;
    background: #f7f7f7;
}

.bt-product-image-link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}

.bt-product-card:hover .bt-product-image-link img {
    transform: scale(1.04);
}

.bt-product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.bt-product-title {
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.bt-product-title a {
    color: #111;
    text-decoration: none;
}

.bt-product-title a:hover { color: #c8b47a; }

.bt-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #c8b47a;
}

.bt-product-price del { color: #aaa; font-weight: 400; margin-right: 4px; font-size: 0.85rem; }
.bt-product-price ins { text-decoration: none; }

/* ── Buttons ─────────────────────────────────────── */
.bt-btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    margin-top: auto;
}

.bt-add-to-cart {
    background: #c8b47a;
    color: #111;
}

.bt-add-to-cart:hover { background: #b09a60; color: #111; }

.bt-out-of-stock {
    background: #ddd;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Sale badge ─────────────────────────────────── */
.bt-badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c8b47a;
    color: #111;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
}

/* ── Load More button (shortcode) ─────────────────── */
.bt-load-more-wrap {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.bt-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    min-width: 220px;
}

.bt-load-more-btn:hover:not(:disabled) {
    background: #b09a60;
    transform: translateY(-1px);
}

.bt-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.bt-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.bt-loading .bt-btn-spinner { display: inline-block; }
.bt-load-more-btn.bt-loading .bt-btn-text::after { content: '…'; }

@keyframes bt-spin {
    to { transform: rotate(360deg); }
}

/* Hidden when no more products */
.bt-load-more-wrap.bt-hidden { display: none; }

/* ═══════════════════════════════════════════════════
   SHOP PAGE — Replace WooCommerce pagination
   with a Load More button style
   Add class "bt-shop-load-more" to your theme's
   shop template or use the JS below to inject it.
═══════════════════════════════════════════════════ */

/* Hide default WooCommerce pagination everywhere */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination,
.wc-block-pagination,
.wc-block-components-pagination,
nav.woocommerce-pagination {
    display: none !important;
}

/* Shop Load More button (injected by JS) */
#bt-shop-load-more-wrap {
    text-align: center;
    padding: 2rem 0 3rem;
}

#bt-shop-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    min-width: 220px;
}

#bt-shop-load-more-btn:hover:not(:disabled) {
    background: #b09a60;
    transform: translateY(-1px);
}

#bt-shop-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#bt-shop-load-more-btn .bt-shop-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

#bt-shop-load-more-btn.bt-loading .bt-shop-spinner { display: inline-block; }
#bt-shop-load-more-btn.bt-loading .bt-shop-btn-text::after { content: '…'; }

#bt-shop-load-more-wrap.bt-hidden { display: none; }

/* ── Product card entrance animation ─────────────── */
.bt-product-item {
    animation: bt-fade-up 0.35s ease both;
}

@keyframes bt-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   SHOP PAGE — Force 5-column grid override
   Overrides WooCommerce's default 4-col float layout
═══════════════════════════════════════════════════ */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.9rem !important;
    float: none !important;
    clear: both !important;
}

/* Neutralise WooCommerce's own width/float column classes */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

@media (max-width: 1280px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        gap: 0.6rem !important;
    }
}

/* ═══════════════════════════════════════════════════
   TRUST BADGES — Checkout + Footer
═══════════════════════════════════════════════════ */

/* ── Shared badge strip ──────────────────────────── */
.bt-trust-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #f9f8f5;
    border: 1px solid #e6e0d0;
    border-radius: 8px;
}

.bt-trust-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0;
}

.bt-trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bt-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(15,23,41,0.99);
}

.bt-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #c8b47a;
    flex-shrink: 0;
}

.bt-trust-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
}

.bt-trust-label {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(15,23,41,0.99);
}

.bt-trust-divider {
    width: 1px;
    height: 22px;
    background: #ddd;
    flex-shrink: 0;
}

/* ── Checkout variant ────────────────────────────── */
.bt-trust-checkout {
    margin-bottom: 1.5rem;
}

/* ── Footer variant ──────────────────────────────── */
.bt-trust-footer-wrap {
    width: 100%;
    background: rgba(15,23,41,0.99);
    padding: 1rem 1.5rem;
}

.bt-trust-footer {
    background: transparent;
    border-color: rgba(200,180,122,0.25);
    max-width: 900px;
    margin: 0 auto 0;
}

.bt-trust-footer .bt-trust-heading {
    color: rgba(255,255,255,0.45);
}

.bt-trust-footer .bt-trust-item,
.bt-trust-footer .bt-trust-label {
    color: #fff;
}

.bt-trust-footer .bt-trust-divider {
    background: rgba(255,255,255,0.15);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
    .bt-trust-items {
        gap: 0.5rem;
    }
    .bt-trust-divider {
        display: none;
    }
    .bt-trust-label {
        font-size: 0.72rem;
    }
}
