/*
Theme Name: SHOUT Media Shop
Theme URI: https://shoutmedia.nl
Author: SHOUT Media
Author URI: https://shoutmedia.nl
Description: Custom WooCommerce theme voor modulaire houten meubels - FixWood
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shout-media
Tags: e-commerce, woocommerce
*/

/* Reset & Base - Tailwind handles most styling */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

/* Custom scrollbar for filters */
.filter-scroll::-webkit-scrollbar { width: 4px; }
.filter-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.filter-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Line clamp utilities */
.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; }

/* Screen reader text */
.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 !important; width: 1px; word-wrap: normal !important;
}

/* WooCommerce message overrides */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-radius: 0.75rem; padding: 1rem 1.5rem; margin-bottom: 1.5rem;
    border: none !important; background: none !important;
}
.woocommerce-message { background-color: #ecfdf5 !important; border-left: 4px solid #00aa4b !important; }
.woocommerce-info { background-color: #e8f5ee !important; border-left: 4px solid #198754 !important; }
.woocommerce-error { background-color: #fef2f2 !important; border-left: 4px solid #e3004f !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }

/* Remove default WC styles */
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }

/* Form styling */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 0.75rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.5rem;
    font-size: 0.875rem; width: 100%;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none; border-color: #198754; box-shadow: 0 0 0 2px rgba(54, 9, 79, 0.1);
}

/* Button styling */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt {
    background-color: #198754 !important; color: white !important;
    border: none !important; border-radius: 9999px !important;
    padding: 0.75rem 1.5rem !important; font-weight: 600 !important;
    font-size: 0.875rem !important; cursor: pointer; transition: all 0.2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #126b43 !important; color: white !important;
}

/* Quantity input */
.woocommerce .quantity .qty { width: 60px; text-align: center; }

/* Star rating */
.woocommerce .star-rating { color: #f59f00; }
.woocommerce .star-rating::before { color: #e5e7eb; }

/* Product gallery */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { display: none; }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 1rem; display: flex; gap: 0.5rem; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 80px; height: 80px; }
.woocommerce div.product div.images .flex-control-thumbs li img {
    border: 2px solid #e5e7eb; border-radius: 0.5rem; padding: 0.25rem;
    cursor: pointer; transition: all 0.2s;
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: #198754;
}

/* Hide default onsale badge - we use custom */
.woocommerce span.onsale { display: none !important; }

/* Price styling */
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #1a1a1a; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del {
    color: #9ca3af; font-size: 0.875rem;
}
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins {
    text-decoration: none; font-weight: 700;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; list-style: none; display: flex; gap: 2rem; border-bottom: 1px solid #e5e7eb; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: none; background: none; padding: 0; margin: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block; padding: 1rem 0; font-weight: 600; color: #6b7280;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #198754; border-bottom-color: #198754;
}
.woocommerce div.product .woocommerce-tabs .panel { padding: 2rem 0; }

/* Cart table */
.woocommerce table.shop_table { border: none; border-radius: 0; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border: none; padding: 1rem; }
.woocommerce table.shop_table tbody tr { border-bottom: 1px solid #e5e7eb; }

/* Checkout */
.woocommerce-checkout #payment { background: #f9fafb; border-radius: 0.75rem; padding: 1.5rem; }
.woocommerce-checkout #payment ul.payment_methods { border: none; padding: 0; }
.woocommerce-checkout #payment div.payment_box { background: white; border-radius: 0.5rem; margin-top: 0.5rem; }

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
    color: #374151; transition: all 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #e8f5ee; color: #198754;
}

/* Pagination styling */
.woocommerce nav.woocommerce-pagination ul,
.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
}
.page-numbers a:hover {
    border-color: #198754;
    color: #198754;
    background: #e8f5ee;
}
.page-numbers .current {
    background: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}
.page-numbers .prev,
.page-numbers .next {
    padding: 0 0.5rem;
}
.page-numbers .dots {
    border: none;
    background: transparent;
}
