/*
Theme Name: Outlaw Outfits Clean
Theme URI: https://outlawoutfits.com
Author: Outlaw Outfits
Version: 1.0
Description: Lightweight custom WooCommerce theme matching Outlaw Outfits static design.
Text Domain: outlaw-theme
*/

/* Core Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: #658a15;
    transition: color 0.2s ease;
}
a:hover {
    color: #64c0f5;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2b3a2f;
    background-color: #f4f1ea;
    line-height: 1.6;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Header Component */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #3e4a3d;
    border-bottom: 2px solid #556b2f;
}
.logo a {
    color: #f4f1ea;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    color: #f4f1ea;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #64c0f5;
}

/* Hero Component */
.hero-section {
    background-color: #4b5340;
    padding: 30px 15px;
    text-align: center;
    border-bottom: 4px solid #2b3a2f;
}
.hero-content h1 {
    color: #f4f1ea;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-content p {
    font-size: 1.1rem;
    color: #c2ba9d;
    margin-bottom: 25px;
}
.hero-section img {
    max-width: 100px;
    height: auto;
}

/* Filter Controls Layout */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.filter-btn {
    background-color: #f4f4f4;
    color: #654321;
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.filter-btn:hover {
    background-color: lightyellow;
}
.filter-btn.active {
    background-color: #2b3a2f;
    color: #f4f1ea;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}
.product-card {
    background-color: #ffffff;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(62, 74, 61, 0.15);
}
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f4f4f4;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2b3a2f;
}
.price {
    font-size: 18px;
    font-weight: 700;
    color: #556b2f;
    margin: 8px 0 15px 0;
}

/* Button UI Components */
.buy-now-btn,
.single_add_to_cart_button {
    display: inline-block !important;
    background-color: #658a15 !important;
    color: #f4f1ea !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
}
.buy-now-btn:hover,
.single_add_to_cart_button:hover {
    background-color: #64c0f5 !important;
    color: #ffffff !important;
}
.buy-now-btn:active,
.single_add_to_cart_button:active {
    transform: scale(0.98);
}

/* Product Detail Page Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .store-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

a.back-but {
    font-size: 32px;
    color: #658a15;
    text-decoration: none;
    font-weight: 900;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: inline-block;
    line-height: 1;
    margin-bottom: 10px;
}
a.back-but:hover {
    top: -2px;
    color: #4ad5ff;
}

.product-title {
    font-size: 2rem;
    color: #2b3a2f;
    margin-bottom: 10px;
}
.divider {
    border: 0;
    border-top: 1px solid #d4ceb8;
    margin: 20px 0;
}

/* Zoom Image & Thumbnails */
.zoom-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    cursor: zoom-in;
}
.zoom-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    display: block;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
}
.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid #d4ceb8;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: block;
}
.thumb-img:hover,
.thumb-img.active {
    border-color: #2b3a2f;
}

/* Product Description Formatting */
.product-description p {
    color: #3e4a3d;
    margin-bottom: 15px;
}
.product-description ul {
    padding-left: 20px;
    color: #3e4a3d;
    margin-bottom: 15px;
}
.product-description li {
    margin-bottom: 5px;
}

/* Variations Dropdown */
.single-product table.variations {
    width: 100%;
    margin-bottom: 15px;
    border: none;
}
.single-product table.variations td {
    padding: 8px 0;
    border: none;
}
.variations select {
    padding: 8px 12px;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    background-color: #ffffff;
    color: #2b3a2f;
    font-weight: 600;
}
.quantity input.qty {
    padding: 8px;
    border: 1px solid #d4ceb8;
    border-radius: 4px;
    margin-right: 10px;
    width: 60px;
    text-align: center;
}

/* Related Items Section */
.related-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 15px 0;
}
.related-item-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333333;
    transition: transform 0.2s ease;
}
.related-item-card:hover {
    transform: translateY(-2px);
}
.related-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
}
.related-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-product-title {
    margin: 10px 0 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    color: #2b3a2f;
}

/* Footer Component */
.store-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #1c241e;
    color: #8b8c74;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 3px solid #3e4a3d;
}