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

:root {
    --primary-color: #6C63FF;
    --secondary-color: #1a1a2e;
    --accent-color: #0f3460;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --success-color: #00b894;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(108, 99, 255, 0.1);
    --shadow-hover: 0 8px 30px rgba(108, 99, 255, 0.2);
}

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

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

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.cart-link {
    position: relative;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

.main-content {
    min-height: calc(100vh - 400px);
}

.hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #5952d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

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

.btn-secondary:hover {
    background: #0f0f1e;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card svg {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.featured-products {
    padding: 5rem 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-size: 2.75rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image-link {
    display: block;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 1.75rem;
}

.product-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.product-info h3 a {
    text-decoration: none;
    color: var(--secondary-color);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b82ff 100%);
    color: var(--white);
    padding: 3.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.catalog {
    padding: 3rem 0;
}

.catalog-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
}

.catalog-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filter-section {
    margin-bottom: 2.5rem;
}

.filter-section h3 {
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.filter-item:hover {
    background: var(--bg-light);
}

.filter-item input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.search-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.catalog-header {
    margin-bottom: 2rem;
}

.product-count {
    color: var(--text-light);
    font-size: 1.125rem;
}

.no-products {
    text-align: center;
    color: var(--text-light);
    padding: 4rem;
    font-size: 1.125rem;
}

.breadcrumb {
    background: var(--bg-light);
    padding: 1.25rem 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb svg {
    color: var(--text-light);
}

.product-detail {
    padding: 4rem 0;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.product-detail-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-detail-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.product-specs {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.product-specs h3 {
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 0.875rem 0;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
}

.specs-table td:last-child {
    text-align: right;
    color: var(--text-light);
}

.product-price-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.product-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    background: var(--bg-light);
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--border-color);
}

#quantity {
    border: none;
    width: 70px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-feature svg {
    color: var(--primary-color);
}

.cart {
    padding: 3rem 0;
}

.empty-cart {
    text-align: center;
    padding: 5rem 0;
}

.empty-cart svg {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.cart-item {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 2rem;
    align-items: center;
}

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

.cart-item-details h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.cart-item-details p {
    color: var(--text-light);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.75rem;
    font-size: 1.125rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.cart-qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-qty-btn:hover {
    background: var(--border-color);
}

.cart-qty-input {
    border: none;
    width: 60px;
    text-align: center;
    font-weight: 600;
}

.cart-item-subtotal {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: var(--primary-color);
}

.cart-summary {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.free-shipping {
    color: var(--success-color);
    font-weight: 600;
}

.summary-divider {
    height: 2px;
    background: var(--border-color);
    margin: 2rem 0;
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    margin-top: 1.5rem;
    transition: color 0.3s;
}

.continue-shopping:hover {
    color: var(--primary-color);
}

.thank-you {
    padding: 5rem 0;
}

.thank-you-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    margin-bottom: 2.5rem;
}

.success-icon svg {
    color: var(--success-color);
}

.thank-you h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.thank-you-message {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3.5rem;
}

.order-summary-box {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3.5rem;
}

.order-summary-box h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
}

.next-steps {
    margin-bottom: 3.5rem;
}

.next-steps h3 {
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.step h4 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.step p {
    color: var(--text-light);
}

.thank-you-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

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

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2.5rem;
        box-shadow: var(--shadow);
        transition: left 0.3s;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .catalog-wrapper {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        position: sticky;
        top: 80px;
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1.25rem;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-actions {
        flex-direction: column;
    }
}
