/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
.navbar {
    background: linear-gradient(135deg, #0052cc, #0070f3);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.custom-logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-accent {
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

#cart-count {
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero-icon {
    font-size: 15rem;
    opacity: 0.8;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #0070f3;
    color: white;
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Features section */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

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

.feature-card i {
    font-size: 3rem;
    color: #0070f3;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Products section */
.popular-products,
.catalog {
    padding: 80px 0;
}

.popular-products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

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

.product-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    text-align: center;
    margin-bottom: 20px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image i {
    font-size: 4rem;
    color: #0070f3;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-bottom {
    margin-top: auto;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0070f3;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Catalog page */
.catalog-header {
    background-color: white;
    padding: 40px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.catalog-header h1 {
    margin-bottom: 20px;
    color: #333;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
}

/* Product detail page */
.product-detail {
    padding: 40px 0;
    background-color: white;
}

.breadcrumb {
    margin-bottom: 30px;
    color: #666;
}

.breadcrumb a {
    color: #0070f3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-image-large {
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-large i {
    font-size: 12rem;
    color: #0070f3;
}

.product-info-detailed h1 {
    margin-bottom: 20px;
    color: #333;
}

.product-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: #0070f3;
    margin-bottom: 30px;
}

.product-description-full {
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-description-full h3 {
    margin: 20px 0 10px 0;
    color: #333;
}

.product-description-full ul {
    margin-left: 20px;
}

.product-description-full li {
    margin-bottom: 5px;
}

.product-actions-detailed {
    margin-bottom: 30px;
}

.product-meta {
    margin-top: 20px;
}

.product-meta p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
}

.product-meta i {
    margin-right: 10px;
    color: #28a745;
}

.related-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.related-products h2 {
    margin-bottom: 40px;
    color: #333;
}

/* Cart page */
.cart-section {
    padding: 40px 0;
    min-height: 60vh;
}

.cart-section h1 {
    margin-bottom: 30px;
    color: #333;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 3rem;
    color: #0070f3;
}

.cart-item-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: #666;
}

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

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-weight: bold;
    color: #0070f3;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background-color: #c82333;
}

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
}

.cart-total h3 {
    color: #333;
    font-size: 1.5rem;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-message i {
    font-size: 5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart-message h2 {
    margin-bottom: 15px;
    color: #666;
}

/* Content pages */
.page-content {
    padding: 40px 0;
    background-color: white;
    min-height: 60vh;
}

.page-content h1 {
    margin-bottom: 30px;
    color: #333;
}

.content-text {
    max-width: 800px;
    line-height: 1.8;
}

.content-text h2 {
    margin: 30px 0 15px 0;
    color: #333;
}

.content-text ul {
    margin: 15px 0 15px 20px;
}

.content-text li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    color: #0070f3;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section i {
    margin-right: 10px;
    width: 15px;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0070f3;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0070f3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

.text-center {
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #0052cc;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 10px;
    }
    
    .custom-logo {
        gap: 1px;
    }
    
    .logo-text,
    .logo-accent {
        font-size: 1.4rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-icon {
        font-size: 8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .products-preview {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-image-large {
        height: 300px;
    }
    
    .product-image-large i {
        font-size: 8rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls select {
        min-width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text,
    .logo-accent {
        font-size: 1.2rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .features,
    .popular-products,
    .catalog {
        padding: 40px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation for smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/Error messages */
.message {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.checkout-form-container {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.checkout-header h2 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.checkout-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0070f3;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0070f3;
    box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.payment-methods {
    display: grid;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.payment-option:hover {
    border-color: #0070f3;
    background-color: #f0f8ff;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + .radio-custom {
    background-color: #0070f3;
    border-color: #0070f3;
}

.payment-option input[type="radio"]:checked + .radio-custom::after {
    display: block;
}

.payment-option.checked {
    border-color: #0070f3;
    background-color: #f0f8ff;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: none;
}

.payment-option i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #0070f3;
}

.checkout-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.order-total {
    text-align: center;
    margin-bottom: 20px;
}

.order-total h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.checkout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive design for checkout form */
@media (max-width: 768px) {
    .checkout-modal {
        padding: 10px;
    }
    
    .checkout-form-container {
        max-height: 95vh;
    }
    
    .checkout-header {
        padding: 15px 20px;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .payment-option {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .checkout-header {
        padding: 10px 15px;
    }
    
    .checkout-form {
        padding: 15px;
    }
    
    .checkout-header h2 {
        font-size: 1.2rem;
    }
}
