/*
Theme Name: ea2
Theme URI: https://www.edelstahl-a2.de
Author: Frank
Author URI: https://www.edelstahl-a2.de
Description: Edelstahl-A2.de Theme
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ea2
Tags: mega
*/

<style>
/* Theme: ea2 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
	margin:0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro {
    margin-top: 2rem;
    font-size: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
	.intro {
		margin-top: 2rem;
		font-size: 1.2rem;
		max-width: 50%;
		margin-left: 25%;
		text-align: center;
	}
}

/* === HEADER === */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
	flex-grow: 1;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.logo img {
	width:120px;
	height:120px;
}

/* == MENÜ == */
/* Basis Styles für das Menü */
.navigation-wrapper {
    position: relative;
}

.main-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
	text-transform: uppercase;
}

.main-navigation a:hover {
    background-color: #f8f9fa;
    color: #007cba;
}

/* Burger Menu Button (standardmäßig versteckt) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    color: #333;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Burger Animation zu X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === DESKTOP STYLES (≥768px) === */
@media (min-width: 768px) {
    .main-navigation {
        display: flex !important;
        position: static;
        background: transparent;
        box-shadow: none;
        width: auto;
        height: auto;
        flex-direction: row;
    }

    .main-navigation li {
        position: relative;
    }

    .main-navigation a {
        padding: 15px 20px;
        border-bottom: none;
    }

    /* Dropdown Untermenüs - Desktop */
    .main-navigation .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 200px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid #e1e5e9;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        list-style: none;
        padding: 10px 0;
        margin: 0;
    }

    .main-navigation li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navigation .sub-menu li {
        display: block;
        width: 100%;
    }

    .main-navigation .sub-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #f1f3f4;
        color: #555;
    }

    .main-navigation .sub-menu a:hover {
        background-color: #f8f9fa;
        color: #007cba;
    }

    /* Letztes Element ohne Border */
    .main-navigation .sub-menu li:last-child a {
        border-bottom: none;
    }

    /* Pfeil für Dropdown-Indikator */
    .main-navigation .menu-item-has-children > a::after {
        content: "▼";
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .main-navigation .menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }

    /* Untermenü-Pfeil */
    .main-navigation .sub-menu .menu-item-has-children > a::after {
        content: "▶";
        float: right;
        transform: none;
    }

    /* Tiefere Untermenü-Ebenen */
    .main-navigation .sub-menu .sub-menu {
        top: 0;
        left: 100%;
    }
}

/* === MOBILE STYLES (<768px) === */
@media (max-width: 767px) {
    .navigation-wrapper {
		justify-items:right;
	}
	
	.menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        width: 50vw;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid #e1e5e9;
        border-top: none;
        z-index: 999;
        flex-direction: column;
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #f1f3f4;
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        padding: 15px 20px;
        border-bottom: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Untermenüs */
    .main-navigation .sub-menu {
        position: static;
        background: #f8f9fa;
        box-shadow: none;
        border: none;
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-navigation .sub-menu.active {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding-left: 40px;
        background-color: #f8f9fa;
        font-size: 14px;
    }

    .main-navigation .sub-menu .sub-menu a {
        padding-left: 60px;
        background-color: #f1f3f4;
    }

    /* Mobile Dropdown Toggle */
    .main-navigation .menu-item-has-children > a {
        position: relative;
    }

    .main-navigation .menu-item-has-children > a::after {
        content: "+";
        position: absolute;
        right: 20px;
        font-size: 18px;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .main-navigation .menu-item-has-children.active > a::after {
        transform: rotate(45deg);
    }
}

/* === ZUSÄTZLICHE RESPONSIVE VERBESSERUNGEN === */

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .main-navigation a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .main-navigation .sub-menu a {
        padding-left: 30px;
    }

    .main-navigation .sub-menu .sub-menu a {
        padding-left: 45px;
    }
}

/* Große Desktop-Bildschirme */
@media (min-width: 1200px) {
    .main-navigation a {
        padding: 15px 25px;
    }

    .main-navigation .sub-menu {
        min-width: 220px;
    }
}

/* Fokus-Styles für Barrierefreiheit */
.main-navigation a:focus,
.menu-toggle:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Smooth Scrolling für mobile Menüs */
.main-navigation {
    -webkit-overflow-scrolling: touch;
}

/* Verhindere Körper-Scrollen bei geöffnetem Mobile-Menü */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    body.menu-open {
        overflow: hidden;
    }
}

/* === WARENKORB ICON === */

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: #555;
    text-decoration: none;
	justify-items: right;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* === FOOTER === */

.footer {
	background: #1a1a1a;
	color: #ffffff;
	padding: 50px 0 20px;
	margin-top: auto;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-section h3 {
	color: #ffffff;
	margin-bottom: 20px;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 10px;
}

.footer-section ul li a {
	color: #cccccc;
	text-decoration: none;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-section ul li a:hover {
	color: #2c3e50;
}

.footer-section ul li a i {
	width: 16px;
	text-align: center;
	font-size: 0.9rem;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #cccccc;
}

.contact-item i {
	width: 18px;
	text-align: center;
	color: #64b5f6;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.social-links a {
	color: #cccccc;
	font-size: 1.2rem;
	transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
	color: #64b5f6;
	transform: translateY(-2px);
}

.newsletter-form {
	margin-top: 15px;
}

.newsletter-input {
	display: flex;
	max-width: 300px;
	margin-top: 10px;
}

.newsletter-input input {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 4px 0 0 4px;
	background: #333;
	color: #fff;
	outline: none;
}

.newsletter-input input::placeholder {
	color: #999;
}

.newsletter-input button {
	padding: 12px 20px;
	background: #64b5f6;
	color: white;
	border: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background 0.3s ease;
}

.newsletter-input button:hover {
	background: #42a5f5;
}

.footer-bottom {
	border-top: 1px solid #333;
	padding-top: 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-bottom-left {
	color: #888;
	font-size: 0.9rem;
}

.payment-methods {
	display: flex;
	gap: 10px;
	align-items: center;
}

.payment-methods i {
	font-size: 1.5rem;
	color: #888;
	transition: color 0.3s ease;
}

.payment-methods i:hover {
	color: #64b5f6;
}

.trust-badges {
	display: flex;
	gap: 15px;
	align-items: center;
	margin-top: 10px;
}

.trust-badge {
	color: #888;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 5px;
}

.trust-badge i {
	color: #4caf50;
}

@media (max-width: 768px) {
	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.contact-item,
	.footer-section ul li a {
		justify-content: left;
	}

	.footer-section ul {
		margin-left: -30px;
	}
	.newsletter-input {
		max-width: 100%;
	}

	.social-links {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.footer {
		padding: 30px 0 15px;
	}
	
	.footer-container {
		padding: 0 15px;
	}
}



/* === CATEGORY CAROUSEL === */
.category-section {
    margin: 3rem 0;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* === NAVIGATION ARROWS === */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: #fff;
	border: 2px solid #e1e5e9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	transition: all 0.3s ease;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
	background: #007cba;
	color: #fff;
	border-color: #007cba;
	transform: translateY(-50%) scale(1.1);
}

.carousel-nav.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.carousel-nav-prev {
	left: -25px;
}

.carousel-nav-next {
	right: -25px;
}

/* === INDICATORS === */
.carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.carousel-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ddd;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicator.active {
	background: #007cba;
	transform: scale(1.2);
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
	.products-carousel {
		padding: 15px 0;
	}

	.products-track {
		gap: 15px;
		padding: 0 15px;
	}

	.carousel-nav {
		display: none;
	}

	.carousel-indicators {
		margin-top: 15px;
	}
}

@media (max-width: 480px) {

	.products-track {
		padding: 0 10px;
	}
}

/* === TOUCH FEEDBACK === */
.products-track.dragging {
	cursor: grabbing;
	cursor: -webkit-grabbing;
}

.products-carousel, .products-carousel .carousel-container,
.products-carousel .products-track {
    touch-action: pan-y; /* erlaubt vertikales Scrollen, verhindert native horizontale Panning */
    -ms-touch-action: pan-y;
}

/* === SMOOTH SCROLLING === */
.products-track.no-transition {
	transition: none;
}

/* === LOADING STATE === */
.carousel-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
	font-size: 16px;
	color: #666;
}


.products-carousel {
	position: relative;
	width: 100%;
	border-radius: 12px;
	background: #f8f9fa;
	padding: 20px 0;
}

.carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.products-track {
	display: flex;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	gap: 20px;
	padding: 0 20px;
}

/* === PRODUCT CARD === */
.product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    width: 280px; /* Feste Breite */
    height: 650px; /* Erhöhte Höhe für alle Inhalte */
    flex-shrink: 0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Bild-Container mit fester Größe und zentrierter Darstellung */
.product-image {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Verhältnis beibehalten, nicht strecken */
    object-position: center;
}

/* Falls das Bild direkt als img-Tag verwendet wird */
.product-card > img.product-image {
    width: 100%;
    height: 200px;
    object-fit: scale-down; /* Nicht strecken, zentrieren */
    object-position: center;
    border-radius: 4px;
    background-color: #f8f9fa;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    /* Titel kann umbrechen */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Feste Höhe für 3 Zeilen */
    height: 4.2em; /* 3 Zeilen bei line-height 1.4 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
    /*margin-bottom: 1rem;*/
    height: 2.8em; /* Feste Höhe für Preis */
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.product-price .price-tax {
	font-size: 0.7rem;
	font-weight: 200;
	color: #2c3e50;
}

/* === NEUE LABEL-STRUKTUR === */
.variant-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	min-height: 32px; /* Mindesthöhe für konsistente Ausrichtung */
}

.variant-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: #2c3e50;
	min-width: 120px; /* Mindestbreite für Labels */
	flex-shrink: 0;
}

.variant-select {
	flex: 1;
	min-width: 50px; /* Mindestbreite für Select */
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 0.7rem;
	background: #fff;
}

/* Responsive Verhalten: Label über Select bei schmalen Karten */
@media (max-width: 300px) {
	.variant-group {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.variant-label {
		min-width: auto;
		margin-bottom: 0.25rem;
	}
	
	.variant-select {
		width: 100%;
	}
}

/* Für noch schmalere Produktkarten */
.product-card.narrow {
	width: 220px;
}

.product-card.narrow .variant-group {
	flex-direction: column;
	align-items: flex-start;
}

.product-card.narrow .variant-label {
	min-width: auto;
	margin-bottom: 0.25rem;
}

.product-card.narrow .variant-select {
	width: 100%;
}

.product-variants {
    /*margin-bottom: 1rem;*/
    /* Feste minimale Höhe basierend auf der maximalen Anzahl von Varianten */
    min-height: 160px; /* Platz für ca. 4 Select-Felder */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.qty-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 32px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0.4rem;
    font-size: 0.9rem;
}

.add-to-cart-btn {
    /*width: 100%;*/
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

.add-to-cart-btn:hover {
    background: #34495e;
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.bulk-discount-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}
/* === LOADING STATES === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row;
        gap: 1rem;
    }
    
    .products-track {
        gap: 1rem;
    }
    
    .product-card {
        min-width: 250px;
        padding: 1rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-width: 220px;
    }
    
    .products-track {
        gap: 0.5rem;
    }
}

/* === WARENKORB SIDEBAR === */
 .cart-sidebar {
	position: fixed;
	right: 0;
	top: 0;
	width: 400px;
	height: 100vh;
	background: white;
	box-shadow: -2px 0 10px rgba(0,0,0,0.1);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 1001;
	display: flex;
	flex-direction: column;
}

.cart-sidebar.open {
	transform: translateX(0);
}
/* === HEADER === */
.cart-header {
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-title {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.cart-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-close:hover {
	background: #f3f4f6;
	color: #374151;
}

/* === CART CONTENTS - SCROLLABLE === */
#cart-contents {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Custom Scrollbar */
#cart-contents::-webkit-scrollbar {
	width: 8px;
}

#cart-contents::-webkit-scrollbar-track {
	background: #f1f1f1;
}

#cart-contents::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

#cart-contents::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* === CART ITEMS === */
.cart-item {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	background: #fafafa;
	border-radius: 8px;
	border: 1px solid #f3f4f6;
	transition: all 0.2s;
}

.cart-item:hover {
	background: #f9fafb;
	border-color: #e5e7eb;
}

.cart-item img {
	width: 60px;
	height: 60px;
	object-fit: scale-down;
	border-radius: 6px;
	background: white;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cart-item-details h4 {
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
	margin: 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cart-item-details span {
	font-size: 0.7rem;
	font-weight: 200;
}

.cart-item-price {
	font-size: 1rem;
	font-weight: 600;
	color: #059669;
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
}

/* === QUANTITY CONTROLS === */
.qty-btn {
	background: white;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-weight: 500;
	color: #6b7280;
	transition: all 0.2s;
	font-size: 0.9rem;
}

.qty-btn:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #374151;
}

.cart-item-quantity span {
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
	min-width: 20px;
	text-align: center;
}

.remove-item {
	background: none;
	border: none;
	color: #ef4444;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 4px;
	font-size: 1rem;
	transition: all 0.2s;
	margin-left: 0.5rem;
}

.remove-item:hover {
	background: #fef2f2;
	color: #dc2626;
}

/* === CART FOOTER - FIXED === */
 .cart-footer {
	padding: 20px;
	border-top: 1px solid #e0e0e0;
	background: #f9f9f9;
}

.cart-totals {
	margin-bottom: 20px;
}

.total-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 14px;
}

.total-row.subtotal {
	font-weight: 600;
}

.total-row.shipping {
	color: #666;
}

.total-row.final-total {
	font-size: 18px;
	font-weight: bold;
	color: #007cba;
	border-top: 1px solid #ddd;
	padding-top: 12px;
	margin-top: 12px;
}

.total-row.tax {
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}

/* === CHECKOUT BUTTON === */
.checkout-btn {
	display: block;
	width: calc(100% - 3rem);
	margin: 0 1.5rem 1.5rem;
	background: #374151;
	color: white;
	text-decoration: none;
	text-align: center;
	padding: 1rem;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.checkout-btn:hover {
	background: #4b5563;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === EMPTY CART === */
.cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #9ca3af;
	padding: 2rem;
}

.cart-empty-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.cart-empty p {
	font-size: 1rem;
	margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
	.cart-sidebar {
		width: 100vw;
		right: -100vw;
	}
	
	.cart-sidebar.open {
		right: 0;
	}
}

/* === OVERLAY === */
.cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.cart-overlay.active {
	opacity: 1;
	visibility: visible;
}

.loading {
	opacity: 0.6;
	pointer-events: none;
}
/* TABLE PRODUCT SINGLE PAGE */
.product-short-description table {
  width: 100%;
  margin-bottom: 1.5em;
  border-spacing: 0;
  
  @media (min-width: 768x) { font-size: .9em; }
  
  @media (min-width: 1024px) { font-size: 1em; }
  
  thead {
    
    @media (min-width: 768x) {
      position: relative;
      clip: auto;
      height: auto;
      width: auto;
      overflow: auto;
    }
    
	th {
      background-color: #a7a6a2;
      border: 1px solid white;
      font-weight: normal;
      text-align: center;
      color: white;
      
      &:first-of-type { text-align: left; }
    }
  }
  
  // Set these items to display: block for narrow viewports
  tbody,
  tr,
  th,
  td {
    display: block;
    padding: 0;
    text-align: left;
    white-space: normal;
  }
  
  tr {   
    @media (min-width: 768px) { display: table-row; }
  }
  
  th,
  td {
    padding: .5em;
    vertical-align: middle;
    
    @media (min-width: 768px) { padding: .75em .5em; }
    
    @media (min-width: 1024x) { display: table-cell; padding: .5em; }
  }
  
  caption {
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    
    @media (min-width: 768px) {
      font-size: 1.5em;
    }
  }
  
  tfoot {
    font-size: .8em;
    font-style: italic;
    
    @media (min-width: 1024px) {
      font-size: .9em;
    }
  }
  
  tbody {
    @media (min-width: 768px) {
      display: table-row-group; 
    }
    
    tr {
      margin-bottom: 1em;
      
      @media (min-width: 768px) {
        display: table-row;
        border-width: 1px;
      }
      
      &:last-of-type {
        margin-bottom: 0; 
      }
      
      &:nth-of-type(even) {
          background-color: rgba(0,0,0,.12);
      }
    }
    
    th[scope="row"] {
      background-color: rgba(38,137,13,1);
      color: white;
      
      @media (min-width: 768px) {
        background-color: transparent;
        color: rgba(0,0,0.87);
        text-align: left;
      }
    }
    
    td {
      text-align: right;
      
      @media (min-width: 768px) {
        border-left: 1px solid white;
        border-bottom: 1px solid white;
        text-align: center; 
      }
      
      &:last-of-type {
          border-right: 1px solid white;
      }
    }
  
  }
}
  
   .ws-datasheet-container * {
		box-sizing: border-box;
	}
	
	.ws-datasheet-container {
		font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
		color: #333;
		line-height: 1.6;
		margin: 0;
	}
	
	.ws-datasheet-container .container {
		max-width: 1200px;
		margin: 0 auto;
		background: white;
		overflow: hidden;
	}
	
	
	.ws-datasheet-container .content {
	}
	
	.ws-datasheet-container .image-container {
		width: 100%;
		margin-bottom: 10px;
		text-align: center;
		background: #f5f5f5;
		min-height: 300px;
		display: flex;
		align-items: center;
		justify-content: center;
		border: 1px solid #666;
	}
	
	.ws-datasheet-container .technical-drawing {
		max-width: 100%;
		height: auto;
	}
	
	.ws-datasheet-container .section {
		margin-bottom: 20px;
	}
	
	.ws-datasheet-container .section-title {
		font-size: 1.4rem;
		font-weight: 600;
		color: #333;
		margin-bottom: 15px;
		padding-bottom: 8px;
		border-bottom: 1px solid #333;
	}
	
	.ws-datasheet-container .dimensions-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 20px;
		margin-bottom: 30px;
	}
	
	.ws-datasheet-container table {
		width: 100%;
		border-collapse: collapse;
		background: white;
		border: 1px solid #333;
		overflow: hidden;
	}
	
	.ws-datasheet-container th,
	.ws-datasheet-container td {
		padding: 5px 8px;
		text-align: left;
		border-bottom: 1px solid #666;
		border-right: 1px solid #666;
	}
	
	.ws-datasheet-container th {
		background: #e5e5e5;
		font-weight: 600;
		color: #333;
		text-align: center;
	}
	
	.ws-datasheet-container .dimension-label {
		background: #d0d0d0;
		font-weight: 600;
		color: #333;
	}
	
	.ws-datasheet-container .specs-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 10px;
	}
	
	.ws-datasheet-container .spec-card {
		background: #f5f5f5;
		padding: 10px;
		border: 1px solid #666;
		border-left: 2px solid #333;
	}
	
	.ws-datasheet-container .spec-label {
		font-weight: 600;
		color: #333;
		margin-bottom: 5px;
	}
	
	.ws-datasheet-container .spec-value {
		font-size: 1.1rem;
		color: #444;
	}
	
	
	/* Mobile optimizations */
	@media (max-width: 768px) {
		.ws-datasheet-container {
			padding: 4px;
		}
		
		.ws-datasheet-container .dimensions-grid {
			grid-template-columns: 1fr;
		}
		
		.ws-datasheet-container .specs-grid {
			grid-template-columns: 1fr;
		}
		
		.ws-datasheet-container th,
		.ws-datasheet-container td {
			padding: 3px 5px;
			font-size: 0.9rem;
		}
		
		.ws-datasheet-container .section-title {
			font-size: 1.2rem;
		}
	}
	
	@media (max-width: 480px) {
		.ws-datasheet-container .image-container {
			padding: 15px;
			min-height: 200px;
		}
		
		.ws-datasheet-container table {
			font-size: 0.85rem;
		}
		
		.ws-datasheet-container th,
		.ws-datasheet-container td {
			padding: 6px 8px;
		}
	}

</style>