/*
Theme Name: PrintShoppingBags
Theme URI: https://printshoppingbags.it
Author: Your Name
Author URI: https://printshoppingbags.it
Description: A fresh, minimal theme for PrintShoppingBags.it.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
# Header
  ## Top Bar
  ## Main Header
  ## Navigation
# Content
# Footer
# Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}


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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

/* ## Top Bar */
.header-top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

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

.header-top-bar .header-search {
    width: 250px;
}

.header-top-bar .header-search .search-field {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

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

.header-user-actions a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.header-user-actions .cart-contents-count {
    background-color: #e53935;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    vertical-align: top;
    margin-left: -8px;
}

/* ## Main Header */
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-left {
    flex: 1 0 0;
}

.header-center {
    flex: 2 0 0;
    text-align: center;
}

.header-right {
    flex: 1 0 0;
    text-align: right;
}

.site-branding .main-logo {
    max-height: 60px;
    width: auto;
}

.header-search {
    max-width: 400px;
    margin: 0 auto;
}

.header-search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 20px;
}

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

.header-user-actions a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
}

/* ## Navigation */
.main-navigation {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: #007bff;
    border-bottom-color: #007bff;
}

.menu-toggle {
    display: none;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
    }

    .header-left, .header-right {
        flex-basis: 50%;
    }
    
    .header-center {
        flex-basis: 100%;
        order: 3;
        margin-top: 20px;
    }

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

@media (max-width: 768px) {
    .main-navigation .container {
        justify-content: flex-start;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-navigation ul.toggled-on {
        display: flex;
    }

    .main-navigation ul li a {
        display: block;
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

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

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Main Theme Styles --- */

/* General Layout */
.container {
    max-width: 1400px; /* Wider for this layout */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
}

/* Header Main Section (Logo, Search, Actions) */
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1 1 20%; /* Flex-grow, flex-shrink, basis */
}

.header-center {
    flex: 1 1 60%;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1 1 20%;
    display: flex;
    justify-content: flex-end;
}

/* Site Branding (Logo) */
.site-branding img {
    max-height: 60px;
    width: auto;
    border-radius: 50%; /* Rounded logo */
}

/* Header Search */
.header-search .search-form {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.header-search .search-form input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
}

.header-search .search-form input[type="submit"] {
    display: none; /* We can style a search icon instead */
}

/* User Actions (Account, Language) */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-user-actions a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.header-user-actions a:hover {
    color: #007cba; /* Highlight color on hover */
}

/* Header Navigation (Main Menu) */
.header-navigation {
    border-top: 1px solid #f5f5f5;
    margin-top: 10px;
    padding-top: 10px;
}

.main-navigation {
    width: 100%;
}

.main-navigation ul.primary-menu-ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center; /* Center aligns the menu items */
    gap: 40px;
}

.main-navigation .primary-menu-ul li {
    margin: 0;
}

.main-navigation .primary-menu-ul a {
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    padding: 10px 0;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
}

.main-navigation .primary-menu-ul a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007cba;
    transition: width 0.3s ease;
}

.main-navigation .primary-menu-ul a:hover:after {
    width: 100%;
}

/* General Site Content */
.site-content {
    padding: 40px 0;
}

/* Footer */
.site-footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 40px;
}

/* --- Under Construction Styles --- */

.construction-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 20px;
}

.logo {
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 3rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo .tagline {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 10px;
}

.construction-icon {
    margin: 40px 0;
    font-size: 4rem;
    color: #3498db;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.main-message {
    margin: 30px 0;
}

.main-message h2 {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: bold;
}

.main-message p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 8px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    width: 75%;
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0%, 100% { width: 75%; }
    50% { width: 85%; }
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #7f8c8d;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
    .construction-container {
        padding: 40px 20px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .main-message h2 {
        font-size: 1.5rem;
    }
    
    .main-message p {
        font-size: 1rem;
    }
    
    .construction-icon {
        font-size: 3rem;
    }
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.product-grid-container {
    padding: 60px 0;
}

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

.product-box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-box a {
    text-decoration: none;
    color: #333;
    display: block;
}

.product-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-box h3 {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    margin: 0;
} 