/* Base Resets */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent default window scroll */
    background-color: #ece9e3;
    font-family: 'Inter', sans-serif;
    color: #050505;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Container for Snapping (Smooth Swiping) */
.scroll-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; 
    scrollbar-width: none;  
}
.scroll-container::-webkit-scrollbar {
    display: none; 
}

/* Individual Full-screen Sections */
.section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* --- HERO SECTION (Mobile Default) --- */
.hero {
    background-color: #ece9e3;
}

.hero-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    cursor: pointer;
    z-index: 1;
}

.hero-zoom-container.zoomed {
    /* Scale so the central Tokyo poster fits nicely in the center without cropping the sides */
    transform: scale(3.0); 
}

.hero-img-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100vw; /* Fits the entire graphic perfectly on screen without bleeding off edges */
    height: auto; /* Natural height to prevent stretching */
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.hero-img-wrapper img {
    width: 100%;
    height: auto; /* Allow natural aspect ratio */
    object-fit: contain; /* PERFECT FIT, NO STRETCHING */
    display: block;
}

/* --- PRODUCT SECTION --- */
.product {
    padding: 40px 20px;
}

.product-header {
    position: absolute;
    top: 25px; 
    left: 20px;
    font-family: 'Anton', Impact, sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.carousel-container {
    position: relative;
    width: 100vw;
    height: 55vh;
    margin-top: -12vh;
    overflow: visible; /* Fixed shadow clipping */
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px; /* Buffer for box-shadow */
    box-sizing: border-box;
}

.carousel-img {
    max-height: 100%;
    max-width: 65vw;
    object-fit: contain;
    border: 4px solid #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    z-index: 10;
    transition: transform 0.2s;
}
.nav-arrow:active {
    transform: translateY(-50%) scale(0.85);
}
.nav-arrow svg {
    width: 16px;
    height: 16px;
}
.nav-arrow.left-arrow {
    left: 10px;
}
.nav-arrow.right-arrow {
    right: 10px;
}

.nav-arrow:active {
    opacity: 0.5;
}

.product-details {
    position: absolute;
    bottom: 60px; /* Shifted DOWN slightly to create more room */
    left: 20px;
    z-index: 2;
}

.price {
    font-family: 'Anton', Impact, sans-serif;
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    line-height: 1;
}

.desc {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: #222;
    font-weight: 400;
}

/* Action Buttons */
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.buy-btn {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 999px; /* Pill shape */
    padding: 10px 35px;
    font-size: 1.1rem;
    font-family: 'Anton', Impact, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.buy-btn:active {
    opacity: 0.7;
}

.icon-btn {
    background-color: transparent;
    border: 2px solid #000;
    border-radius: 50%; /* Circle for icon */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    transition: transform 0.2s;
}

.icon-btn:active {
    transform: scale(0.9);
}

/* Global View Cart Button */
.global-cart-btn {
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.global-cart-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

/* --- INTERACTION HINTS --- */
.interaction-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 10;
    text-align: center;
    color: #050505;
}

.interaction-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.pc-only {
    display: none;
}

/* --- DESKTOP (PC) OVERRIDES --- */
@media (min-width: 768px) {
    .hero-zoom-container {
        cursor: default;
    }
    .hero-zoom-container.zoomed {
        transform: none; 
    }
    .hero-img-wrapper {
        width: 70vw;
        max-width: 1200px;
        height: auto;
    }
    .hero-img-wrapper img {
        object-fit: contain; 
    }
    #zoom-hint, #swipe-hint { 
        display: none !important; 
    }
    #pc-swipe-hint {
        display: flex; 
    }
    .product-header { 
        top: 40px; 
        left: 60px; 
        font-size: 4rem; 
    }
    .product-details { 
        bottom: 50px; 
        left: 60px; 
    }
    .price { 
        font-size: 3.5rem; 
    }
    .desc { 
        font-size: 1.2rem; 
    }
    .carousel-container { 
        max-width: 900px; 
        gap: 80px; 
        margin-top: -8vh;
    }
    .poster-wrapper img {
        max-width: 400px;
        max-height: 60vh;
    }
    .interaction-hint.bottom-hint {
        font-size: 1.1rem;
        bottom: 20px;
    }
    .global-cart-btn {
        top: 40px;
        right: 60px;
        font-size: 1rem;
        padding: 12px 24px;
    }
}
/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #ece9e3;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: translateY(20px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #050505;
}

.modal-title {
    font-family: 'Anton', Impact, sans-serif;
    font-size: 2rem;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

/* Cart Items */
.cart-items {
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-img {
    width: 50px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #000;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Anton', Impact, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}
.full-width:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkout Form */
#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: transparent;
}
.modal-input:focus {
    outline: none;
    border-color: #000;
}

 / *   T e x t   P a g e   ( P r i v a c y   P o l i c y )   * / 
 . t e x t - p a g e   { 
         j u s t i f y - c o n t e n t :   f l e x - s t a r t ; 
         p a d d i n g :   6 0 p x   2 0 p x ; 
         o v e r f l o w - y :   a u t o ; 
         b a c k g r o u n d - c o l o r :   # e c e 9 e 3 ; 
         - w e b k i t - o v e r f l o w - s c r o l l i n g :   t o u c h ; 
 } 
 . c o n t e n t - c o n t a i n e r   { 
         m a x - w i d t h :   8 0 0 p x ; 
         w i d t h :   1 0 0 % ; 
         m a r g i n :   0   a u t o ; 
         c o l o r :   # 0 5 0 5 0 5 ; 
         p a d d i n g - b o t t o m :   6 0 p x ; 
 } 
 . c o n t e n t - c o n t a i n e r   h 1   { 
         f o n t - f a m i l y :   ' A n t o n ' ,   I m p a c t ,   s a n s - s e r i f ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         f o n t - s i z e :   2 . 5 r e m ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
 } 
 . c o n t e n t - c o n t a i n e r   h 2   { 
         f o n t - f a m i l y :   ' A n t o n ' ,   I m p a c t ,   s a n s - s e r i f ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         f o n t - s i z e :   1 . 5 r e m ; 
         m a r g i n - t o p :   4 0 p x ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
 } 
 . c o n t e n t - c o n t a i n e r   p ,   . c o n t e n t - c o n t a i n e r   u l   { 
         f o n t - s i z e :   0 . 9 5 r e m ; 
         l i n e - h e i g h t :   1 . 6 ; 
         m a r g i n - b o t t o m :   1 . 2 r e m ; 
 } 
 . c o n t e n t - c o n t a i n e r   u l   { 
         p a d d i n g - l e f t :   2 0 p x ; 
 } 
  
 /* Text Page (Privacy Policy) */
.text-page {
    justify-content: flex-start;
    padding: 60px 20px;
    overflow-y: auto;
    background-color: #ece9e3;
    -webkit-overflow-scrolling: touch;
}
.content-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    color: #050505;
    padding-bottom: 60px;
}
.content-container h1 {
    font-family: 'Anton', Impact, sans-serif;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.content-container h2 {
    font-family: 'Anton', Impact, sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}
.content-container p, .content-container ul {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.content-container ul {
    padding-left: 20px;
}
