/**
 * Product Page Styles
 *
 * Custom styles for the single product page layout.
 *
 * @package Codeyweb
 */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
	--cw-primary: #0c7489;
	--cw-primary-dark: #0c2d3a;
	--cw-primary-light: #14a3c7;
	--cw-dark: #0c2d3a;
	--cw-text: #333333;
	--cw-text-light: #666666;
	--cw-text-muted: #999999;
	--cw-border: #e5e7eb;
	--cw-bg-light: #f8f9fa;
	--cw-white: #ffffff;
	--cw-green: #10b981;
	--cw-red: #ef4444;
	--cw-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	--cw-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
	--cw-radius: 8px;
	--cw-radius-lg: 12px;
	--cw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   Reset / Base for product page
   ============================================================ */
.cw-single-product {
	font-family: var(--cw-font);
	color: var(--cw-text);
	line-height: 1.6;
	max-width: 100%;
	overflow-x: hidden;
}

.cw-single-product *,
.cw-single-product *::before,
.cw-single-product *::after {
	box-sizing: border-box;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.cw-hero {
	position: relative;
	min-height: 340px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	padding: 60px 0 50px;
	background-color: var(--cw-primary-dark);
}

.cw-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
			rgba(12, 45, 58, 0.6) 0%,
			rgba(12, 45, 58, 0.85) 60%,
			rgba(12, 45, 58, 0.95) 100%);
	z-index: 1;
}

.cw-hero__content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 40px;
}

.cw-hero__breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cw-hero__breadcrumb:hover {
	color: #ffffff;
}

.cw-hero__category {
	display: block;
	color: var(--cw-primary-light);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 15px 0px;
}

.cw-hero__title {
	color: #ffffff;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 16px;
	letter-spacing: -0.5px;
}

.cw-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

.cw-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 500;
}

.cw-hero__meta-item svg {
	opacity: 0.8;
	flex-shrink: 0;
}

/* ============================================================
   MAIN LAYOUT — Two Columns
   ============================================================ */
.cw-product-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 40px 80px;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 50px;
	align-items: start;
}

.cw-product-content {
	min-width: 0;
}

.cw-product-sidebar {
	position: relative;
}

.cw-sidebar-sticky {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.cw-section {
	margin-bottom: 50px;
}

.cw-section__label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cw-primary);
	margin-bottom: 10px;
}

.cw-section__label--green {
	color: var(--cw-green);
}

.cw-section__label--red {
	color: var(--cw-red);
}

.cw-section__title {
	font-size: 26px;
	font-weight: 700;
	color: var(--cw-dark);
	margin: 0 0 16px;
	line-height: 1.3;
}

.cw-section__text {
	font-size: 15px;
	color: var(--cw-text-light);
	line-height: 1.75;
}

.cw-section__text p {
	margin-bottom: 12px;
}

/* ============================================================
   INCLUSIONS / EXCLUSIONS
   ============================================================ */
.cw-incexc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.cw-incexc__heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--cw-dark);
	margin: 0 0 16px;
}

.cw-incexc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cw-incexc-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	font-size: 14px;
	color: var(--cw-text);
	line-height: 1.5;
}

.cw-incexc-list li svg {
	flex-shrink: 0;
	margin-top: 2px;
}

/* ============================================================
   ITINERARY
   ============================================================ */
.cw-itinerary__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background-color: var(--cw-primary);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--cw-radius);
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.cw-itinerary__btn:hover {
	background-color: var(--cw-primary-dark);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: var(--cw-shadow);
}

/* ============================================================
   BOOKING CARD
   ============================================================ */
.cw-booking-card {
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-radius: var(--cw-radius-lg);
	padding: 28px;
	box-shadow: var(--cw-shadow);
}

.cw-booking-card__label {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cw-primary);
	margin-bottom: 6px;
}

.cw-booking-card__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--cw-dark);
	margin: 0 0 24px;
}

/* Form Groups */
.cw-form-group {
	margin-bottom: 18px;
}

.cw-form-group label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--cw-text-muted);
	margin-bottom: 8px;
}

.cw-form-group input[type="text"],
.cw-form-group input[type="email"],
.cw-form-group input[type="date"],
.cw-form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cw-border);
	border-radius: var(--cw-radius);
	font-size: 14px;
	font-family: var(--cw-font);
	color: var(--cw-text);
	background-color: var(--cw-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	margin-top: 0;
}

.cw-form-group input:focus,
.cw-form-group textarea:focus {
	border-color: var(--cw-primary);
	box-shadow: 0 0 0 3px rgba(12, 116, 137, 0.1);
}

.cw-form-group input[readonly] {
	background-color: var(--cw-bg-light);
	cursor: default;
}

.cw-form-group textarea {
	resize: vertical;
	min-height: 90px;
}

/* ============================================================
   QUANTITY STEPPER
   ============================================================ */
.cw-qty-stepper {
	display: flex;
	align-items: center;
	border: 1px solid var(--cw-border);
	border-radius: var(--cw-radius);
	overflow: hidden;
	width: fit-content;
}

.cw-qty-btn {
	width: 44px;
	height: 44px;
	border: none;
	background: var(--cw-white);
	color: var(--cw-text);
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	line-height: 1;
	padding: 0;
}

.cw-qty-btn:hover {
	background-color: var(--cw-bg-light);
}

.cw-qty-stepper input[type="number"] {
	width: 50px;
	height: 44px;
	text-align: center;
	border: none;
	border-left: 1px solid var(--cw-border);
	border-right: 1px solid var(--cw-border);
	font-size: 16px;
	font-weight: 600;
	font-family: var(--cw-font);
	color: var(--cw-text);
	background: var(--cw-primary-light);
	color: #ffffff;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
	margin: 0;
}

.cw-qty-stepper input[type="number"]::-webkit-outer-spin-button,
.cw-qty-stepper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ============================================================
   BOOKING PRICE ROW
   ============================================================ */
.cw-booking-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background-color: var(--cw-bg-light);
	border-radius: var(--cw-radius);
	margin-bottom: 16px;
	gap: 12px;
}

.cw-booking-price__calc {
	font-size: 13px;
	color: var(--cw-text-muted);
	white-space: nowrap;
}

.cw-booking-price__total {
	font-size: 22px;
	font-weight: 800;
	color: var(--cw-dark);
	white-space: nowrap;
}

/* ============================================================
   SELECTED DATE DISPLAY
   ============================================================ */
.cw-booking-date-display {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background-color: rgba(12, 116, 137, 0.06);
	border: 1px solid rgba(12, 116, 137, 0.15);
	border-radius: var(--cw-radius);
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--cw-primary);
	font-weight: 500;
}

.cw-booking-date-display svg {
	flex-shrink: 0;
}

/* ============================================================
   BOOK NOW BUTTON
   ============================================================ */
.cw-booking-card__btn {
	display: block;
	width: 100%;
	padding: 14px;
	background-color: var(--cw-primary);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	border: none;
	border-radius: var(--cw-radius);
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--cw-font);
	letter-spacing: 0.3px;
}

.cw-booking-card__btn:hover {
	background-color: var(--cw-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(12, 116, 137, 0.3);
}

.cw-booking-card__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.cw-booking-card__btn.loading {
	position: relative;
	color: transparent;
}

.cw-booking-card__btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: cw-spin 0.6s linear infinite;
}

@keyframes cw-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ============================================================
   ENQUIRY CARD
   ============================================================ */
.cw-enquiry-card {
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-top: none;
	border-radius: 0 0 var(--cw-radius-lg) var(--cw-radius-lg);
	padding: 28px;
	box-shadow: var(--cw-shadow);
}

.cw-enquiry-card__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--cw-dark);
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cw-border);
}

.cw-enquiry-card__btn {
	display: block;
	width: 100%;
	padding: 14px;
	background-color: var(--cw-primary);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	border: none;
	border-radius: var(--cw-radius);
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--cw-font);
	margin-top: 6px;
}

.cw-enquiry-card__btn:hover {
	background-color: var(--cw-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(12, 116, 137, 0.3);
}

.cw-enquiry-card__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.cw-enquiry-card__btn.loading {
	position: relative;
	color: transparent;
}

.cw-enquiry-card__btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: cw-spin 0.6s linear infinite;
}

/* Enquiry Messages */
.cw-enquiry-msg {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: var(--cw-radius);
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

.cw-enquiry-msg--success {
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.cw-enquiry-msg--error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.cw-product-layout {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 40px 30px 60px;
	}

	.cw-sidebar-sticky {
		position: static;
	}

	.cw-hero__content {
		padding: 0 30px;
	}
}

@media (max-width: 768px) {
	.cw-hero {
		min-height: 280px;
		padding: 40px 0 36px;
	}

	.cw-hero__title {
		font-size: 34px;
	}

	.cw-hero__content {
		padding: 0 20px;
	}

	.cw-product-layout {
		padding: 30px 20px 50px;
	}

	.cw-incexc-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.cw-section__title {
		font-size: 22px;
	}

	.cw-booking-card,
	.cw-enquiry-card {
		padding: 22px;
	}
}

@media (max-width: 480px) {
	.cw-hero__title {
		font-size: 28px;
	}

	.cw-hero__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cw-booking-price-row {
		flex-direction: column;
		text-align: center;
		gap: 6px;
	}
}

/* ============================================================
   WC NOTICE OVERRIDES
   ============================================================ */
.cw-single-product .woocommerce-notices-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 40px 0;
}