/*
Theme Name: PARTS
Theme URI: https://example.com/parts
Author: PARTS Team
Author URI: https://example.com
Description: WooCommerce theme with request list functionality for sending product requests to manager
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parts
Tags: woocommerce, e-commerce, responsive
*/

:root {
    --primary-color: #FFD700;
    --primary-dark: #E6C200;
    --secondary-color: #1A1A1A;
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.request-list-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.request-list-btn:hover {
    background-color: var(--primary-dark);
}

.request-list-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Products Grid */
.products-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.add-to-request-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-request-btn:hover {
    background-color: var(--primary-dark);
}

.add-to-request-btn.added {
    background-color: var(--success-color);
    color: white;
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.brand-item {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

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

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-text {
    color: #666;
}

.contact-map {
    margin-top: 40px;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 8px;
}

/* Forms Section */
.forms-section {
    padding: 80px 0;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

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

/* Request List Modal */
.request-list-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.request-list-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.request-list-items {
    margin-bottom: 30px;
}

.request-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.request-list-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.request-list-item-info {
    flex: 1;
}

.request-list-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.request-list-item-price {
    color: #666;
}

.remove-item-btn {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.request-list-total {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.send-request-btn {
    width: 100%;
    background-color: var(--success-color);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-request-btn:hover {
    background-color: #43A047;
}

.empty-list-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid,
    .forms-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid,
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 8px;
}

.product-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.product-detail-info .product-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-detail-info .product-price {
    font-size: 28px;
    margin-bottom: 30px;
}

.product-detail-info .product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.view-product-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-detail-grid .add-to-request-btn {
    width: auto;
    padding: 16px 40px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}