/**
 * Photographer Platform - Public Styles
 */

.photographer-platform {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Gallery Grid */
.pp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.pp-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	text-decoration: none;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
}

.pp-gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pp-gallery-item:hover .pp-gallery-image,
.pp-gallery-item:focus .pp-gallery-image {
	transform: scale(1.05);
}

.pp-gallery-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 16px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pp-gallery-item:hover .pp-gallery-item-overlay,
.pp-gallery-item:focus .pp-gallery-item-overlay {
	opacity: 1;
}

.pp-gallery-item-title {
	font-size: 14px;
	font-weight: 500;
}

/* Gallery Pagination */
.pp-gallery-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.pp-page-link,
.pp-page-current {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
}

.pp-page-link {
	background: #f0f0f0;
	color: #333;
}

.pp-page-link:hover {
	background: #ddd;
	color: #111;
}

.pp-page-current {
	background: #333;
	color: #fff;
}

.pp-gallery-empty {
	text-align: center;
	color: #666;
	padding: 60px 20px;
	font-size: 16px;
}

/* Photo Viewer */
.pp-back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}

.pp-back-link::before {
	content: "\2190 ";
}

.pp-back-link:hover {
	color: #000;
}

.pp-photo-viewer-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.pp-photo-viewer-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.pp-photo-title {
	margin: 0 0 12px;
	font-size: 24px;
}

.pp-photo-description {
	margin-bottom: 20px;
	color: #444;
	line-height: 1.6;
}

.pp-photo-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	margin: 0;
	font-size: 14px;
}

.pp-photo-meta dt {
	font-weight: 600;
	color: #555;
}

.pp-photo-meta dd {
	margin: 0;
	color: #333;
}

/* Responsive */
@media (min-width: 768px) {
	.pp-photo-viewer-content {
		grid-template-columns: 2fr 1fr;
	}

	.pp-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	}
}

/* Booking Form */
.pp-booking-form h2 {
	margin: 0 0 8px;
	font-size: 24px;
}

.pp-booking-intro {
	color: #666;
	margin-bottom: 24px;
}

.pp-form {
	max-width: 600px;
}

.pp-form-row {
	margin-bottom: 16px;
}

.pp-form-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.pp-required {
	color: #c00;
}

.pp-form-row input[type="text"],
.pp-form-row input[type="email"],
.pp-form-row input[type="tel"],
.pp-form-row input[type="date"],
.pp-form-row select,
.pp-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.pp-form-row input:focus,
.pp-form-row select:focus,
.pp-form-row textarea:focus {
	border-color: #333;
	outline: none;
}

.pp-button {
	display: inline-block;
	padding: 12px 28px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pp-button:hover {
	background: #111;
}

.pp-button:disabled {
	background: #999;
	cursor: not-allowed;
}

.pp-booking-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.pp-booking-message-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.pp-booking-message-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Product Selector / Purchase Options */
.pp-photo-purchase {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.pp-photo-purchase h3 {
	margin: 0 0 12px;
	font-size: 18px;
}

.pp-product-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pp-product-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.pp-product-option-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pp-product-option-name {
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.pp-product-option-price {
	font-size: 14px;
	color: #555;
}

.pp-button-small {
	padding: 8px 18px;
	font-size: 13px;
}

.pp-out-of-stock {
	font-size: 13px;
	color: #999;
	font-style: italic;
}

.pp-cart-message {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.pp-cart-message-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.pp-cart-message-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Cart */
.pp-cart h2 {
	margin: 0 0 16px;
	font-size: 24px;
}

.pp-cart-empty {
	text-align: center;
	color: #666;
	padding: 40px 20px;
	font-size: 16px;
}

.pp-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.pp-cart-table thead th {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 2px solid #e5e5e5;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
}

.pp-cart-table tbody td {
	padding: 12px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.pp-cart-product-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pp-cart-product-thumb img {
	border-radius: 4px;
}

.pp-cart-product-name {
	font-weight: 600;
	font-size: 14px;
}

.pp-cart-qty-input {
	width: 60px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
}

.pp-cart-remove-btn {
	background: none;
	border: none;
	font-size: 20px;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
}

.pp-cart-remove-btn:hover {
	color: #c00;
}

.pp-cart-col-remove {
	width: 40px;
	text-align: center;
}

/* Cart Totals */
.pp-cart-totals {
	max-width: 350px;
	margin-left: auto;
	margin-bottom: 24px;
}

.pp-cart-totals-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid #f0f0f0;
}

.pp-cart-totals-total {
	font-weight: 700;
	font-size: 16px;
	border-bottom: 2px solid #333;
}

.pp-cart-totals-label {
	color: #555;
}

/* Cart Actions */
.pp-cart-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.pp-button-secondary {
	background: #f0f0f0;
	color: #333;
}

.pp-button-secondary:hover {
	background: #ddd;
	color: #111;
}

/* Checkout */
.pp-checkout h2 {
	margin: 0 0 16px;
	font-size: 24px;
}

.pp-checkout-woocommerce {
	margin-top: 16px;
}

/* Responsive */
@media (max-width: 600px) {
	.pp-cart-table thead {
		display: none;
	}

	.pp-cart-table tbody tr {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid #e5e5e5;
	}

	.pp-cart-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 6px 0;
		border-bottom: none;
	}

	.pp-cart-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 13px;
		color: #555;
	}

	.pp-cart-col-product {
		flex-direction: column;
		align-items: flex-start;
	}

	.pp-cart-col-product::before {
		display: none;
	}

	.pp-cart-actions {
		flex-direction: column;
	}

	.pp-cart-actions .pp-button {
		width: 100%;
		text-align: center;
	}

	.pp-cart-totals {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.pp-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 8px;
	}

	.pp-product-option {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}
