/**
 * Armenian Single Product Page - Senior Designer Quality
 * Beautiful, modern, and professional design
 */

/* ============================================
   ARMENIAN FONT - Apply to everything
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@300;400;500;600;700;800&display=swap');

body.single-product,
body.single-product * {
	font-family: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================
   PRODUCT LABELS (Hot, New, Sale badges)
   ============================================ */
.product-labels {
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 10;
}

.product-label {
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.product-label.featured,
.product-label:contains('Հիթ') {
	background: linear-gradient(135deg, #28462F 0%, #FF5252 100%);
	color: #fff;
}

.product-label.new,
.product-label:contains('Նոր') {
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
	color: #fff;
}

.product-label.onsale,
.product-label:contains('Զեղչ') {
	background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
	color: #fff;
}

.product-label:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   BREADCRUMBS - Beautiful & Clean
   ============================================ */
.wd-breadcrumbs.woocommerce-breadcrumb {
	font-size: 14px;
	color: #666;
	padding: 12px 0;
	margin-bottom: 20px;
}

.wd-breadcrumbs a {
	color: #444;
	text-decoration: none;
	transition: color 0.2s ease;
	font-weight: 500;
}

.wd-breadcrumbs a:hover {
	color: #28462F;
}

.wd-breadcrumbs .wd-delimiter::before {
	content: '›';
	margin: 0 8px;
	color: #ccc;
	font-size: 16px;
}

.wd-breadcrumbs .wd-last {
	color: #222;
	font-weight: 600;
}

/* ============================================
   PRODUCT TITLE - Premium Look
   ============================================ */
.product_title.entry-title {
	font-size: 32px;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 15px;
	line-height: 1.3;
	letter-spacing: -0.5px;
}

/* ============================================
   BRAND LOGO - Elegant
   ============================================ */
.wd-product-brands {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	display: inline-block;
}

.wd-product-brands img {
	max-height: 40px;
	width: auto;
	filter: grayscale(20%);
	transition: filter 0.3s ease;
}

.wd-product-brands img:hover {
	filter: grayscale(0%);
}

/* ============================================
   PRICE - Bold & Beautiful
   ============================================ */
.summary .price {
	font-size: 36px;
	font-weight: 800;
	color: #28462F;
	margin: 20px 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.summary .price del {
	font-size: 24px;
	color: #999;
	font-weight: 500;
}

.summary .price ins {
	text-decoration: none;
	color: #28462F;
}

/* ============================================
   COLOR/SIZE SWATCHES - Modern
   ============================================ */
.wd-swatches-product {
	margin: 20px 0;
}

.variations th.label {
	font-size: 15px;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-bottom: 12px;
}

.wd-swatch.wd-text {
	width: auto;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #333;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	margin-right: 8px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	position: relative;
	overflow: hidden;
    box-sizing: border-box;
}

.wd-swatch.wd-text:hover {
	border-color: #888;
	color: #111;
}

.wd-swatch.wd-text.wd-active {
	background: #222;
	color: #fff;
	border-color: #222;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wd-swatch.wd-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	background: #f9f9f9 !important;
	color: #aaa !important;
	border-color: #eee !important;
}

.wd-swatch.wd-text.wd-disabled::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -10%;
	right: -10%;
	height: 1px;
	background: #ccc;
	transform: rotate(-35deg);
}

.wd-swatch-text {
	z-index: 2;
	position: relative;
}

/* ============================================
   QUANTITY & BUTTONS - Premium Style
   ============================================ */
.quantity {
	display: inline-flex;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	margin-right: 12px;
	flex-shrink: 0;
}

.quantity input.qty {
	width: 50px;
	height: 46px;
	border: none;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.quantity .minus,
.quantity .plus {
	width: 38px;
	height: 46px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	color: #666;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.quantity .minus:hover,
.quantity .plus:hover {
	background: #28462F;
	color: #fff;
}

/* Add to Cart Button */
.single_add_to_cart_button {
	background: #28462F !important;
	color: white !important;
	border: 2px solid #28462F !important;
	padding: 11px 22px !important;
	font-size: 13px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: none;
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	flex: 0 1 auto;
	min-width: 0;
}

.single_add_to_cart_button:before {
	content: '';
	font-size: 0;
}

.single_add_to_cart_button:hover {
	background: #28462F !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(40, 70, 47, 0.2);
}

/* Buy Now Button */
.wd-buy-now-btn {
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
	color: #fff;
	border: none;
	padding: 13px 28px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	flex: 0 0 auto;
	min-width: 0;
}

.wd-buy-now-btn:before {
	content: '';
	font-size: 0;
}

.wd-buy-now-btn:hover {
	background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Buttons Container - Keep them inline with better wrapping */
.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 20px;
	width: 100%;
}

.woocommerce-variation-add-to-cart > .quantity {
	flex: 0 0 auto;
}

.woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
}

.woocommerce-variation-add-to-cart > .wd-buy-now-btn {
	flex: 0 1 auto;
	min-width: 0;
}

/* Ensure container doesn't overflow */
.summary .cart {
	overflow: visible;
}

.summary .cart .woocommerce-variation-add-to-cart {
	max-width: 100%;
	overflow: visible;
}

/* Force buttons to stay in one line on desktop */
@media (min-width: 769px) {
	.variations_form .woocommerce-variation-add-to-cart {
		flex-wrap: nowrap;
	}

	.single_add_to_cart_button,
	.wd-buy-now-btn {
		flex-shrink: 1;
		min-width: 0;
		max-width: none;
	}
}

/* Compact text on smaller containers */
@media (min-width: 769px) and (max-width: 1024px) {
	.single_add_to_cart_button {
		padding-left: 18px;
		padding-right: 18px;
		font-size: 12px;
	}

	.wd-buy-now-btn {
		padding-left: 22px;
		padding-right: 22px;
		font-size: 12px;
	}
}

/* ============================================
   WISHLIST & COMPARE - Icon Buttons
   ============================================ */
.wd-wishlist-btn,
.wd-compare-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #f5f5f5;
	border-radius: 8px;
	margin-right: 10px;
	margin-top: 15px;
	transition: all 0.3s ease;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	color: #555;
}

.wd-wishlist-btn:hover {
	background: #FFE5E5;
	color: #28462F;
	transform: translateY(-2px);
}

.wd-compare-btn:hover {
	background: #E3F2FD;
	color: #2196F3;
	transform: translateY(-2px);
}

/* ============================================
   PRODUCT META (SKU, Category) - Clean
   ============================================ */
.product_meta {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 2px solid #f0f0f0;
	font-size: 14px;
	color: #666;
}

.product_meta > span {
	display: block;
	margin-bottom: 8px;
}

.product_meta .meta-label {
	font-weight: 700;
	color: #333;
	margin-right: 8px;
}

.product_meta a {
	color: #28462F;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.product_meta a:hover {
	color: #FF5252;
	text-decoration: underline;
}

/* ============================================
   SOCIAL SHARE - Beautiful Icons
   ============================================ */
.wd-social-icons.product-share {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 2px solid #f0f0f0;
}

.wd-social-icons .share-title {
	font-weight: 700;
	color: #333;
	margin-right: 15px;
	font-size: 15px;
}

.wd-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f5f5f5;
	margin-right: 8px;
	transition: all 0.3s ease;
	text-decoration: none;
}

.wd-social-icon:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-facebook:hover {
	background: #1877F2;
	color: #fff;
}

.social-twitter:hover {
	background: #1DA1F2;
	color: #fff;
}

.social-pinterest:hover {
	background: #E60023;
	color: #fff;
}

.social-linkedin:hover {
	background: #0077B5;
	color: #fff;
}

.social-tg:hover {
	background: #0088cc;
	color: #fff;
}

/* ============================================
   PRODUCT VISITS COUNT - Eye-catching
   ============================================ */
.wd-visits-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px !important;
	background: #ffffff !important;
	border-radius: 8px !important;
	margin-top: 15px !important;
	font-weight: 600 !important;
	color: #28462F !important;
	border: 2px solid #28462F !important;
}

.wd-visits-count .wd-info-icon {
	font-size: 20px;
	color: #28462F;
}

.wd-visits-count .wd-info-number {
	font-size: 18px;
	font-weight: 800;
	color: #28462F;
}

/* ============================================
   TABS - Modern & Clean
   ============================================ */
.woocommerce-tabs .wd-nav-tabs-wrapper {
	background: #f9f9f9;
	border-radius: 12px 12px 0 0;
	padding: 0;
	overflow: hidden;
}

.woocommerce-tabs .wd-nav-tabs {
	display: flex;
	gap: 0;
	border-bottom: none;
}

.woocommerce-tabs .wd-nav-link {
	padding: 18px 30px;
	font-size: 16px;
	font-weight: 700;
	color: #666;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.woocommerce-tabs .wd-nav-link:hover {
	color: #28462F;
	background: #fff;
}

.woocommerce-tabs .wd-nav-link[aria-selected="true"],
.woocommerce-tabs li.active .wd-nav-link {
	color: #28462F;
	background: #fff;
	border-bottom-color: #28462F;
}

.woocommerce-tabs .wc-tab-inner {
	padding: 35px;
	background: #fff;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   PRODUCT ATTRIBUTES TABLE - Beautiful
   ============================================ */
.woocommerce-product-attributes {
	width: 100%;
	border: none;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.woocommerce-product-attributes tr {
	border-bottom: 1px solid #f0f0f0;
}

.woocommerce-product-attributes tr:last-child {
	border-bottom: none;
}

.woocommerce-product-attributes th {
	background: #f9f9f9;
	padding: 16px 20px;
	text-align: left;
	font-weight: 700;
	color: #333;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: 35%;
}

.woocommerce-product-attributes td {
	padding: 16px 20px;
	color: #555;
	font-size: 15px;
	background: #fff;
}

/* ============================================
   REVIEWS - Professional Look
   ============================================ */
.wd-rating-summary {
	background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wd-rating-summary-heading {
	text-align: center;
	margin-bottom: 20px;
}

.wd-rating-summary-heading .star-rating {
	font-size: 32px;
	margin-bottom: 10px;
}

.wd-rating-summary-total {
	font-size: 18px;
	font-weight: 600;
	color: #666;
}

.wd-rating-progress-bar {
	height: 8px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 15px;
	flex: 1;
}

.wd-rating-progress-bar .progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #28462F 0%, #FF5252 100%);
	border-radius: 10px;
	transition: width 0.5s ease;
}

/* Review Form */
#review_form {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#review_form .comment-reply-title {
	font-size: 24px;
	font-weight: 800;
	color: #333;
	margin-bottom: 25px;
}

#review_form label {
	font-weight: 700;
	color: #333;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	display: block;
}

#review_form textarea,
#review_form input[type="text"] {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.3s ease;
	background: #fff;
}

#review_form textarea:focus,
#review_form input[type="text"]:focus {
	border-color: #28462F;
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

#review_form .stars a {
	color: #FFD700;
	font-size: 24px;
	text-decoration: none;
	transition: all 0.2s ease;
}

#review_form .stars a:hover {
	transform: scale(1.2);
}

#review_form input[type="submit"] {
	background: linear-gradient(135deg, #28462F 0%, #FF5252 100%);
	color: #fff;
	border: none;
	padding: 14px 35px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#review_form input[type="submit"]:hover {
	background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* ============================================
   PRODUCT NAVIGATION - Next/Prev
   ============================================ */
.wd-products-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wd-product-nav-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border-radius: 50%;
	transition: all 0.3s ease;
	text-decoration: none;
	color: #666;
}

.wd-product-nav-btn:hover {
	background: #28462F;
	color: #fff;
	transform: scale(1.1);
}

.wd-product-nav-btn.wd-btn-back {
	width: auto;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
}

/* ============================================
   CERTIFICATES & BADGES - Beautiful Grid
   ============================================ */
.wd-certificates-grid {
	display: grid;
	gap: 15px;
	margin: 25px 0;
}

.wd-certificates-grid.wd-certificates-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wd-certificates-grid.wd-certificates-inline {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.wd-certificate-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #fff;
	border: 2px solid #4CAF50;
	border-radius: 10px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	font-family: 'Noto Sans Armenian', sans-serif;
}

.wd-certificate-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	border-width: 3px;
}

.wd-certificate-icon {
	font-size: 24px;
	font-weight: 700;
	color: #4CAF50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(76, 175, 80, 0.1);
	border-radius: 50%;
	flex-shrink: 0;
}

.wd-certificate-text {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

/* Single Certificate Badge */
.wd-certificate-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: #f0f8f4;
	border: 2px solid #4CAF50;
	border-radius: 8px;
	margin: 5px;
	transition: all 0.3s ease;
	font-family: 'Noto Sans Armenian', sans-serif;
}

.wd-certificate-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.wd-certificate-badge .wd-certificate-icon {
	font-size: 20px;
	width: auto;
	height: auto;
	background: none;
}

.wd-certificate-badge .wd-certificate-text {
	font-size: 13px;
	font-weight: 600;
}

/* Certificates in Product Description */
.woocommerce-product-details__short-description .wd-certificates-grid,
.wc-tab-inner .wd-certificates-grid {
	margin: 20px 0;
}

/* ============================================
   RESPONSIVE - Mobile Friendly
   ============================================ */

/* Medium screens - Keep buttons compact */
@media (min-width: 769px) and (max-width: 1200px) {
	.single_add_to_cart_button,
	.wd-buy-now-btn {
		padding: 12px 20px;
		font-size: 12px;
		letter-spacing: 0.2px;
	}

	.quantity input.qty {
		width: 45px;
		height: 42px;
		font-size: 14px;
	}

	.quantity .minus,
	.quantity .plus {
		width: 35px;
		height: 42px;
		font-size: 15px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.product_title.entry-title {
		font-size: 24px;
	}

	.summary .price {
		font-size: 28px;
	}

	/* Mobile: Stack buttons vertically */
	.variations_form .woocommerce-variation-add-to-cart {
		flex-wrap: wrap;
	}

	.woocommerce-variation-add-to-cart > .quantity {
		width: 100%;
		margin-bottom: 10px;
		margin-right: 0;
		justify-content: center;
	}

	.single_add_to_cart_button,
	.wd-buy-now-btn {
		width: 100%;
		margin-bottom: 10px;
		margin-right: 0;
		justify-content: center;
		flex: 1 1 100%;
		max-width: none;
	}

	.woocommerce-tabs .wd-nav-link {
		padding: 14px 15px;
		font-size: 14px;
	}

	.woocommerce-tabs .wc-tab-inner {
		padding: 20px;
	}

	.wd-certificates-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.wd-certificate-item {
		padding: 14px 16px;
	}

	.wd-certificate-badge {
		display: flex;
		width: 100%;
		margin: 5px 0;
	}
}

/* ============================================
   ANIMATIONS - Smooth & Professional
   ============================================ */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.summary,
.product-images,
.woocommerce-tabs {
	animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ACCESSIBILITY & UX Improvements
   ============================================ */
*:focus-visible {
	outline: 3px solid #28462F;
	outline-offset: 2px;
}

button,
a,
.wd-swatch {
	-webkit-tap-highlight-color: rgba(255, 107, 107, 0.2);
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}
