/*
Theme Name: SHOUT Promo Theme
Theme URI: https://shoutpromo.nl
Author: Custom Development
Author URI: https://shoutpromo.nl
Description: Professional promotional products WooCommerce theme. Modern design with product configurator, multiple print options, and optimized B2B shopping experience.
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: shout-promo
Tags: e-commerce, woocommerce, custom-header, custom-menu, featured-images, theme-options
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
WooCommerce tested up to: 8.4

SHOUT Promo - Professional promotional products WooCommerce theme.
*/

/* ===== CSS Variables ===== */
:root {
    /* New SHOUT Promo Color Palette */
    --sp-teal: #114C5A;
    --sp-dark: #172B36;
    --sp-orange: #FF9932;
    --sp-yellow: #FFC801;
    --sp-mint: #D9E8E2;
    --sp-light: #F1F6F4;

    /* Legacy mappings for compatibility */
    --cb-primary: #FF9932;
    --cb-primary-dark: #e88a2d;
    --cb-accent: #114C5A;
    --cb-accent-dark: #0d3942;
    --cb-dark: #172B36;
    --cb-dark-darker: #0f1d24;
    --cb-green: #114C5A;
    --cb-green-dark: #0d3942;
    --cb-text: #172B36;
    --cb-bg: #F1F6F4;
    --cb-white: #ffffff;
    --cb-gray-100: #F1F6F4;
    --cb-gray-200: #D9E8E2;
    --cb-gray-300: #cbd5e0;
    --cb-gray-400: #a0aec0;
    --cb-gray-500: #718096;
    --cb-gray-600: #4a5568;
}

/* ===== Base Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--cb-bg);
    color: var(--cb-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Utility Classes ===== */
.cb-blue { color: var(--cb-blue); }
.bg-cb-blue { background-color: var(--cb-blue); }
.cb-orange { color: var(--cb-orange); }
.bg-cb-orange { background-color: var(--cb-orange); }
.cb-green { color: var(--cb-green); }
.bg-cb-green { background-color: var(--cb-green); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Price Styling ===== */
.price-fraction {
    vertical-align: super;
    font-size: 0.6em;
}

/* ===== Custom Scrollbar ===== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== Product Card Hover ===== */
.hover-card {
    transition: all 0.2s ease;
}
.hover-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1), 0 0 0 1px #e2e8f0;
    transform: translateY(-2px);
}

/* ===== Confetti Decoration ===== */
.confetti-circle {
    border-radius: 50%;
    position: absolute;
}

.confetti-container {
    position: relative;
}

.confetti-container .confetti-1 {
    width: 64px;
    height: 64px;
    background-color: var(--cb-orange);
    top: 32px;
    left: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
    transform: rotate(12deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.confetti-container .confetti-2 {
    width: 32px;
    height: 32px;
    background-color: var(--cb-orange);
    top: 96px;
    left: 160px;
}

.confetti-container .confetti-3 {
    width: 16px;
    height: 16px;
    background-color: white;
    opacity: 0.2;
    top: 48px;
    left: 256px;
}

.confetti-container .confetti-4 {
    width: 48px;
    height: 48px;
    background-color: var(--cb-orange);
    top: 256px;
    left: 40px;
}

.confetti-container .confetti-5 {
    width: 80px;
    height: 80px;
    background-color: var(--cb-blue-dark);
    top: -40px;
    right: -40px;
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== WooCommerce Overrides ===== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none;
}

.woocommerce .products .star-rating {
    color: var(--cb-green);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--cb-green) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: background-color 0.2s ease !important;
    text-transform: none !important;
    line-height: 1.5 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--cb-green-dark) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--cb-green) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--cb-green-dark) !important;
}

/* Add to cart button loading state */
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after {
    border-color: white !important;
}

.woocommerce .price {
    color: var(--cb-text) !important;
    font-weight: 800 !important;
}

.woocommerce .price del {
    color: var(--cb-gray-500) !important;
    font-weight: 400 !important;
    opacity: 1;
}

.woocommerce .price ins {
    color: var(--cb-orange) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

.woocommerce span.onsale {
    background-color: var(--cb-blue) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.5 !important;
}

/* ===== Messages ===== */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--cb-blue) !important;
    background-color: #f0f7ff !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--cb-blue) !important;
}

.woocommerce-error {
    border-top-color: var(--cb-orange) !important;
}

/* ===== Form Styling ===== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 12px 16px;
    border: 1px solid var(--cb-gray-300);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--cb-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 144, 227, 0.1);
}

/* ===== Quantity Input ===== */
.woocommerce .quantity .qty {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--cb-gray-300);
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
}

/* ===== Breadcrumbs ===== */
.woocommerce-breadcrumb {
    color: var(--cb-gray-500);
    font-size: 14px;
    margin-bottom: 1rem;
}

.woocommerce-breadcrumb a {
    color: var(--cb-blue);
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Pagination ===== */
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-weight: 600;
    background: white;
    border: 1px solid var(--cb-gray-200);
    color: var(--cb-text);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--cb-blue);
    color: white;
    border-color: var(--cb-blue);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--cb-blue);
    color: white;
    border-color: var(--cb-blue);
}

/* ===== Rating Stars ===== */
.coolblue-stars {
    display: flex;
    gap: 1px;
}

.coolblue-stars .star-full {
    color: var(--cb-green);
}

.coolblue-stars .star-half {
    color: var(--cb-green);
}

.coolblue-stars .star-empty {
    color: var(--cb-gray-300);
}

/* Fix for Lucide star icons to show filled */
.coolblue-stars [data-lucide="star"].filled {
    fill: var(--cb-green);
    stroke: var(--cb-green);
}

/* ===== WooCommerce Catalog Ordering ===== */
.woocommerce-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--cb-gray-300);
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* ===== Cart Table ===== */
.woocommerce-cart-form .shop_table {
    border: none;
}

.woocommerce-cart-form .shop_table td {
    border: none;
    padding: 1rem 0;
}

/* ===== Checkout ===== */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f0f7ff;
    border-top-color: var(--cb-blue);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Print Styles ===== */
@media print {
    header, footer, .cart-collaterals {
        display: none;
    }
}

/* ===== WordPress Core Overrides ===== */
.wp-block-button__link {
    background-color: var(--cb-green);
    color: white;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 700;
}

.wp-block-button__link:hover {
    background-color: var(--cb-green-dark);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

/* ===== Prose/Content Styling ===== */
.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* ===== Accessibility ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== Focus Styles ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--cb-blue);
    outline-offset: 2px;
}

/* ===== Product Image Styling ===== */
.woocommerce-product-gallery__image img {
    border-radius: 8px;
}

/* ===== Notices ===== */
.woocommerce-notices-wrapper {
    margin-bottom: 1rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Fix WooCommerce default styles bleeding through ===== */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    float: none;
    width: 100%;
}

.woocommerce #content div.product div.images,
.woocommerce #content div.product div.summary {
    float: none;
    width: 100%;
}

/* Clear floats */
.woocommerce::after,
.woocommerce-page::after {
    content: "";
    display: table;
    clear: both;
}
