/*
Theme Name: Packalot Packaging
Theme URI: https://packalotpackaging.co.za
Author: Manus
Author URI: https://manus.im
Description: Custom WordPress theme for Packalot Packaging based on the static design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: packalot
Tags: custom-colors, custom-logo, custom-menu, featured-images, responsive
*/

/* Global Styles */
:root {
    --primary-color: #ff6600; /* Packalot orange */
    --secondary-color: #1d2731; /* Packalot dark blue/black */
    --dark-color: #1d2731;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --max-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: url('assets/images/logo.jpg') repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    height: 70px;
    width: auto;
    margin-right: 15px;
}

.company-intro {
    flex: 1;
}

.company-intro h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.company-intro p {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/logo.jpg') no-repeat center center/contain;
    height: 60vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #e65c00;
    transform: translateY(-3px);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

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

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

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.category-card p {
    padding: 0 1.5rem 1.5rem;
}

.shop-now-button {
    display: block;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.shop-now-button:hover {
    background: #e65c00;
}

/* Featured Section */
.featured-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.featured-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

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

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

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.featured-image {
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.featured-card p {
    padding: 0 1.5rem 1.5rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

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

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

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

.service-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.submit-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.social-contact {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.whatsapp-button, .facebook-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
    text-align: center;
}

.whatsapp-button {
    background: #25D366;
    color: #fff;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

.facebook-button {
    background: #4267B2;
    color: #fff;
}

.facebook-button:hover {
    background: #365899;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.social-icon {
    color: #ddd;
    transition: color 0.3s;
}

.footer-links ul li a:hover,
.social-icon:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
}

.social-icon {
    margin-bottom: 0.8rem;
}

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

/* Catalog Styles */
.catalog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/logo.jpg') no-repeat center center/contain;
    height: 30vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.catalog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.catalog-hero-content p {
    font-size: 1.2rem;
}

.catalog-filters {
    background-color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 99;
}

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

.filter-group {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.filter-group label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.search-group {
    display: flex;
    margin-bottom: 0.5rem;
}

.search-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 200px;
}

.search-group button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.catalog-products {
    padding: 3rem 0;
}

.catalog-products h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-badge.eco-friendly {
    background-color: var(--success-color);
}

.product-badge.new {
    background-color: #6200ea;
}

.product-badge.premium {
    background-color: #ffc107;
    color: #333;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 1.5rem;
}

.product-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-size {
    color: #666;
}

.product-price {
    font-weight: bold;
    color: var(--dark-color);
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.view-details-button {
    padding: 0.5rem 1rem;
    background-color: #f4f4f4;
    color: var(--dark-color);
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-details-button:hover {
    background-color: #e0e0e0;
}

.add-to-cart-button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

.catalog-pagination {
    padding: 2rem 0;
    text-align: center;
}

.pagination {
    display: inline-block;
}

.pagination a {
    color: var(--dark-color);
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #f4f4f4;
}

.pagination a.next {
    margin-left: 10px;
}

.catalog-cta {
    background-color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* WordPress Specific Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.blocks-gallery-item {
    margin: 0 16px 16px 0;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    width: auto;
}

.woocommerce ul.products li.product .price {
    color: var(--dark-color);
    font-weight: bold;
}

.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: var(--primary-color);
    color: #fff;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: #e65c00;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group, .search-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-group input {
        width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-details-button, .add-to-cart-button {
        text-align: center;
    }
}

@media (max-width: 500px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero {
        height: 50vh;
    }
    
    .catalog-hero-content h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
