/* ===================== SINGLE PRODUCT LAYOUT ===================== */
.single-product-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 50px 40px;
	display: grid;
	grid-template-columns: 80px 1fr 1fr;
	gap: 30px;
}

/* ===================== GALLERY ===================== */
.single-product-gallery {
	display: contents;
}

.gallery-thumbnails {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.single-product-wrapper {
	background-color: #ffffff;
}

.gallery-thumb-item {
	width: 80px;
	height: 80px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	padding: 0;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.gallery-thumb-item.active {
	border-color: #1a1a1a;
	border-width: 2px;
}

.gallery-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-main-image {
	background-color: #f2f2f2;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===================== SUMMARY ===================== */
.single-product-summary {
	padding-top: 10px;
}

.product-title {
	font-size: 32px;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 12px;
	line-height: 1.3;
}

.product-price {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 12px;
}

.product-price del {
	color: #999;
	font-weight: 400;
	font-size: 16px;
	margin-right: 10px;
}

.product-price ins {
	text-decoration: none;
}

.product-rating-row {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.product-stars {
	display: flex;
	gap: 3px;
	color: #1a1a1a;
	font-size: 15px;
}

.reviews-link {
	font-size: 14px;
	color: #555;
	text-decoration: underline;
}

.reviews-link:hover {
	color: #000;
}

.product-short-description {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 25px;
	max-width: 500px;
}

/* ===================== DISCOUNT BANNER ===================== */
.advance-discount-banner {
	display: flex;
	align-items: center;
	gap: 15px;
	background-color: #f5f5f5;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 25px;
	max-width: 520px;
}

.discount-icon {
	width: 38px;
	height: 38px;
	background-color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	color: #1a1a1a;
}

.advance-discount-banner p {
	margin: 0;
	font-size: 14px;
	color: #333;
}

/* ===================== ACTIONS: QTY + BUTTONS ===================== */
.product-actions {
	max-width: 520px;
	margin-bottom: 35px;
}

.qty-and-cart {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.qty-selector {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.qty-btn {
	width: 42px;
	height: 52px;
	background: #fff;
	border: none;
	font-size: 18px;
	color: #333;
	cursor: pointer;
	transition: background 0.2s ease;
}

.qty-btn:hover {
	background: #f5f5f5;
}

.qty-input {
	width: 45px;
	height: 52px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	-moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.add-to-bag-btn {
	flex: 1;
	background-color: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.add-to-bag-btn:hover {
	opacity: 0.85;
}

.add-to-bag-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.buy-now-btn {
	width: 100%;
	background-color: #1a1a1a;
	color: #fff;
	border: none;
	padding: 16px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.buy-now-btn:hover {
	opacity: 0.85;
}

.buy-now-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ===================== DELIVERY TIMELINE ===================== */
.delivery-timeline {
	display: flex;
	align-items: flex-start;
	max-width: 520px;
}

.timeline-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

.timeline-icon {
	width: 50px;
	height: 50px;
	background-color: #1a1a1a;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	margin-bottom: 10px;
}

.timeline-step h4 {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 4px;
}

.timeline-step p {
	font-size: 12px;
	color: #888;
	margin: 0;
}

.timeline-connector {
	flex: 1;
	height: 2px;
	background-color: #1a1a1a;
	margin-top: 25px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
	.single-product-wrapper {
		grid-template-columns: 1fr;
		padding: 30px 20px;
	}

	.gallery-thumbnails {
		flex-direction: row;
		overflow-x: auto;
		order: 2;
	}

	.gallery-main-image {
		order: 1;
	}

	.single-product-summary {
		order: 3;
	}

	.product-title {
		font-size: 24px;
	}

	.qty-and-cart {
		flex-direction: column;
	}

	.qty-selector {
		width: 100%;
		justify-content: center;
	}
}

/* ===================== KEY FEATURES LIST ===================== */
.product-details-section {
	max-width: 520px;
	margin-top: 35px;
}

.key-features-list {
	list-style: none;
	margin: 0 0 25px;
	padding: 0;
}

.key-features-list li {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	color: #333;
	margin-bottom: 14px;
	line-height: 1.5;
}

.key-features-list li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: #1a1a1a;
	font-size: 18px;
}

/* ===================== ACCORDION ===================== */
.product-accordion {
	border-top: 1px solid #e0e0e0;
}

.accordion-item {
	border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 18px 0;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	cursor: pointer;
	text-align: left;
}

.accordion-icon {
	display: flex;
	align-items: center;
	color: #1a1a1a;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
	transform: rotate(180deg);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.accordion-content-inner {
	padding: 0 0 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}

.accordion-content-inner p {
	margin: 0 0 12px;
}

.accordion-content-inner p:last-child {
	margin-bottom: 0;
}

.accordion-content-inner ul,
.accordion-content-inner ol {
	padding-left: 20px;
	margin: 0 0 12px;
}

/* ===================== MOBILE: FINAL FIX - QTY + ADD TO BAG SAME ROW ===================== */
@media (max-width: 768px) {

	.product-actions {
		max-width: 100% !important;
	}

	.qty-and-cart {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 10px !important;
		width: 100% !important;
		margin-bottom: 14px !important;
	}

	.qty-selector {
		display: flex !important;
		flex: 0 0 auto !important;
		align-items: center !important;
		border: 1px solid #ddd !important;
		border-radius: 50px !important;
		overflow: hidden !important;
		width: auto !important;
	}

	.qty-btn {
		width: 40px !important;
		height: 60px !important;
		font-size: 18px !important;
		background: transparent !important;
		border: none !important;
		flex-shrink: 0 !important;
	}

	.qty-input {
		width: 32px !important;
		height: 60px !important;
		font-size: 16px !important;
		font-weight: 700 !important;
		text-align: center !important;
		border-left: 1px solid #eee !important;
		border-right: 1px solid #eee !important;
		background: transparent !important;
		flex-shrink: 0 !important;
	}

	.add-to-bag-btn {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		width: auto !important;
		border-radius: 50px !important;
		height: 60px !important;
		font-size: 15px !important;
		font-weight: 700 !important;
	}

	.buy-now-btn {
		width: 100% !important;
		border-radius: 50px !important;
		padding: 20px !important;
		font-size: 16px !important;
		font-weight: 700 !important;
	}
}