/* ==========================================================
   KRISPYGAUGE — buy.css
   Styles specific to buy.html
   Inherits all base styles from styles.css
   ========================================================== */


/* ==========================================================
   NAV — Active state for current page
   ========================================================== */
.nav-link-active {
    color: var(--amber) !important;
    position: relative;
}
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 1px;
}
/* CTA button active state — add glow instead of underline */
.nav-cta.nav-link-active::after { display: none; }
.nav-cta.nav-link-active {
    box-shadow: 0 0 24px var(--amber-glow) !important;
}


/* ==========================================================
   PAGE HERO
   ========================================================== */
.buy-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-h);
    background: var(--bg);
}
.buy-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.3), transparent);
}

.buy-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    width: 100%;
    padding: 5rem 2.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.buy-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: flex;
    gap: 0.18em;
    color: var(--text);
}

.buy-hero-desc {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
    margin-top: 1.25rem;
    letter-spacing: 0.05em;
}


/* ==========================================================
   PRODUCT SECTION
   ========================================================== */
.buy-product-section {
    background: var(--bg);
}

.buy-product-inner {
    padding-top: 5rem !important;
    padding-bottom: 6rem !important;
}

.buy-product-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5.5rem;
    align-items: start;
}


/* ==========================================================
   GALLERY
   ========================================================== */
.buy-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.buy-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    border: 1px solid rgba(255, 140, 0, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-main-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy-main-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
    padding: 2.5rem;
    position: absolute;
    inset: 0;
}
.buy-main-placeholder span {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.buy-main-placeholder small {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.buy-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
}

.buy-thumb {
    flex: 1;
    aspect-ratio: 1 / 1;
    min-width: 0;
    background: var(--bg-card);
    border: 2px solid rgba(255, 140, 0, 0.12);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.buy-thumb:hover {
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.15);
}
.buy-thumb.active {
    border-color: var(--amber);
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.3);
}

.buy-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.buy-thumb-placeholder-icon { display: none; }
.thumb-label { display: none; }


/* ==========================================================
   PRODUCT INFO
   ========================================================== */
.buy-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.buy-product-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.01em;
    margin-top: 0.2rem;
}

.buy-product-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -0.9rem;
    letter-spacing: 0.02em;
}


/* ==========================================================
   STOCK BADGE
   ========================================================== */
.buy-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    width: fit-content;
}
.buy-stock--in {
    background: rgba(107, 203, 119, 0.1);
    border: 1px solid rgba(107, 203, 119, 0.3);
    color: #6bcb77;
}
.buy-stock--out {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.22);
    color: #ff6b6b;
}
.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.buy-stock--in .stock-dot {
    background: #6bcb77;
    box-shadow: 0 0 8px rgba(107, 203, 119, 0.7);
    animation: pulse-green 2s ease-in-out infinite;
}
.buy-stock--out .stock-dot {
    background: #ff6b6b;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 8px rgba(107, 203, 119, 0.7); }
    50%       { box-shadow: 0 0 14px rgba(107, 203, 119, 0.4); }
}


/* ==========================================================
   DESCRIPTION
   ========================================================== */
.buy-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.78;
}


/* ==========================================================
   KEY FEATURES LIST
   ========================================================== */
.buy-features-list {
    list-style: none;
    padding: 1.25rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}
.buy-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.buy-features-list .bf-check {
    color: var(--amber);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.02em;
    font-family: var(--font-body);
}


/* ==========================================================
   PRICE
   ========================================================== */
.buy-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
}
.buy-price {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--amber);
    letter-spacing: -0.01em;
}
.buy-price-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
}


/* ==========================================================
   SHIPPING
   ========================================================== */
.buy-shipping {
    background: var(--bg-card);
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.shipping-item svg {
    flex-shrink: 0;
    color: var(--amber);
    margin-top: 2px;
}
.shipping-item div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.shipping-item strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}
.shipping-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.shipping-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 140, 0, 0.08);
    padding-top: 0.75rem;
    line-height: 1.55;
}


/* ==========================================================
   BUY BUTTON & STRIPE NOTE
   ========================================================== */
.buy-cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 1.15rem 2rem;
}
.btn-buy--disabled {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.buy-stripe-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}
.buy-stripe-note svg {
    flex-shrink: 0;
    opacity: 0.55;
}
.buy-stripe-note strong {
    color: var(--text-muted);
    font-weight: 600;
}

.buy-support-link {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.buy-support-link a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 140, 0, 0.35);
    transition: color 0.2s, border-color 0.2s;
}
.buy-support-link a:hover {
    color: var(--amber-light);
    border-bottom-color: var(--amber-light);
}


/* ==========================================================
   WHAT'S IN THE BOX
   ========================================================== */
.inbox-section {
    position: relative;
    background: var(--bg-alt);
}
.inbox-section::before,
.inbox-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
}
.inbox-section::before {
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.2), transparent);
}
.inbox-section::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.2), transparent);
}

.inbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 3.5rem;
}

.inbox-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background 0.25s, border-color 0.25s;
}
.inbox-item:hover {
    background: var(--bg-card-h);
    border-color: rgba(255, 140, 0, 0.22);
}

.inbox-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 140, 0, 0.06);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.inbox-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.inbox-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .buy-product-layout {
        gap: 3.5rem;
    }
}

@media (max-width: 860px) {
    .buy-product-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .buy-gallery {
        position: static;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
    .inbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .buy-hero-inner { padding: 4.5rem 2rem 4rem; }
    .buy-hero-desc { margin-top: 1rem; }
}

@media (max-width: 600px) {
    .buy-hero-inner { padding: 4rem 1.5rem 3.5rem; }
    .buy-hero-desc { margin-top: 0.9rem; letter-spacing: 0.03em; }
    .buy-product-inner {
        padding-top: 3.5rem !important;
        padding-bottom: 4rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .buy-product-layout { gap: 2.5rem; }
    .buy-gallery-thumbs { gap: 0.4rem; }
    .inbox-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .buy-hero-inner { padding: 3.5rem 1.25rem 3rem; }
    .buy-hero-title {
        font-size: clamp(2.2rem, 11vw, 2.8rem);
        flex-direction: column;
        gap: 0;
        line-height: 1.05;
    }
    .buy-hero-desc {
        margin-top: 1rem;
        font-size: 0.875rem;
    }
}


/* ==========================================================
   NOTIFY ME — Form & States
   ========================================================== */

/* Wrapper revealed when Notify Me button is clicked */
.notify-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: var(--radius);
    animation: notifyReveal 0.2s ease;
}

@keyframes notifyReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notify-form-intro {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.notify-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.notify-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.notify-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notify-field input {
    background: #181818;
    border: 1px solid #303030;
    border-radius: var(--radius);
    padding: 0.65rem 0.9rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.notify-field input::placeholder { color: #555; }

.notify-field input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* Submit button */
.notify-submit-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

.btn-buy--submitting,
.notify-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error message */
.notify-error {
    font-size: 0.875rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    margin: 0;
}

/* Success state */
.notify-success {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(107, 203, 119, 0.07);
    border: 1px solid rgba(107, 203, 119, 0.25);
    border-radius: var(--radius);
    margin-top: 0.25rem;
    animation: notifyReveal 0.25s ease;
}

.notify-success svg {
    flex-shrink: 0;
}

.notify-success div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.notify-success strong {
    font-size: 0.9375rem;
    color: var(--text);
}

.notify-success span {
    font-size: 0.8375rem;
    color: var(--text-muted);
}

/* reCAPTCHA scaling on narrow screens */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left top;
    }
}

/* Hide floating reCAPTCHA v3 badge (disclosure text shown in form instead) */
.grecaptcha-badge {
    visibility: hidden !important;
}

.notify-recaptcha-notice {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.notify-recaptcha-notice a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* Collapse notify fields to single column on small screens */
@media (max-width: 520px) {
    .notify-form-fields {
        grid-template-columns: 1fr;
    }
    .notify-form-wrap {
        padding: 1.1rem;
    }
}
