/* Reset und Grundlegende Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.top-links a,
.top-right a {
    margin-right: 20px;
    color: #666;
    transition: color 0.3s;
}

.top-links a:hover,
.top-right a:hover {
    color: #0066c0;
}

.top-links i,
.top-right i {
    margin-right: 5px;
}

.main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #ff6b35;
}

.logo i {
    font-size: 32px;
}

.search-bar {
    flex: 1;
}

.search-bar form {
    display: flex;
    max-width: 700px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ff6b35;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 15px;
    outline: none;
}

.search-bar button {
    padding: 12px 25px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #e55a28;
}

.header-actions {
    display: flex;
    gap: 25px;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #333;
    position: relative;
    transition: color 0.3s;
}

.header-link:hover {
    color: #ff6b35;
}

.header-link i {
    font-size: 24px;
    margin-bottom: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Navigation Bar */
.nav-bar {
    background: #232f3e;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background: #37475a;
}

.nav-menu li a i {
    margin-right: 8px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 30px 0;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6b35;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: #e55a28;
    transform: translateY(-2px);
}

/* Product Grid */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-header h2 {
    font-size: 28px;
    color: #232f3e;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #232f3e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.stars {
    color: #ffa500;
}

.review-count {
    color: #666;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #e55a28;
}

/* Product Detail Page */
.product-detail {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-detail-image {
    border-radius: 10px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #232f3e;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.product-detail-price {
    font-size: 36px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 20px;
}

.product-detail-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-controls button {
    padding: 10px 15px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.quantity-controls button:hover {
    background: #e0e0e0;
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
    padding: 10px;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.btn-large {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-cart {
    background: #ff6b35;
    color: white;
    border: none;
}

.btn-add-to-cart:hover {
    background: #e55a28;
}

.btn-wishlist {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-wishlist:hover {
    background: #ff6b35;
    color: white;
}

/* Cart Page */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-items h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #232f3e;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #232f3e;
}

.cart-item-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-actions {
    text-align: right;
}

.cart-item-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 15px;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.btn-remove:hover {
    color: #c0392b;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.cart-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #232f3e;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row.total {
    border-top: 2px solid #232f3e;
    border-bottom: none;
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 20px;
}

.summary-row.total .price {
    color: #ff6b35;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #e55a28;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #666;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: #232f3e;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #37475a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #ff6b35;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e55a28;
}

.footer-bottom {
    border-top: 1px solid #37475a;
    padding-top: 30px;
    text-align: center;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-bottom p {
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex-basis: 100%;
        margin-top: 15px;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu li a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-actions {
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 15px;
    }
    
    .header-link span {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
