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

:root {
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    --primary-500: #ec4899;
    --primary-600: #db2777;
    --primary-700: #be185d;
    --primary-800: #9f1239;
    --primary-900: #831843;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-600);
}

.nav-desktop {
    display: none;
    gap: 30px;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--primary-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn,
.cart-btn,
.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.search-btn:hover,
.cart-btn:hover {
    color: var(--primary-600);
}

.cart-btn {
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-600);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: block;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-mobile a:hover {
    color: var(--primary-600);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .nav-mobile {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 18px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-50);
}

/* Products Section */
.products-section {
    padding: 60px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.price-current {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-600);
}

.price-original {
    font-size: 16px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-description {
    font-size: 14px;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--primary-700);
}

/* Features Section */
.features {
    background: var(--gray-50);
    padding: 60px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.feature-item p {
    color: var(--gray-600);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-details {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 5px;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-600);
    font-size: 18px;
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-300);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
}

/* Product Modal */
.product-modal {
    max-width: 900px;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.product-details-image {
    width: 100%;
    border-radius: 12px;
}

.product-details-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-details-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-600);
    margin-bottom: 20px;
}

.product-details-description {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 20px;
}

.product-options label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option,
.color-option {
    padding: 8px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover,
.size-option.selected {
    border-color: var(--primary-600);
    background: var(--primary-50);
    color: var(--primary-600);
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
}

@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column p {
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--gray-400);
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--gray-400);
}
