/* --- CORE MINIMAL DESIGN ARCHITECTURE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow-x: hidden;
}

/* Password access screen */
.password-gate {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #050505;
    color: #ffffff;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.password-gate.is-unlocked {
    opacity: 0;
    pointer-events: none;
}

.password-gate-panel {
    width: min(100%, 460px);
    margin: auto;
    padding: 44px 38px;
    border: 1px solid #003314;
    text-align: center;
}

.password-gate-logo {
    width: min(100%, 230px);
    height: auto;
    margin-bottom: 42px;
    filter: invert(1);
}

.password-gate-eyebrow {
    margin-bottom: 14px;
    color: #bdbdbd;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.password-gate h1 {
    margin-bottom: 14px;
    font-size: clamp(1.45rem, 5vw, 2rem);
    letter-spacing: 0.08em;
}

.password-gate-copy {
    margin: 0 auto 28px;
    max-width: 320px;
    color: #c7c7c7;
    font-size: 0.64rem;
    line-height: 1.6;
    letter-spacing: 0.09em;
}

.password-gate-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.password-gate-form label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.password-gate-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #8a8a8a;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    outline: none;
    text-transform: none;
}

.password-gate-form input:focus {
    border-color: #ffffff;
}

.password-gate-form input[aria-invalid="true"] {
    border-color: #ff6b6b;
}

.password-gate-error {
    min-height: 1em;
    color: #ff8c8c;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.password-gate-form button {
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.password-gate-form button:hover,
.password-gate-form button:focus-visible {
    border-color: #003314;
    background: #003314;
    color: #ffffff;
}

.password-gate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: #a8a8a8;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.password-gate-divider::before,
.password-gate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.password-access-signup {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.password-access-signup-copy {
    margin-bottom: 6px;
    color: #c7c7c7;
    font-size: 0.6rem;
    line-height: 1.55;
    letter-spacing: 0.07em;
}

.password-access-signup > label:not(.password-access-consent) {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.password-access-signup input[type="email"],
.password-access-signup input[type="tel"] {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: 1px solid #8a8a8a;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    outline: none;
}

.password-access-signup input:focus {
    border-color: #ffffff;
}

.password-access-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 8px 0 2px;
    color: #e5e5e5;
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.password-access-consent input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #ffffff;
}

.password-access-signup button {
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.password-access-signup button:hover,
.password-access-signup button:focus-visible {
    border-color: #003314;
    background: #003314;
    color: #ffffff;
}

.password-access-disclaimer {
    margin-top: 14px;
    color: #999999;
    font-size: 0.5rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .password-gate { padding: 14px; }
    .password-gate-panel { padding: 30px 24px; }
    .password-gate-logo { width: 190px; margin-bottom: 26px; }
    .password-gate-copy { margin-bottom: 20px; }
    .password-gate-divider { margin: 20px 0; }
}

/* Top Bar Indicator Ticker */
.announcement-bar {
    background-color: #003314;
    color: #ffffff;
    padding: 12px 0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    border-bottom: 1px solid #003314;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-track {
    display: flex;
    width: max-content;
    animation: announcement-scroll 16s linear infinite;
}

.announcement-track span {
    padding-right: 10rem;
}

@keyframes announcement-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-track { animation: none; }
}

/* Main Structural Navigation Header */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 25px 40px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10;
}

.nav-btn {
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-right {
    text-align: right;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Controls the exact display size of your new emblem graphic */
.logo-graphic {
    height: 45px; /* Adjust this number up or down to change logo size */
    width: auto;  /* Maintains perfect structural proportions */
    object-fit: contain;
}

/* Subsection Tracking Title */
.catalog-banner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-title {
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- THE PRODUCT GRID ENGINE --- */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px 40px;
}

.product-card {
    display: flex;
    flex-direction: column; /* Stacks image, text, and size options cleanly vertically */
    justify-content: flex-start;
    align-items: stretch; /* Stretches the buttons to fit your grid width uniformly */
    border: 1px solid transparent;
    padding: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-card:hover {
    border: 1px solid #014421;
    background-color: #014421;
    color: #ffffff;
}

.product-card:hover .item-title,
.product-card:hover .item-cost,
.product-card:hover .unit-tracker {
    color: #ffffff;
}

/* Rigid Identity Aspect Ratio - Acts as the anchor container */
.image-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    position: relative; /* This keeps the absolutely positioned images inside this box */
}

/* Base setup for both stacked images */
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* Layering the images on top of each other */
    top: 0;
    left: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition speed */
}

/* The default state: primary is fully visible, hover image is hidden */
.primary-img {
    z-index: 2; /* Sits on top */
    opacity: 1;
}

.hover-img {
    z-index: 1; /* Hidden directly underneath */
    opacity: 0;
}

/* --- THE HOVER TRICK ENGINE --- */
/* When the mouse rolls over the product card, the primary image fades away, revealing the hover image */
.product-card:hover .primary-img {
    opacity: 0;
}

.product-card:hover .hover-img {
    opacity: 1;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111111;
}

.item-cost {
    font-size: 0.75rem;
    color: #777777;
    font-weight: 500;
}

/* Size Selector Sub-Tray */
.size-selector {
    display: flex;
    flex-direction: row; /* Horizontal sizing layout alignment */
    justify-content: flex-start;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 5px;
}

.size-dot {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 6px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-dot:hover, .size-dot.selected {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* Heavy Action Buttons */
.action-gate-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-gate-btn:hover {
    background-color: #333333;
}

/* --- SLIDING INTERACTIVE SIDE DRAWER COMPONENTS --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 101;
    box-shadow: -5px 0 25px rgba(0,0,0,0.05);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.side-drawer.left-variant {
    left: -450px;
    right: auto;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.active {
    right: 0;
}

.side-drawer.left-variant.active {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.drawer-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.close-drawer-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* Internal Interactive Cart Elements */
.cart-contents-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-notice {
    font-size: 0.7rem;
    color: #888888;
    text-align: center;
    margin-top: 40px;
}

.cart-record-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: #f9f9f9;
}

.cart-item-info h4 {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 0.65rem;
    color: #666666;
}

.remove-cart-item-btn {
    background: none;
    border: none;
    font-size: 0.6rem;
    color: #ff3333;
    cursor: pointer;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.drawer-footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    margin-top: auto;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Payment choice for individual product checkout links */
#cart-drawer {
    height: 100dvh;
    overflow-y: auto;
}

#cart-drawer .drawer-header,
#cart-drawer .drawer-footer {
    flex-shrink: 0;
}

#cart-drawer .cart-contents-wrapper {
    min-height: 100px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.payment-methods legend {
    margin-bottom: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.5;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 68px;
    padding: 12px 10px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: #003314;
    background-color: #f1f6f2;
    box-shadow: inset 0 0 0 1px #003314;
}

.payment-option:has(input:focus-visible) {
    outline: 2px solid #003314;
    outline-offset: 3px;
}

.payment-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #003314;
}

.payment-option-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.payment-option-title {
    font-size: 0.72rem;
    font-weight: 800;
}

.payment-option-paypal .payment-option-title {
    color: #003087;
}

.payment-option-detail {
    color: #555555;
    font-size: 0.52rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.payment-methods:disabled .payment-option {
    opacity: 0.55;
    cursor: default;
}

.checkout-message {
    margin-top: 12px;
    color: #555555;
    font-size: 0.6rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.checkout-message-unavailable {
    color: #8b3215;
}

.checkout-button {
    min-height: 46px;
}

.checkout-button:focus-visible {
    outline: 2px solid #003314;
    outline-offset: 3px;
}

.checkout-button-paypal {
    background-color: #ffc439;
    color: #003087;
}

.checkout-button-paypal:hover {
    background-color: #f2b72e;
}

.checkout-button:disabled,
.checkout-button:disabled:hover {
    background-color: #e5e5e5;
    color: #666666;
    cursor: not-allowed;
}

/* Navigation Menu Links */
.menu-links-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.menu-anchor-link {
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: opacity 0.2s;
}

.menu-anchor-link:hover {
    opacity: 0.5;
}

/* Structural Layout Footer */
footer {
    border-top: 1px solid #003314;
    background-color: #003314;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.65rem;
    color: #ffffff;
}

/* Screen Scaling Adjustments */
@media (max-width: 768px) {
    header { padding: 20px; }
    .brand-logo { font-size: 1.2rem; }
    .episodes-grid { padding: 0 20px 60px 20px; gap: 15px; }
    .side-drawer { max-width: 100%; right: -100%; }
    .side-drawer.left-variant { left: -100%; }
}
/* --- CINEMATIC VIDEO COVER CONFIGURATION --- */
.cover-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999; /* Keeps it strictly above the standard navigation layout */
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cover-gif {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stretches the GIF to fill the screen beautifully without warping */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.45; /* Darkens the GIF so your search bar and white logo stay readable */
    filter: grayscale(20%);
}

.cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    color: #ffffff;
}

.cover-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: invert(1); /* Dynamically flips black graphic element to white */
}

.cover-middle {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.search-box { width: 100%; }

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 25px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-box input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.enter-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    width: 100%;
    padding: 18px 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.enter-btn:hover { background-color: #e0e0e0; }

.cover-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.drop-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e5e5;
}

.pulse-icon {
    width: 7px;
    height: 7px;
    background-color: #00ff66; /* Neon alert beacon */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    animation: pulseGrid 1.6s infinite;
}

@keyframes pulseGrid {
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.scroll-prompt { color: #888888; }

@media (max-width: 768px) {
    .cover-content { padding: 40px 20px; }
    .cover-footer { flex-direction: column; gap: 15px; text-align: center; }
}
/* --- COMPREHENSIVE PRODUCT PAGE MODAL LAYOUT --- */
.product-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000; /* Layers right over standard storefront */
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.product-page-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.product-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
}

/* Master Two-Column Grid Setup */
.product-page-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

/* Slideshow Left Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slideshow-window {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.slideshow-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.slideshow-window img.is-zoomed {
    cursor: grab;
    touch-action: none;
}

.slideshow-window img.is-panning {
    cursor: grabbing;
    transition: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #000000;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    font-size: 2rem;
    font-family: Arial, sans-serif;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
    background-color: #000000;
    color: #ffffff;
}

.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

.gallery-zoom-controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    border: 1px solid #000000;
    background: rgba(255, 255, 255, 0.9);
}

.gallery-zoom-btn {
    width: 38px;
    height: 36px;
    border: 0;
    border-right: 1px solid #000000;
    background: transparent;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-zoom-btn:last-child { border-right: 0; }

.gallery-zoom-btn:hover:not(:disabled),
.gallery-zoom-btn:focus-visible:not(:disabled) {
    background: #000000;
    color: #ffffff;
}

.gallery-zoom-btn:disabled {
    color: #999999;
    cursor: not-allowed;
}

.slideshow-thumbnails {
    display: flex;
    gap: 12px;
}

.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background-color: #f9f9f9;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.2s ease;
}

.thumb-img.active, .thumb-img:hover {
    border-color: #000000;
}

/* Right Detail Control Track Panel */
.product-details-panel {
    display: flex;
    flex-direction: column;
}

.p-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #000000;
}

.p-price {
    font-size: 1.1rem;
    color: #555555;
    font-weight: 600;
}

.divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

/* Stock Tracker Component Engine */
.stock-status-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.stock-in { background-color: #00ff66; box-shadow: 0 0 8px rgba(0,255,102,0.4); }
.stock-low { background-color: #ff9900; box-shadow: 0 0 8px rgba(255,153,0,0.4); }
.stock-out { background-color: #ff3333; }

.stock-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.p-description {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #444444;
    text-transform: none; /* Allows natural readability for long paragraphs */
    padding: 16px 0 20px;
}

.product-info-accordion,
.more-options-panel {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.product-info-accordion {
    margin-bottom: 24px;
}

.product-info-accordion summary,
.more-options-panel summary {
    position: relative;
    padding: 16px 24px 16px 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    list-style: none;
}

.product-info-accordion summary::-webkit-details-marker,
.more-options-panel summary::-webkit-details-marker {
    display: none;
}

.product-info-accordion summary::after,
.more-options-panel summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 2px;
    font-size: 1.15rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.product-info-accordion[open] summary::after,
.more-options-panel[open] summary::after {
    content: '−';
}


.size-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.size-label { font-size: 0.7rem; font-weight: 700; }

.size-chart-link {
    background: none;
    border: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    color: #777777;
    letter-spacing: 0.05em;
}

.size-chart-link:hover { color: #000000; }

.more-options-panel {
    margin-top: 28px;
}

.more-options-list {
    display: grid;
    gap: 10px;
    padding: 0 0 16px;
}

.more-options-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    background: #fafafa;
    color: #000000;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.more-options-item:hover,
.more-options-item:focus-visible {
    border-color: #000000;
    background: #ffffff;
    outline: none;
}

.more-options-item img {
    width: 58px;
    height: 58px;
    object-fit: cover;
}

.more-options-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.more-options-item-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.more-options-item-price {
    color: #555555;
    font-size: 0.62rem;
    font-weight: 600;
}

/* Size chart popup styling */
.chart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.chart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.chart-image {
    max-width: 90%;
    max-height: 80%;
    background-color: #ffffff;
    padding: 20px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Mobile Layout Adaptation */
@media (max-width: 900px) {
    .product-page-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-page-container { padding: 60px 20px; }
    .modal-close-btn { top: 20px; right: 20px; }
}/* ==========================================================================
   MASTER BREAKPOINTS: COMPUTER VIEW VS. MOBILE VIEW
   ========================================================================== */

/* --- 🖥️ COMPUTER / DESKTOP VIEW ADJUSTMENTS (1024px and Wider) --- */
@media (min-width: 1024px) {
    .episodes-grid {
        grid-template-columns: repeat(3, 1fr); /* Forces an elegant 3-column desktop presentation */
        gap: 30px;
    }
    
    .catalog-banner {
        padding: 60px 40px 30px 40px;
    }
    
    .catalog-title {
        font-size: 0.9rem;
    }
}

/* --- 規格 TABLET INTERMEDIATE VIEW (769px to 1023px) --- */
@media (max-width: 1023px) and (min-width: 769px) {
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr); /* Scales grid to a balanced 2-column look on iPads/tablets */
    }
}

/* --- 📱 MOBILE PHONE VIEW ADJUSTMENTS (768px and Narrower) --- */
@media (max-width: 768px) {
    /* 1. Header & Banner Compression */
    header {
        padding: 15px 20px !important; /* Compresses top navigation space */
    }
    
    .logo-graphic {
        height: 32px; /* Scales down logo height to keep MENU and CART on the same line */
    }

    .catalog-banner {
        padding: 25px 20px 10px 20px;
    }

    /* 2. Premium 2-Column Lookbook Grid for Mobile Screens */
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Splits mobile screen into 2 columns side-by-side */
        gap: 12px !important;
        padding: 0 15px 40px 15px !important;
    }

    /* 3. Product Card Typographic Scaling down to prevent text breaking */
    .product-card {
        padding: 4px;
    }

    .image-frame {
        margin-bottom: 8px;
    }

    .info-block {
        gap: 3px;
    }

    .item-title {
        font-size: 0.6rem; /* Tightens text sizing so longer names stay on one line */
        letter-spacing: 0.04em;
    }

    .item-cost {
        font-size: 0.65rem;
    }

    /* 4. Sizing Matrix Adjustments */
    .size-selector {
        gap: 4px;
        margin-top: 8px;
        margin-bottom: 2px;
        flex-wrap: wrap; /* Ensures sizing pills wrap gracefully if layout shrinks */
    }

    .size-dot {
        padding: 4px 6px;
        font-size: 0.55rem;
    }

    /* 5. Mobile Purchase Call To Action Buttons */
    .action-gate-btn {
        padding: 10px 0;
        font-size: 0.6rem;
        margin-top: 8px;
    }

    /* 6. Dynamic Overlaid Product Page Details View for Phones */
    .product-page-container {
        padding: 40px 20px; /* Thinner bounding padding */
    }

    .modal-close-btn {
        top: 20px;
        right: 20px;
    }

    .p-title {
        font-size: 1.1rem;
        margin-top: 15px;
    }

    .p-description {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }
}/* Quantity Picker Controls */
.qty-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.qty-picker button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.qty-picker button:hover {
    background: #000;
    color: #fff;
}

.qty-picker span {
    font-size: 0.75rem;
    font-weight: bold;
}

.drawer-qty {
    margin-top: 5px;
}

/* Product Card Unit Tracker */
.unit-tracker {
    font-size: 0.6rem;
    color: #008800;
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: 0.05em;
}

/* Contact / Support Form Styling */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-form label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.support-form input, 
.support-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.75rem;
    outline: none;
    text-transform: uppercase;
}

.support-form input:focus, 
.support-form textarea:focus {
    border-color: #000;
}#recently-viewed-grid, 
#suggested-grid {
    margin-bottom: 20px;
}
