/* ===================================================
   General & Bootstrap Overrides
   =================================================== */

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
	font-weight: 400;
	color: #666;
	font-size: 13px;
	line-height: 20px;
	width: 100%;
	background-color: #f8f9fa !important;
}

h1, h2, h3, h4, h5, h6 {
	color: #444;
}

/* default font size */
.fa {
	font-size: 14px;
}

/* Override the bootstrap defaults */
h1 { font-size: 33px; }
h2 { font-size: 27px; }
h3 { font-size: 21px; }
h4 { font-size: 15px; }
h5 { font-size: 13px; }
h6 { font-size: 10.2px; }

a {
	color: #23a1d1;
}
a:hover {
	text-decoration: none;
}
legend {
	font-size: 18px;
	padding: 7px 0px;
}
label {
	font-size: 13px;
	font-weight: normal;
}
select.form-control, textarea.form-control,
input[type="text"].form-control, input[type="password"].form-control,
input[type="datetime"].form-control, input[type="datetime-local"].form-control,
input[type="date"].form-control, input[type="month"].form-control,
input[type="time"].form-control, input[type="week"].form-control,
input[type="number"].form-control, input[type="email"].form-control,
input[type="url"].form-control, input[type="search"].form-control,
input[type="tel"].form-control, input[type="color"].form-control,
.input-group input, .input-group select,
.input-group .dropdown-menu, .input-group .popover,
.input-group .input-group-addon {
	font-size: 13px;
}
.input-group .input-group-addon {
	height: 30px;
}

/* Fix some bootstrap issues */
span.hidden-xs, span.hidden-sm, span.hidden-md, span.hidden-lg {
	display: inline;
}

.nav-tabs {
	margin-bottom: 15px;
}
div.required .control-label:before {
	content: '* ';
	color: #F00;
	font-weight: bold;
}

/* Gradent to all drop down menus */
.dropdown-menu li > a:hover {
	text-decoration: none;
	color: #ffffff;
	background-color: #229ac8;
	background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
	background-repeat: repeat-x;
}

/* Top bar */
#top {
	background-color: #000000;
	border-bottom: 1px solid #e2e2e2;
	padding: 4px 0px 3px 0;
	margin: 0 0 20px 0;
	min-height: 40px;
}
#top .container {
	padding: 0 20px;
}
#top #form-currency .currency-select,
#top #form-language .language-select {
	text-align: right;
}
#top #form-currency .currency-select:hover,
#top #form-language .language-select:hover {
	text-shadow: none;
	color: #ffffff;
	background-color: #229ac8;
	background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
	background-repeat: repeat-x;
}
#top .btn-link, #top-links li, #top-links a {
	color: #FFFFFF !important;
	text-shadow: none !important;
	text-decoration: none;
	font-size: 14px !important;
	font-weight: 500 !important;
}
#top .btn-link:hover, #top-links a:hover {
	color: #ffc107 !important;
}
#top-links .dropdown-menu a {
	text-shadow: none !important;
}
#top-links .dropdown-menu a:hover {
	color: #FFF !important;
}
#top .btn-link strong {
	font-size: 14px;
	line-height: 14px;
}
#top-links {
	padding-top: 6px;
}
#top-links a + a {
	margin-right: 15px;
}

/* Logo & Search */
#logo {
	margin: 0 0 10px 0;
}
#search {
	margin-bottom: 10px;
}
#search .input-lg {
	height: 40px;
	line-height: 20px;
	padding: 0 10px;
}
#search .btn-lg {
	font-size: 15px;
	line-height: 18px;
	padding: 10px 35px;
	text-shadow: 0 1px 0 #FFF;
}
/* DHB - Mobile header: logo beside smart search */
@media (max-width: 767px) {

	header > .container > .row {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		margin-top: -18px !important;
	}

	header > .container > .row > .col-sm-4 {
		width: 35% !important;
		flex: 0 0 35% !important;
		float: none !important;
	}

	header > .container > .row > .col-sm-5 {
		width: 65% !important;
		flex: 0 0 65% !important;
		float: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.dhb-smart-search {
		width: calc(100% + 24px) !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		transform: translateX(14px) !important;
		padding-top: 0 !important;
		padding-bottom: 5px !important;
	}

	header > .container > .row > .col-sm-3 {
		width: 100% !important;
		flex: 0 0 100% !important;
		float: none !important;
	}

	#logo {
		margin: 0 !important;
	}

	#logo img {
		max-height: none !important;
		width: auto !important;
		margin: 0 auto !important;
	}

	.dhb-smart-search h2 {
		margin-top: 0 !important;
	}

	#cart {
		width: 100% !important;
		margin-bottom: 10px !important;
	}

	#cart > .btn {
		width: 100% !important;
	}
}

/* Cart */
#cart {
	margin-bottom: 10px;
}
#cart > .btn {
	font-size: 13px;
	line-height: 18px;
	color: #FFF;
}
#cart.open > .btn {
	background-image: none;
	background-color: #FFFFFF;
	border: 1px solid #E6E6E6;
	color: #666;
	box-shadow: none;
	text-shadow: none;
}
#cart.open > .btn:hover {
	color: #444;
}
#cart .dropdown-menu {
	background: #eee;
	z-index: 1001;
	min-width: 100%;
	overflow-y: auto;
	max-height: 800px;
	scrollbar-width: thin;
	overflow-x: hidden;
}
#cart .dropdown-menu table {
	margin-bottom: 10px;
}
#cart .dropdown-menu li > div {
	min-width: 427px;
	padding: 0 10px;
}
@media (max-width: 478px) {
	#cart .dropdown-menu { width: 100%; }
	#cart .dropdown-menu li > div { min-width: 100%; }
}
#cart .dropdown-menu li p {
	margin: 20px 0;
}

/* Menu Header */
#menu {
	background-color: #229ac8;
	background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
	background-repeat: repeat-x;
	border-color: #1f90bb #1f90bb #145e7a;
	min-height: 40px;
	border-radius: 8px !important;
	box-shadow: 0 4px 10px rgba(35, 161, 209, 0.15) !important;
}
#menu .nav > li > a {
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	padding: 10px 15px 10px 15px;
	min-height: 15px;
	background-color: transparent;
}
#menu .nav > li > a:hover, #menu .nav > li.open > a {
	background-color: rgba(0, 0, 0, 0.1);
}
#menu .dropdown-menu {
	padding-bottom: 0;
}
#menu .dropdown-inner {
	display: table;
}
#menu .dropdown-inner ul {
	display: table-cell;
}
#menu .dropdown-inner a {
	min-width: 160px;
	display: block;
	padding: 3px 20px;
	clear: both;
	line-height: 20px;
	color: #333333;
	font-size: 13px;
}
#menu .dropdown-inner li a:hover {
	color: #FFFFFF;
}
#menu .see-all {
	display: block;
	margin-top: 0.5em;
	border-top: 1px solid #DDD;
	padding: 3px 20px;
	border-radius: 0 0 3px 3px;
	font-size: 13px;
}
#menu .see-all:hover, #menu .see-all:focus {
	text-decoration: none;
	color: #ffffff;
	background-color: #229ac8;
	background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
	background-repeat: repeat-x;
}
#menu #category {
	float: right;
	padding-right: 15px;
	font-size: 16px;
	font-weight: 700;
	line-height: 40px;
	color: #fff;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .btn-navbar {
	font-size: 15px;
	font-stretch: expanded;
	color: #FFF;
	padding: 2px 18px;
	float: left;
	background-color: #229ac8;
	background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
	background-repeat: repeat-x;
	border-color: #1f90bb #1f90bb #145e7a;
}
#menu .btn-navbar:hover, #menu .btn-navbar:focus, #menu .btn-navbar:active, #menu .btn-navbar.disabled, #menu .btn-navbar[disabled] {
	color: #ffffff;
	background-color: #229ac8;
}
@media (min-width: 768px) {
	#menu .dropdown:hover .dropdown-menu {
		display: block;
	}
}
@media (max-width: 767px) {
	#menu {
		border-radius: 4px;
	}
	#menu div.dropdown-inner > ul.list-unstyled {
		display: block;
	}
	#menu div.dropdown-menu {
		margin-right: 0 !important;
		padding-bottom: 10px;
		background-color: rgba(0, 0, 0, 0.1);
	}
	#menu .dropdown-inner {
		display: block;
	}
	#menu .dropdown-inner a {
		width: 100%;
		color: #fff;
	}
	#menu .dropdown-menu a:hover,
	#menu .dropdown-menu ul li a:hover {
		background: rgba(0, 0, 0, 0.1);
	}
	#menu .see-all {
		margin-top: 0;
		border: none;
		border-radius: 0;
		color: #fff;
	}
}

/* Content & Footer */
#content {
	min-height: 600px;
}
footer {
	margin-top: 30px;
	padding-top: 30px;
	padding-bottom: 70px !important; /* مساحة حماية للشريط الثابت لكي لا يغطي الفوتر */
	background-color: #303030;
	border-top: 1px solid #ddd;
	color: #e2e2e2;
}
footer hr {
	border-top: none;
	border-bottom: 1px solid #666;
}
footer a {
	color: #ccc;
}
footer a:hover {
	color: #fff;
}
footer h5 {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
	font-size: 14px;
	font-weight: bold;
	color: #fff;
}

/* Alert & Breadcrumbs */
.alert {
	padding: 8px 14px 8px 14px;
}
.breadcrumb {
	margin: 0 0 20px 0;
	padding: 8px 0;
	border: 1px solid #ddd;
}
.breadcrumb i {
	font-size: 15px;
}
.breadcrumb > li {
	text-shadow: 0 1px 0 #FFF;
	padding: 0 20px;
	position: relative;
	white-space: nowrap;
}
.breadcrumb > li + li:before {
	content: '';
	padding: 0;
}
.breadcrumb > li:after {
	content: '';
	display: block;
	position: absolute;
	top: -3px;
	left: -5px;
	width: 26px;
	height: 26px;
	border-left: 1px solid #DDD;
	border-bottom: 1px solid #DDD;
	transform: rotate(45deg);
}
.pagination {
	margin: 0;
}

/* Buttons System */
.buttons {
	margin: 1em 0;
}
.btn {
	padding: 7.5px 12px;
	font-size: 13px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
}
.btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { font-size: 13px; }
.btn-xs, .btn-group > .btn-xs { font-size: 9px; }
.btn-sm, .btn-group > .btn-sm { font-size: 10.2px; }
.btn-lg, .btn-group > .btn-lg { font-size: 15px; }
.btn-lg { padding: 10px 16px; }

.btn-default {
	color: #777;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	background-color: #e7e7e7;
	background-image: linear-gradient(to bottom, #eeeeee, #dddddd);
	background-repeat: repeat-x;
	border-color: #dddddd #dddddd #b3b3b3 #b7b7b7;
}
.btn-primary {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #229ac8;
	background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
	background-repeat: repeat-x;
	border-color: #1f90bb #1f90bb #145e7a;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
	background-color: #1f90bb;
	background-position: 0 -15px;
}
.btn-warning {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #faa732;
	background-image: linear-gradient(to bottom, #fbb450, #f89406);
	background-repeat: repeat-x;
	border-color: #f89406 #f89406 #ad6704;
}
.btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] {
	box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}
.btn-danger {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #da4f49;
	background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
	background-repeat: repeat-x;
	border-color: #bd362f #bd362f #802420;
}
.btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] {
	box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}
.btn-success {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #5bb75b;
	background-image: linear-gradient(to bottom, #62c462, #51a351);
	background-repeat: repeat-x;
	border-color: #51a351 #51a351 #387038;
}
.btn-success:hover, .btn-success:active, .btn-success.disabled, .btn-success[disabled] {
	box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}
.btn-info {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #df5c39;
	background-image: linear-gradient(to bottom, #e06342, #dc512c);
	background-repeat: repeat-x;
	border-color: #dc512c #dc512c #a2371a;
}
.btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] {
	background-image: none;
	background-color: #df5c39;
}
.btn-link {
	border-color: rgba(0, 0, 0, 0);
	cursor: pointer;
	color: #23A1D1;
	border-radius: 0;
}
.btn-link, .btn-link:active, .btn-link[disabled] {
	background-color: rgba(0, 0, 0, 0);
	background-image: none;
	box-shadow: none;
}
.btn-inverse {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #363636;
	background-image: linear-gradient(to bottom, #444444, #222222);
	background-repeat: repeat-x;
	border-color: #222222 #222222 #000000;
}
.btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] {
	background-color: #222222;
	background-image: linear-gradient(to bottom, #333333, #111111);
}

/* List group & Carousel */
.list-group a {
	border: 1px solid #DDDDDD;
	color: #888888;
	padding: 8px 12px;
}
.list-group a.active, .list-group a.active:hover, .list-group a:hover {
	color: #444444;
	background: #eeeeee;
	border: 1px solid #DDDDDD;
	text-shadow: 0 1px 0 #FFF;
}
.carousel-caption {
	color: #FFFFFF;
	text-shadow: 0 1px 0 #000000;
}
.carousel-control .icon-prev:before {
	content: '\f053';
	font-family: FontAwesome;
}
.carousel-control .icon-next:before {
	content: '\f054';
	font-family: FontAwesome;
}

/* ===================================================
   Product Catalog Thumbnails (كروت المنتجات خارجية)
   =================================================== */

.product-thumb {
	position: relative !important;
	border: 1px solid #edf2f7 !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
	transition: all 0.3s ease-in-out !important;
	margin-bottom: 0 !important;
	overflow: hidden !important;
}
.product-thumb:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
	transform: translateY(-4px) !important;
}

.product-thumb .image {
	padding: 12px !important;
	text-align: center !important;
	background-color: #fff;
}
.product-thumb .image a {
	display: block;
}
.product-thumb .image img {
	margin-left: auto;
	margin-right: auto;
	border-radius: 8px !important;
	max-height: 210px !important;
	object-fit: contain !important;
	transition: transform 0.3s ease;
}
.product-thumb:hover .image img {
	transform: scale(1.03);
}

.product-thumb .caption {
	padding: 12px 15px !important;
}

.product-thumb h4 {
	font-weight: bold;
	margin-top: 5px !important;
	margin-bottom: 10px !important;
}
.product-thumb h4 a {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #2d3748 !important;
	text-decoration: none !important;
	line-height: 1.5 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	height: 42px !important;
}
.product-thumb h4 a:hover {
	color: #23a1d1 !important;
}

.product-thumb .rating {
	padding-bottom: 10px;
}
.rating .fa-stack { font-size: 8px; }
.rating .fa-star-o { color: #999; font-size: 15px; }
.rating .fa-star { color: #FC0; font-size: 15px; }
.rating .fa-star + .fa-star-o { color: #E69500; }

h2.price { margin: 0; }
.product-thumb .price {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #27ae60 !important;
	margin-top: 5px !important;
}
.product-thumb .price-new { font-weight: 600; }
.product-thumb .price-old {
	color: #e53e3e !important;
	font-size: 13px !important;
	text-decoration: line-through !important;
	margin-right: 8px !important;
}
.product-thumb .price-tax { display: none !important; }

/* ===================================================
   أزرار كروت المنتجات (الرئيسية والأقسام)
   =================================================== */

.product-thumb .button-group {
	border-top: 1px solid #edf2f7 !important;
	background-color: #f7fafc !important;
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: center !important;
	overflow: hidden;
}

.product-thumb .button-group button {
	border: none !important;
	height: 42px !important;
	line-height: 42px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	background-color: transparent !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
	display: inline-block;
	text-align: center;
	text-transform: uppercase;
}

/* زر إضافة للسلة (الأصفر) */
.product-thumb .button-group button:first-child {
	width: 60% !important;
	background-color: #ffc107 !important;
	color: #212529 !important;
}

.product-thumb .button-group button:first-child:hover {
	background-color: #e0a800 !important;
	color: #000000 !important;
}

/* أزرار المفضلة والمقارنة */
.product-thumb .button-group button + button {
	width: 20% !important;
	color: #718096 !important;
	border-left: 1px solid #edf2f7 !important;
	border-right: none !important;
}

.product-thumb .button-group button + button:hover {
	color: #e53e3e !important;
	background-color: #edf2f7 !important;
}

/* ===================================================
   GRID SYSTEM FOR PRODUCT LISTS ONLY
   =================================================== */

html body #content .row:has(.product-layout) {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 20px !important;
	clear: both !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

html body #content .row:has(.product-layout)::before,
html body #content .row:has(.product-layout)::after {
	display: none !important;
	content: none !important;
}

html body #content .row:has(.product-layout) > .product-layout {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 0 0 100% !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
}

html body #content .row:has(.product-layout) .product-thumb {
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	width: 100% !important;
	height: 100% !important;
}

html body #content .row:has(.product-layout) .product-thumb .caption {
	flex-grow: 1 !important;
}

/* Responsive Grid */
@media (max-width: 1199px) {
	html body #content .row:has(.product-layout) {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}
@media (max-width: 991px) {
	html body #content .row:has(.product-layout) {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 767px) {
	html body #content .row:has(.product-layout) {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
	.product-thumb .button-group button span,
	.product-thumb .button-group button .hidden-xs,
	.product-thumb .button-group button .hidden-sm,
	.product-thumb .button-group button .hidden-md {
		display: inline-block !important;
	}

	.product-thumb .button-group button {
		font-size: 11px !important;
		padding: 0 4px !important;
	}
}

/* ===================================================
   SINGLE PRODUCT PAGE STYLING & FIXES (تنسيق صفحة المنتج المنفردة)
   =================================================== */

#content .row .col-sm-4 h1, 
#content .row .col-sm-4 .list-unstyled,
#content .row .col-sm-4 h2 {
	clear: both !important;
	float: none !important;
	width: 100% !important;
	display: block !important;
}

#content .row .col-sm-4 h1 {
	font-size: 24px !important;
	font-weight: bold !important;
	color: #222 !important;
	margin-bottom: 15px !important;
	line-height: 1.4 !important;
}

#content .row .col-sm-4 h2 {
	font-size: 28px !important;
	color: #0083c9 !important;
	font-weight: 800 !important;
	margin: 15px 0 !important;
}

#product {
	margin-top: 20px !important;
	clear: both !important;
	display: block !important;
}

#product .form-group {
	display: flex !important;
	align-items: center !important;
	gap: 15px !important;
	margin-bottom: 20px !important;
}

#product label.control-label {
	font-weight: bold !important;
	margin-bottom: 0 !important;
}

#product #input-quantity {
	width: 70px !important;
	height: 42px !important;
	text-align: center !important;
	font-size: 15px !important;
	border-radius: 6px !important;
	border: 1px solid #ccc !important;
}

/* --- زر إضافة للسلة داخل صفحة المنتج --- */
html body #button-cart,
html body #product .btn-primary {
	height: 44px !important;
	padding: 0 35px !important;
	font-size: 15px !important;
	font-weight: bold !important;
	border-radius: 6px !important;
	background-color: #ffc107 !important;
	background-image: none !important;
	border: 1px solid #e0a800 !important;
	color: #212529 !important;
	text-shadow: none !important;
	box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3) !important;
	transition: all 0.2s ease-in-out !important;
	display: inline-block !important;
}

html body #button-cart:hover,
html body #product .btn-primary:hover {
	background-color: #e0a800 !important;
	background-image: none !important;
	color: #000000 !important;
	border-color: #d39e00 !important;
	box-shadow: 0 6px 14px rgba(224, 168, 0, 0.4) !important;
}

#tab-description iframe {
	width: 100% !important;
	max-width: 760px;
	aspect-ratio: 16/9;
	height: auto !important;
	display: block;
	margin: 20px auto;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   STICKY BUY BAR (شريط الشراء الثابت - إظهار شامل وقاطع)
   ========================================================= */

.sticky-buy-bar {
	position: fixed !important;
	bottom: 0 !important;
	top: auto !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	background: #ffffff !important;
	border-top: 2px solid #23a1d1 !important;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
	z-index: 999999 !important;
	padding: 10px 0 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}

.sticky-buy-bar .sticky-container {
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	position: relative !important;
}

.sticky-buy-bar .sticky-product-info {
	display: flex !important;
	align-items: center !important;
	gap: 15px !important;
}

.sticky-buy-bar .sticky-thumb {
	width: 50px !important;
	height: 50px !important;
	object-fit: contain !important;
	border-radius: 6px !important;
	border: 1px solid #e2e8f0 !important;
	background: #fff !important;
	display: block !important;
}

.sticky-buy-bar .sticky-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #2d3748 !important;
	margin: 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 400px !important;
	display: block !important;
}

.sticky-buy-bar .sticky-price {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #27ae60 !important;
	margin: 0 !important;
	display: block !important;
}

.sticky-buy-bar .sticky-actions {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.sticky-buy-bar .sticky-btn-buy {
	background-color: #ffc107 !important;
	color: #212529 !important;
	font-weight: 800 !important;
	font-size: 15px !important;
	padding: 8px 30px !important;
	border-radius: 6px !important;
	border: 1px solid #e0a800 !important;
	cursor: pointer !important;
	box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3) !important;
}

.sticky-buy-bar .sticky-close-btn {
	background: #f1f5f9 !important;
	border: 1px solid #cbd5e1 !important;
	color: #64748b !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	font-size: 14px !important;
	font-weight: bold !important;
}

/* =========================================================
   إصلاح تموضع الشارات المائلة (.box .ribbon) الخارجية
   ========================================================= */

html body #content .product-layout {
	position: relative !important;
	overflow: hidden !important;
}

html body #content .product-layout > .box {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	width: 100px !important;
	height: 100px !important;
	z-index: 20 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	background: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body #content .product-layout > .box .ribbon {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	z-index: 21 !important;
	pointer-events: none !important;
}

/* =========================================================
   تنسيق صور المنتج الاصلي القياسي (Original OpenCart Style)
   ========================================================= */

.thumbnails {
	overflow: auto;
	clear: both;
	list-style: none;
	padding: 0;
	margin: 0;
	margin-right: -20px;
}
.thumbnails > li {
	margin-right: 20px;
}
.thumbnails > img {
	width: 100%;
}
.image-additional a {
	margin-bottom: 20px;
	padding: 5px;
	display: block;
	border: 1px solid #ddd;
}
.image-additional {
	max-width: 78px;
}
.thumbnails .image-additional {
	float: right;
	margin-right: 20px;
}

/* =========================================================
   تنسيق وتحسين صفحة إتمام الطلب (One Step Checkout UI)
   ========================================================= */

#checkout-checkout .panel-group .panel {
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	margin-bottom: 12px !important;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
	overflow: hidden;
}

#checkout-checkout .panel-heading {
	background-color: #ffffff !important;
	padding: 12px 18px !important;
	border-bottom: 1px solid #edf2f7 !important;
}

#checkout-checkout .panel-title,
#checkout-checkout .panel-title a {
	font-weight: 700 !important;
	font-size: 15px !important;
	color: #2d3748 !important;
	text-decoration: none !important;
}

#checkout-checkout .panel-collapse.in {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	padding: 15px !important;
	background: #ffffff !important;
}

/* إظهار وإبراز خيار الشراء كزائر (Guest Checkout) */
#checkout-checkout .radio {
	margin-top: 10px !important;
	margin-bottom: 10px !important;
	padding: 10px 14px !important;
	background: #f7fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

#checkout-checkout .radio label {
	font-weight: 600 !important;
	color: #2d3748 !important;
	cursor: pointer;
}

/* زر متابعة إتمام الطلب */
#checkout-checkout .btn-primary,
#checkout-checkout input[type="button"].btn-primary {
	background-color: #ffc107 !important;
	background-image: none !important;
	border: 1px solid #e0a800 !important;
	color: #212529 !important;
	font-weight: bold !important;
	padding: 8px 25px !important;
	border-radius: 6px !important;
	box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2) !important;
}

#checkout-checkout .btn-primary:hover {
	background-color: #e0a800 !important;
	color: #000000 !important;
}

#input-payment-postcode, #input-shipping-postcode, label[for="input-payment-postcode"], label[for="input-shipping-postcode"] {
    display: none !important;
}

/* إصلاح لون الخلفية والخط لقائمة تسجيل الدخول */
#top .dropdown-menu {
    background-color: #ffffff !important;
}

#top .dropdown-menu li a {
    color: #000000 !important;
}

#top .dropdown-menu li a:hover {
    color: #ffffff !important;
    background-color: #229ac8 !important;
}
/* =========================================================
   FIX PACK  (إصلاحات — سبتمبر 2026)
   ========================================================= */

/* 1) إظهار نصوص الأزرار والروابط على الشاشات المتوسطة (768px - 1199px)
   السبب: كلاسات بوتستراب hidden-sm / hidden-md بتخفي النصوص بـ !important،
   وكانت القاعدة الوحيدة اللي بتعيد إظهارها محبوسة جوه @media (max-width:767px)،
   عشان كده النصوص مكانتش بتبان غير لما تكبّر الزووم فيقل عرض الشاشة تحت 768px. */
@media (min-width: 768px) {
	span.hidden-xs, span.hidden-sm, span.hidden-md, span.hidden-lg {
		display: inline !important;
	}
	.product-thumb .button-group button .hidden-xs,
	.product-thumb .button-group button .hidden-sm,
	.product-thumb .button-group button .hidden-md,
	#cart > .btn .hidden-xs,
	#cart > .btn .hidden-sm,
	#cart > .btn .hidden-md,
	#top-links .hidden-xs,
	#top-links .hidden-sm,
	#top-links .hidden-md {
		display: inline-block !important;
	}
}

/* تصغير بسيط لخط أزرار الكروت في النطاق المتوسط عشان النص الظاهر ميزحمش الزر */
@media (min-width: 768px) and (max-width: 1199px) {
	.product-thumb .button-group button {
		font-size: 12px !important;
		padding: 0 4px !important;
	}
}

/* 2) خلي زر إغلاق شريط الشراء الثابت يشتغل فعلاً
   (كان display:block !important بيمنع أي إخفاء من الجافاسكريبت) */
.sticky-buy-bar[hidden],
.sticky-buy-bar.is-hidden,
.sticky-buy-bar[style*="display: none"],
.sticky-buy-bar[style*="display:none"] {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

/* 3) مساحة الفوتر الإضافية تبقى فقط لما الشريط الثابت موجود فعلاً */
body:not(:has(.sticky-buy-bar)) footer {
	padding-bottom: 30px !important;
}
/* الحل الجذري النهائي لمنع الحركة الأفقية وoverflow الشاشة في الموبايل */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}