/**
 * Equipment Rental Page Styles
 */

/* HERO */
.equip-hero {
	padding: 10rem 2rem 6rem;
	text-align: center;
	border-bottom: 1px solid var(--accent-line);
}

.equip-title {
	font-family: var(--heading-font);
	font-size: clamp(4rem, 10vw, 8rem);
	text-transform: uppercase;
	font-weight: 800;
	line-height: 0.9;
	color: var(--text-color);
}

.equip-sub {
	font-family: var(--primary-font);
	color: var(--gray-400);
	margin-top: 1.5rem;
	letter-spacing: 1px;
}

/* 7.1 STICKY TABS */
.category-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 5, 5, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--accent-line);
	display: flex;
	justify-content: center;
	gap: 1rem;
	padding: 1rem;
	overflow-x: auto;
}

.cat-btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--gray-400);
	padding: 0.5rem 1.5rem;
	font-family: var(--primary-font);
	text-transform: uppercase;
	font-size: 0.8rem;
	cursor: pointer;
	border-radius: 50px;
	transition: all 0.3s;
	white-space: nowrap;
}

.cat-btn.active,
.cat-btn:hover {
	color: var(--black);
	background: var(--white);
}

/* 7.2 GRID */
.inventory-section {
	padding: 4rem 2rem;
	min-height: 60vh;
}

.inventory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	max-width: 1400px;
	margin: 0 auto;
}

/* GEAR CARD */
.gear-card {
	background: var(--gray-700);
	border: 1px solid var(--accent-line);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.3s;
}

.gear-card:hover {
	transform: translateY(-5px);
	border-color: var(--gray-500);
}

.availability-dot {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	z-index: 10;
}

.availability-dot.available {
	background: #4CAF50;
	box-shadow: 0 0 5px #4CAF50;
}

.availability-dot.limited {
	background: #FFC107;
}

.availability-dot.unavailable {
	background: #f44336;
	box-shadow: 0 0 5px #f44336;
}

.gear-img {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	border-bottom: 1px solid var(--accent-line);
	overflow: hidden;
}

.gear-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.3s;
}

.gear-card:hover .gear-img img {
	filter: grayscale(0%);
}

.gear-img svg {
	width: 80px;
	stroke: var(--gray-400);
	fill: none;
	stroke-width: 1.5;
}

.gear-info {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gear-header h3 {
	font-family: var(--heading-font);
	font-size: 1.2rem;
	margin-bottom: 0.3rem;
	color: var(--white);
}

.gear-spec {
	font-family: var(--primary-font);
	font-size: 0.75rem;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gear-pricing {
	margin: 1.5rem 0;
	display: flex;
	justify-content: space-between;
}

.price-row {
	display: flex;
	flex-direction: column;
	font-family: var(--primary-font);
}

.price-row.dimmed {
	opacity: 0.5;
}

.price-row span {
	font-size: 0.7rem;
	color: var(--gray-400);
	text-transform: uppercase;
}

.price-row .amount {
	font-size: 1.1rem;
	color: var(--white);
	font-weight: 700;
}

.add-btn {
	margin-top: auto;
	width: 100%;
	padding: 1rem;
	background: transparent;
	border: 1px solid var(--accent-line);
	color: var(--white);
	font-family: var(--primary-font);
	font-size: 0.8rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s;
	text-transform: uppercase;
}

.add-btn:hover:not(:disabled) {
	background: var(--white);
	color: var(--black);
}

.add-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.add-btn .plus {
	font-size: 1.2rem;
	font-weight: 300;
}

/* 7.3 CART DRAWER */
.cart-drawer {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100vh;
	background: var(--bg-color);
	border-left: 1px solid var(--accent-line);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
	right: 0;
}

.cart-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	z-index: 199;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.cart-drawer-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.cart-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--accent-line);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-header h3 {
	font-family: var(--heading-font);
	text-transform: uppercase;
	color: var(--white);
}

.close-cart {
	background: none;
	border: none;
	color: var(--white);
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
}

.close-cart:hover {
	transform: rotate(90deg);
}

.cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.empty-msg {
	font-family: var(--primary-font);
	color: var(--gray-500);
	text-align: center;
	margin-top: 2rem;
}

.cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	border-bottom: 1px dashed var(--accent-line);
	padding-bottom: 1rem;
}

.ci-info h4 {
	font-family: var(--primary-font);
	font-size: 0.9rem;
	margin-bottom: 4px;
	color: var(--white);
}

.ci-price {
	color: var(--gray-400);
	font-size: 0.8rem;
	font-family: var(--primary-font);
}

.ci-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--accent-line);
	border-radius: 4px;
	padding: 0.25rem;
}

.ci-controls button {
	background: none;
	border: none;
	color: var(--white);
	width: 25px;
	height: 25px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	transition: background 0.2s;
}

.ci-controls button:hover {
	background: rgba(255, 255, 255, 0.1);
}

.ci-controls span {
	font-family: var(--primary-font);
	font-size: 0.9rem;
	color: var(--white);
	min-width: 20px;
	text-align: center;
}

.cart-footer {
	border-top: 1px solid var(--accent-line);
	padding: 1.5rem;
	background: var(--gray-700);
}

.checkout-btn {
	width: 100%;
	padding: 1rem;
	background: var(--white);
	color: var(--black);
	font-family: var(--heading-font);
	font-weight: 800;
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	transition: transform 0.2s;
}

.checkout-btn:hover:not(:disabled) {
	transform: translateY(-2px);
}

.checkout-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* FLOATING TRIGGER */
.cart-trigger {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 60px;
	height: 60px;
	background: var(--white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 100;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s;
}

.cart-trigger:hover {
	transform: scale(1.1);
}

.cart-trigger svg {
	width: 24px;
	stroke: var(--black);
	fill: none;
	stroke-width: 2;
}

.cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--primary-color);
	color: var(--black);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-family: var(--primary-font);
}

/* 7.4 POLICIES */
.policies-accordions {
	max-width: 800px;
	margin: 4rem auto;
	padding: 0 2rem;
}

.policy-header {
	font-family: var(--heading-font);
	text-align: center;
	margin-bottom: 2rem;
	color: var(--white);
	font-size: 2rem;
	text-transform: uppercase;
}

.acc-item {
	border-bottom: 1px solid var(--accent-line);
	padding: 1.5rem 0;
}

.acc-head {
	font-family: var(--primary-font);
	font-weight: 600;
	cursor: default;
	color: var(--white);
	font-size: 1rem;
}

.acc-body {
	font-family: var(--primary-font);
	color: var(--gray-400);
	margin-top: 0.5rem;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* CHECKOUT SECTION */
.equip-checkout-section {
	padding: 4rem 2rem;
	border-top: 1px solid var(--accent-line);
}

.checkout-container {
	max-width: 1000px;
	margin: 0 auto;
}

.final-summary-card {
	background: var(--gray-700);
	padding: 2rem;
	border: 1px solid var(--accent-line);
}

.receipt-header {
	font-family: var(--heading-font);
	font-size: 1.5rem;
	border-bottom: 1px solid var(--accent-line);
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
	color: var(--white);
}

.receipt-details {
	margin-bottom: 2rem;
}

.line-item {
	display: flex;
	justify-content: space-between;
	font-family: var(--primary-font);
	margin-bottom: 1rem;
	color: var(--gray-200);
}

.line-item.total {
	border-top: 1px dashed var(--gray-500);
	padding-top: 1rem;
	font-size: 1.2rem;
	color: var(--white);
	font-weight: 700;
	margin-top: 1rem;
	margin-bottom: 2rem;
}

.line-item.deposit {
	color: var(--star-color, #C9A66B);
	font-size: 0.9rem;
}

.divider-dashed {
	border-bottom: 1px dashed var(--gray-600);
	margin: 1rem 0;
}

/* Payment Form Styles (consistent with hire/rental) */
.payment-form {
	margin-top: 2rem;
}

.payment-title {
	font-family: var(--heading-font);
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}

.input-group {
	margin-bottom: 1.5rem;
}

.input-group label {
	display: block;
	font-family: var(--primary-font);
	font-size: 0.9rem;
	color: var(--gray-300);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.input-group input {
	width: 100%;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--accent-line);
	color: var(--text-color);
	font-family: var(--primary-font);
	font-size: 1rem;
	transition: border-color 0.3s;
}

.input-group input:focus {
	outline: none;
	border-color: var(--primary-color);
}

.input-group input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
	opacity: 0.8;
}

.input-group select {
	width: 100%;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--accent-line);
	color: var(--text-color);
	font-family: var(--primary-font);
	font-size: 1rem;
	transition: border-color 0.3s;
	cursor: pointer;
}

.input-group select:focus {
	outline: none;
	border-color: var(--primary-color);
}

.input-group select option {
	background: var(--gray-700);
	color: var(--white);
}

.payment-methods {
	display: flex;
	gap: 1rem;
	margin: 1.5rem 0;
	flex-wrap: wrap;
}

.method-btn {
	flex: 1;
	min-width: 120px;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--accent-line);
	color: var(--text-color);
	font-family: var(--primary-font);
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.method-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--primary-color);
}

.method-btn svg {
	width: 50px;
	height: 50px;
	fill: currentColor;
}

.klarna-btn {
	background: rgba(255, 255, 255, 0.1);
	font-weight: 600;
}

.pay-btn-large {
	width: 100%;
	padding: 1.5rem;
	background: var(--white);
	color: var(--black);
	font-family: var(--heading-font);
	font-weight: 800;
	border: none;
	cursor: pointer;
	margin-top: 1.5rem;
	transition: transform 0.2s;
	text-transform: uppercase;
}

.pay-btn-large:hover:not(:disabled) {
	transform: translateY(-2px);
}

.pay-btn-large:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.terms-text {
	font-family: var(--primary-font);
	font-size: 0.85rem;
	color: var(--gray-400);
	text-align: center;
	margin-top: 1rem;
}

.terms-text a {
	color: var(--primary-color);
	text-decoration: none;
}

/* BOOKING SELECTION MODAL */
.booking-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.booking-modal-overlay.active {
	display: flex;
}

.booking-modal {
	background: var(--gray-700);
	border: 1px solid var(--accent-line);
	border-radius: 8px;
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.booking-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid var(--accent-line);
}

.booking-modal-header h3 {
	margin: 0;
	font-family: var(--heading-font);
	font-size: 1.5rem;
	text-transform: uppercase;
	color: var(--text-color);
}

.booking-modal-close {
	background: none;
	border: none;
	color: var(--gray-400);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
}

.booking-modal-close:hover {
	color: var(--white);
}

.booking-modal-body {
	padding: 1.5rem;
}

.booking-option {
	margin-bottom: 1.5rem;
}

.booking-option label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	gap: 1rem;
	padding: 1rem;
	border: 2px solid var(--accent-line);
	border-radius: 6px;
	transition: all 0.3s;
}

.booking-option input[type="radio"] {
	margin-top: 0.25rem;
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: var(--primary-color);
}

.booking-option input[type="radio"]:checked + .booking-option-label {
	color: var(--primary-color);
}

.booking-option label:has(input:checked) {
	border-color: var(--primary-color);
	background: rgba(255, 255, 255, 0.05);
}

.booking-option-label {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.booking-option-label strong {
	font-family: var(--heading-font);
	font-size: 1.1rem;
	text-transform: uppercase;
	color: var(--text-color);
}

.booking-option-price {
	font-family: var(--primary-font);
	color: var(--gray-400);
	font-size: 0.9rem;
}

.hours-selection {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--accent-line);
}

.hours-selection label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--primary-font);
	color: var(--gray-300);
	font-size: 0.9rem;
}

.hours-selection input[type="number"] {
	width: 100%;
	padding: 0.75rem;
	background: var(--gray-800);
	border: 1px solid var(--accent-line);
	border-radius: 4px;
	color: var(--white);
	font-family: var(--primary-font);
	font-size: 1rem;
}

.hours-selection input[type="number"]:focus {
	outline: none;
	border-color: var(--primary-color);
}

.hourly-total {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--accent-line);
	font-family: var(--heading-font);
	color: var(--text-color);
	font-size: 1.2rem;
}

.booking-modal-footer {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	border-top: 1px solid var(--accent-line);
}

.booking-modal-cancel,
.booking-modal-confirm {
	flex: 1;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	font-family: var(--heading-font);
	font-size: 0.9rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s;
}

.booking-modal-cancel {
	background: transparent;
	border: 1px solid var(--accent-line);
	color: var(--gray-400);
}

.booking-modal-cancel:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--white);
}

.booking-modal-confirm {
	background: var(--white);
	color: var(--black);
	font-weight: 600;
}

.booking-modal-confirm:hover:not(:disabled) {
	background: var(--gray-200);
	transform: translateY(-2px);
}

.booking-modal-confirm:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.cart-drawer {
		width: 100%;
		right: -100%;
	}

	.inventory-grid {
		grid-template-columns: 1fr;
	}

	.equip-hero {
		padding: 6rem 1rem 4rem;
	}

	.category-bar {
		padding: 1rem 0.5rem;
		justify-content: flex-start;
	}

	.cat-btn {
		padding: 0.5rem 1rem;
		font-size: 0.75rem;
	}

	.policies-accordions {
		padding: 0 1rem;
	}

	.cart-trigger {
		width: 50px;
		height: 50px;
		bottom: 1rem;
		right: 1rem;
	}

	.equip-checkout-section {
		padding: 2rem 1rem;
	}

	.final-summary-card {
		padding: 1.5rem;
	}
}

/* CONFIRMATION MODAL */
.confirmation-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	z-index: 999;
	display: none;
	justify-content: center;
	align-items: center;
}

.conf-content {
	background: var(--bg-color);
	border: 1px solid var(--white);
	padding: 3rem;
	max-width: 500px;
	width: 90%;
	text-align: center;
}

.conf-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--white);
	color: var(--black);
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 1.5rem;
}

.conf-icon svg {
	width: 30px;
	stroke: currentColor;
	stroke-width: 3;
	fill: none;
}

.email-preview {
	background: var(--gray-100);
	color: var(--black);
	padding: 1.5rem;
	text-align: left;
	margin: 1.5rem 0;
	font-family: var(--primary-font);
	font-size: 0.9rem;
}

.close-conf {
	background: transparent;
	border: 1px solid var(--gray-500);
	color: var(--white);
	padding: 1rem 2rem;
	cursor: pointer;
	font-family: var(--primary-font);
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s;
}

.close-conf:hover {
	background: var(--white);
	color: var(--black);
}
