/* ═══════════════════════════════════════════════════════════════
   Ibrahim CSV — Frontend Styles
   Product page: attribute zones, shipping block, enquire button
   Enquire Now modal
   ═══════════════════════════════════════════════════════════════ */

/* ── Attribute tables (shared) ─────────────────────────────────── */
.ibrahim-attr-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
}
.ibrahim-attr-table th,
.ibrahim-attr-table td {
	padding: 7px 12px;
	font-size: 0.875rem;
	vertical-align: top;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}
.ibrahim-attr-table th {
	font-weight: 600;
	color: #444;
	width: 38%;
	background: #fafafa;
}
.ibrahim-attr-table td {
	color: #333;
}
.ibrahim-attr-table tr:last-child th,
.ibrahim-attr-table tr:last-child td {
	border-bottom: none;
}

/* ── Summary attributes (1–10) below product title ─────────────── */
.ibrahim-summary-attrs {
	margin: 16px 0 20px;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}
.ibrahim-summary-attr-table th {
	width: 40%;
}

/* ── Specifications tab ─────────────────────────────────────────── */
.ibrahim-specs-tab {
	padding: 8px 0;
}
.ibrahim-specs-tab h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 24px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e8e8e8;
	color: #222;
}
.ibrahim-specs-table {
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}
.ibrahim-specs-table th {
	width: 35%;
	background: #f7f7f7;
}
.ibrahim-specs-table tr:nth-child(even) td {
	background: #fafafa;
}
.ibrahim-specs-text {
	font-size: 0.875rem;
	color: #444;
	line-height: 1.7;
	margin: 12px 0;
}
.ibrahim-specs-features {
	margin-bottom: 24px;
}

/* ── Manuals & Documents ──────────────────────────────────────────*/
.ibrahim-specs-docs {
	margin-top: 24px;
}
.ibrahim-docs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ibrahim-docs-list li a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 0.85rem;
	text-decoration: none;
	color: #333;
	background: #fff;
	transition: background 0.15s, border-color 0.15s;
}
.ibrahim-docs-list li a:hover {
	background: #f0f4ff;
	border-color: #2271b1;
	color: #2271b1;
}
.ibrahim-doc-icon {
	font-size: 1.1em;
}

/* ── Shipping block ──────────────────────────────────────────────── */
.ibrahim-shipping-block {
	margin: 16px 0;
	padding: 14px 16px;
	background: #f8f9fa;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
}
.ibrahim-shipping-title {
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #555;
}
.ibrahim-shipping-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}
.ibrahim-shipping-table th,
.ibrahim-shipping-table td {
	padding: 6px 8px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #ebebeb;
}
.ibrahim-shipping-table th {
	color: #555;
	font-weight: 600;
	width: 45%;
}
.ibrahim-shipping-table tr:last-child th,
.ibrahim-shipping-table tr:last-child td {
	border-bottom: none;
}

/* ── Cart shipping info ──────────────────────────────────────────── */
.ibrahim-cart-shipping {
	margin-top: 6px;
}
.ibrahim-cart-shipping-list {
	list-style: none;
	margin: 0;
	padding: 4px 0 0;
	font-size: 0.8rem;
	color: #666;
}
.ibrahim-cart-shipping-list li {
	margin-bottom: 2px;
}
.ibrahim-cart-shipping-label {
	font-weight: 600;
}

/* ── Checkout shipping summary ───────────────────────────────────── */
.ibrahim-checkout-shipping {
	background: #f8f8f8;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	padding: 14px 16px;
	margin-top: 16px;
}
.ibrahim-checkout-shipping h4 {
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.ibrahim-checkout-product {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e2e2;
}
.ibrahim-checkout-product:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.ibrahim-checkout-product > strong {
	display: block;
	margin-bottom: 8px;
	font-size: 0.875rem;
}

/* ── Enquire Now buttons ─────────────────────────────────────────── */
.ibrahim-enquire-wrap {
	margin: 12px 0;
}
.ibrahim-enquire-btn {
	background: #1a1a2e !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 28px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
}
.ibrahim-enquire-btn:hover {
	background: #16213e !important;
}
.ibrahim-enquire-small {
	padding: 5px 12px !important;
	font-size: 0.78rem !important;
	font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Enquire Now Modal
   ═══════════════════════════════════════════════════════════════ */
.ibrahim-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ibrahim-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
body.ibrahim-modal-open {
	overflow: hidden;
}
.ibrahim-modal-inner {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	padding: 36px 40px;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.ibrahim-modal-inner h2 {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a2e;
}
.ibrahim-modal-model-row {
	font-size: 0.9rem;
	margin-bottom: 20px;
	color: #555;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}
.ibrahim-modal-model-row strong {
	margin-right: 6px;
}
.ibrahim-modal-close {
	position: absolute !important;
	top: 12px !important;
	right: 14px !important;
	left: auto !important;
	background: none !important;
	border: none !important;
	font-size: 1.6rem !important;
	line-height: 1 !important;
	cursor: pointer !important;
	color: #999;
	transition: color 0.15s;
}
.ibrahim-modal-close:hover {
	color: #333;
}

/* ── Form fields ────────────────────────────────────────────────── */
.ibrahim-form-row {
	margin-bottom: 16px;
}
.ibrahim-form-row label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}
.ibrahim-form-row .required {
	color: #c0392b;
}
.ibrahim-form-row input[type="text"],
.ibrahim-form-row input[type="email"],
.ibrahim-form-row input[type="tel"],
.ibrahim-form-row select,
.ibrahim-form-row textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #333;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s;
	font-family: inherit;
}
.ibrahim-form-row input:focus,
.ibrahim-form-row select:focus,
.ibrahim-form-row textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
}
.ibrahim-form-row textarea {
	resize: vertical;
}
.ibrahim-form-error {
	color: #c0392b;
	font-size: 0.85rem;
	margin-bottom: 12px;
	padding: 8px 12px;
	background: #fff5f5;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
}
.ibrahim-form-actions {
	margin-top: 20px;
}
.ibrahim-submit-btn {
	width: 100%;
	padding: 12px !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	background: #1a1a2e !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
}
.ibrahim-submit-btn:hover:not(:disabled) {
	background: #16213e !important;
}
.ibrahim-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed !important;
}

/* ── Success state ──────────────────────────────────────────────── */
#ibrahim-enquire-success {
	text-align: center;
	padding: 20px 0 10px;
}
.ibrahim-success-icon {
	font-size: 3rem;
	color: #27ae60;
	margin-bottom: 10px;
	line-height: 1;
}
#ibrahim-enquire-success h3 {
	font-size: 1.2rem;
	margin: 0 0 8px;
	color: #222;
}
#ibrahim-enquire-success p {
	color: #555;
	margin-bottom: 20px;
}
.ibrahim-modal-close-btn {
	padding: 10px 24px !important;
	font-size: 0.9rem !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.ibrahim-modal-inner {
		padding: 24px 20px;
		max-height: 95vh;
		border-radius: 0;
	}
	.ibrahim-docs-list {
		flex-direction: column;
	}
}

/* ═══════════════════════════════════════════════════════════════
   Package Deal — Grouped Product Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Package price zone (replaces default WC price) ────────────── */
.ibrahim-pkg-price-zone {
	margin: 0 0 20px;
}
.ibrahim-pkg-badge {
	display: inline-block;
	background: #1a1a2e;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 10px;
}
.ibrahim-pkg-price-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.ibrahim-pkg-individual-label {
	font-size: 0.9rem;
	color: #777;
}
.ibrahim-pkg-individual-label del {
	color: #999;
}
.ibrahim-pkg-main-price {
	font-size: 1.05rem;
	color: #222;
}
.ibrahim-pkg-main-price strong {
	font-size: 1.5rem;
	color: #1a1a2e;
}
.ibrahim-pkg-savings-badge {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #2e7d32;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
}

/* ── Package wrapper ────────────────────────────────────────────── */
.ibrahim-package-wrap {
	margin-top: 20px;
}

/* ── Add-to-cart bar ────────────────────────────────────────────── */
.ibrahim-pkg-cart-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	background: #1a1a2e;
	border-radius: 6px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.ibrahim-pkg-cart-items-count {
	color: rgba(255,255,255,0.75);
	font-size: 0.875rem;
}
.ibrahim-add-package-btn {
	background: #0b3a87 !important;
	color: #fff !important;
	border: none !important;
	padding: 11px 28px !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	border-radius: 2px !important;
	cursor: pointer !important;
	white-space: nowrap;
	transition: background 0.2s !important;
}
.ibrahim-add-package-btn:hover:not(:disabled) {
	background: #082d69 !important;
}
.ibrahim-add-package-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed !important;
}
.ibrahim-pkg-cart-msg {
	width: 100%;
	font-size: 0.85rem;
	color: #a5d6a7;
	font-weight: 600;
}

/* ── Product cards grid ─────────────────────────────────────────── */
.ibrahim-package-products-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Individual product card ────────────────────────────────────── */
.ibrahim-pkg-card {
	display: flex;
	gap: 20px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.2s;
}
.ibrahim-pkg-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Image column */
.ibrahim-pkg-card-image {
	flex: 0 0 200px;
	max-width: 200px;
	border-right: 1px solid #f0f0f0;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.ibrahim-pkg-card-image img.ibrahim-pkg-img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Info column */
.ibrahim-pkg-card-info {
	flex: 1;
	padding: 18px 20px 18px 0;
	min-width: 0;
}
.ibrahim-pkg-sku {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
	margin-bottom: 4px;
}
.ibrahim-pkg-name {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.35;
}
.ibrahim-pkg-name a {
	color: #1a1a2e;
	text-decoration: none;
}
.ibrahim-pkg-name a:hover {
	color: #2271b1;
}
.ibrahim-pkg-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}
.ibrahim-pkg-reviews {
	font-size: 0.8rem;
	color: #777;
}
.ibrahim-pkg-stock {
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.ibrahim-pkg-instock { color: #27ae60; }
.ibrahim-pkg-outofstock { color: #c0392b; }

.ibrahim-pkg-price {
	margin-bottom: 10px;
}
.ibrahim-pkg-price .woocommerce-Price-amount {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a2e;
}

/* Top Specs */
.ibrahim-pkg-specs {
	margin-bottom: 12px;
}
.ibrahim-pkg-specs h4 {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #444;
	margin: 0 0 8px;
}
.ibrahim-pkg-specs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px 16px;
}
.ibrahim-pkg-spec-item {
	font-size: 0.8rem;
	color: #444;
	line-height: 1.4;
}
.ibrahim-pkg-spec-name {
	color: #333;
}
.ibrahim-pkg-spec-value {
	font-weight: 600;
	color: #1a1a2e;
}
.ibrahim-pkg-details-link {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}
.ibrahim-pkg-details-link:hover {
	border-bottom-color: #2271b1;
}

/* ═══════════════════════════════════════════════════════════════
   "Available in a Package Deal" — on individual product pages
   ═══════════════════════════════════════════════════════════════ */
.ibrahim-product-packages {
	margin: 32px 0;
	padding: 24px;
	background: #f8f9fa;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}
.ibrahim-pkg-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a2e;
	padding-bottom: 10px;
	border-bottom: 2px solid #e2e2e2;
}
.ibrahim-product-package-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #e2e2e2;
}
.ibrahim-product-package-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.ibrahim-pkg-mini-thumb img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
}
.ibrahim-pkg-mini-info {
	flex: 1;
	min-width: 0;
}
.ibrahim-pkg-mini-badge {
	display: inline-block;
	background: #1a1a2e;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 8px;
	border-radius: 10px;
	margin-bottom: 6px;
}
.ibrahim-pkg-mini-name {
	font-size: 0.95rem;
	margin: 0 0 4px;
}
.ibrahim-pkg-mini-name a {
	color: #1a1a2e;
	text-decoration: none;
	font-weight: 700;
}
.ibrahim-pkg-mini-name a:hover { color: #2271b1; }
.ibrahim-pkg-mini-meta {
	font-size: 0.8rem;
	color: #777;
	margin-bottom: 6px;
}
.ibrahim-pkg-mini-price {
	font-size: 0.9rem;
	margin-bottom: 10px;
	color: #333;
}
.ibrahim-pkg-mini-price strong {
	font-size: 1.05rem;
	color: #1a1a2e;
}
.ibrahim-pkg-mini-savings {
	color: #27ae60;
	font-weight: 700;
	font-size: 0.85rem;
}
.ibrahim-pkg-view-btn {
	background: #1a1a2e !important;
	color: #fff !important;
	border: none !important;
	padding: 8px 18px !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	display: inline-block;
	transition: background 0.2s !important;
}
.ibrahim-pkg-view-btn:hover {
	background: #16213e !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.ibrahim-pkg-specs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.ibrahim-pkg-card {
		flex-direction: column;
	}
	.ibrahim-pkg-card-image {
		flex: none;
		max-width: 100%;
		border-right: none;
		border-bottom: 1px solid #f0f0f0;
		max-height: 200px;
	}
	.ibrahim-pkg-card-info {
		padding: 16px;
	}
	.ibrahim-pkg-specs-grid {
		grid-template-columns: 1fr 1fr;
	}
	.ibrahim-pkg-cart-bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.ibrahim-pkg-price-summary {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   Product Page — Fulfillment Toggle (Ship to Me / Store Pickup)
   ═══════════════════════════════════════════════════════════════ */
.ib-pdp-fulfillment-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}
.ib-pdp-fulfillment-opt {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: #555;
	background: #fff;
	transition: all 0.2s ease;
	text-align: center;
}
.ib-pdp-fulfillment-opt input[type="radio"] {
	display: none;
}
.ib-pdp-fulfillment-opt.ib-pdp-fulfillment-active {
	border-color: #111;
	background: #111;
	color: #fff;
}
.ib-pdp-fulfillment-opt:hover:not(.ib-pdp-fulfillment-active) {
	border-color: #999;
}
.ib-pdp-pickup-free {
	background: #27ae60;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 3px;
	letter-spacing: 0.04em;
}
.ib-pdp-fulfillment-active .ib-pdp-pickup-free {
	background: #2ecc71;
}
.ib-pickup-notice-pdp {
	background: #f0faf4;
	border: 1px solid #a8e6cf;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 13px;
	margin-bottom: 12px;
}
.ib-pickup-notice-pdp-head {
	margin-bottom: 8px;
	font-weight: 700;
}
.ib-pickup-notice-pdp .ib-pickup-address {
	font-size: 12px;
	line-height: 1.5;
	color: #333;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #d0ecda;
	border-radius: 5px;
	margin-top: 4px;
}
.ib-pickup-notice-pdp .ib-pickup-address strong {
	display: block;
	color: #111;
	margin-bottom: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}
