/**
 * Custom WooCommerce Single Product Page Styles
 * Matches Figma Design
 */

/* Color Variables */
:root {
	--primary-orange: #FF6B35;
	--dark-blue: #1E3A5F;
	--text-dark: #333333;
	--text-light: #666666;
	--bg-light: #F5F5F5;
	--border-color: #E0E0E0;
}

/* Product Layout Container */
.custom-product-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.custom-product-wrapper {
	display: grid;
	grid-template-columns: 45% 55%;
	gap: 40px;
	align-items: start;
}

.custom-product-images {
	position: sticky;
	top: 20px;
}

.custom-product-summary {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Custom Product Gallery */
.custom-product-gallery {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}


/* Flexbox layout to put thumbnails on left */
.custom-product-gallery .lSSlideOuter {
    display: flex !important;
    flex-direction: row !important;
    gap: 80px;
    align-items: flex-start;
    width: 100% !important;
    max-width: 100% !important;
}

.custom-product-gallery .lSSlideWrapper {
    order: 2 !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    width: calc(100% - 90px) !important; /* Force a width calculation */
    min-width: 0 !important;
    display: block !important;
    position: relative !important;
}

/* Ensure images inside are visible */
.custom-product-gallery .lSSlideWrapper img {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Wrapper for Thumbs + Arrows */
.gallery-thumbs-wrapper {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    width: 70px !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Thumbnails container */
.lSSlideOuter .lSPager.lSGallery {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Custom Arrows */
.custom-gallery-arrow {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
    margin: 6px 0;
    user-select: none;
}

.custom-gallery-arrow.gallery-arrow-up {
    position: absolute !important;
    top: -40px !important;
    left: -400px !important;
    right: 0 !important;
    margin: 0 auto !important; /* To center it horizontally if needed */
}

.custom-gallery-arrow.gallery-arrow-down {
    position: absolute !important;
    bottom: -40px !important;
    left: -400px !important;
    right: 0 !important;
    margin: 0 auto !important; /* To center it horizontally if needed */
}


ul.lSPager.lSGallery {
    margin-top: 32px; 
    margin-bottom: 32px; 
}
.custom-gallery-arrow:hover {
    color: var(--primary-orange);
}

/* Arrow Icons using CSS borders if FA not available, but FA is loaded */
/* If FontAwesome is not loaded, fallback to simple arrows */
.custom-gallery-arrow i {
    pointer-events: none;
}




/* LightSlider Reset */
ul#vertical {
    list-style: none outside none;
    padding-left: 0;
    margin: 0;
}

ul#vertical li img {
    width: 100%;
    height: auto;
    display: block;
}


/* LightSlider overrides if needed */
.lSSlideOuter .lSPager.lSGallery img {
    display: block;
    height: auto;
    max-width: 100%;
}

.lSSlideOuter .lSPager.lSGallery li {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 1px solid transparent;
}

.lSSlideOuter .lSPager.lSGallery li.active,
.lSSlideOuter .lSPager.lSGallery li:hover {
    opacity: 1;
    border-color: var(--primary-orange);
}




/* Rating Section */
.product-rating-section {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.custom-product-rating {
	margin: 0;
}

.custom-product-rating .star-rating {
	color: var(--primary-orange);
	font-size: 18px;
	margin: 0;
	width: auto;
}

.custom-product-rating .star-rating span {
	color: var(--primary-orange);
}

.customer-count {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--text-light);
	font-weight: 500;
}

.rating-stars {
	color: var(--primary-orange);
	font-size: 20px;
	letter-spacing: 2px;
	line-height: 1;
}

.customer-count-text {
	color: var(--primary-orange);
	font-weight: 500;
}

/* Product Title */
.custom-product-title-wrapper {
	margin-bottom: 0;
}

.custom-product-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.product-subtitle {
	font-size: 16px;
	color: var(--text-dark);
	margin: 0;
	font-weight: 400;
}

/*Product price*/

.custom-product-price {
    color: var(--text-dark) !important;
}

.custom-product-price del {
    font-size: smaller !important;
}

.custom-product-price ins {
    display: block !important;
    text-decoration: none !important;
}

/* Product Description */
.product-description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-light);
	margin-bottom: 0;
}

.product-description p {
	margin: 0 0 12px 0;
}

/* What's Inside Section */
.whats-inside-section {
	
	padding: 16px 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.whats-inside-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-dark);
	margin: 0 0 8px 0;
}

.whats-inside-content {
	font-size: 16px;
	color: var(--text-dark);
	margin: 0;
}

/* Instructions Section */
.product-instructions-section {
	margin: 0;
}

.instructions-label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--primary-orange);
	margin-bottom: 12px;
}

.instructions-textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px;
	border: 2px solid var(--border-color);
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	transition: border-color 0.3s ease;
}

.instructions-textarea:focus {
	outline: none;
	border-color: var(--primary-orange);
}

/* Add to Cart Section */
.product-add-to-cart-section {
	margin: 0;
}

.woocommerce div.product form.cart {
    margin-bottom:0 !important;
}

.custom-add-to-cart-form {
	margin: 0;
}

.quantity-cart-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* Custom Quantity Selector */
.custom-quantity-selector {
	display: flex;
	align-items: center;
	/*border: 1px solid var(--border-color);*/
	border-radius: 200px;
	overflow: hidden;
}

.quantity-btn {
	width: 55px !important;
	height: 55px !important;
	background: #d3d3d3 !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.3s ease !important;
	padding: 0 !important;
}

.quantity-btn:hover {
	background: #E0E0E0;
}

.quantity-btn:active {
	background: #D0D0D0;
}

.quantity-icon {
	font-size: 20px;
	font-weight: 300;
	color: var(--text-dark);
	line-height: 1;
}

.custom-quantity-input {
	width: 60px !important;
	height: 40px !important;
	border: none !important;
	/*border-left: 1px solid var(--border-color) !important;*/
	/*border-right: 1px solid var(--border-color) !important;*/
	text-align: center !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius:200px !important;
}

.custom-quantity-input:focus {
	outline: none;
}

/* Buy Now Button */
.custom-buy-now-button {
	background: var(--dark-blue) !important;
	color: #FFFFFF !important;
	border: none !important;
	padding: 22px 32px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	transition: background-color 0.3s ease, transform 0.1s ease !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	min-width: 140px !important;
	border-radius: 220px !important;
}

.custom-buy-now-button:hover {
	background: #152A47;
	transform: translateY(-1px);
}

.custom-buy-now-button:active {
	transform: translateY(0);
}

/* Order Confirmation Banner */
.order-confirmation-banner {
	background: var(--primary-orange);
	color: #FFFFFF;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	margin: 0;
}

/* Delivery Time Section (Separate - Not in Accordion) */
.delivery-time-section {
	margin: 0;
	padding: 24px 0;
	border-top: 1px solid var(--border-color);
}

.delivery-time-section .delivery-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.delivery-time-section .delivery-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-orange);
	flex-shrink: 0;
}

.delivery-time-section .delivery-text {
	font-size: 16px;
	color: var(--text-dark);
}

/* Payment Methods Section (Separate - Not in Accordion) */
.payment-methods-section {
	margin: 0;
	padding: 20px 0;
	border-top: 1px solid var(--border-color);
}

.payment-methods-section .payment-methods-label {
	font-size: 14px;
	color: var(--text-light);
	margin: 0 0 12px 0;
}

.payment-methods-section .payment-logos {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.payment-methods-section .payment-logo {
	height: 32px;
	width: auto;
	object-fit: contain;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.payment-methods-section .payment-logo:hover {
	opacity: 1;
}

/* Company Difference Section */
.company-difference-section {
	margin: 40px 0;
	padding: 24px 0;
	border-top: 1px solid var(--border-color);
}

/* Product Accordions (Multiple Accordions) */
.product-accordion-section {
	margin: 0;
	padding: 5px 0;
	border-top: 1px solid var(--border-color);
}

.product-accordion-section:first-of-type {
	margin-top: 0;
}

.accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
	padding:10px 0px;
}

.accordion-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.accordion-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.accordion-content-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border-color);
}

.accordion-content-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.row-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	color: var(--primary-orange);
	display: flex;
	align-items: center;
	justify-content: center;
}

.row-icon svg {
	width: 100%;
	height: 100%;
}

.row-icon .row-icon-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.row-content {
	flex: 1;
}

.row-heading {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dark);
	margin: 0 0 8px 0;
}

.row-description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-light);
	margin: 0;
}

.company-difference-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.company-difference-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.toggle-section-btn {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: var(--primary-orange) !important;
	border: none !important;
	color: #FFFFFF !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: transform 0.3s ease, background-color 0.3s ease !important;
	padding: 0 !important;
}

.toggle-section-btn:hover {
	background: #E55A2B;
}

.toggle-icon {
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	transition: transform 0.3s ease;
	display: inline-block;
}

.company-difference-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.difference-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border-color);
}

.difference-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.difference-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	color: var(--primary-orange);
	display: flex;
	align-items: center;
	justify-content: center;
}

.difference-icon svg {
	width: 100%;
	height: 100%;
}

.difference-content {
	flex: 1;
}

.difference-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dark);
	margin: 0 0 8px 0;
}

.difference-description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-light);
	margin: 0;
}


/* Processes Section */
.processes-section {
	margin: 40px 0;
	padding: 24px 0;
	border-top: 1px solid var(--border-color);
}

.processes-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.processes-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.processes-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.delivery-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.delivery-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-orange);
	flex-shrink: 0;
}

.delivery-text {
	font-size: 16px;
	color: var(--text-dark);
}

.payment-methods {
	margin-top: 16px;
}

.payment-methods-label {
	font-size: 14px;
	color: var(--text-light);
	margin: 0 0 12px 0;
}

.payment-logos {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.payment-logo {
	height: 32px;
	width: auto;
	object-fit: contain;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.payment-logo:hover {
	opacity: 1;
}

/* Collapsible Sections */
.company-difference-content.collapsed,
.processes-content.collapsed,
.accordion-content.collapsed {
	display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
	.custom-product-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.custom-product-images {
		position: static;
	}
}

@media (max-width: 768px) {
	.custom-product-layout {
		padding: 20px 16px;
	}

	.custom-product-title {
		font-size: 24px;
	}

	.quantity-cart-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.custom-quantity-selector {
		width: 100%;
		justify-content: space-between;
	}

	.custom-buy-now-button {
		width: 100%;
	}

	.company-difference-content {
		grid-template-columns: 1fr;
	}

	/* Responsive Gallery (Mobile) */
	.custom-product-gallery .lSSlideOuter {
		flex-direction: column !important;
		gap: 10px;
	}

	.custom-product-gallery .lSSlideWrapper {
		order: 1 !important;
		width: 100% !important;
	}

	.gallery-thumbs-wrapper {
		order: 2 !important;
		width: 100% !important;
		flex-direction: row !important;
		height: auto;
		padding: 10px 0;
	}
	
	/* Hide vertical arrows on mobile */
	.custom-gallery-arrow {
		display: none;
	}
}

/* Hide default WooCommerce elements */
.woocommerce-product-rating .woocommerce-review-link {
	display: none;
}

/* Ensure proper spacing */
.custom-product-summary > *:first-child {
	margin-top: 0;
}

.custom-product-summary > *:last-child {
	margin-bottom: 0;
}

