/* =========================================
   SECRETUNDIES PRODUCT PAGE STYLES
   
   Modern, compact design for single product pages.
   Features:
   - 2-column layout (40% images left, 60% info right)
   - Above-the-fold optimization
   - Compact vendor profile
   - Reorganized product options
   - Responsive design
   - Color scheme: Pink (#f35e84) and white matching su-store.css
   
   @version 1.1.0 - Matching su-store.css color scheme
   ========================================= */

/* =========================================
   PRODUCT WRAPPER & LAYOUT - 40/60
   ========================================= */

.su-single-product {
	margin: 0;
	padding: 0;
	z-index: 0;
	position: relative;
}

/* Main product wrapper - 40/60 layout */
.su-product-wrapper {
	display: grid !important;
	grid-template-columns: 40% 60% !important;
	gap: 40px !important;
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 30px 20px;
	align-items: start;
	width: 100% !important;
	box-sizing: border-box;
	clear: both !important;
	z-index: 0;
	position: relative;
}

/* Left Column: Images */
.su-product-images {
	grid-column: 1 !important;
	position: sticky !important;
	top: 20px;
	align-self: start;
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	float: none !important;
}

/* Right Column: Info */
.su-product-info {
	grid-column: 2 !important;
	position: relative;
	width: 100% !important;
	float: none !important;
	clear: none !important;
}

/* Override WooCommerce default floats */
.woocommerce div.product.su-single-product div.images,
.woocommerce div.product.su-single-product .su-product-images {
	float: none !important;
	width: 100% !important;
}

.woocommerce div.product.su-single-product div.summary,
.woocommerce div.product.su-single-product .su-product-info {
	float: none !important;
	width: 100% !important;
	clear: none !important;
}

/* =========================================
   PRODUCT IMAGES COLUMN
   ========================================= */

.su-product-images .woocommerce-product-gallery {
	margin-bottom: 20px;
	order: 1;
	width: 100%;
}

.su-product-images .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	background: #f5f5f5;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: block;
	max-width: 100%;
}

.su-product-images .woocommerce-product-gallery__image:hover img {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Prevent horizontal scroll on mobile */
.su-product-images,
.su-product-images * {
	max-width: 100%;
	box-sizing: border-box;
}

/* Extras Section under Images - MUST stay in left column */
.su-product-extras-section {
	margin-top: 30px !important;
	padding-top: 30px !important;
	border-top: 1px solid #eee !important;
	width: 100% !important;
	order: 2 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: #fff;
	border-radius: 8px;
	padding: 20px;
}

.su-product-extras-section .su-product-addons {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.su-product-extras-section .su-product-addons h3 {
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: 600;
	color: #333;
}

/* Accordion styling in extras section - matching su-store.css */
.su-product-extras-section .su-accordion {
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fff;
	margin-bottom: 10px;
}

.su-product-extras-section .su-accordion-header {
	color: #333;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.su-product-extras-section .su-accordion-header:hover,
.su-product-extras-section .su-accordion-header.active {
	color: #f35e84;
	background: #f9f9f9;
}

/* =========================================
   PRODUCT INFO COLUMN
   ========================================= */

.su-product-info {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Vendor Profile - Matching su-store.css style */
.su-product-vendor-info {
	margin-bottom: 20px;
	padding: 20px;
	background: #fff;
	border: none !important;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Remove any border from vendor info container elements, but keep avatar borders */
.su-product-vendor-info > * {
	border: none !important;
}

.su-product-vendor-info .su-vendor-profile-header {
	border: none !important;
}

.su-product-vendor-info .su-vendor-info-main {
	border: none !important;
}

.su-product-vendor-info .su-vendor-meta {
	border: none !important;
}

.su-product-vendor-info .su-vendor-profile-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.su-product-vendor-info .su-vendor-avatar {
	position: relative;
	flex-shrink: 0;
}

.su-product-vendor-info .su-vendor-avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	object-fit: cover;
}

.su-product-vendor-info .su-online-badge {
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	background: #4caf50;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.su-product-vendor-info .su-vendor-info-main {
	flex: 1;
	min-width: 0;
}

.su-product-vendor-info .su-vendor-name {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
	color: #f35e84;
	display: flex;
	align-items: center;
	gap: 8px;
}

.su-product-vendor-info .su-vendor-name a {
	color: #f35e84;
	text-decoration: none;
	transition: color 0.3s ease;
}

.su-product-vendor-info .su-vendor-name a:hover {
	color: #e04d72;
}

.su-product-vendor-info .su-verified-badge {
	color: #1da1f2;
	font-size: 18px;
}

.su-product-vendor-info .su-vendor-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 4px;
}

.su-product-vendor-info .su-vendor-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.su-product-vendor-info .su-vendor-meta-item i {
	color: #f35e84;
	font-size: 12px;
	width: 14px;
	text-align: center;
}

.su-product-vendor-info .su-vendor-meta-item.su-online-status.online i {
	color: #4caf50;
}

.su-product-vendor-info .su-vendor-bio-compact {
	margin-top: 10px;
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

/* Product Title, Excerpt & Required Options - Combined Box */
.su-product-info .product_title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 0;
	line-height: 1.2;
	background: transparent;
	padding: 0;
	border: none;
	box-shadow: none;
}

/* Product Rating */
.su-product-info .woocommerce-product-rating {
	margin-bottom: 15px;
}

/* Combined Box for Title, Excerpt and Required Options */
.su-product-main-info-box {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #eee;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

/* Product Excerpt */
.su-product-main-info-box .woocommerce-product-details__short-description {
	margin-bottom: 20px;
	line-height: 1.6;
	background: transparent;
	padding: 0;
	border: none;
	box-shadow: none;
}

/* Required Product Options (Tragedauer & Intensität) */
.su-product-main-info-box .su-product-required-options {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	background: transparent;
	padding: 0;
	border: none;
	box-shadow: none;
}

.su-product-required-options .su-product-addons {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.su-product-required-options .su-product-addons h3 {
	display: none;
}

.su-product-required-options .su-addon-fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 0;
}

.su-product-required-options .su-addon-field {
	margin-bottom: 0;
}

.su-product-required-options .su-addon-field label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	display: block;
}

.su-product-required-options .su-addon-field select {
	width: 100%;
	padding: 10px;
	border: 1px solid #eee;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.su-product-required-options .su-addon-field select:hover {
	border-color: #f35e84;
}

.su-product-required-options .su-addon-field select:focus {
	outline: none;
	border-color: #f35e84;
	box-shadow: 0 0 0 2px rgba(243, 94, 132, 0.2);
}

.su-product-required-options .required {
	color: #f35e84;
	font-weight: bold;
}

/* Price Breakdown */
.su-price-breakdown {
	margin-bottom: 5px;
	padding: 15px;
	background: #fff;
	border: 2px solid #f35e84;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.su-price-breakdown-title {
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 16px;
}

.su-price-breakdown-items {
	margin-bottom: 10px;
}

.su-price-breakdown-base {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
}

.su-price-breakdown-item {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
}

.su-price-breakdown-total {
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	margin-top: 10px;
	border-top: 2px solid #f35e84;
	font-weight: bold;
	font-size: 18px;
	color: #333;
}

/* Add to Cart Section */
.su-product-add-to-cart {
	margin-top: 20px;
}

.su-product-add-to-cart .quantity {
	margin-bottom: 15px;
}

.su-product-add-to-cart .single_add_to_cart_button {
	width: 100%;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 600;
	background: #f35e84;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(243, 94, 132, 0.3);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.su-product-add-to-cart .single_add_to_cart_button:hover {
	background: #e04d72;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(243, 94, 132, 0.4);
}

.su-product-add-to-cart .single_add_to_cart_button:active {
	transform: translateY(0);
}

/* Product Meta - Hidden */
.su-product-meta {
	display: none !important;
}

.su-product-info .product_meta {
	display: none !important;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 991px) {
	.su-product-wrapper {
		grid-template-columns: 1fr !important;
		gap: 20px;
		padding: 15px 10px;
	}

	.su-product-images {
		position: static !important;
		grid-column: 1 !important;
		top: 0 !important;
		width: 100%;
		max-width: 100%;
	}

	.su-product-images .woocommerce-product-gallery {
		margin-bottom: 15px;
	}

	.su-product-images .woocommerce-product-gallery__image img {
		border-radius: 8px;
	}

	.su-product-info {
		grid-column: 1 !important;
		gap: 15px;
	}

	/* Vendor Info - Mobile Optimization */
	.su-product-vendor-info {
		padding: 15px;
		margin-bottom: 15px;
	}

	.su-product-vendor-info .su-vendor-profile-header {
		gap: 12px;
	}

	.su-product-vendor-info .su-vendor-avatar img {
		width: 65px;
		height: 65px;
	}

	.su-product-vendor-info .su-vendor-name {
		font-size: 16px;
		margin-bottom: 8px;
	}

	.su-product-vendor-info .su-vendor-meta {
		gap: 10px;
		margin-top: 6px;
	}

	.su-product-vendor-info .su-vendor-meta-item {
		font-size: 12px;
	}

	/* Main Info Box - Mobile Optimization */
	.su-product-main-info-box {
		padding: 15px;
		margin-bottom: 15px;
	}

	.su-product-info .product_title {
		font-size: 22px;
		margin-bottom: 10px;
	}

	.su-product-info .woocommerce-product-rating {
		margin-bottom: 12px;
	}

	/* Mobile: Add margin-bottom to short description */
	.su-product-main-info-box .woocommerce-product-details__short-description {
		margin-bottom: 15px;
		font-size: 14px;
		line-height: 1.5;
	}

	/* Mobile: Add margin-top to required options */
	.su-product-main-info-box .su-product-required-options {
		margin-top: 15px !important;
		padding: 0;
	}

	.su-product-required-options .su-addon-fields-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.su-product-required-options .su-addon-field label {
		font-size: 13px;
		margin-bottom: 6px;
	}

	.su-product-required-options .su-addon-field select {
		padding: 12px;
		font-size: 14px;
	}

	/* Price Breakdown - Mobile Optimization */
	.su-price-breakdown {
		padding: 12px;
		margin-bottom: 10px;
	}

	.su-price-breakdown-title {
		font-size: 14px !important;
		margin-bottom: 8px !important;
	}

	.su-price-breakdown-base,
	.su-price-breakdown-addons > div {
		font-size: 13px;
		padding: 4px 0;
	}

	.su-price-breakdown-total {
		font-size: 16px !important;
		padding-top: 8px !important;
		margin-top: 8px !important;
	}

	/* Add to Cart Button - Mobile Optimization */
	.su-product-add-to-cart {
		margin-top: 15px;
	}

	.su-product-add-to-cart .single_add_to_cart_button {
		padding: 16px 20px;
		font-size: 16px;
		min-height: 48px; /* Touch-friendly minimum */
	}

	/* Extras Section - Mobile Optimization */
	.su-product-extras-section {
		margin-top: 20px !important;
		padding-top: 20px !important;
		padding: 15px !important;
	}

	.su-product-extras-section .su-product-addons h3 {
		font-size: 16px;
		margin-bottom: 12px;
	}

	/* Vendor Products Section - Mobile */
	.su-vendor-products-section {
		margin-top: 40px;
		margin-bottom: 50px;
		padding-top: 30px;
	}

	.su-vendor-products-title {
		font-size: 20px;
		margin-bottom: 20px;
		padding: 0 10px;
	}
}

/* Vendor Products Section */
.su-vendor-products-section {
	margin-top: 60px;
	margin-bottom: 80px;
	padding-top: 40px;
	border-top: 1px solid #eee;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.su-vendor-products-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #333;
	text-align: center;
	width: 100%;
}

.su-vendor-products-grid {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* WooCommerce Products List - Full Width */
.su-vendor-products-grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
	gap: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.su-vendor-products-grid ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box;
	float: none !important;
	clear: none !important;
}

/* Ensure vendor products section breaks out of product wrapper constraints */
.su-single-product .su-vendor-products-section {
	width: 100vw !important;
	max-width: 100% !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box;
}

/* But respect content_wrap container */
.content_wrap .su-vendor-products-section {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.content_wrap .su-vendor-products-grid {
	width: 100% !important;
	max-width: 100% !important;
}

}

@media (max-width: 768px) {
	.su-product-wrapper {
		padding: 10px 8px;
		gap: 15px;
	}

	.su-product-main-info-box {
		padding: 12px;
	}

	.su-product-info .product_title {
		font-size: 20px;
	}

	.su-product-vendor-info {
		padding: 12px;
	}

	.su-product-vendor-info .su-vendor-name {
		font-size: 15px;
	}

	.su-price-breakdown {
		padding: 10px;
	}

	.su-product-add-to-cart .single_add_to_cart_button {
		padding: 14px 18px;
		font-size: 15px;
	}

	.su-vendor-products-grid ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}

	.su-vendor-products-title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.su-product-extras-section {
		padding: 12px !important;
	}
}

@media (max-width: 480px) {
	.su-product-wrapper {
		padding: 8px 5px;
		gap: 12px;
	}

	.su-product-info .product_title {
		font-size: 18px;
		line-height: 1.3;
	}

	.su-product-main-info-box {
		padding: 10px;
	}

	.su-product-vendor-info {
		padding: 10px;
	}

	.su-product-vendor-info .su-vendor-avatar img {
		width: 70px;
		height: 70px;
	}

	.su-product-vendor-info .su-vendor-name {
		font-size: 14px;
	}

	.su-product-vendor-info .su-vendor-meta {
		gap: 8px;
		flex-direction: column;
		align-items: flex-start;
	}

	.su-product-vendor-info .su-vendor-meta-item {
		font-size: 11px;
	}

	.su-price-breakdown {
		padding: 8px;
	}

	.su-price-breakdown-title {
		font-size: 13px !important;
	}

	.su-price-breakdown-base,
	.su-price-breakdown-addons > div {
		font-size: 12px;
	}

	.su-price-breakdown-total {
		font-size: 15px !important;
	}

	.su-product-add-to-cart .single_add_to_cart_button {
		padding: 14px 15px;
		font-size: 14px;
	}


	.su-product-extras-section {
		padding: 10px !important;
		margin-top: 15px !important;
	}

	.su-product-extras-section .su-product-addons h3 {
		font-size: 14px;
	}
}

/* Related Products Section */
.su-single-product ~ .related.products,
.woocommerce .related.products,
section.related.products {
	margin-top: 60px;
	margin-bottom: 80px;
	padding-top: 40px;
}

/* Ensure no conflicts */
.su-product-wrapper * {
	box-sizing: border-box;
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 991px) {
	.su-single-product {
		overflow-x: hidden;
	}

	.su-product-wrapper {
		overflow-x: hidden;
	}

	.su-product-wrapper * {
		max-width: 100%;
	}
}
