/* ============================================
   PACHECOS PROJECT v2.0
   Premium E-commerce Experience
   ============================================ */

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    --accent: #00d4d4;
    --accent-pink: #ff5ca8;
    
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

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

button {
    font-family: inherit;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s var(--ease-out-expo), 
                opacity 0.15s,
                background 0.15s;
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    transform: scale(2);
    background: var(--white);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), 
                visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 2rem;
}

.preloader-bar {
    width: 200px;
    height: 1px;
    background: var(--gray-800);
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--white);
    animation: preload 1.5s var(--ease-in-out) forwards;
}

@keyframes preload {
    from { width: 0; }
    to { width: 100%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    mix-blend-mode: difference;
}

.header-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    transition: opacity 0.3s;
}

.header-logo:hover {
    opacity: 0.6;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-toggle {
    width: 32px;
    height: 20px;
    background: none;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    transition: transform 0.4s var(--ease-out-expo), 
                opacity 0.4s;
}

.nav-toggle.active span:first-child {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-9.5px) rotate(-45deg);
}

.cart-toggle {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.cart-toggle:hover {
    opacity: 0.6;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--black);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out-expo);
    border-right: 1px solid var(--gray-800);
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 3rem;
}

.menu-section h3 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.menu-section ul {
    list-style: none;
}

.menu-section li {
    margin-bottom: 0.5rem;
}

.menu-link, .room-link {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo),
                color 0.3s;
}

.menu-link:hover, .room-link:hover,
.room-link.active {
    transform: translateX(1rem);
    color: var(--accent);
}

.room-link.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.7rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Room Viewer */
.room-viewer {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.room-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease-out-expo),
                opacity 0.6s;
}

.room-bg.transitioning {
    transform: scale(1.05);
    opacity: 0;
}

/* Hotspots */
.hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.hotspot-trigger {
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotspot-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: hotspot-pulse 2s ease-out infinite;
}

.hotspot-ring:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes hotspot-pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.hotspot-dot {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out-expo),
                background 0.3s;
}

.hotspot-trigger:hover .hotspot-dot {
    transform: scale(1.5);
    background: var(--accent);
}

.hotspot-label {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: var(--white);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
}

.hotspot-trigger:hover + .hotspot-label,
.hotspot-label:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Room Label */
.room-label {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    pointer-events: none;
}

.room-label-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.1em;
    opacity: 0.08;
    text-transform: uppercase;
}

/* Nav Hints */
.nav-hints {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.nav-hint {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    pointer-events: auto;
    transition: all 0.3s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.nav-hint:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.1);
}

.nav-hint svg {
    width: 20px;
    height: 20px;
}

/* Room Dots */
.room-dots {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.room-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    border: none;
    transition: all 0.3s var(--ease-out-expo);
}

.room-dot:hover {
    background: rgba(255,255,255,0.6);
}

.room-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* Product Modal */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.product-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
}

.product-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.5s var(--ease-out-expo);
}

.product-modal.open .product-modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: var(--gray-800);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--white);
    color: var(--black);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-gallery {
    background: var(--gray-800);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-image-main img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.product-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.product-tag {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.size-grid {
    display: flex;
    gap: 0.5rem;
}

.size-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s;
}

.size-btn:hover {
    border-color: var(--white);
}

.size-btn.selected {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.color-grid {
    display: flex;
    gap: 0.5rem;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.selected {
    border-color: var(--white);
}

.add-to-cart {
    margin-top: auto;
    width: 100%;
    padding: 1.25rem;
    background: var(--white);
    border: none;
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s var(--ease-out-expo);
}

.add-to-cart:hover {
    background: var(--accent);
    color: var(--black);
}

.btn-icon {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.cart-drawer.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--black);
    border-left: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.cart-drawer.open .cart-drawer-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-800);
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.cart-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.cart-close:hover {
    opacity: 0.6;
}

.cart-close svg {
    width: 20px;
    height: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-900);
    margin-bottom: 0.5rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--gray-800);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cart-item-details {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-price {
    font-weight: 500;
    color: var(--accent);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.75rem;
    transition: color 0.3s;
}

.cart-item-remove:hover {
    color: var(--accent-pink);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    text-align: center;
    padding: 2rem;
}

.cart-empty p {
    margin-top: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-800);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cart-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

#paypal-button-container {
    margin-bottom: 1rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.toast {
    background: var(--white);
    color: var(--black);
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    animation: toast-in 0.3s var(--ease-out-expo);
}

.toast.exit {
    animation: toast-out 0.3s var(--ease-out-expo) forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-1rem); }
}

/* Responsive */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    button, a {
        cursor: pointer;
    }
    
    .header {
        padding: 1rem;
    }
    
    .side-menu {
        max-width: 100%;
    }
    
    .product-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
    
    .product-modal-content {
        grid-template-columns: 1fr;
        height: 100%;
        overflow-y: auto;
    }
    
    .product-gallery {
        aspect-ratio: auto;
        min-height: 300px;
    }
    
    .product-info {
        padding: 2rem;
    }
    
    .product-name {
        font-size: 1.75rem;
    }
    
    .nav-hints {
        display: none;
    }
    
    .room-label-text {
        font-size: 2rem;
    }
}
