/*
Theme Name: Novelty Mugs Store
Theme URI: https://noveltymugstore.com
Author: Novelty Mug Store
Description: A modern, minimal ecommerce theme for the Novelty Mugs Store featuring WooCommerce integration and Printful compatibility.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novelty-mugs-store
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

body {
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Buttons */
.btn, button, input[type="button"], input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    color: #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo a {
    color: #000000;
}

/* Navigation */
nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav.main-nav a {
    font-weight: 500;
    font-size: 16px;
    color: #000000;
}

nav.main-nav a:hover {
    opacity: 0.6;
}

.cart-icon, .menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: #000000;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Grid Sections */
.grid-section {
    padding: 80px 20px;
}

.grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.grid-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.grid-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 2px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.product-rating {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #999;
}

.product-card .btn {
    width: 100%;
    padding: 10px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.category-card:hover {
    background-color: #f0f0f0;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.category-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Shop Page Filters */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 60px 20px;
}

.filters-sidebar {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 2px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group ul {
    list-style: none;
}

.filter-group li {
    margin-bottom: 10px;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-group label {
    cursor: pointer;
    font-size: 0.95rem;
}

.shop-products {
    padding: 20px;
}

/* Single Product Page */
.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 20px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    background-color: #f9f9f9;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f9f9f9;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #000;
}

.product-summary {
    padding: 20px 0;
}

.product-summary h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-summary .rating-info {
    margin-bottom: 15px;
    color: #666;
}

.product-summary .price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.product-summary .description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-group select,
.option-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    border-radius: 2px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.related-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.related-products h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

/* Collection/Category Pages */
.collection-intro {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.collection-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.collection-intro p {
    font-size: 1.05rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    line-height: 1.8;
}

/* About Page */
.about-hero {
    padding: 100px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    padding: 80px 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Contact Page */
.contact-wrapper {
    padding: 60px 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-wrapper h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contact-form {
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 16px;
    border-radius: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Blog Page */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 20px;
}

.blog-posts {
    padding: 20px;
}

.blog-post {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.blog-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #666;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #000;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-wrapper {
        justify-content: space-between;
    }

    nav.main-nav {
        display: none;
    }

    nav.main-nav.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    nav.main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .menu-toggle, .cart-icon {
        display: block;
        font-size: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 80px 20px;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .grid-section {
        padding: 50px 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-details-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .filters-sidebar {
        position: relative;
        top: auto;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .category-card {
        padding: 20px 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 150px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
