/**
 * Sportsfile Product Page - Modern Design
 * Image detail page with purchase options
 */

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --blue: #1565C0;
    --blue-dk: #0d47a1;
    --blue-lt: #e3f0ff;
    --ink: #1a1a1a;
    --mid: #555f6e;
    --muted: #8a94a0;
    --border: #e2e6ea;
    --surface: #f7f9fb;
    --white: #ffffff;
    --green: #1a7a4a;
    --green-lt: #e8f7ee;
    --amber: #92400e;
    --amber-lt: #fef3c7;
    --red: #b91c1c;
    --radius: 8px;
}

/* ============================================================
   PAGE NAV / BREADCRUMB
============================================================ */
.page-nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--mid);
    flex-wrap: wrap;
    gap: 12px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--blue);
}

.back-link-circle {
    width: 26px;
    height: 26px;
    background: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.back-link:hover .back-link-circle {
    background: var(--blue);
}

.back-link-circle svg {
    color: #fff;
}

.img-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.img-nav a {
    color: var(--ink);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 400;
}

.img-nav a:hover {
    color: var(--blue);
}

.img-nav-prevnext {
    display: flex;
    gap: 0;
}

.img-nav-prevnext span {
    margin: 0 6px;
    color: var(--muted);
}

/* ============================================================
   PRODUCT PAGE LAYOUT
============================================================ */
.product-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 64px;
}

h1.event-title {
    font-family: "Archer", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 24px;
    letter-spacing: 0;
    line-height: 1.3;
}

h1.event-title a {
    color: var(--blue);
    text-decoration: none;
}

h1.event-title a:hover {
    text-decoration: underline;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 48px;
    align-items: start;
}

/* ============================================================
   IMAGE PANEL
============================================================ */
.image-panel {
    position: sticky;
    top: 80px;
}

.image-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.image-frame img {
    width: 100%;
    display: block;
    opacity: 0.95;
}

.watermark {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.ref-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ============================================================
   PURCHASE PANEL
============================================================ */
.purchase-panel {}

.panel-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

/* Section Labels */
.purchase-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
}

.purchase-section-label:first-child {
    margin-top: 0;
}

.purchase-section-label h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
}

.purchase-section-label hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
}

/* ============================================================
   DIGITAL DOWNLOAD COLLAPSIBLE TOGGLE
============================================================ */
button.dl-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    width: 100%;
    background: transparent;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button.dl-toggle:focus {
    outline: none;
    box-shadow: none;
}

button.dl-toggle h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: inherit;
    margin: 0;
    flex-shrink: 0;
}

button.dl-toggle hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
    height: 0;
}

button.dl-toggle .dl-hint {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

button.dl-toggle:hover h3 {
    color: var(--blue);
}

button.dl-toggle:hover .dl-chevron {
    color: var(--blue);
}

.dl-chevron {
    transition: transform 0.25s ease;
    color: var(--muted);
    flex-shrink: 0;
}

button.dl-toggle.open .dl-chevron {
    transform: rotate(180deg);
}

.dl-expand-body {
    display: none;
    overflow: hidden;
}

.dl-expand-body.open {
    display: block;
}

/* ============================================================
   PRINT SIZE RADIO CARDS
============================================================ */
.print-size-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
}

.print-size-card {
    border: 1.5px solid var(--border);
    border-radius: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, z-index 0s;
    position: relative;
    margin-bottom: -1px;
    background: var(--white);
}

.print-size-card:first-child {
    border-radius: 8px 8px 0 0;
}

.print-size-card:last-child {
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
}

.print-size-card:hover {
    border-color: #9ca3af;
    z-index: 1;
}

.print-size-card.selected {
    border-color: var(--blue);
    background: var(--blue-lt);
    z-index: 2;
}

.print-size-card input[type=radio] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.ps-info {
    flex: 1;
}

.ps-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.ps-info p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.ps-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* ============================================================
   ADD BUTTONS
============================================================ */
.print-add-btn,
.download-add-btn {
    width: 100%;
    height: 44px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
}

.print-add-btn:hover,
.download-add-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

.print-add-btn:active,
.download-add-btn:active {
    transform: translateY(0);
}

.download-add-btn {
    background: var(--blue);
}

.download-add-btn:hover {
    background: var(--blue-dk);
}

.download-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.print-add-btn.in-cart,
.download-add-btn.in-cart {
    background: var(--green);
}

.print-add-btn.in-cart:hover,
.download-add-btn.in-cart:hover {
    background: #155d39;
}

/* ============================================================
   FREE DELIVERY NOTE
============================================================ */
.free-delivery-note {
    text-align: center;
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

/* ============================================================
   PRIVATE USE BANNER
============================================================ */
.private-use-banner {
    background: var(--amber-lt);
    border: 1.5px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.private-use-banner svg {
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 1px;
}

.private-use-banner-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--amber);
    display: block;
    margin-bottom: 2px;
}

.private-use-banner-text p {
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
    margin: 0;
}

.private-use-banner-text a {
    color: var(--amber);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   DOWNLOAD OPTIONS
============================================================ */
.download-option {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.download-option:hover {
    border-color: #9ca3af;
}

.download-option.selected {
    border-color: var(--blue);
    background: var(--blue-lt);
}

.download-option input[type=radio] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.dl-info {
    flex: 1;
}

.dl-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.dl-info p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.dl-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* ============================================================
   PRIVATE USE CHECKBOX
============================================================ */
.private-use-check {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 6px;
    margin-bottom: 16px;
}

.private-use-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--mid);
    line-height: 1.5;
}

.private-use-check input[type=checkbox] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.private-use-check strong {
    color: var(--ink);
}

/* ============================================================
   MINI CART SUMMARY
============================================================ */
.cart-summary {
    margin-top: 22px;
    border: 2px solid var(--blue);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.cart-summary.visible {
    display: block;
}

.cart-summary-header {
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.cart-summary-header svg {
    opacity: 0.9;
}

.cart-items-list {
    padding: 6px 0;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.cart-item-desc {
    flex: 1;
}

.cart-item-desc strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: block;
}

.cart-item-desc span {
    font-size: 11px;
    color: var(--muted);
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    min-width: 52px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.cart-item-remove:hover {
    color: var(--red);
    background: #fef2f2;
}

.cart-summary-footer {
    background: var(--surface);
    border-top: 1.5px solid var(--border);
    padding: 14px 16px 16px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-subtotal span {
    font-size: 13px;
    color: var(--mid);
}

.cart-subtotal strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}

.checkout-btn {
    width: 100%;
    height: 48px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--blue-dk);
    transform: translateY(-1px);
}

.checkout-btn:active {
    transform: translateY(0);
}

.checkout-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Empty checkout state */
.checkout-empty {
    margin-top: 22px;
}

.checkout-empty .checkout-btn {
    background: #9ca3af;
    cursor: default;
}

.checkout-empty .checkout-btn:hover {
    background: #9ca3af;
    transform: none;
}

/* ============================================================
   IMAGE METADATA
============================================================ */
.image-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.meta-ref {
    font-size: 13px;
    color: var(--mid);
    margin-bottom: 12px;
}

.meta-ref strong {
    color: var(--ink);
    font-weight: 700;
}

.meta-caption {
    font-size: 13px;
    color: var(--mid);
    line-height: 1.65;
    margin-bottom: 14px;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.meta-tag {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mid);
    padding: 3px 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quality-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.quality-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.quality-badge svg {
    color: var(--blue);
    flex-shrink: 0;
}

/* ============================================================
   ACCORDIONS
============================================================ */
.accordion {
    border-top: 1px solid var(--border);
}

.accordion-item {}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.accordion-trigger:hover {
    color: var(--blue);
}

.accordion-trigger svg {
    transition: transform 0.2s;
    color: var(--muted);
}

.accordion-trigger.open svg {
    transform: rotate(45deg);
}

.accordion-body {
    display: none;
    padding: 4px 0 16px;
    font-size: 13px;
    color: var(--mid);
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
}

.accordion-body.open {
    display: block;
}

.accordion-body ul {
    padding-left: 18px;
    margin: 0;
}

.accordion-body ul li {
    margin-bottom: 4px;
}

/* ============================================================
   SHARE ROW
============================================================ */
.share-row {
    padding: 14px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mid);
}

.share-icons {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    color: var(--mid);
    text-decoration: none;
}

.share-icon:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ============================================================
   EDITORS CHOICE BADGE
============================================================ */
.editors-choice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amber-lt);
    color: var(--amber);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-page {
        padding: 0 16px 48px;
    }

    .page-nav {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .image-panel {
        position: static;
    }

    h1.event-title {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .print-size-card {
        flex-wrap: wrap;
    }

    .ps-price {
        width: 100%;
        text-align: right;
        margin-top: 8px;
    }
}
