/* css/style.css - MOBILE FRIENDLY BLACK & WHITE THEME */
:root {
    /* Color Palette - Black & White */
    --black: #000000;
    --black-dark: #0a0a0a;
    --black-light: #111111;
    --white: #ffffff;
    --white-pure: #ffffff;
    --white-smoke: #f5f5f5;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #cccccc;
    
    /* UI Colors */
    --accent: var(--white);
    --accent-hover: var(--gray-lighter);
    --text-primary: var(--white);
    --text-secondary: var(--gray-light);
    --text-tertiary: var(--gray);
    --bg-primary: var(--black);
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.2);
    
    /* Effects */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.5);
    --glow-white: 0 0 20px rgba(255, 255, 255, 0.1);
    
    /* Spacing & Transitions */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 4vw, 2rem);
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.float {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.text-center { text-align: center; }
.text-upper { text-transform: uppercase; }
.text-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.text-gray-400 { color: var(--text-secondary); }

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-heavy {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== HEADER STYLES ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1rem;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.site-logo {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    font-weight: 300;
    position: relative;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-links a.active {
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--white);
    color: var(--black);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    font-weight: 600;
}

.cart-count.show {
    display: flex;
}

/* ===== MOBILE MENU CLOSE BUTTON ===== */
.mobile-menu-close {
    display: none;
}

.close-mobile-menu {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1003;
}

.close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--black-light);
}

.footer-logo {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

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

.social-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-light);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-pure);
}

/* ===== FOCUS STATES ===== */
:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 12px 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Better touch target */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-primary:hover {
    background: var(--gray-lighter);
    border-color: var(--gray-lighter);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-dark);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    min-height: 50px;
}

.form-control:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--glow-white);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding: 12px 16px;
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: var(--shadow-strong);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-color: #00a86b;
    background: rgba(0, 168, 107, 0.1);
}

.notification.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.notification.info {
    border-color: var(--border-dark);
}

.notification-icon {
    font-size: 1.2rem;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 400;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

/* ===== CART ITEMS ===== */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

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

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-item-details {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.cart-item-remove:hover {
    color: #ff4444;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1002;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Show mobile menu close button */
    .mobile-menu-close {
        display: block;
    }
    
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-body {
        max-height: 50vh;
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --radius-lg: 10px;
        --radius-md: 8px;
    }
    
    .site-header {
        padding: 0.8rem;
    }
    
    .site-logo {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .modal-container {
        width: 100%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 55vh;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

/* ===== TOUCH FRIENDLY ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover .product-image {
        transform: none;
    }
    
    .product-card:hover .quick-add-btn {
        opacity: 1;
    }
    
    .nav-links a:hover::after {
        width: 0;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

/* ===== CUSTOM CURSOR ===== */
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        display: none;
    }
    
    .cursor-outline {
        display: none;
    }
}

/* ===== SAFE AREA FOR NOTCHED PHONES ===== */
@supports (padding: max(0px)) {
    body {
        padding-left: min(0vmin, env(safe-area-inset-left));
        padding-right: min(0vmin, env(safe-area-inset-right));
        padding-top: min(0vmin, env(safe-area-inset-top));
        padding-bottom: min(0vmin, env(safe-area-inset-bottom));
    }
    
    .site-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}