/* =========================================
   RUBIES CREATION - MAIN STYLES
   Black & White / SHEIN / Maybelline Inspired
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.5;
}

/* ========== HEADER ========== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #111;
    letter-spacing: -0.5px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background: #111;
    color: white;
    border-radius: 50%;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    background: #f5f5f5;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.125rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CATEGORIES ========== */
.categories {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.category-card {
    background: #f5f5f5;
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #111;
    border-radius: 40px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

.category-card:hover {
    background: #111;
    color: white;
    transform: translateY(-2px);
}

/* ========== PRODUCT GRID ========== */
.products-grid {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.product-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.video-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: #111;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: #111;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #333;
}

/* ========== FILTERS BAR ========== */
.filters-bar {
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 1rem 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eaeaea;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #111;
    color: white;
    border-color: #111;
}

.filter-btn:hover {
    border-color: #111;
}

/* ========== CART PAGE ========== */
.cart-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-quantity {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #e11d48;
}

.cart-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 12px;
    text-align: right;
}

.discount-message {
    color: #2e7d32;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.checkout-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #333;
}

/* ========== CHECKOUT FORM ========== */
.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-form input,
.checkout-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #111;
}

.checkout-form label {
    font-weight: 500;
}

.submit-order {
    background: #111;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-order:hover {
    background: #333;
}

/* ========== SIZE GUIDE ========== */
.size-guide-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.size-table th,
.size-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: center;
}

.size-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.main-image {
    width: 100%;
    border-radius: 12px;
}

.thumbnail-grid {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.thumbnail.active {
    border: 2px solid #111;
}

.size-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #f8f8f8;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #eaeaea;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #000;
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.btn-primary {
    background: #111;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 40px;
    display: inline-block;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #333;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
        gap: 1rem;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .category-card {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
    }
    
    .cart-item .price,
    .cart-item .remove-item {
        grid-column: 2;
    }
    
    .filters-bar {
        padding: 0.75rem 1rem;
    }
}