* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.nav-icons {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #000000;
    border: 1px solid #e0e0e0;
}

.icon-btn:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #000000;
    color: #ffffff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    position: relative;
    overflow: hidden;
    /* Optimize for performance */
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="black" stroke-width="0.5" opacity="0.05"/></svg>') repeat;
    pointer-events: none;
    /* Optimize for performance */
    backface-visibility: hidden;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    /* Optimize for performance */
    backface-visibility: hidden;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 30px;
    font-weight: 400;
    /* Optimize for performance */
    backface-visibility: hidden;
}

.cta-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    /* Optimize for performance */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cta-btn:hover {
    background: #333333;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    /* Optimize for performance */
    backface-visibility: hidden;
    will-change: transform;
}

.cta-btn:hover::after {
    left: 100%;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    padding: 0 16px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 16px;
}

.product-card {
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    /* Optimize for performance */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.product-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.quick-view-btn, .add-to-bag-btn, .check-availability-btn {
    position: absolute;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-to-bag-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    top: 12px;
    right: 12px;
    opacity: 1; /* Always visible on mobile */
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.check-availability-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    top: 12px;
    left: 12px;
    opacity: 1; /* Always visible on mobile */
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quick-view-btn {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1; /* Always visible on mobile */
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card:hover .quick-view-btn, .product-card:hover .add-to-bag-btn, .product-card:hover .check-availability-btn {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666666;
}

.product-type {
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

/* Fashion Highlights */
.fashion-highlights {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.fashion-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M0,0 Q100,20 200,0 T400,0 V200 Q300,180 200,200 T0,200 Z" fill="black" opacity="0.02"/></svg>') repeat;
    pointer-events: none;
    opacity: 0.3;
}

.highlights-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.highlights-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333333;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666666;
}

/* Trend Alert Section */
.trend-alert {
    padding: 80px 0;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trend-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 0 150 150"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="30" r="0.8" fill="white" opacity="0.1"/><circle cx="90" cy="70" r="0.6" fill="white" opacity="0.1"/><circle cx="130" cy="20" r="0.7" fill="white" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.trend-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.trend-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

.trend-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    z-index: 999;
    padding: 0 5px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mobile-nav.hidden {
    transform: translateY(100%);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999999;
    font-size: 0.6rem;
    transition: all 0.3s ease;
    padding: 8px 10px;
    min-width: 70px;
    position: relative;
    border-radius: 12px;
}

.nav-item.active {
    color: #000000;
    background-color: #f8f8f8;
}

.nav-item:hover {
    color: #000000;
    background-color: #f8f8f8;
}

.nav-item svg {
    margin-bottom: 2px;
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.nav-item.active svg {
    transform: scale(1.1);
    color: #000000;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #000000;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-item.active::after {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 60px 0 90px; /* Add extra padding to account for mobile nav */
    background: #000000;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #999999;
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    padding: 0 16px;
}

/* Authenticity Checker */
.authenticity-checker {
    padding: 60px 0;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.authenticity-checker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #ffffff 100%);
}

.authenticity-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px;
    gap: 15px;
}

.authenticity-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    border-radius: 0;
}

.authenticity-form input:focus {
    outline: none;
    border-color: #000000;
}

#check-authenticity-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#check-authenticity-btn:hover {
    background: #333333;
}

.authenticity-result {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.authenticity-result h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #000000;
}

.authenticity-result p {
    margin: 8px 0;
    font-size: 1rem;
}

.authenticity-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.authentic {
    background: #d4edda;
    color: #155724;
}

.fake {
    background: #f8d7da;
    color: #721c24;
}

.product-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.product-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-detail-label {
    font-weight: 600;
    color: #000000;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.product-detail-value {
    color: #666666;
    font-size: 0.95rem;
}

.check-availability-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-card:hover .check-availability-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-stock {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
}

#stock-3 {
    color: #e74c3c;
}

/* Buyer Details */
.buyer-details {
    padding: 60px 0;
    background: #ffffff;
}

.buyer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.buyer-card {
    background: #f8f8f8;
    padding: 25px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.buyer-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.buyer-card p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #666666;
}

.buyer-price {
    font-weight: 700;
    color: #000000;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Mobile Cart Preview */
.mobile-cart-preview {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-cart-preview.active {
    right: 0;
}

.cart-preview-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.cart-preview-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000000;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #666666;
}

.cart-item-quantity {
    font-size: 0.9rem;
    color: #666666;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-message {
    text-align: center;
    color: #666666;
    font-style: italic;
    margin: 20px 0;
}

.cart-preview-footer {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    background: #333333;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.close-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #cccccc;
}

/* Mobile First Design */

/* Base mobile styles already applied */

/* Tablet Styles */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
    
    .footer {
        padding: 60px 0 30px; /* Reset padding for desktop */
    }
    
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countdown {
        gap: 40px;
    }
    
    .countdown-value {
        font-size: 3rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation for countdown */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.countdown-value {
    animation: pulse 2s infinite;
}

/* Mobile-specific optimizations */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}