/* 
 * Main Stylesheet for Affiliate System Theme
 * 
 * This file contains the main styles for the theme.
 */

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container and layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 30px -15px;
}

#primary {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 0 15px;
}

#secondary {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    #primary,
    #secondary {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Header styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 8px 0;
    font-size: 14px;
}

.header-top a {
    color: #ecf0f1;
}

.header-top a:hover {
    color: #3498db;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-social .social-icon {
    margin-left: 10px;
}

.header-main {
    padding: 20px 0;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 25%;
}

.site-title {
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

.site-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* Navigation */
.main-navigation {
    flex: 0 0 60%;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin: 0 15px;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 600;
}

.main-navigation a:hover {
    color: #3498db;
}

.menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
    }
    
    .main-navigation.toggled ul {
        display: block;
    }
}

/* Header Cart */
.site-header-cart {
    position: relative;
}

.cart-contents {
    display: flex;
    align-items: center;
}

.cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 15px;
}

/* Footer styles */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 30px;
}

.footer-widgets {
    padding: 50px 0 20px;
}

.footer-widget-area {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-widget {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-widget h2 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget ul li a {
    color: #ecf0f1;
}

.footer-widget ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    background-color: #1a2530;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation li {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .footer-widget {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
    }
    
    .footer-navigation {
        margin-top: 15px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: #fff;
}

.btn-secondary {
    background-color: #2c3e50;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #1a2530;
    color: #fff;
}

/* Widget styles */
.widget {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Affiliate products */
.affiliate-product {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.affiliate-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-inner {
    display: flex;
    flex-wrap: wrap;
}

.product-thumbnail {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 20px;
    position: relative;
}

.product-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 600;
}

.product-content {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 20px;
    padding-left: 0;
}

.product-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-stars {
    display: flex;
    margin-right: 10px;
}

.star {
    color: #f1c40f;
    margin-right: 2px;
}

.product-summary {
    margin-bottom: 20px;
}

.product-features {
    margin-bottom: 20px;
}

.product-features h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.product-features li:before {
    content: '✓';
    color: #2ecc71;
    position: absolute;
    left: 0;
}

.product-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .product-inner {
        flex-direction: column;
    }
    
    .product-thumbnail,
    .product-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px;
    }
}

/* Products grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

@media (max-width: 991px) {
    .products-grid .affiliate-product {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 575px) {
    .products-grid .affiliate-product {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
} 