/*
Theme Name: TirePro
Description: WordPress E-Ticaret Teması - Lastik Firması için özel olarak tasarlanmış profesyonel tema
Version: 1.0.0
Author: TirePro Development Team
Text Domain: tirepro
Domain Path: /languages/
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
WC requires at least: 5.0
WC tested up to: 8.0
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #ff6b35;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Filter Section */
.filter-section {
    background-color: white;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.filter-group select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
}

.filter-button {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #e55a2b;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-specs {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #555;
}

/* Featured Brands */
.featured-brands {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.brand-logo {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.brand-logo:hover {
    transform: translateY(-3px);
}

.brand-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.brand-logo:hover img {
    filter: grayscale(0%);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: #ff6b35;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce Overrides */
.woocommerce div.product .summary {
    padding: 2rem;
}

.woocommerce div.product .woocommerce-tabs {
    margin-top: 2rem;
}

.woocommerce .cart-collaterals {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Custom Product Attributes */
.product-attributes {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.product-attributes h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.attribute-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.attribute-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.attribute-value {
    font-weight: 600;
    color: #333;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.btn-primary {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-primary:hover {
    background-color: #e55a2b;
}

/* Wishlist Styles */
.wishlist-container {
    margin: 10px 0;
}

.wishlist-button {
    background: none;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wishlist-button:hover {
    background-color: #ff6b35;
    color: white;
}

.wishlist-button.remove-wishlist {
    background-color: #ff6b35;
    color: white;
}

.wishlist-button.remove-wishlist:hover {
    background-color: #e55a2b;
}

.wishlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.header-wishlist {
    position: relative;
}

.wishlist-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.wishlist-link:hover {
    color: #ff6b35;
}

.wishlist-count {
    background-color: #ff6b35;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

/* Wishlist Page Styles */
.wishlist-page {
    padding: 2rem 0;
}

.wishlist-page h3 {
    margin-bottom: 2rem;
    color: #333;
}

.wishlist-empty {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.wishlist-empty p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.wishlist-items {
    display: grid;
    gap: 1.5rem;
}

.wishlist-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wishlist-item.removing {
    opacity: 0.5;
}

.wishlist-item-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
}

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

.wishlist-item-details {
    flex: 1;
}

.wishlist-item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.wishlist-item-details h4 a {
    color: #333;
    text-decoration: none;
}

.wishlist-item-details h4 a:hover {
    color: #ff6b35;
}

.wishlist-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.wishlist-item-date {
    font-size: 0.9rem;
    color: #666;
}

.wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.wishlist-item-actions .button {
    padding: 0.5rem 1rem;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.wishlist-item-actions .button:hover {
    background-color: #e55a2b;
}

.remove-wishlist-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.remove-wishlist-item:hover {
    color: #c82333;
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .wishlist-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .wishlist-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .wishlist-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Comparison Styles */
.comparison-container {
    margin: 10px 0;
}

.comparison-button {
    background: none;
    border: 2px solid #007cba;
    color: #007cba;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comparison-button:hover {
    background-color: #007cba;
    color: white;
}

.comparison-button.remove-comparison {
    background-color: #007cba;
    color: white;
}

.comparison-button.remove-comparison:hover {
    background-color: #005a87;
}

.comparison-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.header-comparison {
    position: relative;
}

.comparison-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.comparison-link:hover {
    color: #ff6b35;
}

.comparison-count {
    background-color: #007cba;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

/* Comparison Page Styles */
.comparison-page {
    padding: 2rem 0;
}

.comparison-page h3 {
    margin-bottom: 2rem;
    color: #333;
}

.comparison-empty {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.comparison-empty p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.comparison-attribute {
    background-color: #007cba !important;
    color: white !important;
    font-weight: 600;
    text-align: left !important;
    min-width: 150px;
}

.comparison-product {
    position: relative;
    min-width: 200px;
}

.comparison-product-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 5px;
}

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

.comparison-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comparison-product-name a {
    color: #333;
    text-decoration: none;
}

.comparison-product-name a:hover {
    color: #ff6b35;
}

.comparison-product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.remove-comparison-item {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

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

.comparison-value {
    font-size: 0.95rem;
    color: #333;
}

.comparison-value .stock-status {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-value .stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.comparison-value .stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.comparison-actions .comparison-value {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-actions .button {
    padding: 0.5rem 1rem;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.comparison-actions .button:hover {
    background-color: #e55a2b;
}

.comparison-actions .button-secondary {
    background-color: #6c757d;
    color: white;
}

.comparison-actions .button-secondary:hover {
    background-color: #5a6268;
}

.comparison-clear {
    text-align: center;
    margin-top: 2rem;
}

.clear-all-comparison {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.clear-all-comparison:hover {
    background-color: #c82333;
}

.comparison-table th.removing,
.comparison-table td.removing {
    opacity: 0.5;
    background-color: #ffebee;
}

/* Responsive Comparison Styles */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        margin: 1rem -15px;
    }
    
    .comparison-table {
        border-radius: 0;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .comparison-product {
        min-width: 150px;
    }
    
    .comparison-product-image {
        width: 60px;
        height: 60px;
    }
    
    .comparison-product-name {
        font-size: 0.9rem;
    }
    
    .comparison-product-price {
        font-size: 1rem;
    }
    
    .comparison-actions .comparison-value {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .comparison-actions .button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .comparison-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Campaign and Discount Styles */
.campaign-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.discount-percentage {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.seasonal-campaign-banner {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.campaign-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    flex-wrap: wrap;
}

.campaign-content i {
    font-size: 1.5rem;
    color: #fff;
}

.campaign-content span {
    font-size: 1.1rem;
    font-weight: 600;
}

.campaign-button {
    background-color: white;
    color: #ff6b35;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.campaign-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.campaign-timer {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

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

.timer-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timer-unit {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.timer-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.timer-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-expired {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.loyalty-points-display {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 124, 186, 0.3);
}

.loyalty-points-display h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.points-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.points-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
}

.points-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.points-info {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.coupon-recommendations {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.coupon-recommendations h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.coupon-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coupon-recommendations li {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.coupon-recommendations li:last-child {
    margin-bottom: 0;
}

.coupon-recommendations li:before {
    content: "🎁";
    margin-right: 0.5rem;
}

/* Bulk discount notices */
.woocommerce-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.woocommerce-info:before {
    content: "💰";
    margin-right: 0.5rem;
}

/* Responsive Campaign Styles */
@media (max-width: 768px) {
    .campaign-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .campaign-content span {
        font-size: 1rem;
    }
    
    .campaign-button {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .timer-unit {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .timer-text {
        font-size: 0.8rem;
    }
    
    .points-balance {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .points-number {
        font-size: 2rem;
    }
    
    .loyalty-points-display {
        padding: 1.5rem;
    }
    
    .coupon-recommendations {
        padding: 1rem;
    }
    
    .discount-percentage {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation for campaign elements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
}

.campaign-badge {
    animation: glow 2s infinite;
}

/* Product card hover effects for campaigns */
.product-card:hover .campaign-badge {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}