/* =========================================================
   CSS Variables & Themes
   ========================================================= */

   :root {
    --bg-color: #f9f9f9;
    --text-color: #1a1a1a;
    --nav-bg: transparent;
    --nav-text: #1a1a1a;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --btn-bg: #1a1a1a;
    --btn-text: #ffffff;
    --btn-hover: #333333;
    --transition-speed: 0.3s ease;

    --font-script: 'Permanent Marker', cursive;
    --font-display: 'Playfair Display', serif;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --nav-bg: transparent;
    --nav-text: #e0e0e0;
    --card-bg: #1e1e1e;
    --border-color: #2c2c2c;
    --btn-bg: #e0e0e0;
    --btn-text: #121212;
    --btn-hover: #ffffff;
}

/* =========================================================
   Reset & Base
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================================
   Header & Navigation
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: transform 0.4s ease, background-color 0.3s ease, padding 0.3s ease;
    padding: 20px 40px;
}

header.header-hidden {
    transform: translateY(-100%);
}

header.header-scrolled {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 40px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-speed);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.logo span {
    font-family: var(--font-script);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-color);
}

/* Header scrolled state */
header.header-scrolled .nav-links a {
    color: black;
}

header.header-scrolled .nav-links a::after {
    background-color: black;
}

header.header-scrolled .cart-icon-btn {
    color: black;
}

header.header-scrolled .cart-badge {
    background-color: black;
    color: white;
}

header.header-scrolled .hamburger span {
    background-color: black;
}

header.header-scrolled .logo img {
    filter: none;
}

/* Transparent header (top of page) */
header:not(.header-scrolled) .nav-links a {
    color: white;
}

header:not(.header-scrolled) .nav-links a::after {
    background-color: white;
}

header:not(.header-scrolled) .cart-btn {
    color: white;
}

header:not(.header-scrolled) .logo span {
    color: white;
}

header:not(.header-scrolled) .logo img {
    filter: invert(1);
}

header:not(.header-scrolled) .hamburger span {
    background-color: white;
}

header:not(.header-scrolled) .cart-icon-btn {
    color: white;
}

header:not(.header-scrolled) .cart-badge {
    background-color: white;
    color: #121212;
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    transition: opacity var(--transition-speed);
}

.cart-btn:hover {
    opacity: 0.7;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* =========================================================
   Image Zoom Modal
   ========================================================= */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrapper {
    position: relative;
    display: inline-block;
    max-width: 90%;
    max-height: 85vh;
}

.modal-content-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.image-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    z-index: 2001;
}

.image-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.image-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: background-color var(--transition-speed);
}

.image-modal .modal-nav:hover {
    background: rgba(0, 0, 0, 0.85);
}

.image-modal .modal-prev { left: 12px; }
.image-modal .modal-next { right: 12px; }

.image-modal .modal-dots {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.image-modal .modal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.image-modal .modal-dot.active {
    background: #ffffff;
}

@media (max-width: 768px) {
    .image-modal .close-modal {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .image-modal .modal-nav {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .image-modal .modal-prev { left: 8px; }
    .image-modal .modal-next { right: 8px; }
}

/* =========================================================
   Cart Drawer
   ========================================================= */

.cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: opacity var(--transition-speed);
}

.cart-icon-btn:hover {
    opacity: 0.7;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    z-index: 3001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px;
}

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

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.cart-drawer-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-msg {
    text-align: center;
    color: #888;
    margin-top: 50px;
    font-size: 14px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 13px;
    color: #777;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 13px;
    cursor: pointer;
}

.cart-drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.checkout-ios-btn {
    width: 100%;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.checkout-ios-btn:hover {
    background-color: var(--btn-hover);
}

/* =========================================================
   Size Modal
   ========================================================= */

.size-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.size-modal-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f4f4f2;
    color: #1a1a1a;
    border-radius: 16px 16px 0 0;
    padding: 18px 24px 24px;
    z-index: 999;
    max-width: 480px;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.size-modal-sheet.active {
    transform: translateY(0);
}

.size-modal-handle {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.size-modal-product {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.size-modal-product img {
    width: 60px;
    height: 76px;
    object-fit: cover;
    flex-shrink: 0;
}

.size-modal-product-name {
    font-size: 15px;
    font-weight: 600;
}

.size-modal-product-price {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.size-modal-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #fff;
    padding: 3px 8px;
    border-radius: 2px;
}

.size-modal-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
}

.size-modal-options {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.size-modal-option {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.3);
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.size-modal-option.selected {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.size-modal-guide-toggle {
    font-size: 12px;
    color: #1a1a1a;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 6px;
}

.size-modal-guide-table {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 12px;
    color: #444;
}

.size-modal-guide-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 6px;
    font-size: 12px;
}

.size-modal-guide-table th,
.size-modal-guide-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.size-modal-guide-table th {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.size-modal-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 12px;
    color: #444;
}

.size-modal-details ul {
    list-style: none;
    padding: 8px 0 4px;
    margin: 0;
}

.size-modal-details li {
    padding: 5px 0 5px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.size-modal-details li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #999;
}

.size-modal-confirm-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px;
    margin-top: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.size-modal-confirm-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================================================
   Toast
   ========================================================= */

.ios-toast {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 24px;
    max-width: 420px;
    margin: 0 auto;
    background: #f4f4f2;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4000;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}

.ios-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.ios-toast i {
    font-size: 16px;
}

.ios-toast span {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ios-toast {
        left: 12px;
        right: 12px;
        bottom: 16px;
        max-width: none;
        padding: 12px 16px;
    }
}

/* =========================================================
   Scroll Reveal
   ========================================================= */

.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* =========================================================
   Mobile Header
   ========================================================= */

@media screen and (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    header {
        padding: 15px 20px !important;
    }

    header.header-scrolled {
        padding: 12px 20px !important;
    }

    .logo {
        position: static;
        transform: none;
    }

    .nav-container {
        justify-content: space-between;
    }
}

/* =========================================================
   Mobile Menu
   ========================================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 75vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 25px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .mobile-close-btn {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    transition: opacity 0.2s ease;
}

.mobile-nav-links a:hover {
    opacity: 0.6;
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.mobile-socials a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-color);
}

/* =========================================================
   Marquee
   ========================================================= */

.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin: 0;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scrollMarquee 40s linear infinite;
}

.marquee-item {
    width: 140px;
    height: 70px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marquee-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    text-align: center;
    padding: 0 10px;
}

@keyframes scrollMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================
   Footer Lookbook
   ========================================================= */

.footer-lookbook {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.footer-lookbook-item {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--card-bg);
}

.footer-lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.footer-lookbook-item:hover img {
    transform: scale(1.05);
}

.footer-lookbook:has(.footer-lookbook-item:only-child) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-lookbook:has(.footer-lookbook-item:only-child) .footer-lookbook-item {
    max-width: 300px;
    width: 100%;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.footer-copy {
    font-size: 13px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-lookbook {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px 20px;
    }
}

/* =========================================================
   Page Loader
   ========================================================= */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.loading-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #000;
    animation: dotBounce 1.4s infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* =========================================================
   Social Icons
   ========================================================= */

.footer-socials,
.mobile-socials {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-socials a,
.mobile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover,
.mobile-socials a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-socials a.social-shopee {
    flex-direction: column;
    gap: 4px;
}

.shopee-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.75;
    white-space: nowrap;
    color: #EE4D2D;
}

.footer-socials a.social-shopee:hover .shopee-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-socials,
    .mobile-socials {
        gap: 18px;
        justify-content: center;
    }
}

/* =========================================================
   Exclusive Tab
   ========================================================= */

.exclusive-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    width: 36px;
    height: 80px;
    background: #1a1a1a;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.55s ease,
        background 0.25s ease;
}

.exclusive-tab.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.exclusive-tab:hover {
    background: #000;
    transform: translateY(-50%) translateX(-6px);
}

.exclusive-tab img {
    width: 32px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    pointer-events: none;
}

.exclusive-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.exclusive-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.exclusive-modal-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.exclusive-modal-caption {
    margin-top: 16px;
    color: #fff;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.exclusive-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.exclusive-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .exclusive-tab {
        width: 36px;
        height: 70px;
    }

    .exclusive-tab img {
        width: 30px;
    }

    .exclusive-modal-close {
        top: -32px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}