/* Product Detail Page CSS */

.product-detail-section {
	padding: 0px 0;
}

.product-detail-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
}

@media (min-width: 900px) {
	.product-detail-grid {
		grid-template-columns: minmax(320px, 420px) minmax(0, 1fr) minmax(280px, 340px);
		gap: 28px;
	}
	.product-buy-col {
		position: sticky;
		top: 200px;
		align-self: start;
	}
}

/* Image */
.product-gallery {
	min-width: 0;
}
.product-info-col {
	min-width: 0;
}
.product-buy-col {
	background: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 100;
}
.product-gallery-main {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	max-height: 420px;
	background: var(--surface-color);
	border: 1px solid var(--border-color);
}
.product-gallery-main .swiper-wrapper,
.product-gallery-main .swiper-slide {
	height: 100%;
}
.product-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.product-gallery-thumbs {
	margin-top: 12px;
}
.product-gallery-thumbs .swiper-slide {
	opacity: 0.6;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid transparent;
	cursor: pointer;
}
.product-gallery-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--primary-color);
}
.product-gallery-thumbs img {
	width: 100%;
	height: 72px;
	object-fit: contain;
	background: var(--surface-color);
}
.product-gallery-next,
.product-gallery-prev {
	color: var(--white);
	background: rgba(43, 35, 32, 0.4);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(43, 35, 32, 0.25);
}
.product-gallery-next::after,
.product-gallery-prev::after {
	display: none;
}
.product-gallery-next:hover,
.product-gallery-prev:hover {
	background: var(--primary-color);
}

/* Info */
.product-title {
	font-size: 2rem;
	margin-bottom: 10px;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-meta {
	margin-bottom: 20px;
	color: var(--text-light);
	font-size: 0.9rem;
}
.product-excerpt {
    margin-bottom: 30px;
    line-height: 1.8;
	max-width: 560px;
}
.product-features {
    margin: -10px 0 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--accent-color);
    padding: 10px 12px;
}
.product-features summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--heading-color);
    list-style: none;
    position: relative;
    padding-right: 18px;
}
.product-features summary::-webkit-details-marker {
    display: none;
}
.product-features summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
}
.product-features[open] summary::after {
    transform: rotate(180deg);
}
.product-features ul {
    margin-top: 10px;
    padding-left: 18px;
    color: var(--text-light);
}
.product-features li {
    margin-bottom: 6px;
}
.size-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.size-chart-btn {
	border: 1px solid var(--border-color);
	background: var(--surface-color);
	padding: 4px 10px;
	font-size: 0.85rem;
	cursor: pointer;
}
.size-chart-btn,
.size-chart-modal {
	display: none;
}
.size-selector {
    margin-bottom: 18px;
}
.size-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.size-option {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 6px 12px;
    min-width: 48px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
}
.size-option.active {
    border-color: var(--primary-color);
    background: var(--accent-color);
    color: var(--primary-color);
}
.size-chart-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.size-chart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 35, 32, 0.35);
}
.size-chart-card {
    position: relative;
    width: min(880px, 92%);
    margin: 6vh auto 0;
    background: var(--surface-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
}

.specs-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 0;
}
.specs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 35, 32, 0.35);
    z-index: 0;
}
.specs-card {
    position: relative;
    width: min(820px, 92%);
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.specs-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.specs-close {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.specs-body {
    padding: 0;
    overflow: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.specs-section {
    padding: 16px 20px;
}
.specs-section + .specs-section {
    border-top: 1px solid var(--border-color);
}
.specs-section h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--heading-color);
}
.specs-features {
    margin: 0;
    padding-left: 18px;
    color: var(--text-light);
}
.specs-features li {
    margin-bottom: 6px;
}
.specs-empty {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
}
.product-specs-table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    background: #faf6f1;
}
.product-specs-table thead th,
.product-specs-table tbody td,
.product-specs-table tbody th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}
.product-specs-table tbody th {
    font-weight: 600;
    color: var(--heading-color);
}
.size-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.size-chart-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.size-chart-close {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.size-chart-body {
    padding: 16px 20px 20px;
    overflow: auto;
}
.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.size-chart-table th,
.size-chart-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}
.product-specs {
    margin-bottom: 20px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	background: var(--accent-color);
	padding: 10px 12px;
}
.product-specs summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--heading-color);
	list-style: none;
	position: relative;
	padding-right: 18px;
}
.product-specs summary::-webkit-details-marker {
	display: none;
}
.product-specs summary::after {
	content: "▾";
	position: absolute;
	right: 0;
	top: 0;
}
.product-specs[open] summary::after {
	transform: rotate(180deg);
}
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.product-specs-table {
	margin-top: 10px;
	background: var(--surface-color);
	border-radius: 10px;
	overflow: hidden;
}
.product-specs-table th,
.product-specs-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 10px;
    text-align: left;
}
.product-specs-table th {
    width: 40%;
    color: var(--text-light);
    font-weight: 600;
}
.product-price-lg {
	font-size: 1.5rem;
	color: var(--primary-color);
	font-weight: 700;
	margin-bottom: 20px;
}
.buy-now-btn {
	background: var(--primary-color);
	color: var(--white);
	border: 1px solid var(--primary-color);
}
.buy-now-btn:hover {
	background: var(--white);
	color: var(--primary-color);
	border-color: var(--primary-color);
}
.add-actions {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-start;
	row-gap: 10px;
}

@media (max-width: 900px) {
	.product-buy-col {
		padding: 14px;
	}
	.product-gallery-main {
		max-height: 380px;
	}
}
.add-actions .btn {
	height: 40px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	flex: 0 0 auto;
}
.add-actions .btn-outline {
	padding: 0 12px;
}
.qty-input {
	width: 70px;
	padding: 8px 6px;
	border: none;
	text-align: center;
	background: transparent;
	font-weight: 600;
	height: 40px;
}
.qty-input:hover {
	background: transparent;
}
.qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border-color);
	border-radius: 0;
	overflow: hidden;
	height: 40px;
}
.qty-control .qty-input {
	border-radius: 0;
}
.qty-control .qty-input:hover {
	background-color: transparent;
}
.qty-control .qty-input:focus {
	border: 1px solid var(--border-color);
	box-shadow: none;
}
.qty-btn {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-color);
	font-size: 18px;
	color: var(--text-color);
	flex: 0 0 40px;
	border-radius: 0;
}
.qty-btn:hover {
	background: var(--accent-color);
}

/* Reviews */
.product-reviews-section {
	margin-top: 50px;
}
.related-section {
	margin-top: 50px;
}
.related-section .product-desc {
	display: none;
}
.review-list {
    margin-top: 20px;
}
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #a0a8ad;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-summary {
	margin-top: 20px;
	padding: 16px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	background: var(--accent-color);
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
}
.review-average {
	min-width: 140px;
	text-align: center;
}
.review-average-label {
	font-size: 0.9rem;
	color: var(--text-light);
}
.review-average-value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
}
.review-average-stars {
	margin-top: 4px;
}
.review-average-count {
	margin-top: 4px;
	color: var(--text-light);
	font-size: 0.85rem;
}
.review-breakdown {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 220px;
}
.review-bar {
	display: grid;
	grid-template-columns: 18px 1fr 36px;
	align-items: center;
	gap: 10px;
}
.review-bar-label {
	font-size: 0.85rem;
	color: var(--text-light);
}
.review-bar-track {
	height: 8px;
	background: var(--border-color);
	border-radius: 999px;
	overflow: hidden;
}
.review-bar-fill {
	height: 100%;
	background: var(--primary-color);
}
.review-bar-count {
	font-size: 0.85rem;
	color: var(--text-light);
	text-align: right;
}
.review-empty {
	margin-top: 20px;
	color: var(--text-light);
	display: none;
	text-align: center;
	padding: 30px 0;
	border: 1px dashed var(--border-color);
	border-radius: 10px;
}
.review-actions {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

/* Review List */
.review-item {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.review-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}
.review-rating {
	color: #d4a54a; /* Warm amber for stars */
}
.reply {
	background: var(--accent-color);
	padding: 15px;
	margin-top: 15px;
	border-radius: 4px;
}
