/* Stranica proizvoda – raspored prema Elementor šablonu 4814. */

.sw-product__main {
	padding: 0 20px;
}

.sw-product__inner {
	display: flex;
	gap: 20px;
	max-width: var(--sw-container);
	margin: 0 auto;
	padding: 50px 0;
}

.sw-product__gallery,
.sw-product__summary {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: calc((100% - 20px) / 2);
	padding: 10px;
}

.sw-product__title {
	margin: 0;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-a10f8a0-font-family), sans-serif;
	font-size: var(--e-global-typography-a10f8a0-font-size);
	font-weight: 600;
	line-height: 1.3em;
	text-transform: uppercase;
}

.sw-product__short {
	margin-top: 20px; /* prazan HTML widget između naslova i opisa na starom sajtu */
}

/* Opis proizvoda: Roboto i prozračniji redovi kao na arenasport.com, obostrano poravnat (želja klijenta). */
.sw-product__short p {
	margin: 0 0 12px;
	color: #1a1a1a;
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	text-align: justify !important;
	hyphens: auto;
}

.sw-product #sw-tab-panel-0 p,
.sw-product #sw-tab-panel-0 li {
	color: #1a1a1a;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

/* Obostrano poravnanje i za opise pisane bez njega u editoru. */
.sw-product #sw-tab-panel-0 p {
	text-align: justify !important;
	hyphens: auto;
}

.sw-product__cart table.variations,
.sw-product__cart table.variations td,
.sw-product__cart table.variations th {
	border: 0;
	border-collapse: collapse;
}

.sw-product__cart table.variations td {
	padding: 15px 15px 15px 0;
	background-color: #fff;
}

.woocommerce .sw-product__cart .single_add_to_cart_button.button.alt,
.sw-product__cart .single_add_to_cart_button {
	padding: 0 30px;
	border: 0;
	border-radius: 50px;
	background-color: #039ee3;
	color: #fff;
	font-family: var(--e-global-typography-accent-font-family), sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.woocommerce .sw-product__cart .single_add_to_cart_button.button.alt.disabled,
.sw-product__cart .single_add_to_cart_button.disabled {
	opacity: 0.5;
}

.woocommerce div.product .sw-product__price p.price,
.woocommerce div.product .sw-product__price span.price {
	margin: 0 0 14.4px;
	color: var(--e-global-color-primary) !important;
	font-family: var(--e-global-typography-a10f8a0-font-family), sans-serif;
	font-size: var(--e-global-typography-a10f8a0-font-size);
	font-weight: 600;
	line-height: 1.3em;
	text-transform: uppercase;
}

.sw-product__ship {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	padding: 20px;
	border-radius: 10px;
	background-color: var(--e-global-color-aa8e23a);
}

.sw-product__ship-text {
	margin: 0;
	font-size: 14px;
	line-height: 14px;
}

.sw-product__flags {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100px;
}

.sw-product__flags img {
	width: 30px;
	height: 22.5px;
	border-radius: 5px;
}

.sw-product__size-button {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--e-global-color-primary);
	background-color: var(--e-global-color-accent);
	color: #fff;
	font-size: 14px;
	line-height: 16.8px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	text-decoration: none;
}

.sw-product__size-button:hover {
	background-color: var(--e-global-color-secondary);
	color: #fff;
}

.sw-product__sku {
	margin: 0;
	color: var(--e-global-color-primary);
	font-size: 14px;
	line-height: 14px;
}

@media (max-width: 1024px) {
	.sw-product__inner {
		flex-direction: column;
	}

	.sw-product__gallery,
	.sw-product__summary {
		width: 100%;
	}

	.woocommerce .sw-product__cart .single_add_to_cart_button.button.alt,
	.sw-product__cart .single_add_to_cart_button {
		padding: 0 20px;
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.sw-product__ship {
		flex-wrap: wrap;
		justify-content: center;
		gap: 5px;
		padding: 10px;
	}

	.sw-product__ship-text {
		font-size: 12px;
		line-height: 12px;
	}

	.sw-product__flags {
		justify-content: center;
		width: 100%;
	}

	.sw-product__sku {
		font-size: 12px;
		line-height: 12px;
	}

	.sw-product__size-button {
		font-size: 12px;
		line-height: 14.4px;
		letter-spacing: -0.1px;
	}

	.woocommerce .sw-product__cart .single_add_to_cart_button.button.alt,
	.sw-product__cart .single_add_to_cart_button {
		letter-spacing: -0.1px;
	}


}

/* ---- Preneseni custom CSS iz Elementor šablona 4814 ---- */
/* ---- woocommerce-product-images (de906c5) ---- */
/* Hide the zoom trigger icon */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Minijature: slike bez prozirnosti, izabrana ima svijetloplavi okvir. */
.flex-control-thumbs li {
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease !important;
    opacity: 1 !important;
    margin: 0 10px 10px 0 !important;
    cursor: pointer;
}

.woocommerce div.product div.images .flex-control-thumbs li img,
.flex-control-thumbs li img {
    opacity: 1 !important;
}

.flex-control-thumbs li:has(img.flex-active) {
    border-color: #039ee3 !important;
}

/* Style the main image area */
.woocommerce-product-gallery .flex-viewport {
    background: #f9f9f9 !important;
    border-radius: 8px !important;
}

/* Desktop layout - side thumbnails */
@media (min-width: 769px) {
    .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: row-reverse !important;
        gap: 15px !important;
    }
    
    .woocommerce-product-gallery .flex-control-thumbs {
        width: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .woocommerce-product-gallery .flex-control-thumbs li {
        width: 100px !important;
        height: 100px !important;
        margin: 0 !important;
    }
    
    .woocommerce-product-gallery .flex-viewport {
        flex: 1 !important;
    }
}

/* Mobile layout - keep default WooCommerce behavior */
@media (max-width: 768px) {
    .flex-control-thumbs {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 0 !important;
    }
    
    .flex-control-thumbs li {
        flex: 0 0 80px !important;
        width: 80px !important;
        height: 80px !important;
        margin: 0 !important;
    }
}

/* ---- woocommerce-product-price (bd87734) ---- */
.woocommerce div.product .sw-product__price p.price,
.woocommerce div.product .sw-product__price span.price {
    color: var(--e-global-color-primary) !important;
}

/* ---- woocommerce-product-add-to-cart (8c78413) ---- */
.sw-product__cart tr {
    border: none !important;
}

.sw-product__cart td {
    background-color: white !important;
}

.sw-product__cart th {
    background-color: white !important;
    padding: 0px !important;
}

.woocommerce div.product .stock {
    color: green !important;
}

/* WooCommerce Quantity Selector with Plus/Minus Buttons */

/* Form container */
.woocommerce div.product form.cart,
.sw-product__cart form.cart,
form.cart {
    display: flex;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Variable product container */
.woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Cross-sell/Upsell section - full width, first in order */
form.cart .cuw-product-addons,
.woocommerce div.product form.cart .cuw-product-addons,
.woocommerce form.cart .cuw-product-addons,
section.cuw-product-addons,
.cuw-product-addons.cuw-products.cuw-template,
.woocommerce-variation-add-to-cart .cuw-product-addons {
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    order: -1 !important;
    margin-bottom: 15px !important;
}

/* Hide hidden inputs from layout */
form.cart input[type="hidden"],
.woocommerce-variation-add-to-cart input[type="hidden"] {
    display: none;
}

/* Main quantity container */
.woocommerce div.product form.cart .quantity,
.sw-product__cart .quantity,
form.cart .quantity,
.woocommerce-variation-add-to-cart .quantity {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    background: white;
    overflow: hidden;
    height: 48px;
    width: 100px;
    flex-shrink: 0;
    margin: 0;
    cursor: default;
    order: 1;
}

/* Add to Cart Button - inline with quantity */
.woocommerce div.product form.cart .single_add_to_cart_button,
.sw-product__cart .single_add_to_cart_button,
form.cart .single_add_to_cart_button,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 30px !important;
    border-radius: 50px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 120px;
    max-width: calc(100% - 110px) !important;
    order: 2;
}

/* Quantity input field */
.woocommerce div.product form.cart .quantity .qty,
.sw-product__cart .quantity .qty,
.woocommerce-variation-add-to-cart .quantity .qty {
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 36px !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Hide default spinner arrows */
.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button,
.sw-product__cart .quantity .qty::-webkit-outer-spin-button,
.sw-product__cart .quantity .qty::-webkit-inner-spin-button,
.woocommerce-variation-add-to-cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce-variation-add-to-cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Create minus button using pseudo-element */
.woocommerce div.product form.cart .quantity::before,
.sw-product__cart .quantity::before,
.woocommerce-variation-add-to-cart .quantity::before {
    content: '−';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer !important;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: none;
}

/* Create plus button using pseudo-element */
.woocommerce div.product form.cart .quantity::after,
.sw-product__cart .quantity::after,
.woocommerce-variation-add-to-cart .quantity::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer !important;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: none;
}

/* Hover effects for buttons */
.woocommerce div.product form.cart .quantity:hover::before,
.woocommerce div.product form.cart .quantity:hover::after,
.sw-product__cart .quantity:hover::before,
.sw-product__cart .quantity:hover::after,
.woocommerce-variation-add-to-cart .quantity:hover::before,
.woocommerce-variation-add-to-cart .quantity:hover::after {
    background-color: #e8eaec;
}

/* Focus state for quantity container */
.woocommerce div.product form.cart .quantity:focus-within,
.sw-product__cart .quantity:focus-within,
.woocommerce-variation-add-to-cart .quantity:focus-within {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce div.product form.cart,
    .sw-product__cart form.cart,
    form.cart,
    .woocommerce-variation-add-to-cart {
        gap: 8px;
    }
    
    .woocommerce div.product form.cart .quantity,
    .sw-product__cart .quantity,
    form.cart .quantity,
    .woocommerce-variation-add-to-cart .quantity {
        width: 90px;
        height: 44px;
    }
    
    .woocommerce div.product form.cart .single_add_to_cart_button,
    .sw-product__cart .single_add_to_cart_button,
    form.cart .single_add_to_cart_button,
    .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        height: 44px !important;
        line-height: 44px !important;
        padding: 0 20px !important;
        font-size: 14px !important;
        min-width: 100px;
        max-width: calc(100% - 100px) !important;
    }
    
    .woocommerce div.product form.cart .quantity::before,
    .woocommerce div.product form.cart .quantity::after,
    .sw-product__cart .quantity::before,
    .sw-product__cart .quantity::after,
    .woocommerce-variation-add-to-cart .quantity::before,
    .woocommerce-variation-add-to-cart .quantity::after {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .woocommerce div.product form.cart .quantity .qty,
    .sw-product__cart .quantity .qty,
    .woocommerce-variation-add-to-cart .quantity .qty {
        padding: 0 32px !important;
        font-size: 14px !important;
        height: 40px !important;
    }
    
    /* Cross-sell section mobile */
    form.cart .cuw-product-addons,
    .woocommerce div.product form.cart .cuw-product-addons,
    .woocommerce-variation-add-to-cart .cuw-product-addons {
        margin-bottom: 10px !important;
    }
}


.sw-pcarousel--related .sw-pcarousel__title {
	color: var(--e-global-color-text);
}
