/* Common Styles */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 200px;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

/* Banner Styles */
.category-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto 20px;
    display: block;
}

.category-description {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    font-size: 1.1em;
    text-align: center;
}

/* Category Page Grid */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    padding-top: 75%;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e31837;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Product Detail Page */
#product-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-image {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.product-description {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.right-column {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Product Info Styles */
.product-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: #333;
}

.product-price-container {
    margin: 15px 0;
}

.price, .regular-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.original-price, .regular-price.on-sale {
    color: #666;
    text-decoration: line-through;
    margin-right: 10px;
}

.sale-price {
    color: #e31837;
    font-weight: bold;
    font-size: 1.5rem;
}

.product-series, .product-model {
    color: #666;
    margin: 5px 0;
}

.product-info p {
    margin: 10px 0;
}

.product-info strong {
    display: inline-block;
    width: 80px;
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background: #e31837;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    margin-top: 15px;
}

.cta-button:hover {
    background: #c41230;
}

/* Footer Styles */
.site-footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin: 0 0 20px 0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #product-container {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        position: static;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 10px;
    }
}
/* Additional styles for promotion details */
.promotion-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.promotion-detail .promo-header {
    text-align: center;
    margin-bottom: 30px;
}

.promotion-detail .promo-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.promotion-detail .promo-value {
    color: #FF0000;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.promotion-detail .promo-dates {
    color: #666;
    font-size: 1.1rem;
}

.required-products, .free-products {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.required-products h2, .free-products h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF0000;
}

.product-detail-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background: #f8f8f8;
}

.product-detail-header {
    margin-bottom: 15px;
}

.product-detail-header h3 {
    color: #333;
    margin-bottom: 5px;
}

.catalog-number {
    color: #666;
    font-size: 0.9rem;
}

.product-detail-image {
    text-align: center;
    margin: 15px 0;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.product-description {
    margin: 15px 0;
    line-height: 1.6;
}

.redemption-steps {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.redemption-steps h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF0000;
}

.redemption-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .redemption-options {
        grid-template-columns: 1fr;
    }
}

.redemption-option {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

.redemption-option h3 {
    color: #FF6B00;
    margin-bottom: 10px;
}

.redemption-option ol {
    padding-left: 20px;
}

.redemption-option ul {
    padding-left: 20px;
    list-style-type: disc;
}

.redemption-notes {
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

.promo-disclaimer {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.promo-disclaimer h3 {
    color: #333;
    margin-bottom: 15px;
}

.promo-disclaimer ul {
    padding-left: 20px;
    list-style-type: disc;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message h2 {
    color: #FF0000;
    margin-bottom: 15px;
}

.error-message .back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #FF6B00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.error-message .back-link:hover {
    background: #E65000;
}