@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');
html,
body,
button,
input,
select,
textarea,
optgroup,
option,
table,
th,
td,
label,
legend,
a,
span,
p,
div,
ul,
ol,
li,
nav,
header,
footer,
main,
section,
article,
aside,
h1,
h2,
h3,
h4,
h5,
h6,
.tooltip,
.dropdown-menu,
.form-control,
.form-select,
.btn,
.navbar,
.breadcrumb,
.product-thumb,
.price,
.rating {
  font-family: "Cairo", sans-serif !important;
}
body {
  width: 100%;
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: #444;
}
legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
  font-size: 12px;
  font-weight: normal;
}
/* Chrome border line */
button:focus {
  outline: none !important;
}
/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}
/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  right: 50%;
  width: 400px;
  margin-right: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-right: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-right: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-right: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}
#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}
#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}
#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}
#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}
#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}
#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}
#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}
#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}
/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}
#top ul.list-inline {
  margin-bottom: 0;
}
#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}
/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}
#logo img {
  max-width: 200px;
}
@media (min-width: 768px) {
  #logo {
    text-align: right;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}
#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}
#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}
/* cart */
#cart {
  margin-bottom: 10px;
}
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}
#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
#menu .dropdown-menu {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}
#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}
#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}
@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    right: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    right: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    right: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    right: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    right: -600px;
  }
}
#category {
  float: right;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}
/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}
.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}
.nav-tabs {
  margin-bottom: 15px;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: left;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}
footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
footer h5 {
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  left: -5px;
  width: 26px;
  height: 26px;
  border-left: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}
.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}
.product-thumb .image {
  text-align: center;
}
.product-thumb .image a:hover {
  opacity: 0.8;
}
.product-thumb .description {
  padding: 15px;
  margin-bottom: 45px;
}
.product-thumb .description h4 {
  font-weight: bold;
}
.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}
.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}
.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}
.product-thumb .button button + button {
  border-right: 1px solid var(--bs-border-color);
}
@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-right: 1px solid #ddd;
    width: calc(100% -  15px);
    margin-right: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}
.rating .fa-star {
  color: #999;
  font-size: 15px;
}
.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}
.rating .fa-star + .fa-star {
  color: #E69500;
}
/* product list */
.price {
  color: #444;
}
.price-new {
  font-weight: 600;
}
.price-old {
  color: #dc512c;
  text-decoration: line-through;
}
.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}
/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.blog-thumb h4 {
  font-weight: bold;
}
.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.blog-thumb .image a:hover {
  opacity: 0.8;
}
.blog-thumb .description {
  padding: 15px;
}
/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

/* =========================================================
   Abu Sami Store - Professional Product Card (RTL)
   ========================================================= */
.product-thumb {
  --product-card-bg: #ffffff;
  --product-card-surface: #f6f6f6;
  --product-card-border: #e2e4e6;
  --product-card-text: #202326;
  --product-card-muted: #777d82;
  --product-card-dark: #202426;
  --product-card-green: #4e8c5e;
  --product-card-star: #c7c9cb;

  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--product-card-bg);
  border: 1px solid var(--product-card-border);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(23, 29, 33, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-thumb:hover {
  transform: translateY(-3px);
  border-color: #d4d7da;
  box-shadow: 0 12px 30px rgba(23, 29, 33, 0.09);
}

.product-thumb__media {
  position: relative;
  padding: 10px 10px 0;
}

.product-thumb__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--product-card-surface);
  border-radius: 10px;
}

.product-thumb__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-thumb:hover .product-thumb__image {
  transform: scale(1.035);
}

.product-thumb__floating-actions {
  position: absolute;
  right: 20px;
  bottom: 10px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.product-thumb__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #485057;
  text-decoration: none;
  background: rgba(255,255,255,.98);
  border: 1px solid #30363b;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(20,24,28,.06);
  pointer-events: auto;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.product-thumb__icon-button:hover {
  color: #fff;
  background: #202426;
  transform: translateY(-2px);
}

.product-thumb__icon-button i {
  font-size: 15px;
}

.product-thumb__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 18px 16px;
  text-align: right;
}

.product-thumb__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  min-height: 22px;
  color: var(--product-card-muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-thumb__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--product-card-green);
  white-space: nowrap;
}

.product-thumb__stock-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: currentColor;
  border-radius: 50%;
}

.product-thumb__stock--out {
  color: #b85151;
}

.product-thumb__brand {
  color: var(--product-card-muted);
  white-space: nowrap;
}

.product-thumb__brand a,
.product-thumb__brand span {
  color: #62686d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-thumb__divider {
  width: 100%;
  height: 1px;
  margin: 10px 0 12px;
  background: #e6e8ea;
}

.product-thumb__title {
  min-height: 46px;
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
}

.product-thumb__title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--product-card-text);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-thumb__title a:hover {
  color: #0878b9;
}

.product-thumb__rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 18px;
  margin-bottom: 5px;
  direction: ltr;
}

.product-thumb__rating .fa-stack {
  width: 15px;
  height: 16px;
  line-height: 16px;
}

.product-thumb__rating .fa-star {
  color: var(--product-card-star);
  font-size: 11px;
}

.product-thumb__rating .fa-solid.fa-star {
  color: #f0b323;
}

.product-thumb__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px 7px;
  min-height: 31px;
  margin-bottom: 14px;
  color: var(--product-card-text);
  direction: rtl;
}

.product-thumb__price .price-new {
  color: #0878d1;
  font-size: 18px;
  font-weight: 700;
}

.product-thumb__price .price-old {
  color: #9ba1a6;
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}

.product-thumb__price .price-tax {
  flex-basis: 100%;
  color: #9a9fa3;
  font-size: 10px;
  text-align: right;
}

.product-thumb__purchase-form {
  margin-top: auto;
}

.product-thumb__purchase-row {
  display: grid;
  grid-template-columns: minmax(94px, .9fr) minmax(125px, 1.55fr);
  gap: 9px;
  align-items: center;
  direction: rtl;
}

.product-thumb__quantity {
  display: grid;
  grid-template-columns: 31px minmax(28px, 1fr) 31px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #30363b;
  border-radius: 999px;
  direction: ltr;
}

.product-thumb__quantity-button {
  height: 40px;
  padding: 0;
  color: #30363b;
  font-size: 18px;
  line-height: 1;
  background: transparent;
  border: 0;
}

.product-thumb__quantity-button:hover {
  background: #f3f4f4;
}

.product-thumb__quantity-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  color: #202426;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  background: transparent;
  border: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-thumb__quantity-input::-webkit-outer-spin-button,
.product-thumb__quantity-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.product-thumb__cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  background: var(--product-card-dark);
  border: 1px solid var(--product-card-dark);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.product-thumb__cart-button:hover {
  color: #fff;
  background: #090b0c;
}

.product-thumb__cart-button:active {
  transform: scale(.98);
}

.product-thumb__cart-button:disabled,
.product-thumb__buy-now:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.product-thumb__secondary-actions {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6e8ea;
  direction: ltr;
}

.product-thumb__compare-button,
.product-thumb__buy-now {
  min-height: 38px;
  border-radius: 999px;
}

.product-thumb__compare-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #343a3f;
  background: #fff;
  border: 1px solid #cfd3d6;
}

.product-thumb__compare-button:hover {
  color: #fff;
  background: #202426;
  border-color: #202426;
}

.product-thumb__buy-now {
  padding: 7px 15px;
  color: #34383b;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #cfd3d6;
}

.product-thumb__buy-now:hover {
  color: #000;
  background: #f6f7f7;
  border-color: #aeb4b8;
}

@media (min-width: 960px) {
  .product-list .product-thumb {
    display: grid;
    grid-template-columns: minmax(250px, 32%) 1fr;
  }

  .product-list .product-thumb__media {
    padding-bottom: 10px;
  }

  .product-list .product-thumb__body {
    justify-content: center;
    padding: 24px;
  }

  .product-list .product-thumb__image-link {
    height: 100%;
    aspect-ratio: auto;
  }

  .product-list .product-thumb__title {
    min-height: auto;
    font-size: 17px;
  }

  .product-list .product-thumb__purchase-row,
  .product-list .product-thumb__secondary-actions {
    max-width: 420px;
  }
}

@media (max-width: 767.98px) {
  .product-thumb {
    border-radius: 10px;
  }

  .product-thumb:hover {
    transform: none;
  }

  .product-thumb__media {
    padding: 7px 7px 0;
  }

  .product-thumb__image {
    padding: 9px;
  }

  .product-thumb__floating-actions {
    right: 14px;
    bottom: 7px;
    left: 14px;
  }

  .product-thumb__icon-button {
    width: 32px;
    height: 32px;
  }

  .product-thumb__icon-button i {
    font-size: 13px;
  }

  .product-thumb__body {
    padding: 10px;
  }

  .product-thumb__meta {
    font-size: 9px;
  }

  .product-thumb__divider {
    margin: 8px 0 9px;
  }

  .product-thumb__title {
    min-height: 39px;
    font-size: 12px;
    line-height: 1.55;
  }

  .product-thumb__price .price-new {
    font-size: 14px;
  }

  .product-thumb__purchase-row {
    grid-template-columns: minmax(82px, .85fr) minmax(100px, 1.35fr);
    gap: 6px;
  }

  .product-thumb__quantity {
    grid-template-columns: 27px minmax(22px, 1fr) 27px;
    min-height: 36px;
  }

  .product-thumb__quantity-button,
  .product-thumb__quantity-input {
    height: 34px;
  }

  .product-thumb__cart-button {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .product-thumb__secondary-actions {
    grid-template-columns: 36px 1fr;
    gap: 6px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .product-thumb__compare-button,
  .product-thumb__buy-now {
    min-height: 34px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .product-thumb__meta {
    display: block;
    min-height: 32px;
  }

  .product-thumb__brand {
    display: block;
    margin-top: 2px;
  }

  .product-thumb__cart-button span {
    font-size: 0;
  }

  .product-thumb__cart-button span::after {
    content: "أضف للسلة";
    font-size: 10px;
  }
}
