/* BootyCommerce Frontend Styles
   Brand: BootyNet — purple/pink, IBM Plex, clean corporate parody */

:root {
    --bc-purple: #7c3aed;
    --bc-purple-light: #b36aff;
    --bc-pink: #ff5e7d;
    --bc-bg: #f5f4f0;
    --bc-white: #ffffff;
    --bc-dark: #111111;
    --bc-mid: #555555;
    --bc-border: #e0dfd9;
    --bc-radius: 8px;
    --bc-font: 'IBM Plex Sans', sans-serif;
    --bc-mono: 'IBM Plex Mono', monospace;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
.bc-shop, .bc-cart, .bc-checkout, .bc-account, .bc-thankyou, .bc-plans {
    font-family: var(--bc-font);
    color: var(--bc-dark);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--bc-font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--bc-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.bc-btn-primary {
    background: var(--bc-purple);
    color: #fff;
    border-color: var(--bc-purple);
}
.bc-btn-primary:hover {
    background: var(--bc-purple-light);
    border-color: var(--bc-purple-light);
    color: #fff;
    text-decoration: none;
}
.bc-btn-outline {
    background: transparent;
    color: var(--bc-purple);
    border-color: var(--bc-purple);
}
.bc-btn-outline:hover {
    background: var(--bc-purple);
    color: #fff;
    text-decoration: none;
}
.bc-btn-sm { font-size: 12px; padding: 6px 14px; }
.bc-btn-lg { font-size: 16px; padding: 14px 28px; }
.bc-btn-full { width: 100%; }
.bc-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Section title ────────────────────────────────────────────────────────── */
.bc-section-title {
    font-family: var(--bc-font);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--bc-dark);
    letter-spacing: -0.02em;
}

/* ── Notices ──────────────────────────────────────────────────────────────── */
.bc-notice {
    padding: 12px 16px;
    border-radius: var(--bc-radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.bc-notice-info { background: #ede9fe; color: #5b21b6; border-left: 3px solid var(--bc-purple); }
.bc-notice-success { background: #dcfce7; color: #15803d; border-left: 3px solid #16a34a; }
.bc-notice-error { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }

/* ── Shop ─────────────────────────────────────────────────────────────────── */
.bc-shop-filters { margin-bottom: 24px; }
.bc-filter-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-filter-cat {
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--bc-border);
    color: var(--bc-mid);
    text-decoration: none;
    transition: all 0.15s;
}
.bc-filter-cat:hover, .bc-filter-cat.active {
    border-color: var(--bc-purple);
    color: var(--bc-purple);
    background: #ede9fe;
    text-decoration: none;
}
.bc-product-grid {
    display: grid;
    gap: 24px;
}
.bc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bc-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

.bc-product-card {
    background: var(--bc-white);
    border-radius: var(--bc-radius);
    border: 1.5px solid var(--bc-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bc-product-card:hover {
    box-shadow: 0 8px 24px rgba(124,58,237,0.12);
    transform: translateY(-2px);
}
.bc-product-image-link { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0eefa; }
.bc-product-image { width: 100%; height: 100%; object-fit: cover; }
.bc-product-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.bc-product-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--bc-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bc-purple);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
}
.bc-product-info { padding: 16px; }
.bc-product-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.bc-product-title a { color: var(--bc-dark); text-decoration: none; }
.bc-product-title a:hover { color: var(--bc-purple); }
.bc-product-excerpt { font-size: 13px; color: var(--bc-mid); margin-bottom: 12px; line-height: 1.4; }
.bc-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bc-product-price { font-size: 15px; font-weight: 700; color: var(--bc-purple); font-family: var(--bc-mono); }
.bc-product-price del { color: var(--bc-mid); font-weight: 400; font-size: 12px; }
.bc-product-price ins { text-decoration: none; color: var(--bc-pink); }
.bc-no-products { color: var(--bc-mid); font-style: italic; }

/* ── Cart ─────────────────────────────────────────────────────────────────── */
.bc-cart-empty { text-align: center; padding: 48px 24px; }
.bc-cart-empty-icon { font-size: 48px; margin-bottom: 16px; }
.bc-cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bc-cart-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--bc-border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bc-mid); }
.bc-cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--bc-border); vertical-align: middle; }
.bc-cart-product { font-weight: 600; }
.bc-qty-control { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--bc-border); border-radius: 6px; overflow: hidden; }
.bc-qty-btn { background: #f5f4f0; border: none; width: 30px; height: 32px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.1s; }
.bc-qty-btn:hover { background: var(--bc-purple); color: #fff; }
.bc-qty-input { border: none; width: 44px; height: 32px; text-align: center; font-size: 14px; font-family: var(--bc-mono); }
.bc-remove-item { background: none; border: none; color: var(--bc-mid); cursor: pointer; font-size: 14px; padding: 4px; border-radius: 4px; transition: color 0.15s; }
.bc-remove-item:hover { color: var(--bc-pink); }
.bc-cart-totals { margin: 16px 0; padding: 16px; background: var(--bc-bg); border-radius: var(--bc-radius); }
.bc-cart-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.bc-cart-grand-total { font-size: 17px; margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--bc-border); }
.bc-cart-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.bc-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .bc-checkout-layout { grid-template-columns: 1fr; } }
.bc-form { display: flex; flex-direction: column; gap: 14px; }
.bc-form-row { display: flex; gap: 14px; }
.bc-form-row-2 > * { flex: 1; }
.bc-form-field { display: flex; flex-direction: column; gap: 5px; }
.bc-form-field label { font-size: 13px; font-weight: 600; color: var(--bc-dark); }
.bc-form-field input,
.bc-form-field select,
.bc-form-field textarea {
    font-family: var(--bc-font);
    font-size: 14px;
    padding: 10px 12px;
    border: 1.5px solid var(--bc-border);
    border-radius: var(--bc-radius);
    background: var(--bc-white);
    color: var(--bc-dark);
    transition: border-color 0.15s;
}
.bc-form-field input:focus,
.bc-form-field select:focus,
.bc-form-field textarea:focus {
    outline: none;
    border-color: var(--bc-purple);
}
.required { color: var(--bc-pink); }
.bc-payment-method {
    background: var(--bc-bg);
    border: 1.5px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 16px;
}
.bc-payment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bc-payment-radio { color: var(--bc-purple); font-size: 18px; }
.bc-payment-badge {
    font-size: 11px;
    font-family: var(--bc-mono);
    font-weight: 600;
    background: var(--bc-purple);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}
.bc-payment-description { font-size: 13px; color: var(--bc-mid); line-height: 1.5; }
.bc-submit-btn { margin-top: 8px; }
.bc-checkout-disclaimer { font-size: 11px; color: var(--bc-mid); text-align: center; margin-top: 8px; line-height: 1.4; }

/* Order summary */
.bc-order-summary {
    background: var(--bc-bg);
    border: 1.5px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.bc-summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bc-border); }
.bc-summary-item:last-of-type { border-bottom: none; }
.bc-summary-name em { color: var(--bc-mid); font-style: normal; }
.bc-summary-price { font-family: var(--bc-mono); white-space: nowrap; }
.bc-summary-divider { height: 2px; background: var(--bc-border); margin: 8px 0; }
.bc-summary-total { display: flex; justify-content: space-between; font-size: 16px; padding-top: 4px; }
.bc-trust-badges { display: flex; flex-direction: column; gap: 8px; }
.bc-trust-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--bc-mid);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BootyPay overlay */
.bc-bootypay-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.bc-bootypay-modal {
    background: var(--bc-white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}
.bc-bootypay-logo {
    font-family: var(--bc-mono);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bc-purple);
    margin-bottom: 16px;
}
.bc-bootypay-crystal {
    font-size: 56px;
    margin-bottom: 16px;
    animation: bc-pulse 1s ease-in-out infinite alternate;
}
@keyframes bc-pulse { from { transform: scale(1); } to { transform: scale(1.1); } }
.bc-bootypay-status {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    min-height: 24px;
    transition: all 0.3s;
}
.bc-bootypay-bar {
    background: #e0dfd9;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.bc-bootypay-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bc-purple), var(--bc-pink));
    transition: width 0.4s ease;
    border-radius: 4px;
}
.bc-bootypay-subtext { font-size: 12px; color: var(--bc-mid); margin: 0; }

/* ── Thank You ────────────────────────────────────────────────────────────── */
.bc-thankyou { max-width: 640px; }
.bc-thankyou-header { text-align: center; padding: 32px 0; }
.bc-thankyou-icon { font-size: 56px; margin-bottom: 12px; }
.bc-thankyou-header h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.bc-thankyou-details {
    background: var(--bc-bg);
    border-radius: var(--bc-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.bc-thankyou-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.bc-meta-item { display: flex; flex-direction: column; gap: 2px; }
.bc-meta-item span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bc-mid); font-family: var(--bc-mono); }
.bc-meta-item strong { font-size: 14px; }
.bc-thankyou-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.bc-thankyou-items th { text-align: left; padding: 8px; border-bottom: 2px solid var(--bc-border); font-size: 12px; text-transform: uppercase; color: var(--bc-mid); }
.bc-thankyou-items td { padding: 10px 8px; border-bottom: 1px solid var(--bc-border); }
.bc-thankyou-note { font-size: 13px; color: var(--bc-mid); margin-bottom: 24px; line-height: 1.5; }

/* ── Membership Plans ─────────────────────────────────────────────────────── */
.bc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .bc-plans { grid-template-columns: 1fr; } }
.bc-plan {
    background: var(--bc-white);
    border-radius: 12px;
    border: 1.5px solid var(--bc-border);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bc-plan:hover { box-shadow: 0 12px 32px rgba(124,58,237,0.15); transform: translateY(-3px); }
.bc-plan-featured { border-color: var(--bc-purple); box-shadow: 0 8px 24px rgba(124,58,237,0.2); }
.bc-plan-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--bc-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--bc-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
}
.bc-plan-header {
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--plan-color) 10%, white), color-mix(in srgb, var(--plan-color) 5%, white));
    border-bottom: 1px solid var(--bc-border);
}
.bc-plan-name { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.bc-plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.bc-price-amount { font-size: 28px; font-weight: 700; font-family: var(--bc-mono); color: var(--plan-color, var(--bc-purple)); }
.bc-price-period { font-size: 13px; color: var(--bc-mid); }
.bc-plan-description { font-size: 13px; color: var(--bc-mid); margin: 0; line-height: 1.4; }
.bc-plan-features { list-style: none; padding: 16px 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bc-plan-features li { font-size: 13px; padding-left: 20px; position: relative; line-height: 1.4; }
.bc-plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--bc-purple); font-weight: 700; }
.bc-plan .bc-btn { margin: 0 20px 20px; width: calc(100% - 40px); }

/* ── Account ──────────────────────────────────────────────────────────────── */
.bc-account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 2px solid var(--bc-border);
    margin-bottom: 24px;
}
.bc-account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bc-purple);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bc-mono);
    flex-shrink: 0;
}
.bc-account-header h2 { margin: 0 0 2px; font-size: 20px; }
.bc-account-header p { margin: 0; font-size: 13px; color: var(--bc-mid); }
.bc-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 680px) { .bc-account-grid { grid-template-columns: 1fr; } }
.bc-account-section h3 { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.bc-membership-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--plan-color, #7c3aed) 12%, white), white);
    border: 1.5px solid color-mix(in srgb, var(--plan-color, #7c3aed) 30%, white);
    border-radius: 10px;
    padding: 16px;
}
.bc-membership-plan-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.bc-membership-status { font-size: 12px; font-family: var(--bc-mono); text-transform: uppercase; letter-spacing: 0.05em; color: #16a34a; font-weight: 600; }
.bc-membership-expiry { font-size: 12px; color: var(--bc-mid); margin-top: 4px; }
.bc-order-list { display: flex; flex-direction: column; gap: 8px; }
.bc-order-row { background: var(--bc-bg); border-radius: var(--bc-radius); padding: 12px 14px; }
.bc-order-row-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.bc-order-num { font-family: var(--bc-mono); font-weight: 600; }
.bc-order-date { color: var(--bc-mid); }
.bc-order-total { font-weight: 600; margin-left: auto; }
.bc-order-status {
    font-size: 11px;
    font-family: var(--bc-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
}
.bc-account-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bc-border); }

/* ── Restricted content ───────────────────────────────────────────────────── */
.bc-restricted {
    background: var(--bc-bg);
    border: 2px dashed var(--bc-border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    margin: 24px 0;
}
.bc-restricted-icon { font-size: 40px; margin-bottom: 12px; }
.bc-restricted h3 { margin: 0 0 8px; }
.bc-restricted p { color: var(--bc-mid); margin-bottom: 16px; }

/* ── Toast notifications ──────────────────────────────────────────────────── */
.bc-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bc-dark);
    color: #fff;
    font-size: 14px;
    font-family: var(--bc-font);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--bc-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 9999;
    max-width: 320px;
}
.bc-toast-visible { transform: translateY(0); opacity: 1; }
.bc-toast-success { border-left: 3px solid #16a34a; }
.bc-toast-error { border-left: 3px solid var(--bc-pink); }

/* ── Cart count badge ─────────────────────────────────────────────────────── */
.bc-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bc-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--bc-mono);
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    padding: 0 5px;
}

/* ── Auth (login / register) ──────────────────────────────────────────────── */
.bc-auth-wrap {
    max-width: 420px;
}
.bc-auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--bc-border);
    margin-bottom: 24px;
}
.bc-auth-tab {
    background: none;
    border: none;
    font-family: var(--bc-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bc-mid);
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
}
.bc-auth-tab:hover { color: var(--bc-purple); }
.bc-auth-tab-active {
    color: var(--bc-purple);
}
.bc-auth-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bc-purple);
}
