/* ==========================================================================
   UniGear Product Details Page Stylesheet
   Responsive 100vh Layout, Photo Gallery, Typography & Pre-Order Controls
   ========================================================================== */

/* -------------------- 1. Viewport Grid & Container -------------------- */
.product-page {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    overflow: hidden;
    background-color: #ffffff;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* -------------------- 2. Left Column: Image Gallery -------------------- */
.product__image-wrapper {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f1f5f9;
    background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    padding: 2rem 2.5rem;
    overflow: hidden;
    border-right: 1px solid #e2e8f0;
}

.product-gallery-stage {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: calc(100% - 90px);
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Floating Status Badges inside Gallery Stage */
.gallery-top-badges {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}

.gallery-badge.badge-preorder {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.gallery-badge.badge-batch {
    background-color: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.gallery-milestone-pill {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.45rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.gallery-milestone-pill.in-production {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    background: rgba(22, 101, 52, 0.9);
    border-radius: 9999px;
}

.milestone-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.milestone-label i {
    color: #f59e0b;
}

.milestone-progress-track {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
}

.milestone-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Image Preview & Slides */
.product__image-preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySlides {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mySlides.fade {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.mySlides__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.mySlides__image:hover {
    transform: scale(1.03);
}

/* Slide Counter Badge */
.slide-counter-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Navigation Arrows */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.gallery-nav-btn.prev-btn {
    left: 1.25rem;
}

.gallery-nav-btn.next-btn {
    right: 1.25rem;
}

.gallery-nav-btn:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.08);
}

/* Thumbnails Strip Carousel */
.product__image-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.35rem;
    scrollbar-width: none;
}

.product__image-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb-item-btn {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background-color: #ffffff;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.thumb-item-btn:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.thumb-item-btn.active {
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transform: translateY(-2px) scale(1.05);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.55rem;
}

/* -------------------- 3. Right Column: Content & Actions -------------------- */
.product__content-wrapper {
    height: 100%;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding: 2.25rem 2.75rem 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: #ffffff;
}

.product__content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.product__content-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

/* Breadcrumb & Top Bar */
.product-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.crumb-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.crumb-link:hover {
    color: #0f172a;
}

.crumb-sep {
    font-size: 0.7rem;
    color: #cbd5e1;
}

.crumb-current {
    color: #0f172a;
    font-weight: 600;
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
}

/* College & Org Badges */
.product-org-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.college-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.college-pill-badge:hover {
    opacity: 0.9;
}

.org-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
}

/* Title & Wishlist Header */
.product-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.product-title {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.favorite-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #94a3b8;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-circle-btn:hover {
    border-color: #cbd5e1;
    color: #ef4444;
    transform: scale(1.08);
}

.favorite-circle-btn.favorited {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.price-main-display {
    font-size: 2.25rem;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.02em;
}

.price-sub-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.official-merch-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
}

.tax-tag {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Information Tabs */
.product-tabs-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 0.25rem;
}

.product-tabs-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.tab-btn.active {
    color: #16a34a;
    background-color: #f0fdf4;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.tab-pane.active {
    display: block;
}

.product-hook-quote {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-left: 3px solid #16a34a;
    border-radius: 0.5rem;
    margin-bottom: 0.85rem;
}

.quote-icon {
    color: #16a34a;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.product-hook-quote p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
}

.product-desc-body p {
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

/* Specs Tab Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.spec-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

/* Pre-Order Guide Mini Timeline */
.preorder-steps-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.75rem 0.9rem;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #16a34a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-step h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem 0;
}

.mini-step p {
    font-size: 0.825rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* -------------------- 4. Sizing Controls -------------------- */
.product-size-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.size-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e293b;
}

.required-star {
    color: #dc2626;
    font-weight: 800;
}

.selected-size-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.selected-size-label.has-selection {
    color: #16a34a;
}

.size-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.size-pill-btn {
    min-width: 54px;
    height: 48px;
    padding: 0 1rem;
    border-radius: 0.625rem;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.size-pill-btn:hover {
    border-color: #0f172a;
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.size-pill-btn.active {
    border-color: #16a34a;
    background-color: #f0fdf4;
    color: #15803d;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    transform: translateY(-2px);
}

.size-error-notice {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* -------------------- 5. Quantity & Stepper Controls -------------------- */
.product-quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
}

.qty-stepper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.qty-stepper-control {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.625rem;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background-color: #f1f5f9;
}

#quantity {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

.subtotal-display-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.subtotal-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.subtotal-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

/* -------------------- 6. Primary Action CTA -------------------- */
.product-action-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-preorder-cta {
    width: 100%;
    padding: 1.15rem 2rem;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.875rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 20px -4px rgba(22, 163, 74, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-preorder-cta:hover {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(22, 163, 74, 0.45);
}

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

.security-guarantee-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.security-guarantee-note i {
    color: #16a34a;
}

/* -------------------- 7. Preorder Confirmation Modal -------------------- */
.product-modal-dialog {
    border: none;
    border-radius: 1.25rem;
    padding: 0;
    background: transparent;
    max-width: 520px;
    width: 90%;
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid #e2e8f0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.modal-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.modal-title-group h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.modal-title-group p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.btn-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.btn-modal-close:hover {
    color: #0f172a;
}

.modal-summary-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.925rem;
}

.summary-label {
    color: #64748b;
}

.summary-val {
    color: #0f172a;
}

.summary-val.font-bold {
    font-weight: 700;
}

.summary-row.total-row {
    border-top: 1px dashed #cbd5e1;
    padding-top: 0.6rem;
    margin-top: 0.25rem;
}

.total-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #16a34a;
}

.modal-instruction-text {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.modal-instruction-text i {
    color: #2563eb;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.modal-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-modal {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-modal-cancel {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-modal-cancel:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.btn-modal-confirm {
    background-color: #16a34a;
    border: 1px solid #16a34a;
    color: #ffffff;
}

.btn-modal-confirm:hover {
    background-color: #15803d;
}

/* -------------------- 8. Responsive Media Queries -------------------- */
@media (max-width: 992px) {
    .product-page {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .product__image-wrapper {
        height: auto;
        min-height: 460px;
        padding: 1.5rem 1rem;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .product-gallery-stage {
        height: 380px;
    }

    .product__content-wrapper {
        height: auto;
        overflow-y: visible;
        padding: 1.75rem 1.25rem 2.5rem 1.25rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .price-main-display {
        font-size: 1.85rem;
    }
}

@media (max-width: 576px) {
    .product-gallery-stage {
        height: 300px;
    }

    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .product-quantity-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .subtotal-display-box {
        align-items: flex-start;
    }
}
