@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Base Styles */
:root {
    --primary-black: #111111;
    --primary-white: #ffffff;
    --accent-gray: #f5f5f5;
    --text-gray: #666666;
}

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

body {
    font-family: 'Outfit', sans-serif;
    cursor: default;
    background-color: var(--primary-white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--accent-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-black);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-black);
    transition: width 0.3s ease;
}

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

/* Swiper Styles */
.swiper-container {
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-black);
    background: var(--primary-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-pagination {
    position: relative;
    bottom: -10px;
    width: 100%;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--primary-black);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Modal Styles */
#productModal {
    overscroll-behavior: contain;
}

.modal-content {
    animation: fadeScale 0.3s ease-out;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    width: 95%;
    max-width: 900px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
    background: black;
    color: white;
}

/* Purchase Button Styles */
.purchase-btn {
    display: block;
    position: relative;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    transform: translate(-2px, -2px);
}

/* Color Selection Styles */
.color-dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.color-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid black;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-dot.active::after {
    opacity: 1;
}

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

/* Thumbnail Styles */
.thumbnail {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: black;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active::after {
    opacity: 0.1;
}

/* Size Guide Animation */
.size-guide-enter {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.size-guide-enter-active {
    max-height: 500px;
    opacity: 1;
}

/* Status Badge Styles */
#modalStatus.instock {
    background-color: #dcfce7;
    color: #166534;
}

#modalStatus.limited {
    background-color: #ffedd5;
    color: #9a3412;
}

#modalStatus.soldout {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Card Styles */
.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--primary-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.collection-card img {
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

/* Color Options */
#colorOptions button {
    position: relative;
    transition: transform 0.2s ease;
}

#colorOptions button:hover {
    transform: scale(1.2);
}

#colorOptions button:before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

#colorOptions button:focus:before {
    border-color: var(--primary-black);
}

/* Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* View Toggle Styles */
.view-toggle {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid transparent;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.view-toggle:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.view-toggle.active {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Product Card Styles */
.product-card {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeScale 0.6s ease-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card .image-container {
    overflow: hidden;
    position: relative;
}

.product-card .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .image-container::after {
    opacity: 1;
}

.product-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Grid Layout Enhancement */
.grid-container {
    display: grid;
    gap: 2rem;
    animation: fadeScale 0.5s ease-out;
}

/* Color Dots Enhancement */
.color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* Status Badge Enhancement */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slideUp 0.3s ease-out;
}

.status-badge.limited {
    background-color: rgba(251, 146, 60, 0.9);
    color: #fff;
}

.status-badge.instock {
    background-color: rgba(34, 197, 94, 0.9);
    color: #fff;
}

/* Professional Animations */
@keyframes fadeScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    --scroll-behavior: smooth;
}

/* Text Truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }
    
    .collection-card .overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    #productModal .modal-content {
        width: 90%;
        margin: 10px auto;
    }
    
    .modal-close-btn {
        top: 10px;
        right: 10px;
    }
}

/* Fix horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Logo Styles */
.logo-container {
    width: 48px;
    height: 48px;
    background: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Footer Styles */
footer {
    background: var(--primary-black);
}

footer a:hover {
    color: var(--primary-white);
}

/* Hero Section */
.hero-content {
    position: relative;
    z-index: 1;
}
