/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.btn-dark {
    background: #111827;
    color: white;
}

.btn-dark:hover {
    background: #1f2937;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page System */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Top Bar */
.top-bar {
    background: #1f2937;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #1e40af, #14b8a6);
    border-radius: 0.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.search-container {
    flex: 1;
    max-width: 24rem;
    margin: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.action-btn:hover {
    color: #111827;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #1e40af;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.mobile-menu-btn {
    display: none;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #f3f4f6;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #1e40af;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #eff6ff, #ffffff, #f0fdfa);
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/*.hero-text {
    space-y: 2rem;
}*/

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-images {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-image-col-offset {
    margin-top: 2rem;
}

.hero-image {
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image:hover img {
    transform: scale(1.1);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.feature-icon-blue {
    background: #dbeafe;
    color: #1e40af;
}

.feature-icon-teal {
    background: #ccfbf1;
    color: #0d9488;
}

.feature-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.feature-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6b7280;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.category-name {
    font-weight: 600;
    color: #111827;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #1e40af;
}

/* Featured Products Section */
.featured-products {
    padding: 4rem 0;
    background: white;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.product-image-container {
    position: relative;
    aspect-ratio: 1;
    background: #f9fafb;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    z-index: 10;
}

.wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.quick-add-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .quick-add-overlay {
    opacity: 1;
}

.quick-add-btn {
    width: 100%;
    background: white;
    color: #111827;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.quick-add-btn:hover {
    background: #f3f4f6;
}

.product-info {
    padding: 1rem;
}

.product-brand {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #1e40af;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #d1d5db;
    font-size: 1rem;
}

.star.filled {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.original-price {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: line-through;
}

.stock-status {
    font-size: 0.875rem;
    font-weight: 500;
}

.in-stock {
    color: #16a34a;
}

.out-of-stock {
    color: #dc2626;
}

/* Products Page */
.products-header {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.products-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.products-count {
    color: #6b7280;
    margin-top: 0.25rem;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-mode {
    display: flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: #1e40af;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.filter-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
}

.products-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filters-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1e40af;
}

.filter-option label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-slider {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

.products-main {
    min-height: 400px;
}

.no-products {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.no-products-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-products-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.no-products-description {
    color: #6b7280;
}

/* Product Detail Page */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb a:hover {
    color: #111827;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    aspect-ratio: 1;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #1e40af;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-brand {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-detail-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.detail-original-price {
    font-size: 1.25rem;
    color: #6b7280;
    text-decoration: line-through;
}

.savings {
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 500;
}

.product-description {
    color: #6b7280;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.features-title {
    font-weight: 600;
    color: #111827;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
}

.feature-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: #1e40af;
    border-radius: 50%;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-label {
    font-weight: 500;
    color: #111827;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #f3f4f6;
}

.quantity-value {
    width: 3rem;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.add-to-cart-btn {
    flex: 1;
}

.wishlist-detail-btn {
    width: 3rem;
    height: 3rem;
    border: 2px solid #d1d5db;
    background: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-detail-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.stock-dot.in-stock {
    background: #16a34a;
}

.stock-dot.out-of-stock {
    background: #dc2626;
}

.product-guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.guarantee {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guarantee-icon {
    font-size: 2rem;
    margin: 0 auto;
}

.guarantee-icon.shipping {
    color: #1e40af;
}

.guarantee-icon.returns {
    color: #0d9488;
}

.guarantee-icon.warranty {
    color: #16a34a;
}

.guarantee-title {
    font-weight: 500;
    color: #111827;
    font-size: 0.875rem;
}

.guarantee-description {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Cart Page */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.cart-items-count {
    color: #6b7280;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.cart-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-name:hover {
    color: #1e40af;
}

.cart-item-brand {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cart-quantity-btn:hover {
    background: #f9fafb;
}

.cart-quantity-value {
    width: 2rem;
    text-align: center;
    font-weight: 500;
}

.cart-item-total {
    text-align: right;
    min-width: 6rem;
}

.cart-item-total-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.cart-item-remove {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

.cart-summary {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-summary-label {
    color: #6b7280;
}

.cart-summary-value {
    font-weight: 600;
}

.cart-summary-value.free {
    color: #16a34a;
}

.cart-summary-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-summary-total .cart-summary-row {
    margin-bottom: 0;
    font-size: 1.125rem;
}

.cart-summary-total .cart-summary-label,
.cart-summary-total .cart-summary-value {
    font-weight: 700;
    color: #111827;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-icon {
    font-size: 6rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.cart-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.cart-empty-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Auth Page */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff, #ffffff, #f0fdfa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    max-width: 28rem;
    width: 100%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-description {
    color: #6b7280;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1e40af;
}

.forgot-password {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: #1e40af;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-switch-btn:hover {
    color: #1d4ed8;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    color: #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4b5563;
    color: white;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: #9ca3af;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-content {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: white;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .filter-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .search-container {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #f3f4f6;
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .products-header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-controls {
        justify-content: space-between;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .cart-item-controls {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}