/* =============================================================================
   Peculets Marketplace – Frontend Styles
   ============================================================================= */

/* =============================================================================
   MY ACCOUNT – Layout
   ============================================================================= */

.woocommerce-account .woocommerce {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 220px;
	flex-shrink: 0;
	background: #f9f9f9;
	border: 1px solid #ebebeb;
	border-radius: 8px;
	overflow: hidden;
	position: sticky;
	top: 24px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid #ebebeb;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 18px;
	text-decoration: none;
	color: #444;
	font-size: 14px;
	transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: #f0f0f0;
	color: #1d2327;
	padding-left: 22px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--active a {
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	padding-left: 18px;
}

/* Logout-Link */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #c0392b;
	font-size: 13px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fdf0ef;
	color: #922b21;
}

/* Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1;
	min-width: 0;
}

/* =============================================================================
   MY ACCOUNT – Dashboard
   ============================================================================= */

.pe-mkt-dashboard {
	margin-top: 24px;
}

.pe-mkt-dashboard__intro {
	color: #555;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 28px;
}

.pe-mkt-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.pe-mkt-dashboard__card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pe-mkt-dashboard__card:hover {
	border-color: #1d2327;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	color: inherit;
}

.pe-mkt-dashboard__card-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background: #f4f4f4;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d2327;
	transition: background 0.2s, color 0.2s;
}

.pe-mkt-dashboard__card:hover .pe-mkt-dashboard__card-icon {
	background: #1d2327;
	color: #fff;
}

.pe-mkt-dashboard__card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pe-mkt-dashboard__card-body strong {
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.2;
}

.pe-mkt-dashboard__card-body span {
	font-size: 13px;
	color: #777;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.pe-mkt-dashboard__cards {
		grid-template-columns: 1fr;
	}
}

/* =============================================================================
   MY ACCOUNT – Abschnitte
   ============================================================================= */

/* Section-Trenner */
.pe-mkt-my-sammlung__wallet,
.pe-mkt-my-sammlung__royalties,
.pe-mkt-my-sammlung__artworks,
.pe-mkt-my-kunstwerke,
.pe-mkt-my-collection__wallet,
.pe-mkt-my-collection__royalties,
.pe-mkt-my-collection__artworks {
	margin-bottom: 40px;
}

/* Section-Überschriften */
.pe-mkt-my-sammlung__wallet h3,
.pe-mkt-my-sammlung__royalties h3,
.pe-mkt-my-sammlung__artworks h3,
.pe-mkt-my-kunstwerke h3 {
	font-size: 1em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ebebeb;
}

/* Wallet-Box */
.pe-mkt-my-sammlung__wallet code {
	display: inline-block;
	background: #f4f4f4;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	word-break: break-all;
	color: #444;
}

/* Royalties-Box */
.pe-mkt-my-sammlung__royalties p {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f0faf4;
	border: 1px solid #c3e6cb;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 0;
}

.pe-mkt-my-sammlung__royalties strong {
	font-size: 1.3em;
	color: #1a6b3c;
}

/* =============================================================================
   MY ACCOUNT – Künstlerprofil-Formular
   ============================================================================= */

.pe-mkt-profil-form {
	max-width: 600px;
}

.pe-mkt-profil-form p {
	margin-bottom: 24px;
}

.pe-mkt-profil-form label strong {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: #333;
}

.pe-mkt-profil-form textarea {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.6;
	resize: vertical;
	transition: border-color 0.15s;
}

.pe-mkt-profil-form textarea:focus {
	border-color: #1d2327;
	outline: none;
}

.pe-mkt-profil-form input[type="file"] {
	display: block;
	margin: 6px 0;
	font-size: 13px;
}

.pe-mkt-profil-form .description {
	font-size: 12px;
	color: #999;
	display: block;
	margin-top: 4px;
}

.pe-mkt-profil-form .woocommerce-Button,
.pe-mkt-profil-form button[type="submit"] {
	margin-top: 4px;
}

/* =============================================================================
   BADGES (Artwork, NFT, Status)
   ============================================================================= */

.pe-mkt-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 16px;
}

.pe-mkt-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.pe-mkt-badge--id {
	background: #f0f0f1;
	color: #1d2327;
	font-family: monospace;
}

.pe-mkt-badge--verified {
	background: #d1e7dd;
	color: #0a3622;
}

.pe-mkt-badge--gallery {
	background: #cfe2ff;
	color: #084298;
}

/* Preis auf Anfrage */
.pe-mkt-price-on-request {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #084298;
	background: #cfe2ff;
	padding: 2px 10px;
	border-radius: 12px;
	margin-top: auto;
}

/* =============================================================================
   PRODUKT-GRID (My Account + Künstlerseite)
   ============================================================================= */

.pe-mkt-artwork-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.pe-mkt-artwork-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.pe-mkt-artwork-grid__item a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
	height: 100%;
	background: #fff;
}

.pe-mkt-artwork-grid__item a:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}

.pe-mkt-artwork-grid__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.pe-mkt-artwork-grid__info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13px;
	flex: 1;
}

.pe-mkt-artwork-grid__info strong,
.pe-mkt-artwork-grid__info .woocommerce-loop-product__title {
	font-size: 14px;
	line-height: 1.3;
	margin: 0;
}

.pe-mkt-artwork-id {
	font-family: monospace;
	font-size: 11px;
	color: #bbb;
}

.pe-mkt-artwork-grid__info .price {
	margin-top: auto;
	padding-top: 8px;
	font-weight: 600;
	color: #1d2327;
}

/* =============================================================================
   KÜNSTLERPROFIL (Archivseite /author/...)
   ============================================================================= */

.pe-mkt-artist-profile {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	margin-bottom: 48px;
	padding: 32px;
	background: #fafafa;
	border-radius: 8px;
	border: 1px solid #ebebeb;
}

.pe-mkt-artist-profile__photo {
	flex-shrink: 0;
}

.pe-mkt-artist-profile__photo img,
.pe-mkt-artist-photo {
	display: block;
	border-radius: 50%;
	width: 140px;
	height: 140px;
	object-fit: cover;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pe-mkt-artist-profile__info {
	flex: 1;
	min-width: 0;
}

.pe-mkt-artist-profile__name {
	margin: 0 0 12px;
	font-size: 1.6em;
	line-height: 1.2;
}

.pe-mkt-artist-profile__bio {
	color: #444;
	line-height: 1.7;
	margin: 0;
}

.pe-mkt-artist-profile__bio--empty {
	color: #999;
	font-style: italic;
}

/* Künstler-Produktgalerie */
.pe-mkt-artist-products {
	margin-top: 8px;
}

.pe-mkt-artist-products__title {
	font-size: 1.1em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ebebeb;
}

/* =============================================================================
   NFT PANEL (Produktseite)
   ============================================================================= */

.pe-mkt-nft-panel {
	margin: 32px 0;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
}

.pe-mkt-nft-panel h3 {
	margin-top: 0;
}

.pe-mkt-data-table {
	border-collapse: collapse;
	width: 100%;
}

.pe-mkt-data-table th,
.pe-mkt-data-table td {
	padding: 6px 10px;
	text-align: left;
	border-bottom: 1px solid #ebebeb;
	font-size: 13px;
}

.pe-mkt-data-table th {
	color: #666;
	font-weight: 600;
	width: 160px;
	white-space: nowrap;
}

/* =============================================================================
   PROVENIENZ (Produktseite)
   ============================================================================= */

.pe-mkt-provenance {
	margin: 32px 0;
}

.pe-mkt-provenance__list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 3px solid #e0e0e0;
	padding-left: 20px;
}

.pe-mkt-provenance__item {
	position: relative;
	padding: 8px 0;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pe-mkt-provenance__item::before {
	content: '';
	position: absolute;
	left: -26px;
	top: 14px;
	width: 10px;
	height: 10px;
	background: #007cba;
	border-radius: 50%;
}

.pe-mkt-provenance__date  { color: #666; min-width: 100px; }
.pe-mkt-provenance__type  { font-weight: 600; }
.pe-mkt-provenance__price { color: #007cba; }

.pe-mkt-provenance__tx {
	font-size: 11px;
	padding: 1px 6px;
	background: #e0e0e0;
	border-radius: 3px;
	text-decoration: none;
	color: #444;
}

.pe-mkt-provenance__note {
	font-size: 12px;
	color: #888;
	margin-top: 12px;
}

/* =============================================================================
   GALERIE-MODUS FORMULAR (Produktseite)
   ============================================================================= */

.pe-mkt-gallery-offer {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.pe-mkt-gallery-offer h4 { margin-top: 0; }

.pe-mkt-gallery-offer__form p         { margin-bottom: 12px; }
.pe-mkt-gallery-offer__form label     { display: block; margin-bottom: 4px; font-weight: 600; }
.pe-mkt-gallery-offer__form .input-text { width: 100%; max-width: 400px; }

.pe-mkt-gallery-offer__feedback {
	margin-top: 8px;
	padding: 8px;
	border-radius: 3px;
	display: none;
}

.pe-mkt-gallery-offer__feedback.success { background: #d1e7dd; color: #0a3622; display: block; }
.pe-mkt-gallery-offer__feedback.error   { background: #f8d7da; color: #842029; display: block; }

/* =============================================================================
   CHECKOUT
   ============================================================================= */

.pe-mkt-checkout-section {
	margin: 24px 0;
	padding: 16px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.pe-mkt-checkout-section h3 { margin-top: 0; }

/* =============================================================================
   PIN-GATED PRODUCT COMMENTS (Produktseite)
   ============================================================================= */

.pe-mkt-product-comments {
	margin: 32px 0;
}

.pe-mkt-product-comments h3 {
	margin-top: 0;
}

.pe-mkt-comments-intro {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.pe-mkt-comments-empty {
	color: #888;
	font-style: italic;
	font-size: 14px;
}

.pe-mkt-comments-list {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.pe-mkt-comment {
	padding: 14px 0;
	border-bottom: 1px solid #ebebeb;
}

.pe-mkt-comment:last-child {
	border-bottom: none;
}

.pe-mkt-comment__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.pe-mkt-comment__avatar {
	border-radius: 50%;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.pe-mkt-comment__author {
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

.pe-mkt-comment__date {
	font-size: 12px;
	color: #999;
	margin-left: auto;
}

.pe-mkt-comment__body {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
	padding-left: 44px;
}

.pe-mkt-comment-form-wrap {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ebebeb;
	width: 100%;
}

.pe-mkt-comment-form {
	width: 100%;
}

.pe-mkt-comment-textarea {
	width: 100%;
	min-height: 80px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.6;
	resize: vertical;
	transition: border-color 0.15s;
	box-sizing: border-box;
	display: block;
	margin-bottom: 10px;
}

.pe-mkt-comment-textarea:focus {
	border-color: #1d2327;
	outline: none;
}

.pe-mkt-comment-form__footer {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pe-mkt-comment-feedback {
	font-size: 13px;
}

.pe-mkt-comment-feedback.error {
	color: #842029;
}

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

@media (max-width: 860px) {
	.woocommerce-account .woocommerce {
		flex-direction: column;
		gap: 24px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		width: 100%;
		position: static;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: wrap;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		border-bottom: none;
		border-right: 1px solid #ebebeb;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a {
		padding: 9px 14px;
		font-size: 13px;
		white-space: nowrap;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
		padding-left: 14px;
	}
}

@media (max-width: 640px) {
	.pe-mkt-artist-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 16px;
		gap: 20px;
	}

	.pe-mkt-artist-profile__name {
		font-size: 1.3em;
	}

	.pe-mkt-artwork-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.pe-mkt-profil-form {
		max-width: 100%;
	}
}
