/* =============================================================================
   Florist B2B Shop — Plugin-specific styles
   Prefix: #fbs-shop (ID) / #fbs-cart-overlay / #fbs-order-sheet
   ID selectors beat Avada's class-based styles without !important.
   Mobile-first: 320px → 768px → 1024px → 1400px
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Shop wrapper & product grid
   ----------------------------------------------------------------------------- */
#fbs-shop {
	width: 100%;
	box-sizing: border-box;
}

#fbs-shop .fbs-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding: 1rem 0;
}

#fbs-shop .fbs-shop__empty {
	text-align: center;
	padding: 2rem;
	color: #666;
}

/* -----------------------------------------------------------------------------
   Filter bar
   ----------------------------------------------------------------------------- */
#fbs-shop .fbs-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem 1rem;
	padding: 0.75rem 0 0.5rem;
}

#fbs-shop .fbs-filter-bar:empty {
	display: none;
}

#fbs-shop .fbs-filter-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

#fbs-shop .fbs-filter-group__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #555;
	white-space: nowrap;
	padding-right: 0.15rem;
}

#fbs-shop .fbs-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.65rem;
	border: 1.5px solid #ddd;
	border-radius: 99px;
	background: #fff;
	font-size: 0.78rem;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	line-height: 1.4;
	transition: border-color 0.12s, background 0.12s, color 0.12s;
	text-decoration: none;
}

#fbs-shop .fbs-filter-chip:hover {
	border-color: #2c6e49;
	color: #2c6e49;
}

#fbs-shop .fbs-filter-chip[aria-pressed="true"] {
	border-color: #2c6e49;
	background: #e8f5ee;
	color: #2c6e49;
	font-weight: 600;
}

#fbs-shop .fbs-filter-chip__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

#fbs-shop .fbs-filter-chip--red      .fbs-filter-chip__dot { background: #cc2200; }
#fbs-shop .fbs-filter-chip--yellow   .fbs-filter-chip__dot { background: #f5c800; }
#fbs-shop .fbs-filter-chip--hot-pink .fbs-filter-chip__dot { background: #e8006f; }
#fbs-shop .fbs-filter-chip--pink     .fbs-filter-chip__dot { background: #f4a0b0; }
#fbs-shop .fbs-filter-chip--lavender .fbs-filter-chip__dot { background: #b09cc8; }
#fbs-shop .fbs-filter-chip--white    .fbs-filter-chip__dot { background: #fff; border: 1px solid #bbb; }
#fbs-shop .fbs-filter-chip--bicolor  .fbs-filter-chip__dot { background: linear-gradient(135deg, #cc2200 50%, #f5c800 50%); }
#fbs-shop .fbs-filter-chip--peach    .fbs-filter-chip__dot { background: #ffb385; }
#fbs-shop .fbs-filter-chip--green    .fbs-filter-chip__dot { background: #4caf50; }
#fbs-shop .fbs-filter-chip--orange   .fbs-filter-chip__dot { background: #f57c00; }
#fbs-shop .fbs-filter-chip--sand     .fbs-filter-chip__dot { background: #c8a97e; }

#fbs-shop .fbs-filter-search__input {
	padding: 0.28rem 0.65rem;
	border: 1.5px solid #ddd;
	border-radius: 99px;
	font-size: 0.78rem;
	color: #333;
	background: #fff;
	outline: none;
	width: 160px;
	transition: border-color 0.12s;
}

#fbs-shop .fbs-filter-search__input:focus {
	border-color: #2c6e49;
}

#fbs-shop .fbs-filter-search__input::placeholder {
	color: #aaa;
}

#fbs-shop .fbs-filter-reset {
	background: none;
	border: none;
	font-size: 0.78rem;
	color: #999;
	cursor: pointer;
	text-decoration: underline;
	padding: 0.28rem 0;
	align-self: center;
	transition: color 0.12s;
}

#fbs-shop .fbs-filter-reset:hover {
	color: #c62828;
}

/* -----------------------------------------------------------------------------
   Product card
   ----------------------------------------------------------------------------- */
#fbs-shop .fbs-product-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

#fbs-shop .fbs-product-card:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

#fbs-shop .fbs-product-card__image {
	position: relative;
}

#fbs-shop .fbs-product-card__image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
}

#fbs-shop .fbs-product-card__body {
	padding: 0.75rem 1rem;
	flex: 1;
}

#fbs-shop .fbs-product-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.3;
	color: #1a1a1a;
}

#fbs-shop .fbs-product-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
}

#fbs-shop .fbs-product-card__meta-item {
	font-size: 0.82rem;
	color: #555;
	padding: 0.1rem 0;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

#fbs-shop .fbs-product-card__meta-item--delivery,
#fbs-shop .fbs-product-card__meta-item--deadline {
	font-size: 0.78rem;
	color: #888;
}

/* Stock badge */
#fbs-shop .fbs-stock-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	margin: 0 0 0.5rem;
}

#fbs-shop .fbs-stock-badge--in-stock {
	color: #2c6e49;
	background: #e8f5ee;
}

#fbs-shop .fbs-stock-badge--low-stock {
	color: #a85c00;
	background: #fff3e0;
}

#fbs-shop .fbs-stock-badge--out-of-stock {
	color: #c62828;
	background: #fdecea;
}

/* Color pill (image overlay) */
#fbs-shop .fbs-color-pill {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 99px;
	padding: 0.2rem 0.55rem 0.2rem 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #1a1a1a;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	line-height: 1;
}

#fbs-shop .fbs-color-pill__dot {
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex-shrink: 0;
}

#fbs-shop .fbs-color-pill--red          .fbs-color-pill__dot { background: #cc2200; }
#fbs-shop .fbs-color-pill--yellow       .fbs-color-pill__dot { background: #f5c800; }
#fbs-shop .fbs-color-pill--hot-pink     .fbs-color-pill__dot { background: #e8006f; }
#fbs-shop .fbs-color-pill--pink         .fbs-color-pill__dot { background: #f4a0b0; }
#fbs-shop .fbs-color-pill--lavender     .fbs-color-pill__dot { background: #b09cc8; }
#fbs-shop .fbs-color-pill--white        .fbs-color-pill__dot { background: #fff; border: 1px solid #bbb; }
#fbs-shop .fbs-color-pill--bicolor      .fbs-color-pill__dot { background: linear-gradient(135deg, #cc2200 50%, #f5c800 50%); }
#fbs-shop .fbs-color-pill--peach        .fbs-color-pill__dot { background: #ffb385; }
#fbs-shop .fbs-color-pill--green        .fbs-color-pill__dot { background: #4caf50; }
#fbs-shop .fbs-color-pill--orange       .fbs-color-pill__dot { background: #f57c00; }
#fbs-shop .fbs-color-pill--sand         .fbs-color-pill__dot { background: #c8a97e; }

/* Order button */
#fbs-shop .fbs-product-card__order-btn {
	display: block;
	width: 100%;
	padding: 0.65rem 1rem;
	background: #2c6e49;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-align: center;
	transition: background 0.15s ease;
	border-radius: 0;
	text-transform: none;
	box-shadow: none;
	line-height: normal;
}

#fbs-shop .fbs-product-card__order-btn:hover,
#fbs-shop .fbs-product-card__order-btn:focus {
	background: #235a3b;
	color: #fff;
	outline: 2px solid #2c6e49;
	outline-offset: 2px;
}

#fbs-shop .fbs-product-card__order-btn[aria-expanded="true"] {
	background: #1b4830;
	color: #fff;
}

#fbs-shop .fbs-product-card__order-btn:disabled {
	background: #aaa;
	color: #fff;
	cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   Quick order panel
   ----------------------------------------------------------------------------- */
#fbs-shop .fbs-quick-panel {
	display: none;
}

#fbs-shop .fbs-quick-panel__empty {
	padding: 0.75rem 1rem;
	font-size: 0.82rem;
	color: #999;
	margin: 0;
}

/* Unit row */
#fbs-shop .fbs-unit-row,
#fbs-order-sheet .fbs-unit-row {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e8ede9;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

#fbs-shop .fbs-unit-row:last-child,
#fbs-order-sheet .fbs-unit-row:last-child {
	border-bottom: none;
}

#fbs-shop .fbs-unit-row__info,
#fbs-order-sheet .fbs-unit-row__info {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.3rem;
}

#fbs-shop .fbs-unit-row__name,
#fbs-order-sheet .fbs-unit-row__name {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
}

#fbs-shop .fbs-unit-row__detail,
#fbs-order-sheet .fbs-unit-row__detail {
	font-size: 0.8rem;
	color: #666;
}

#fbs-shop .fbs-unit-row__detail .woocommerce-Price-amount,
#fbs-order-sheet .fbs-unit-row__detail .woocommerce-Price-amount {
	color: #2c6e49;
	font-weight: 600;
}

#fbs-shop .fbs-unit-row__order,
#fbs-order-sheet .fbs-unit-row__order {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Quantity control */
#fbs-shop .fbs-qty-control,
#fbs-order-sheet .fbs-qty-control {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

#fbs-shop .fbs-qty-minus,
#fbs-shop .fbs-qty-plus,
#fbs-order-sheet .fbs-qty-minus,
#fbs-order-sheet .fbs-qty-plus {
	width: 32px;
	height: 32px;
	background: #f0f0f0;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.1s;
	padding: 0;
	border-radius: 0;
	text-transform: none;
	box-shadow: none;
	min-width: 32px;
}

#fbs-shop .fbs-qty-minus:hover,
#fbs-shop .fbs-qty-plus:hover,
#fbs-order-sheet .fbs-qty-minus:hover,
#fbs-order-sheet .fbs-qty-plus:hover {
	background: #e0e0e0;
	color: #333;
}

#fbs-shop .fbs-qty-input,
#fbs-order-sheet .fbs-qty-input {
	width: 44px;
	max-width: 44px;
	height: 32px;
	text-align: center;
	border: none;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	padding: 0 4px;
	font-size: 0.9rem;
	-moz-appearance: textfield;
	background: #fff;
	color: #333;
	border-radius: 0;
	box-shadow: none;
}

#fbs-shop .fbs-qty-input::-webkit-outer-spin-button,
#fbs-shop .fbs-qty-input::-webkit-inner-spin-button,
#fbs-order-sheet .fbs-qty-input::-webkit-outer-spin-button,
#fbs-order-sheet .fbs-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add-to-cart button */
#fbs-shop .fbs-add-to-cart-btn,
#fbs-order-sheet .fbs-add-to-cart-btn {
	flex: 1;
	padding: 0 0.85rem;
	height: 32px;
	background: #2c6e49;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.15s;
	text-transform: none;
	box-shadow: none;
	line-height: normal;
}

#fbs-shop .fbs-add-to-cart-btn:hover,
#fbs-order-sheet .fbs-add-to-cart-btn:hover {
	background: #235a3b;
	color: #fff;
}

#fbs-shop .fbs-add-to-cart-btn:disabled,
#fbs-order-sheet .fbs-add-to-cart-btn:disabled {
	background: #aaa;
	color: #fff;
	cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   Login required
   ----------------------------------------------------------------------------- */
.fbs-login-required {
	text-align: center;
	padding: 3rem 1.5rem;
	max-width: 480px;
	margin: 0 auto;
}

.fbs-login-required__icon {
	font-size: 3rem;
	margin-bottom: 0.75rem;
}

.fbs-login-required__title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #1a1a1a;
}

.fbs-login-required__text {
	color: #555;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.fbs-login-required__btn {
	display: inline-block;
	padding: 0.7rem 1.8rem;
	background: #2c6e49;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.15s;
}

.fbs-login-required__btn:hover {
	background: #235a3b;
	color: #fff;
}

/* -----------------------------------------------------------------------------
   Cart overlay
   ----------------------------------------------------------------------------- */
#fbs-cart-overlay {
	display: none;
}

#fbs-cart-overlay[aria-hidden="false"] {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

#fbs-cart-overlay .fbs-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

#fbs-cart-overlay .fbs-overlay__box {
	position: relative;
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	max-width: 90vw;
	width: 380px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

#fbs-cart-overlay .fbs-overlay__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #2c6e49;
}

#fbs-cart-overlay .fbs-overlay__details {
	font-size: 0.9rem;
	color: #333;
	margin-bottom: 1.25rem;
	line-height: 1.6;
}

#fbs-cart-overlay .fbs-overlay__details p {
	margin: 0.25rem 0;
}

#fbs-cart-overlay .fbs-overlay__actions {
	display: flex;
	gap: 0.75rem;
}

#fbs-cart-overlay .fbs-overlay__continue,
#fbs-cart-overlay .fbs-overlay__cart-link {
	flex: 1;
	padding: 0.6rem 0.75rem;
	border-radius: 4px;
	font-size: 0.88rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: normal;
}

#fbs-cart-overlay .fbs-overlay__continue {
	background: #f0f0f0;
	color: #333;
	border: 1px solid #ddd;
}

#fbs-cart-overlay .fbs-overlay__continue:hover {
	background: #e0e0e0;
	color: #333;
}

#fbs-cart-overlay .fbs-overlay__cart-link {
	background: #2c6e49;
	color: #fff;
	border: none;
}

#fbs-cart-overlay .fbs-overlay__cart-link:hover {
	background: #235a3b;
	color: #fff;
}

body.fbs-overlay-open {
	overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Order bottom sheet
   ----------------------------------------------------------------------------- */
#fbs-order-sheet {
	display: none;
}

#fbs-order-sheet[aria-hidden="false"] {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99998;
}

#fbs-order-sheet .fbs-order-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

#fbs-order-sheet .fbs-order-sheet__panel {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 540px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	max-height: 80vh;
	overflow-y: auto;
	animation: fbs-slide-up 0.22s ease;
}

@keyframes fbs-slide-up {
	from { transform: translateX(-50%) translateY(100%); }
	to   { transform: translateX(-50%) translateY(0); }
}

#fbs-order-sheet .fbs-order-sheet__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem 0.75rem;
	border-bottom: 1px solid #e2e2e2;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

#fbs-order-sheet .fbs-order-sheet__title {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
}

#fbs-order-sheet .fbs-order-sheet__close {
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #666;
	padding: 0.25rem 0.5rem;
	line-height: 1;
	border-radius: 4px;
	transition: background 0.1s;
	box-shadow: none;
	text-transform: none;
}

#fbs-order-sheet .fbs-order-sheet__close:hover {
	background: #f0f0f0;
	color: #666;
}

/* -----------------------------------------------------------------------------
   Variety images — admin page (WooCommerce > Sorten-Bilder)
   ----------------------------------------------------------------------------- */
.fbs-variety-table .fbs-variety-missing {
	color: #d63638;
	margin-right: 0.3rem;
}

.fbs-variety-table .fbs-variety-preview {
	width: 60px;
	height: 60px;
}

/* -----------------------------------------------------------------------------
   Responsive breakpoints
   ----------------------------------------------------------------------------- */
@media ( min-width: 768px ) {
	#fbs-shop .fbs-product-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 1024px ) {
	#fbs-shop .fbs-product-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( min-width: 1400px ) {
	#fbs-shop .fbs-product-grid {
		grid-template-columns: repeat( 4, 1fr );
	}
}

/* -----------------------------------------------------------------------------
   WooCommerce resets — WC sets list-style on li globally.
   ID selectors beat WC's class selectors without !important.
   ----------------------------------------------------------------------------- */
#fbs-shop ul,
#fbs-shop ul li,
#fbs-order-sheet ul,
#fbs-order-sheet ul li {
	list-style: none;
	background-image: none;
	padding-left: 0;
	margin-left: 0;
}
