body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: #666;
  font-size: 12px;
  line-height: 20px;
  width: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color:#0f6312
}
/* Override the bootstrap defaults */
h1 {
  font-size: 33px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: 15px;
}
footer h5 {
  font-size: 12px;
}
h6 {
  font-size: 10.2px;
}
a {
  color: #23a1d1;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
/* Chrome border line */
button:focus {
  outline: none !important;
}
legend {
  font-size: 18px;
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
  font-size: 12px;
  font-weight: normal;
}
.list-unstyled a {
  text-decoration: none;
}
.nav-tabs {
  margin-bottom: 15px;
}
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;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
#alert {
  z-index: 9999;
  pointer-events: all;
}
#alert .alert {
  min-width: 400px;
  position: relative;
  margin-bottom: 15px;
}
@media (min-width: 1300px) {
  #alert .alert {
    right: 50px;
  }
}
@media (min-width: 1400px) {
  #alert .alert {
    right: 0px;
  }
}
@media (min-width: 1600px) {
  #alert .alert {
    right: 100px;
  }
}
@media (min-width: 1800px) {
  #alert .alert {
    right: 200px;
  }
}
@media (min-width: 2000px) {
  #alert .alert {
    right: 300px;
  }
}
@media (min-width: 2200px) {
  #alert .alert {
    right: 400px;
  }
}
@media (min-width: 2400px) {
  #alert .alert {
    right: 500px;
  }
}
@media (min-width: 2600px) {
  #alert .alert {
    right: 600px;
  }
}
@media (min-width: 2800px) {
  #alert .alert {
    right: 700px;
  }
}
@media (min-width: 3000px) {
  #alert .alert {
    right: 800px;
  }
}
@media (min-width: 3200px) {
  #alert .alert {
    right: 900px;
  }
}
@media (min-width: 3400px) {
  #alert .alert {
    right: 1000px;
  }
}
@media (min-width: 3600px) {
  #alert .alert {
    right: 1100px;
  }
}
@media (min-width: 3800px) {
  #alert .alert {
    right: 1200px;
  }
}
@media (min-width: 4000px) {
  #alert .alert {
    right: 1300px;
  }
}
/* top */
#top {
  background-color: #aef790;
  border-bottom: 1px solid #e2e2e2;
  padding: 10px 0;
  margin: 0 0 20px 0;
  min-height: 44px;
  position: relative;
}
#top .nav > .list-inline > .list-inline-item, #top .nav > .list-inline .list-inline-item > a, #top .nav > .list-inline .list-inline-item .dropdown > a {
  color: #888;
  text-shadow: 0 1px 0 #FFF;
}
#top .btn-link {
  color: #888;
  text-shadow: 0 1px 0 #FFF;
  text-decoration: none;
}
#top .btn-link:hover {
  color: #444;
}
#top a {
  font-size: 1.1em;
  text-decoration: none;
}
footer a {
  font-size: 1.1em;
  text-decoration: none;
}
/* logo */
#logo {
  margin: 0 0 10px 0;
}
#logo img {
  max-width: 340px;
}
/* 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 */
#header-cart {
  margin-bottom: 10px;
}
#header-cart .btn-lg {
  color: #FFF;
  height: 40px;
  padding: 0 1rem;
}
#header-cart .btn:hover {
  color: #FFF;
}
#header-cart .dropdown-menu {
  background: #eee;
}
#header-cart .dropdown-menu li {
  min-width: 427px;
}
@media (max-width: 768px) {
  #header-cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #56d123, #3a975b);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
}
#menu.navbar {
  padding: 0 1rem;
  margin-bottom: 20px;
}
#menu .dropdown-menu {
  padding-bottom: 0;
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#menu .dropdown-inner {
  display: table;
}
#menu .dropdown-inner ul {
  display: table-cell;
}
#menu .dropdown-inner ul li a:hover {
  color: #ffffff;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
}
#menu .dropdown-inner a {
  min-width: 160px;
  display: block;
  padding: 3px 20px;
  clear: both;
  line-height: 20px;
  color: #333333;
  font-size: 12px;
}
#menu .see-all {
  display: block;
  margin-top: 0.5em;
  border-top: 1px solid #DDD;
  padding: 3px 20px;
  -webkit-border-radius: 0 0 4px 4px;
  -moz-border-radius: 0 0 4px 4px;
  border-radius: 0 0 3px 3px;
  font-size: 12px;
}
#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: left;
  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;
}
#menu .navbar-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 .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
@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-left: 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 {
    background: rgba(0, 0, 0, 0.1);
  }
  #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 */
#content {
  min-height: 600px;
}
/* footer */
footer {
    margin-top: 30px;
    padding-top: 30px;
    padding-bottom: 1px;
    background-color: #0f472d;
    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: "Open Sans", 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 #ddd;
  background-color: #9cffa0;
}
.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;
  right: -5px;
  width: 26px;
  height: 26px;
  border-right: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}
.pagination {
  margin: 0;
}
/* buttons */
.btn-light {
  color: #777;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
 background-image: linear-gradient(to bottom, #79f3bb, #4dd358);
    background-repeat: repeat-x;
  border-color: #dddddd #dddddd #b3b3b3 #b7b7b7;
}
.btn-light:hover, .btn-light:focus, .btn-light:active, .btn-light.active, .btn-light.disabled, .btn-light[disabled] {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
  background-position: 0;
}
.btn-primary {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-image: linear-gradient(to bottom, #23d140, #27a54f);
    background-repeat: repeat-x;
    border-color: #1f90bb #1f90bb #145e7a;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
  background-position: 0;
}
.btn-warning {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(to bottom, #fbb450, #f89406);
  background-repeat: repeat-x;
  border-color: #f89406 #f89406 #ad6704;
}
.btn-warning:hover, .btn-warning:focus, .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-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
  background-repeat: repeat-x;
  border-color: #bd362f #bd362f #802420;
}
.btn-danger:hover, .btn-danger:focus, .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-image: linear-gradient(to bottom, #62c462, #51a351);
  background-repeat: repeat-x;
  border-color: #51a351 #51a351 #387038;
}
.btn-success:hover, .btn-success:focus, .btn-success:active, .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-image: linear-gradient(to bottom, #e06342, #dc512c);
  background-repeat: repeat-x;
  border-color: #dc512c #dc512c #a2371a;
}
.btn-info:hover, .btn-info:focus, .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:focus, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] {
  background-color: #222222;
  background-image: linear-gradient(to bottom, #333333, #111111);
}
.product-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.product-thumb h4 {
  font-weight: bold;
}
.product-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.product-thumb .image a:hover {
  opacity: 0.8;
}
.product-thumb .description {
  padding: 15px;
}
.product-thumb .button-group {
  display: flex;
  border-top: 1px solid #ddd;
  background-color: #eee;
}
.product-thumb .button-group button {
  flex: 33%;
  border-radius: 0;
  display: inline-block;
  border: none;
  background-color: #eee;
  color: #888;
  line-height: 38px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}
.product-thumb .button-group button:hover {
  color: #444;
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}
.product-thumb .button-group button + button {
  border-left: 1px solid #ddd;
}
@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-group {
    position: absolute;
    bottom: 0px;
    width: 100%;
    border-left: 1px solid #ddd;
  }
}
.rating {
  padding-bottom: 10px;
}
.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;
}
/* BS4 Changes */
.navbar-light .navbar-toggler {
    font-size: 15px;
    font-stretch: expanded;
    color: #FFF;
    padding: 6px 12px;
    background-color: #22c82f;
    background-image: linear-gradient(to bottom, #3cd123, #1fbb70);
    background-repeat: repeat-x;
    border-color: #1f90bb #1f90bb #145e7a;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
/* Theme Custom CSS */
#display-control #compare-total.a {
  margin-top: -2px;
  padding: 0.35rem 0.565rem;
}
#product-product h1 {
  margin-top: 20px;
  margin-bottom: 10px;
}
#information-contact .card {
  margin-bottom: 20px;
}
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
@media (max-width: 767.98px) {

  /* منع أي قائمة فرعية من الخروج خارج عرض الهاتف */
  .dropdown-menu,
  .dropdown-inner,
  .list-group .dropdown-menu,
  .list-group .dropdown-inner,
  #menu .dropdown-menu,
  #menu .dropdown-inner {
    position: static !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* إجبار القوائم متعددة الأعمدة على عمود واحد */
  .dropdown-inner > ul,
  .dropdown-menu > ul,
  .list-group .dropdown-inner > ul,
  .list-group .dropdown-menu > ul,
  #menu .dropdown-inner > ul,
  #menu .dropdown-menu > ul {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    flex: 0 0 100% !important;
    columns: 1 !important;
    column-count: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .dropdown-inner > ul > li,
  .dropdown-menu > ul > li,
  .list-group .dropdown-inner > ul > li,
  .list-group .dropdown-menu > ul > li,
  #menu .dropdown-inner > ul > li,
  #menu .dropdown-menu > ul > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  /* احتياط إضافي لمنع أي تمدد أفقي */
  body,
  html {
    overflow-x: hidden !important;
  }
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

/* Premium green luxe palette */
a,
a:focus {
  color: #1f6b2d;
}
a:hover {
  color: #174f21;
}

#top {
  background: linear-gradient(to bottom, #f4fbf4, #e8f5e8);
  border-bottom: 1px solid #d7ead9;
}
#top .nav > .list-inline > .list-inline-item,
#top .nav > .list-inline .list-inline-item > a,
#top .nav > .list-inline .list-inline-item .dropdown > a,
#top .btn-link {
  color: #245c32;
  text-shadow: none;
}
#top .btn-link:hover,
#top a:hover {
  color: #174f21;
}

#menu {
  background-color: #2f9e44;
  background-image: linear-gradient(to bottom, #43b55a, #236f38);
  border: 1px solid #1f5f31;
  border-color: #2a7f40 #236f38 #174f21;
  box-shadow: 0 6px 16px rgba(35, 122, 53, 0.16);
}
#menu .navbar-nav > li > a {
  text-shadow: none;
}
#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.open > a,
#menu .navbar-nav > li.show > a {
  background-color: rgba(0, 0, 0, 0.12);
}
#menu .dropdown-menu {
  border-color: #d8eadb;
  box-shadow: 0 10px 24px rgba(18, 53, 36, 0.14);
}
#menu .dropdown-inner ul li a:hover,
#menu .see-all:hover,
#menu .see-all:focus {
  color: #ffffff;
  background-color: #2f9e44;
  background-image: linear-gradient(to bottom, #43b55a, #2f9e44);
}

footer {
  background-color: #123524;
  border-top: 1px solid #285638;
}
footer a {
  color: #d6e9d8;
}
footer a:hover {
  color: #ffffff;
}

.breadcrumb {
  border: 1px solid #d5ead8;
  background-color: #f3fbf3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.breadcrumb > li.breadcrumb-item,
.breadcrumb > li.breadcrumb-item > a {
  color: #2b5f38;
}
.breadcrumb > li.breadcrumb-item:after {
  border-color: transparent #d5ead8 #d5ead8 transparent;
}

.btn-light {
  color: #245c32;
  text-shadow: none;
  background-image: linear-gradient(to bottom, #f7fbf7, #e1efe3);
  border-color: #d3e5d7 #c2d8c8 #b7d0be #c8ddcd;
}
.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light.active,
.btn-light.disabled,
.btn-light[disabled] {
  color: #174f21;
  background-color: #dfeee1;
  border-color: #b4ccb9;
}

.btn-primary {
  color: #ffffff;
  text-shadow: none;
  background-image: linear-gradient(to bottom, #49bb60, #2f9e44);
  border-color: #2b8f3f #237a35 #1b5d28;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px rgba(35, 122, 53, 0.12);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled] {
  background-image: linear-gradient(to bottom, #2f9e44, #237a35);
  border-color: #237a35 #1f6b2d #174f21;
}

.btn-success {
  color: #ffffff;
  text-shadow: none;
  background-image: linear-gradient(to bottom, #3daa54, #237a35);
  border-color: #237a35 #237a35 #1b5d28;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
  background-image: linear-gradient(to bottom, #237a35, #1b5d28);
}

.btn-info {
  color: #ffffff;
  text-shadow: none;
  background-image: linear-gradient(to bottom, #6bc47d, #3f9f53);
  border-color: #3f9f53 #3a904d #2d713d;
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active,
.btn-info.disabled,
.btn-info[disabled] {
  background-image: linear-gradient(to bottom, #3f9f53, #2f7f42);
  background-color: #2f7f42;
}

.btn-link {
  color: #1f6b2d;
}
.btn-link:hover,
.btn-link:focus {
  color: #174f21;
}

.btn-inverse {
  color: #ffffff;
  text-shadow: none;
  background-color: #1f6b2d;
  background-image: linear-gradient(to bottom, #2d6e3a, #123524);
  border-color: #1f6b2d #174f21 #0d2818;
}
.btn-inverse:hover,
.btn-inverse:focus,
.btn-inverse:active,
.btn-inverse.active,
.btn-inverse.disabled,
.btn-inverse[disabled] {
  background-color: #123524;
  background-image: linear-gradient(to bottom, #1f6b2d, #123524);
}

.btn-outline-primary {
  color: #2f9e44;
  border-color: #2f9e44;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #2f9e44;
  border-color: #2f9e44;
}

.btn-outline-success {
  color: #237a35;
  border-color: #237a35;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active {
  background-color: #237a35;
  border-color: #237a35;
}

.product-thumb {
  border-color: #d8eadb;
  box-shadow: 0 8px 18px rgba(18, 53, 36, 0.05);
}
.product-thumb .button-group {
  background-color: #eef7ef;
  border-top-color: #d8eadb;
}
.product-thumb .button-group button {
  background-color: #eef7ef;
  color: #245c32;
}
.product-thumb .button-group button:hover {
  color: #ffffff;
  background-color: #2f9e44;
}

.badge {
  font-weight: 600;
  letter-spacing: 0.15px;
  border-radius: 999px;
}
.bg-primary,
.badge.bg-primary,
.text-bg-primary {
  background-color: #2f9e44 !important;
}
.bg-success,
.badge.bg-success,
.text-bg-success {
  background-color: #237a35 !important;
}
.bg-light.badge,
.badge.bg-light {
  color: #245c32 !important;
  border: 1px solid #d5ead8;
}

.page-link {
  color: #1f6b2d;
}
.page-link:hover {
  color: #174f21;
  background-color: #edf7ee;
  border-color: #cfe3d3;
}
.page-link:focus {
  color: #174f21;
  background-color: #edf7ee;
  border-color: #b9e1c2;
  box-shadow: 0 0 0 0.2rem rgba(47, 158, 68, 0.18);
}
.page-item.active .page-link,
.pagination .active > .page-link {
  color: #ffffff;
  background-color: #2f9e44;
  border-color: #2f9e44;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #2f9e44;
}
.list-group-item.active {
  background-color: #2f9e44;
  border-color: #2f9e44;
}

.dropdown-item:active,
.dropdown-item.active {
  background-color: #2f9e44;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #edf7ee;
  color: #174f21;
}

.form-control:focus,
.form-select:focus {
  border-color: #8bc799;
  box-shadow: 0 0 0 0.2rem rgba(47, 158, 68, 0.18);
}
.form-check-input:checked {
  background-color: #2f9e44;
  border-color: #2f9e44;
}
.form-check-input:focus {
  border-color: #8bc799;
  box-shadow: 0 0 0 0.2rem rgba(47, 158, 68, 0.18);
}

.accordion-button:not(.collapsed) {
  color: #1f6b2d;
  background-color: #edf7ee;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.alert-success {
  color: #174f21;
  background-color: #eaf7ea;
  border-color: #cfe7d4;
}
/* ================================
   Dr. Shams Premium Product Cards
   ================================ */

.product-layout {
  margin-bottom: 28px;
}

.product-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #dfeee3;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 94, 54, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-thumb:hover {
  transform: translateY(-6px);
  border-color: #cde2d3;
  box-shadow: 0 18px 36px rgba(17, 94, 54, 0.12);
}

.product-thumb .image {
  position: relative;
  padding: 18px 18px 10px;
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb .image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.product-thumb .image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .35s ease;
}

.product-thumb:hover .image img {
  transform: scale(1.04);
}

.product-thumb .caption,
.product-thumb .content {
  padding: 6px 20px 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-align: center;
}

.product-thumb h4 {
  margin: 8px 0 10px;
  min-height: 64px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.45;
}

.product-thumb h4 a {
  color: #0f6a3d;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb h4 a:hover {
  color: #169c55;
}

.product-thumb .description,
.product-thumb .caption p:not(.price),
.product-thumb .content p:not(.price):not(.price-tax):not(.rating) {
  margin: 0 0 12px;
  min-height: 56px;
  font-size: 15px;
  color: #5b6570;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb .price {
  margin: 4px 0 0;
  color: #152238;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.3;
}

.product-thumb .price-new {
  color: #152238;
  font-weight: 800;
}

.product-thumb .price-old {
  color: #9aa2ad;
  font-size: 1rem;
  margin-inline-start: 8px;
  text-decoration: line-through;
}

.product-thumb .price-tax {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #7b8694;
  line-height: 1.7;
}

.product-thumb .rating {
  margin: 8px 0 2px;
}

.product-thumb .button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px 20px;
  border: 0;
  background: transparent;
  margin-top: auto;
}

.product-thumb .button-group button,
.product-thumb .button-group .btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #dbe9df;
  background: #ffffff;
  color: #0f6a3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 18px rgba(17, 94, 54, 0.06);
  transition: all .25s ease;
}

.product-thumb .button-group button i,
.product-thumb .button-group .btn i {
  font-size: 18px;
}

.product-thumb .button-group button:hover,
.product-thumb .button-group .btn:hover {
  transform: translateY(-2px);
  border-color: #b7ddc4;
  box-shadow: 0 12px 24px rgba(17, 94, 54, 0.10);
}

.product-thumb .button-group button:last-child,
.product-thumb .button-group .btn:last-child {
  width: 52px;
  background: linear-gradient(135deg, #0f7a44 0%, #169c55 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(15, 122, 68, 0.18);
}

.product-thumb .button-group button:last-child i,
.product-thumb .button-group .btn:last-child i {
  color: #ffffff;
}

.product-thumb .button-group button:last-child:hover,
.product-thumb .button-group .btn:last-child:hover {
  background: linear-gradient(135deg, #0d6f3d 0%, #13894a 100%);
  box-shadow: 0 16px 28px rgba(15, 122, 68, 0.24);
}

.product-thumb .button-group button:focus,
.product-thumb .button-group .btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(22, 156, 85, 0.12);
}

/* تحسين مظهر العنوان والوصف والسعر في الشاشات الصغيرة */
@media (max-width: 768px) {
  .product-thumb {
    border-radius: 22px;
  }

  .product-thumb .image {
    padding: 16px 16px 8px;
  }

  .product-thumb h4 {
    min-height: auto;
    font-size: 1.2rem;
    line-height: 1.45;
  }

  .product-thumb .description,
  .product-thumb .caption p:not(.price),
  .product-thumb .content p:not(.price):not(.price-tax):not(.rating) {
    min-height: auto;
    font-size: 14px;
    line-height: 1.8;
  }

  .product-thumb .price {
    font-size: 1.35rem;
  }

  .product-thumb .button-group {
    gap: 8px;
    padding: 12px 14px 16px;
  }

  .product-thumb .button-group button,
  .product-thumb .button-group .btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .product-thumb .button-group button:last-child,
  .product-thumb .button-group .btn:last-child {
    width: 48px;
  }
}
.common-home .product-thumb .rating {
  display: none !important;
}
/* إخفاء التقييم في الصفحة الرئيسية فقط */
body[class*="common-home"] .product-thumb .rating,
body[class*="route-common-home"] .product-thumb .rating,
.common-home .product-thumb .rating,
#common-home .product-thumb .rating {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* =========================================
   Final home card cleanup: keep cart + wishlist only
   ========================================= */
body[class*="common-home"] .product-thumb .button-group > *:last-child,
body[class*="route-common-home"] .product-thumb .button-group > *:last-child,
.common-home .product-thumb .button-group > *:last-child,
#common-home .product-thumb .button-group > *:last-child {
  display: none !important;
}

body[class*="common-home"] .product-thumb .button-group > *:first-child,
body[class*="route-common-home"] .product-thumb .button-group > *:first-child,
.common-home .product-thumb .button-group > *:first-child,
#common-home .product-thumb .button-group > *:first-child {
  background: linear-gradient(135deg, #0f7a44 0%, #169c55 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(15, 122, 68, 0.18) !important;
}

body[class*="common-home"] .product-thumb .button-group > *:first-child i,
body[class*="route-common-home"] .product-thumb .button-group > *:first-child i,
.common-home .product-thumb .button-group > *:first-child i,
#common-home .product-thumb .button-group > *:first-child i {
  color: #ffffff !important;
}
/* Dr Shams - Wider Desktop Layout - English */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1540px !important;
    width: 94% !important;
  }
}

@media (min-width: 1600px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1640px !important;
    width: 94% !important;
  }
}
/* Dr Shams - Compact Top Bar on Mobile - English */
@media (max-width: 767px) {
  #top {
    min-height: auto !important;
    padding: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  #top .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #top .nav,
  #top .list-inline,
  #top ul {
    margin-bottom: 0 !important;
  }

  #top a,
  #top button,
  #top .btn,
  #top .btn-link {
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 4px 5px !important;
    margin: 0 !important;
  }

  #top i,
  #top .fa,
  #top .fa-solid {
    font-size: 13px !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
  }

  #top .dropdown-menu {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  #top .dropdown-menu a,
  #top .dropdown-menu button {
    font-size: 13px !important;
    padding: 7px 12px !important;
  }
}
/* Dr Shams - Better Mobile Footer and Menu Readability - English */
@media (max-width: 767px) {
  footer {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  footer h5,
  footer .h5 {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }

  footer a,
  footer p,
  footer li {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  footer ul {
    margin-bottom: 18px !important;
    padding-left: 0 !important;
  }

  footer .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #menu,
  #menu .navbar-nav,
  #menu .dropdown-menu {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  #menu .nav-link,
  #menu .dropdown-item,
  #menu a {
    font-size: 15px !important;
    line-height: 1.8 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
/* Dr Shams - Product Trust Icons - Final */
.drshams-trust-icons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 14px 0 16px 0 !important;
  clear: both !important;
}

.drshams-trust-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  background: linear-gradient(180deg,#f8fff9 0%,#ffffff 100%) !important;
  border: 1px solid #dcefe0 !important;
  border-radius: 15px !important;
  padding: 10px 6px !important;
  text-align: center !important;
  color: #075c35 !important;
  box-shadow: 0 6px 16px rgba(17,94,54,0.06) !important;
}

.drshams-trust-icon-image {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  margin: 0 auto 6px auto !important;
}

.drshams-trust-item strong {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  min-height: 34px !important;
}

html[lang^="ar"] .drshams-trust-en {
  display: none !important;
}

html:not([lang^="ar"]) .drshams-trust-ar {
  display: none !important;
}

@media (max-width: 767px) {
  .drshams-trust-icons {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .drshams-trust-item {
    flex: 1 1 calc(50% - 8px) !important;
  }

  .drshams-trust-icon-image {
    width: 40px !important;
    height: 40px !important;
  }

  .drshams-trust-item strong {
    font-size: 13px !important;
  }
}
@media (max-width: 767px) {
  #top .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  #top .nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
  }

  #top .nav > li,
  #top .nav > div {
    flex: 0 0 auto;
  }

  #top .dropdown-toggle,
  #top a {
    white-space: nowrap;
  }
}
@media (max-width: 767px) {
  header .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  header img {
    max-width: 100%;
    height: auto;
  }

  #search,
  #cart {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  header .container,
  header .container-fluid,
  header .row {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
  }

  header img {
    max-width: 100%;
    height: auto;
  }

  #logo,
  #search,
  #cart {
    max-width: 100%;
  }

  #search .input-group,
  #cart > .btn,
  #cart button {
    max-width: 100%;
  }
}/* Dr Shams - Mobile Header Width Alignment */
@media (max-width: 767px) {
  header .row {
    --bs-gutter-x: 0 !important;
  }

  header .row > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  header #cart {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* Dr Shams - Premium Mobile Top Bar */
@media (max-width: 767px) {
  #top {
    padding: 4px 0 !important;
    min-height: auto !important;
    border-bottom: 1px solid #e5f1e7;
    background: #fbfffc;
  }

  #top .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #top .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  #top .nav > li,
  #top .nav > div {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  #top a,
  #top button,
  #top .btn,
  #top .dropdown-toggle {
    font-size: 13px !important;
    line-height: 1.2 !important;
    padding: 4px 5px !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  #top i,
  #top .fa,
  #top .fa-solid {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  #top .dropdown-menu {
    font-size: 13px !important;
  }
}
/* Dr Shams - Product Buy Row Mobile Enhancement */
@media (max-width: 767px) {
  .drshams-product-buy-row {
    width: 100%;
    align-items: stretch;
    margin: 14px 0 12px 0;
  }

  .drshams-product-buy-row .input-group-text {
    min-width: 74px;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    background: #f8faf9;
    color: #1f2937;
  }

  .drshams-product-buy-row #input-quantity {
    min-height: 52px;
    font-size: 17px;
    text-align: center;
  }

  .drshams-product-buy-row #button-cart {
    min-height: 52px;
    min-width: 132px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(180deg, #37b957 0%, #0b8f3a 100%);
    border-color: #087a31;
    box-shadow: 0 6px 14px rgba(11,143,58,0.22);
  }
}
/* Dr Shams - Product Page Title Mobile Only */
@media (max-width: 767px) {
  .drshams-product-title {
    font-size: 30px !important;
    line-height: 1.28 !important;
    margin-top: 14px !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 390px) {
  .drshams-product-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
}
