/* ========== PWH Product Details - Clean CSS ========== */

/* Main Wrapper */
.pwh-main-wrapper {
	max-width: 1240px;
	margin: 0 auto;
	margin-top: 80px;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.pwh-product-area {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 40px;
}

/* ========== Image Gallery ========== */

.pwh-image-gallery {
	position: relative;
}

.pwh-large-image-container {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	background: #f8f9fa;
	margin-bottom: 20px;
	height: 500px;
	width: 100%;
	max-width: 600px;
}

.pwh-large-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pwh-large-image:hover {
	transform: scale(1.05);
}

.pwh-zoom-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #41533b;
	font-size: 20px;
}

.pwh-zoom-icon:hover {
	background: #41533b;
	color: white;
	transform: scale(1.1);
}

.pwh-thumbnail-wrapper {
	position: relative;
	width: 100%;
	max-width: 600px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.pwh-thumbnail-container {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 0;
	flex: 1;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pwh-thumbnail-container::-webkit-scrollbar {
	display: none;
}

.pwh-thumbnail-nav {
	width: 35px;
	height: 35px;
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid #41533b;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: #41533b;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.pwh-thumbnail-nav:hover {
	background: #41533b;
	color: white;
	transform: scale(1.1);
}

.pwh-thumbnail {
	width: 100px;
	height: 100px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.pwh-thumbnail:hover,
.pwh-thumbnail.pwh-active {
	border-color: #48bb78;
	box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

.pwh-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ========== Product Details ========== */

.pwh-product-details {
	padding: 20px 0;
}

.pwh-product-title {
	font-size: 32px;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 20px;
}

.pwh-price-section {
	background: linear-gradient(135deg, rgba(65, 83, 59, 0.08) 0%, rgba(72, 187, 120, 0.08) 100%);
	padding: 20px;
	border-radius: 15px;
	margin-bottom: 30px;
}

.pwh-price-row {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.pwh-new-price {
	font-size: 36px;
	font-weight: 700;
	color: #41533b;
}

.pwh-old-price {
	font-size: 24px;
	color: #a0aec0;
	text-decoration: line-through;
}

.pwh-save-text {
	color: #48bb78;
	font-weight: 600;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.pwh-save-percentage {
	background: #48bb78;
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 14px;
	margin-left: 5px;
}

.pwh-stock-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	background: #f0fdf4;
	border-left: 4px solid #48bb78;
}

.pwh-stock-status.pwh-in-stock {
	background: #f0fdf4;
	border-left-color: #48bb78;
}

.pwh-stock-status.pwh-out-of-stock {
	background: #fef2f2;
	border-left-color: #ef4444;
}

.pwh-status-label {
	font-weight: 700;
	color: #2d3748;
	font-size: 15px;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 5px;
}

.pwh-stock-status.pwh-in-stock .pwh-status-label {
	color: #15803d;
	background: rgba(72, 187, 120, 0.1);
}

.pwh-stock-status.pwh-out-of-stock .pwh-status-label {
	color: #991b1b;
	background: rgba(239, 68, 68, 0.1);
}

.pwh-quantity-label {
	color: #718096;
	font-size: 13px;
	font-weight: 500;
}

.pwh-stock-status.pwh-in-stock .pwh-quantity-label {
	color: #166534;
}

.pwh-stock-status.pwh-out-of-stock .pwh-quantity-label {
	color: #7f1d1d;
}

/* ========== Quantity Controls ========== */

.pwh-actions-wrapper {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 25px;
}

.pwh-quantity-section {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 25px;
}

.pwh-quantity__box {
	display: flex;
	align-items: center;
	background: #f7fafc;
	border-radius: 10px;
	border: 2px solid #e2e8f0;
	width: fit-content;
	flex-shrink: 0;
}

.pwh-quantity__value {
	width: 45px;
	height: 45px;
	border: none;
	background: transparent;
	color: #41533b;
	font-size: 20px;
	cursor: pointer;
	font-weight: 700;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pwh-quantity__value:hover:not(:disabled) {
	background: #e2e8f0;
	transform: scale(1.1);
}

.pwh-quantity__value:disabled {
	background: #cbd5e0;
	cursor: not-allowed;
	opacity: 0.5;
	color: #718096;
}

.pwh-quantity__input {
	width: 70px;
	height: 45px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #2d3748;
	outline: none;
}

.pwh-quantity__input::-webkit-outer-spin-button,
.pwh-quantity__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pwh-quantity__input[type=number] {
	-moz-appearance: textfield;
}

.pwh-quantity__error {
	display: none;
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
	color: #d32f2f;
	animation: pwhSlideDown 0.3s ease;
}

.pwh-quantity__error.show {
	display: block;
}

@keyframes pwhSlideDown {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== Cart Forms & Buttons ========== */

.pwh-cart-form,
.pwh-buy-now-form {
	flex: 1;
	min-width: 120px;
	display: flex;
}

.pwh-cart-form {
	margin-bottom: 0;
}

.pwh-add-cart-btn,
.pwh-buynow-btn {
	width: 100%;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	height: 50px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: capitalize;
	letter-spacing: 1px;
	padding: 10px 15px;
	white-space: nowrap;
}

.pwh-add-cart-btn {
	background: linear-gradient(135deg, #41533b 0%, #48bb78 100%);
	color: white;
}

.pwh-add-cart-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(65, 83, 59, 0.3);
}

.pwh-add-cart-btn:active:not(:disabled) {
	transform: translateY(0);
}

.pwh-add-cart-btn:disabled {
	background: #cbd5e0;
	color: #718096;
	cursor: not-allowed;
	opacity: 0.6;
}

.pwh-buynow-btn {
	background: #f7fafc;
	color: #41533b;
	border: 2px solid #41533b;
}

.pwh-buynow-btn:hover:not(:disabled) {
	background: #41533b;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(65, 83, 59, 0.2);
}

.pwh-buynow-btn:active:not(:disabled) {
	transform: translateY(0);
}

.pwh-buynow-btn:disabled {
	background: #cbd5e0;
	color: #718096;
	cursor: not-allowed;
	opacity: 0.6;
}

.pwh-actions {
	display: flex;
	gap: 15px;
	margin-bottom: 25px;
}

/* ========== Stock Message ========== */

.pwh-stock-message {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 25px;
}

.pwh-stock-message.pwh-in-stock {
	background: #c6f6d5;
	color: #22543d;
	border-left: 4px solid #48bb78;
}

.pwh-stock-message.pwh-in-stock i {
	color: #48bb78;
	font-size: 16px;
}

.pwh-stock-message.pwh-out-of-stock {
	background: #fed7d7;
	color: #742a2a;
	border-left: 4px solid #f56565;
}

.pwh-stock-message.pwh-out-of-stock i {
	color: #f56565;
	font-size: 16px;
}

/* ========== Share Section ========== */

.pwh-share-block {
	padding: 25px;
	background: #f7fafc;
	border-radius: 15px;
	text-align: center;
}

.pwh-share-title {
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 15px;
	font-size: 16px;
	margin-top: 0;
}

.pwh-share-icons {
	display: flex;
	justify-content: center;
	gap: 15px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.pwh-share-icons a {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 20px;
}

.pwh-share-icons a.pwh-facebook {
	background: #1877f2;
	color: white;
}

.pwh-share-icons a.pwh-instagram {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: white;
}

.pwh-share-icons a.pwh-twitter {
	background: #1da1f2;
	color: white;
}

.pwh-share-icons a.pwh-whatsapp {
	background: #25d366;
	color: white;
}

.pwh-share-icons a.pwh-copy-link {
	background: #6c757d;
	color: white;
}

.pwh-share-icons a:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========== Description Tabs ========== */

.pwh-description-section {
	padding: 40px;
	background: #f7fafc;
}

.pwh-tab-header {
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 30px;
}

.pwh-tab-nav {
	display: flex;
	gap: 30px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.pwh-tab-nav li a {
	display: block;
	padding: 15px 0;
	color: #718096;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
}

.pwh-tab-nav li a.pwh-active,
.pwh-tab-nav li a:hover {
	color: #41533b;
	border-bottom-color: #41533b;
}

.pwh-tab-content {
	display: none;
	animation: pwhFadeIn 0.5s ease;
}

.pwh-tab-content.pwh-active {
	display: block;
}

@keyframes pwhFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pwh-description-text {
	color: #4a5568;
	line-height: 1.8;
	font-size: 16px;
	margin: 0;
}

/* ========== Shipping Info ========== */

.pwh-shipping-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 10px;
}

.pwh-shipping-card {
	background: white;
	padding: 25px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid #e2e8f0;
}

.pwh-shipping-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
	border-color: #41533b;
}

.pwh-shipping-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #41533b 0%, #48bb78 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	flex-shrink: 0;
}

.pwh-shipping-info h4 {
	font-size: 18px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 5px;
	margin-top: 0;
}

.pwh-shipping-info p {
	color: #718096;
	font-size: 14px;
	margin: 0;
}

/* ========== Image Zoom Popup ========== */

.pwh-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	display: none;
	padding: 80px 120px 120px 120px;
	box-sizing: border-box;
}

.pwh-popup-overlay.pwh-active {
	display: block;
}

.pwh-popup-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pwh-popup-content {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pwh-popup-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: grab;
	border-radius: 10px;
}

.pwh-popup-image:active {
	cursor: grabbing;
}

.pwh-popup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 56px;
	height: 56px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 300;
	z-index: 10001;
	transition: all 0.3s ease;
}

.pwh-popup-close:hover {
	background: #41533b;
}

.pwh-popup-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 64px;
	height: 64px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 300;
	z-index: 10002;
	transition: all 0.3s ease;
}

.pwh-nav-left {
	left: 20px;
}

.pwh-nav-right {
	right: 20px;
}

.pwh-popup-nav:hover {
	background: rgba(255, 255, 255, 0.2);
}

.pwh-popup-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 20px;
	z-index: 10002;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50px;
	padding: 12px 24px;
}

.pwh-popup-control {
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: all 0.3s ease;
}

.pwh-popup-control:hover {
	background: #41533b;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1200px) {
	.pwh-main-wrapper {
		margin: 0 10px;
	}
	.pwh-product-area {
		gap: 30px;
		padding: 30px;
	}
}

@media (max-width: 992px) {
	.pwh-product-area {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 25px;
	}
	.pwh-large-image-container {
		height: 400px;
	}
	.pwh-actions-wrapper {
		flex-wrap: wrap;
		gap: 10px;
	}
	.pwh-quantity-section {
		width: 100%;
		flex-wrap: wrap;
		gap: 10px;
	}
	.pwh-cart-form,
	.pwh-buy-now-form {
		flex: 1;
		min-width: 140px;
	}
	.pwh-shipping-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.pwh-main-wrapper {
		border-radius: 15px;
		margin: 0;
	}
	.pwh-product-area {
		padding: 20px;
		gap: 25px;
	}
	.pwh-large-image-container {
		height: 300px;
	}
	.pwh-product-title {
		font-size: 24px;
	}
	.pwh-new-price {
		font-size: 28px;
	}
	.pwh-old-price {
		font-size: 20px;
	}
	.pwh-stock-status {
		padding: 10px 12px;
		font-size: 13px;
		gap: 6px;
		flex-wrap: wrap;
	}
	.pwh-status-label {
		font-size: 14px;
		padding: 3px 8px;
	}
	.pwh-quantity-label {
		font-size: 12px;
	}
	.pwh-actions-wrapper {
		flex-wrap: wrap;
		gap: 10px;
	}
	.pwh-quantity-section {
		width: 100%;
		flex-wrap: wrap;
		margin-bottom: 15px;
		gap: 10px;
	}
	.pwh-quantity__box {
		width: 100%;
	}
	.pwh-cart-form,
	.pwh-buy-now-form {
		width: 100%;
		min-width: 100%;
	}
	.pwh-tab-nav {
		gap: 15px;
		overflow-x: auto;
		padding-bottom: 5px;
	}
	.pwh-tab-nav li a {
		white-space: nowrap;
		padding: 12px 0;
		font-size: 15px;
	}
	.pwh-description-section {
		padding: 25px 20px;
	}
	.pwh-shipping-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.pwh-shipping-card {
		padding: 20px;
		gap: 15px;
	}
	.pwh-shipping-icon {
		width: 50px;
		height: 50px;
		font-size: 20px;
	}
	.pwh-shipping-info h4 {
		font-size: 16px;
	}
	.pwh-shipping-info p {
		font-size: 13px;
	}
}

@media (max-width: 576px) {
	.pwh-main-wrapper {
		border-radius: 10px;
	}
	.pwh-product-area {
		padding: 15px;
		gap: 20px;
	}
	.pwh-large-image-container {
		height: 250px;
	}
	.pwh-product-title {
		font-size: 20px;
		margin-bottom: 15px;
	}
	.pwh-price-section {
		padding: 15px;
		margin-bottom: 20px;
	}
	.pwh-new-price {
		font-size: 24px;
	}
	.pwh-old-price {
		font-size: 18px;
	}
	.pwh-save-text {
		font-size: 16px;
	}
	.pwh-save-percentage {
		font-size: 12px;
		padding: 3px 8px;
	}
	.pwh-stock-status {
		padding: 10px 12px;
		font-size: 12px;
		gap: 5px;
		flex-wrap: wrap;
		margin-top: 12px;
	}
	.pwh-status-label {
		font-size: 13px;
		padding: 3px 8px;
	}
	.pwh-quantity-label {
		font-size: 11px;
	}
	.pwh-add-cart-btn,
	.pwh-buynow-btn {
		padding: 13px 15px;
		font-size: 15px;
	}
	.pwh-actions-wrapper {
		flex-wrap: wrap;
	}
	.pwh-quantity-section {
		width: 100%;
		flex-wrap: wrap;
		margin-bottom: 15px;
	}
	.pwh-quantity__box {
		width: 100%;
		margin-bottom: 12px;
	}
	.pwh-quantity__value {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	.pwh-quantity__input {
		flex: 1;
		height: 40px;
	}
	.pwh-cart-form,
	.pwh-buy-now-form {
		width: 100%;
		margin-bottom: 10px;
	}
	.pwh-share-block {
		padding: 20px;
	}
	.pwh-share-icons a {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	.pwh-thumbnail {
		width: 80px;
		height: 80px;
	}
	.pwh-thumbnail-nav {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
	.pwh-zoom-icon {
		width: 40px;
		height: 40px;
		font-size: 16px;
		top: 15px;
		right: 15px;
	}
	.pwh-description-section {
		padding: 20px 15px;
	}
	.pwh-tab-nav {
		gap: 10px;
	}
	.pwh-tab-nav li a {
		font-size: 14px;
		padding: 10px 0;
	}
	.pwh-shipping-card {
		padding: 15px;
		gap: 12px;
	}
	.pwh-shipping-icon {
		width: 45px;
		height: 45px;
		font-size: 18px;
	}
	.pwh-shipping-info h4 {
		font-size: 15px;
	}
	.pwh-shipping-info p {
		font-size: 12px;
	}
	.pwh-popup-overlay {
		padding: 60px 80px 100px 80px;
	}
	.pwh-popup-nav {
		width: 45px;
		height: 45px;
		font-size: 24px;
	}
	.pwh-nav-left {
		left: 15px;
	}
	.pwh-nav-right {
		right: 15px;
	}
	.pwh-popup-controls {
		bottom: 15px;
		gap: 10px;
		padding: 10px 20px;
	}
	.pwh-popup-control {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}
	.pwh-popup-close {
		width: 40px;
		height: 40px;
		font-size: 20px;
		top: 15px;
		right: 15px;
	}
}

@media (max-width: 400px) {
	.pwh-product-title {
		font-size: 18px;
	}
	.pwh-new-price {
		font-size: 22px;
	}
	.pwh-old-price {
		font-size: 16px;
	}
	.pwh-stock-status {
		padding: 8px 10px;
		font-size: 11px;
		gap: 4px;
		flex-wrap: wrap;
		margin-top: 10px;
	}
	.pwh-status-label {
		font-size: 12px;
		padding: 2px 6px;
	}
	.pwh-quantity-label {
		font-size: 10px;
	}
	.pwh-quantity-section {
		width: 100%;
		flex-wrap: wrap;
		margin-bottom: 12px;
	}
	.pwh-quantity__box {
		width: 100%;
		margin-bottom: 10px;
		flex-grow: 1;
	}
	.pwh-quantity__value {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
	.pwh-quantity__input {
		flex: 1;
		height: 38px;
		font-size: 14px;
	}
	.pwh-cart-form,
	.pwh-buy-now-form {
		width: 100%;
		margin-bottom: 8px;
	}
	.pwh-add-cart-btn,
	.pwh-buynow-btn {
		padding: 12px 10px;
		font-size: 14px;
		height: 45px;
	}
	.pwh-actions-wrapper {
		flex-direction: column;
		gap: 8px;
	}
}
