/* Solix - Minimal Elegant High-End Fashion */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-light: #e8e8e8;
    --bg-white: #ffffff;
    --bg-off-white: #fafafa;
    --transition: all 0.4s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-width: 100vw;
    margin: 0;
    padding: 0;
}

body.menu-open {
    overflow: hidden;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    left: 0;
    right: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo img {
    height: 110px;
    transition: var(--transition);
    margin-top: -15px;
    margin-bottom: -15px;
    filter: invert(1);
}

.logo:hover img {
    opacity: 0.7;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    position: relative;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-secondary);
}

nav a:hover::after {
    width: 100%;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auth-link {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--text-secondary);
}

.auth-link:hover::after {
    width: 100%;
}

.signup-btn {
    background: var(--text-primary);
    color: var(--bg-white);
    border: 1px solid var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
}

.signup-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

.signup-btn::after {
    display: none;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.user-link svg {
    width: 18px;
    height: 18px;
}

.user-link:hover {
    background: var(--text-primary);
    color: var(--bg-white);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    stroke: var(--text-primary);
}

.cart-icon:hover svg {
    stroke: var(--text-secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-primary);
    color: var(--bg-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-white);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border: 1px solid var(--text-primary);
    border-radius: 2px;
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    height: 400px;
    background: var(--bg-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.product-description {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem 2rem;
    background: var(--text-primary);
    color: var(--bg-white);
    border: 1px solid var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 2px;
}

.add-to-cart:hover {
    background: transparent;
    color: var(--text-primary);
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.product-detail-image {
    width: 100%;
    height: 600px;
    background: var(--bg-off-white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.product-detail-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.product-detail-description {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.size-selector {
    margin-bottom: 2rem;
}

.size-selector label {
    display: block;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.size-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-option {
    min-width: 50px;
    height: 50px;
    padding: 0 1rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    border-radius: 2px;
}

.size-option:hover,
.size-option.selected {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-white);
}

.quantity-selector {
    margin-bottom: 2rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 2px;
    color: var(--text-primary);
}

.quantity-btn:hover {
    background: var(--text-primary);
    color: var(--bg-white);
    border-color: var(--text-primary);
}

.quantity-display {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    border-radius: 2px;
}

/* Cart Page */
.cart-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
}

.cart-items {
    margin-bottom: 3rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--gray-medium);
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 150px;
    height: 150px;
    background: var(--gray-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cart-item-details p {
    color: var(--gray-dark);
    margin-bottom: 0.3rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.cart-item-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--gray-dark);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--black);
}

.cart-summary {
    background: var(--gray-light);
    padding: 2rem;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-medium);
}

.summary-row.total {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--white);
    color: var(--black);
}

/* Footer */
footer {
    background: var(--bg-off-white);
    color: var(--text-primary);
    padding: 3rem 2rem;
    margin-top: 5rem;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    left: 0;
    right: 0;
    position: relative;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
        max-width: none;
        width: 100%;
        min-width: 100%;
        overflow-x: hidden;
        margin: 0;
    }
    
    .logo img {
        height: 60px;
        margin-top: -10px;
        margin-bottom: -10px;
        flex-shrink: 0;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }
    
    /* Hide desktop navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
        border-left: 1px solid var(--border-light);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .main-nav a {
        font-size: 0.875rem;
        display: block;
        padding: 0.5rem 0;
        color: var(--text-primary);
    }
    
    .header-right {
        gap: 0.5rem;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
    
    .auth-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
    }
    
    .signup-btn {
        padding: 0.4rem 1rem;
    }
    
    .user-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .user-link span {
        display: none;
    }
    
    .cart-icon {
        padding: 0.3rem;
    }
    
    .cart-icon svg {
        width: 20px;
        height: 20px;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 1rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.75rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .size-option {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .size-options {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .quantity-controls {
        gap: 0.75rem;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quantity-display {
        width: 50px;
        height: 35px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem;
        gap: 0.5rem;
        min-width: 100%;
        width: 100%;
    }
    
    .logo img {
        height: 50px;
    }
    
    .main-nav {
        width: 80%;
    }
    
    .header-right {
        gap: 0.3rem;
    }
    
    .auth-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .signup-btn {
        padding: 0.3rem 0.8rem;
    }
    
    footer {
        padding: 2rem 0.5rem;
    }
    
    .footer-container {
        padding: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    /* Product Detail Mobile */
    .product-detail {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .product-detail-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .size-selector,
    .quantity-selector {
        margin-bottom: 1.5rem;
    }
    
    .size-option {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    
    .size-options {
        gap: 0.5rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .quantity-display {
        width: 45px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-medium);
    border-radius: 50%;
    border-top-color: var(--black);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.empty-state p {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}
