/**
 * COCONPM Custom Product Page Styles
 * 100% Custom - No WooCommerce or Divi Conflicts
 * Following same pattern as coconpm-cart.css
 */

/* ============================================
   PRODUCT PAGE CONTAINER
   ============================================ */

.coconpm-product-page {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.coconpm-product-wrapper {
	width: 100%;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.coconpm-breadcrumb {
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
	font-size: 14px;
	color: #666666;
}

/* Remove double border from WooCommerce breadcrumb */
.coconpm-breadcrumb .woocommerce-breadcrumb,
.coconpm-breadcrumb nav.woocommerce-breadcrumb {
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.coconpm-breadcrumb .woocommerce-breadcrumb a {
	color: #C64193;
	text-decoration: none;
	transition: color 0.2s ease;
}

.coconpm-breadcrumb .woocommerce-breadcrumb a:hover {
	color: #A0346D;
	text-decoration: underline;
}

/* ============================================
   PRODUCT GRID - 2 COLUMNS
   ============================================ */

.coconpm-product-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
	align-items: start;
}

.coconpm-product-left {
	width: 100%;
}

.coconpm-product-right {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ============================================
   PRODUCT TITLE
   ============================================ */

.coconpm-product-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: #000000;
	margin: 0 0 16px 0;
}

/* ============================================
   PRODUCT RATING
   ============================================ */

.coconpm-product-rating {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.coconpm-product-rating .star-rating {
	color: #BFA86C;
}

/* ============================================
   PRODUCT PRICE
   ============================================ */

.coconpm-product-price {
	font-size: 28px;
	font-weight: 700;
	color: #C64193 !important;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e0e0e0;
}

.coconpm-product-price .price,
.coconpm-product-price .woocommerce-Price-amount,
.coconpm-product-price .amount {
	color: #C64193 !important;
	font-weight: 700;
}

/* Old/Strikethrough Price - Grey */
.coconpm-product-price del,
.coconpm-product-price del .amount,
.coconpm-product-price del .woocommerce-Price-amount {
	color: #999999 !important;
	font-size: 20px;
	font-weight: 400;
	text-decoration: line-through;
	margin-right: 12px;
}

/* Sale Price */
.coconpm-product-price ins,
.coconpm-product-price ins .amount,
.coconpm-product-price ins .woocommerce-Price-amount {
	text-decoration: none !important;
	color: #C64193 !important;
	font-weight: 700;
}

/* ============================================
   PRODUCT DESCRIPTION
   ============================================ */

.coconpm-product-excerpt {
	font-size: 16px;
	line-height: 1.6;
	color: #333333;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f0f0f0;
}

/* ============================================
   ADD TO CART SECTION
   ============================================ */

.coconpm-add-to-cart {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e0e0e0;
}

.coconpm-add-to-cart form.cart {
	display: flex;
	align-items: stretch;
	gap: 16px;
	flex-wrap: nowrap;
	margin: 0;
}

/* Quantity Selector */
.coconpm-add-to-cart .quantity {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: stretch;
	border: 2px solid #C64193;
	background: transparent;
	height: 48px;
	margin: 0;
	padding: 0;
	width: 144px;
	border-radius: 0;
	overflow: hidden;
	box-sizing: border-box;
}

/* Minus Button */
.coconpm-add-to-cart .quantity button.minus,
.coconpm-add-to-cart .quantity .minus {
	order: 1;
	width: 48px;
	height: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-right: 2px solid #C64193;
	color: #C64193;
	font-size: 20px;
	font-weight: 300;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
}

/* Quantity Input */
.coconpm-add-to-cart .quantity input[type="number"],
.coconpm-add-to-cart .quantity input.qty {
	order: 2;
	border: none;
	padding: 0;
	margin: 0;
	width: 48px;
	height: 100%;
	text-align: center;
	color: #C64193;
	background: transparent;
	font-weight: 500;
	font-size: 16px;
	cursor: text;
	flex-shrink: 0;
	-moz-appearance: textfield;
	-webkit-appearance: none;
}

/* Plus Button */
.coconpm-add-to-cart .quantity button.plus,
.coconpm-add-to-cart .quantity .plus {
	order: 3;
	width: 48px;
	height: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-left: 2px solid #C64193;
	color: #C64193;
	font-size: 20px;
	font-weight: 300;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
}

/* Hide spinner buttons */
.coconpm-add-to-cart .quantity input[type="number"]::-webkit-outer-spin-button,
.coconpm-add-to-cart .quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
	display: none;
}

/* Hover States */
.coconpm-add-to-cart .quantity button.minus:hover,
.coconpm-add-to-cart .quantity button.plus:hover {
	background-color: #C64193;
	color: #ffffff;
}

.coconpm-add-to-cart .quantity input:hover,
.coconpm-add-to-cart .quantity input:focus {
	background: transparent;
	color: #C64193;
	border: none;
	outline: none;
}

/* Add to Cart Button */
.coconpm-add-to-cart button.single_add_to_cart_button {
	background-color: transparent;
	background: transparent;
	border: 2px solid #C64193;
	color: #C64193;
	font-weight: 500;
	font-size: 16px;
	padding: 0 32px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border-radius: 0;
	margin: 0;
	flex-shrink: 0;
	min-width: 200px;
}

.coconpm-add-to-cart button.single_add_to_cart_button:hover {
	background-color: #C64193;
	background: #C64193;
	color: #ffffff;
	border-color: #C64193;
}

/* ============================================
   PRODUCT META (Categories, Tags, SKU)
   ============================================ */

.coconpm-product-meta {
	font-size: 14px;
	color: #666666;
	line-height: 1.8;
}

.coconpm-product-meta .product_meta span {
	display: block;
	margin-bottom: 8px;
}

.coconpm-product-meta .product_meta a {
	color: #C64193;
	text-decoration: none;
	transition: color 0.2s ease;
}

.coconpm-product-meta .product_meta a:hover {
	color: #A0346D;
	text-decoration: underline;
}

/* ============================================
   PRODUCT TABS
   ============================================ */

.coconpm-product-tabs {
	width: 100%;
	margin-top: 48px;
	padding-top: 48px;
	border-top: 2px solid #e0e0e0;
}

.coconpm-product-tabs .woocommerce-tabs {
	border: none;
	background: transparent;
}

.coconpm-product-tabs .woocommerce-tabs ul.tabs {
	border: none;
	border-bottom: 1px solid #e0e0e0;
	list-style: none;
	padding: 0;
	margin: 0 0 32px 0;
	display: flex;
	gap: 0;
	background: transparent;
}

.coconpm-product-tabs .woocommerce-tabs ul.tabs::before,
.coconpm-product-tabs .woocommerce-tabs ul.tabs::after {
	display: none;
}

.coconpm-product-tabs .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.coconpm-product-tabs .woocommerce-tabs ul.tabs li a {
	color: #666666;
	text-decoration: none;
	padding: 12px 24px;
	display: block;
	background: transparent;
	border: none;
	font-weight: 400;
	transition: color 0.3s ease;
	border-bottom: 2px solid transparent;
}

.coconpm-product-tabs .woocommerce-tabs ul.tabs li.active a,
.coconpm-product-tabs .woocommerce-tabs ul.tabs li a:hover {
	color: #C64193;
	background: transparent;
}

.coconpm-product-tabs .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: #C64193;
	font-weight: 600;
}

/* Tab Content */
.coconpm-product-tabs .woocommerce-Tabs-panel {
	padding: 0;
	border: none;
	background: transparent;
}

.coconpm-product-tabs .woocommerce-Tabs-panel h2 {
	display: none;
}

.coconpm-product-tabs .woocommerce-Tabs-panel p {
	font-size: 16px;
	line-height: 1.6;
	color: #333333;
	margin-bottom: 16px;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.coconpm-related-products {
	width: 100%;
	margin-top: 48px;
	padding-top: 48px;
	border-top: 2px solid #e0e0e0;
}

.coconpm-related-products h2 {
	font-size: 24px;
	font-weight: 700;
	color: #000000;
	margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
	.coconpm-product-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
	.coconpm-product-page {
		padding: 32px 16px;
	}
	
	.coconpm-product-title {
		font-size: 28px;
	}
	
	.coconpm-product-price {
		font-size: 24px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.coconpm-product-page {
		padding: 24px 16px;
	}
	
	.coconpm-breadcrumb {
		font-size: 13px;
		margin-bottom: 24px;
	}
	
	.coconpm-product-grid {
		gap: 24px;
	}
	
	.coconpm-product-title {
		font-size: 24px;
		margin-bottom: 12px;
	}
	
	.coconpm-product-price {
		font-size: 20px;
		margin-bottom: 16px;
		padding-bottom: 16px;
	}
	
	.coconpm-product-excerpt {
		font-size: 15px;
		margin-bottom: 16px;
		padding-bottom: 16px;
	}
	
	.coconpm-add-to-cart form.cart {
		flex-direction: column;
		align-items: stretch;
	}
	
	.coconpm-add-to-cart .quantity {
		width: 100%;
	}
	
	.coconpm-add-to-cart button.single_add_to_cart_button {
		width: 100%;
		min-width: 100%;
	}
	
	.coconpm-product-tabs,
	.coconpm-related-products {
		margin-top: 32px;
		padding-top: 32px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.coconpm-product-page {
		padding: 16px 12px;
	}
	
	.coconpm-product-title {
		font-size: 20px;
	}
	
	.coconpm-product-price {
		font-size: 18px;
	}
	
	.coconpm-product-tabs .woocommerce-tabs ul.tabs li a {
		padding: 10px 16px;
		font-size: 14px;
	}
}

