/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #f60;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #f60;
}

.search-box {
    flex-grow: 1;
    margin: 0 20px;
}

.search-box form {
    display: flex;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    background-color: #f60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-actions a {
    font-size: 18px;
    color: #666;
}

.user-actions a:hover {
    color: #f60;
}

.main-nav ul {
    display: flex;
    list-style: none;
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.main-nav a:hover {
    color: #f60;
}

/* Product Grid */
.page-title {
    margin: 30px 0 20px;
    font-size: 24px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f60;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #f60;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.product-gallery {
    flex: 1;
}

.main-image {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.discount-percent {
    background-color: #f60;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}

.product-description {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 14px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.buy-now-btn, .add-to-cart-btn, .add-to-wishlist-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-btn {
    background-color: #f60;
    color: white;
    flex-grow: 1;
}

.buy-now-btn:hover {
    background-color: #e05a00;
}

.add-to-cart-btn {
    background-color: #fff;
    color: #f60;
    border: 1px solid #f60;
}

.add-to-cart-btn:hover {
    background-color: #fff9f5;
}

.add-to-wishlist-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.add-to-wishlist-btn:hover {
    background-color: #f9f9f9;
}

.product-meta {
    margin-top: 20px;
    font-size: 14px;
}

.meta-item {
    display: flex;
    margin-bottom: 8px;
}

.meta-label {
    font-weight: bold;
    min-width: 100px;
    color: #666;
}

.meta-value {
    color: #333;
}

/* Related Products */
.related-products {
    margin: 40px 0;
}

.related-products h2 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ccc;
    font-size: 14px;
}

.footer-column a:hover {
    color: #f60;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #444;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #f60;
}

.newsletter input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter button {
    width: 100%;
    padding: 10px;
    background-color: #f60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.newsletter button:hover {
    background-color: #e05a00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        margin: 15px 0;
    }
    
    .main-nav ul {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .footer-columns {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .product-image {
        height: 150px;
    }
}