/*
 * Motorcycle Theme 01 — Product Details presentation.
 *
 * Scoped to body.theme-motorcycle .mc-product-page. The shared product-details
 * partial supplies every product/variation/cart/review/tracking behaviour; this
 * sheet only changes the Motorcycle visual language (dark cockpit panel, red
 * technical accents, condensed uppercase headings, square industrial frames).
 * Global font configuration is inherited — no font imports are added here.
 */

body.theme-motorcycle .mc-product-page {
    --mcp-gutter: .75rem;
    --mcp-dark: #0f172a;
    --mcp-dark-2: #1e293b;
    --mcp-dark-3: #111827;
    --mcp-line: #334155;
    --mcp-text: #e2e8f0;
    --mcp-muted: #94a3b8;

    background: var(--mc-bg);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 640px) {
    body.theme-motorcycle .mc-product-page {
        --mcp-gutter: 1rem;
    }
}

/* Page shell ------------------------------------------------------------- */
body.theme-motorcycle .mc-product-page > .max-w-7xl {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 1.25rem var(--mcp-gutter) 0;
}

/* Breadcrumb ------------------------------------------------------------- */
body.theme-motorcycle .mc-product-page > .max-w-7xl > nav {
    margin-bottom: 0 !important;
    padding: .85rem clamp(.9rem, 2vw, 1.25rem);
    border: 1px solid var(--mcp-line);
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(120deg, #0b1220, #111827);
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > nav ol {
    color: var(--mcp-muted) !important;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > nav ol a,
body.theme-motorcycle .mc-product-page > .max-w-7xl > nav ol span {
    color: var(--mcp-text) !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > nav ol a:hover {
    color: #fca5a5 !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > nav ol > li > div {
    width: 3px !important;
    height: 1.9rem !important;
    border-radius: 0 !important;
    background: var(--mc-brand) !important;
}

/* Product cockpit panel (breadcrumb + gallery + purchase info) ------------ */
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid {
    row-gap: 1.5rem;
    column-gap: 1rem;
    align-items: start;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--mcp-line);
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(220, 38, 38, .16), transparent 58%),
        linear-gradient(155deg, #0b1220 0%, #0f172a 55%, #111827 100%);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .65);
    color: var(--mcp-text);
}

@media (min-width: 1024px) {
    body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid {
        row-gap: 1.5rem;
        column-gap: clamp(1rem, 2vw, 1.75rem);
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    }
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid > div:last-child {
    min-width: 0;
    align-self: start;
}

/* Gallery ---------------------------------------------------------------- */
body.theme-motorcycle .mc-product-page #imageContainer {
    border: 1px solid var(--mcp-line);
    border-radius: .7rem;
    background: #0b1220;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

body.theme-motorcycle .mc-product-page #imageContainer::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 3px;
    background: var(--mc-brand);
    pointer-events: none;
}

body.theme-motorcycle .mc-product-page #imageContainer > span.absolute {
    top: .75rem;
    right: .75rem;
    padding: .4rem .65rem;
    border-radius: .35rem;
    background: var(--mc-brand) !important;
    color: #ffffff !important;
    font-size: 11px;
    letter-spacing: .06em;
}

body.theme-motorcycle .mc-product-page #imageContainer .bg-slate-100 {
    background: #0b1220 !important;
}

body.theme-motorcycle .mc-product-page #imageContainer .text-slate-300 {
    color: #475569 !important;
}

body.theme-motorcycle .mc-product-page #videoContainer {
    border: 1px solid var(--mcp-line);
    border-radius: .7rem;
}

body.theme-motorcycle .mc-product-page #videoContainer .play-btn {
    border-radius: .5rem !important;
    background: var(--mc-brand) !important;
}

body.theme-motorcycle .mc-product-page #thumbnailContainer {
    gap: .5rem;
    padding-bottom: .5rem;
}

body.theme-motorcycle .mc-product-page .thumbnail-btn {
    border: 1px solid var(--mcp-line) !important;
    border-radius: .4rem !important;
    background: #0b1220;
    opacity: .72;
}

body.theme-motorcycle .mc-product-page .thumbnail-btn:hover {
    border-color: #64748b !important;
    opacity: 1;
}

body.theme-motorcycle .mc-product-page .thumbnail-btn.border-indigo-600 {
    border-color: var(--mc-brand) !important;
    box-shadow: 0 0 0 1px var(--mc-brand);
    opacity: 1;
}

body.theme-motorcycle .mc-product-page .thumbnail-btn.border-slate-200 {
    border-color: var(--mcp-line) !important;
}

/* Product information ---------------------------------------------------- */
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid > div:last-child > div:first-child {
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid h1 {
    color: #ffffff !important;
    font-family: var(--mc-display);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: .95;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page #displayPrice {
    color: #ffffff !important;
    font-family: var(--mc-display);
    font-size: clamp(2rem, 3.6vw, 2.75rem) !important;
    font-weight: 800 !important;
    line-height: 1;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .text-slate-800 {
    color: #ffffff !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .text-slate-700 {
    color: #cbd5e1 !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .text-slate-600 {
    color: #cbd5e1 !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .text-slate-500 {
    color: var(--mcp-muted) !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .line-through {
    color: #94a3b8 !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .bg-indigo-50 {
    border-color: rgba(220, 38, 38, .35) !important;
    background: rgba(220, 38, 38, .12) !important;
    color: #fecaca !important;
    border-radius: .35rem !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid label {
    color: #cbd5e1 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Variation / normal option chips */
body.theme-motorcycle .mc-product-page .color-btn,
body.theme-motorcycle .mc-product-page .normal-color-btn,
body.theme-motorcycle .mc-product-page .normal-size-btn,
body.theme-motorcycle .mc-product-page .size-btn {
    padding: .45rem .7rem !important;
    border: 1px solid var(--mcp-line) !important;
    border-radius: .4rem !important;
    background: var(--mcp-dark-3);
    color: var(--mcp-text) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

body.theme-motorcycle .mc-product-page .color-btn:hover,
body.theme-motorcycle .mc-product-page .normal-color-btn:hover,
body.theme-motorcycle .mc-product-page .normal-size-btn:hover,
body.theme-motorcycle .mc-product-page .size-btn:hover {
    border-color: var(--mc-brand) !important;
    color: #ffffff !important;
}

body.theme-motorcycle .mc-product-page .selected-option-btn {
    border-color: var(--mc-brand) !important;
    background: var(--mc-brand) !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px -10px rgba(220, 38, 38, .8);
}

/* Quantity + stock */
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid button[onclick^="updateQuantity"] {
    border: 1px solid var(--mcp-line);
    border-radius: .4rem !important;
    background: var(--mcp-dark-2) !important;
    color: var(--mcp-text) !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid button[onclick^="updateQuantity"]:hover {
    background: #273449 !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid button[onclick^="updateQuantity"] svg {
    color: var(--mcp-text) !important;
}

body.theme-motorcycle .mc-product-page #quantity {
    border-color: var(--mcp-line) !important;
    border-radius: .4rem !important;
    background: #0b1220 !important;
    color: #ffffff !important;
}

body.theme-motorcycle .mc-product-page #stockBadge {
    border-radius: .35rem !important;
    font-size: 10px !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Quick overview */
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .bg-slate-50 {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .6rem !important;
    background: rgba(255, 255, 255, .05) !important;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .bg-slate-50 h3 {
    color: #ffffff !important;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .bg-slate-50 .ckeditor-content,
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .bg-slate-50 .text-slate-600 {
    color: #cbd5e1 !important;
}

/* Live viewer badges */
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid .bg-emerald-100 {
    border: 1px solid rgba(16, 185, 129, .3);
    border-radius: .35rem !important;
    background: rgba(16, 185, 129, .14) !important;
    color: #6ee7b7 !important;
    font-size: 10px !important;
    letter-spacing: .04em;
}

/* Action buttons keep the admin-configured gradients; only shape changes. */
body.theme-motorcycle .mc-product-page #mainActionButtons button,
body.theme-motorcycle .mc-product-page #stickyBottomBar button {
    min-height: 2.9rem;
    border-radius: .5rem !important;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid a[href^="tel:"],
body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid button[onclick="sendToWhatsApp()"] {
    min-height: 2.6rem;
    border-radius: .5rem !important;
    font-weight: 700;
    letter-spacing: .04em;
}

/* Description, reviews and related products (light workshop panels) ----- */
body.theme-motorcycle .mc-product-page > .max-w-7xl > div.mt-4 {
    margin-top: 1.5rem !important;
    padding: clamp(1rem, 3vw, 1.75rem) !important;
    border: 1px solid var(--mc-line) !important;
    border-radius: 1rem;
    background: var(--mc-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > div.mt-4 h2 {
    padding-left: .75rem;
    border-left: 4px solid var(--mc-brand);
    color: var(--mc-ink);
    font-family: var(--mc-display);
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page > .max-w-7xl > div.mt-4 .w-1.h-6 {
    display: none;
}

/* Tabs */
body.theme-motorcycle .mc-product-page #tab-description,
body.theme-motorcycle .mc-product-page #tab-reviews {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page #tab-description.border-indigo-600,
body.theme-motorcycle .mc-product-page #tab-reviews.border-indigo-600 {
    border-color: var(--mc-brand) !important;
    color: var(--mc-brand) !important;
}

body.theme-motorcycle .mc-product-page #tab-description.border-transparent,
body.theme-motorcycle .mc-product-page #tab-reviews.border-transparent {
    color: var(--mc-muted) !important;
}

/* Review form + cards */
body.theme-motorcycle .mc-product-page #reviewForm input,
body.theme-motorcycle .mc-product-page #reviewForm textarea {
    border-color: var(--mc-line) !important;
    border-radius: .5rem !important;
    background: #f8fafc !important;
    color: var(--mc-ink) !important;
}

body.theme-motorcycle .mc-product-page #reviewForm input:focus,
body.theme-motorcycle .mc-product-page #reviewForm textarea:focus {
    border-color: var(--mc-brand) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .16);
}

body.theme-motorcycle .mc-product-page #reviewForm .secondary-gradient-btn {
    border-radius: .5rem !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page #reviewsSlider .bg-white,
body.theme-motorcycle .mc-product-page #reviewForm.bg-white {
    border-color: var(--mc-line) !important;
}

body.theme-motorcycle .mc-product-page #reviewsSlider .rounded-xl {
    border-radius: .75rem !important;
}

/* Related product cards */
body.theme-motorcycle .mc-product-page .product-card {
    border: 1px solid var(--mc-line-soft) !important;
    border-radius: .75rem !important;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

body.theme-motorcycle .mc-product-page .product-card > a:first-child {
    background: #f1f5f9;
}

body.theme-motorcycle .mc-product-page .product-card h3 {
    color: var(--mc-ink-soft);
    font-size: 13px;
    font-weight: 700;
}

body.theme-motorcycle .mc-product-page .product-card .text-sm.font-semibold {
    color: var(--mc-brand) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

body.theme-motorcycle .mc-product-page .product-card button,
body.theme-motorcycle .mc-product-page .product-card a[style] {
    border-radius: .5rem !important;
    font-size: 11px !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-product-page .related-product-grid {
    gap: 1rem;
}

body.theme-motorcycle .mc-product-page .product-slider__nav {
    border-color: var(--mc-line);
    background: #ffffff;
    color: var(--mc-ink);
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .35);
}

/* Sticky mobile purchase bar */
body.theme-motorcycle .mc-product-page #stickyBottomBar {
    border-top: 1px solid var(--mcp-line) !important;
    background: var(--mcp-dark) !important;
    box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .75);
}

body.theme-motorcycle .mc-product-page #stickyBottomBar > div {
    max-width: 1280px;
    padding-inline: var(--mcp-gutter);
}

/* Responsive safeguards -------------------------------------------------- */
@media (max-width: 639px) {
    body.theme-motorcycle .mc-product-page > .max-w-7xl {
        padding-top: 1rem;
    }

    body.theme-motorcycle .mc-product-page > .max-w-7xl > .grid {
        padding: .85rem;
    }

    body.theme-motorcycle .mc-product-page > .max-w-7xl > div.mt-4 {
        padding: 1rem !important;
    }

    body.theme-motorcycle .mc-product-page #mainActionButtons button,
    body.theme-motorcycle .mc-product-page #mainActionButtons a,
    body.theme-motorcycle .mc-product-page #mainActionButtons .grid {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-motorcycle .mc-product-page .thumbnail-btn,
    body.theme-motorcycle .mc-product-page .color-btn,
    body.theme-motorcycle .mc-product-page .normal-color-btn,
    body.theme-motorcycle .mc-product-page .normal-size-btn,
    body.theme-motorcycle .mc-product-page .size-btn {
        transition: none;
    }
}
