body {
  width: 100%;
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: #5a4ba1;
}
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%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -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: 300px;
}
@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* 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: #8a7fc4;
  background-image: linear-gradient(to bottom, #6b5ca8, #c3b5e8);
  background-repeat: repeat-x;
  border: 1px solid #8a7fc4;
  border-color: #6b5ca8 #6b5ca8 #4e3c7f;
  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-left-radius: 0;
  border-top-right-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 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#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;
}
/* 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: right;
  }
}
/* 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: "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 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;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 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-left: 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-left: 1px solid #ddd;
    width: calc(100% -  15px);
    margin-left: 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;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}
button, .btn {
  background-color: #8a7fc4;
  background-image: linear-gradient(to bottom, #6b5ca8, #c3b5e8);
  border: 1px solid #6b5ca8;
  border-radius: 4px;
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #6b5ca8;
  background-image: linear-gradient(to bottom, #4e3c7f, #8a7fc4);
  border-color: #4e3c7f;
}
.category-list, .list-group {
  border: none;
  border-radius: 0;
  background: transparent;
}

.list-group-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  color: #4e3c7f;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item.active,
.list-group-item:hover {
  background-color: #8a7fc4;
  background-image: linear-gradient(to bottom, #6b5ca8, #c3b5e8);
  color: #fff;
}

.breadcrumb i,
.breadcrumb a {
  color: #6b5ca8; /* Your brand purple for icon + link text */
  font-weight: 600; /* Optional: make text bolder */
}

.breadcrumb a:hover {
  color: #4e3c7f; /* Darker purple on hover */
}
.product-thumb h4 a {
  color: #6b5ca8;
  font-weight: 600;
  transition: color 0.3s ease;
}

.product-thumb h4 a:hover {
  color: #4e3c7f;
}

.product-thumb .button-group button {
  color: #fff !important;  /* Force white icon/text */
  background-color: #8a7fc4 !important;
  background-image: linear-gradient(to bottom, #6b5ca8, #c3b5e8) !important;
  border: 1px solid #6b5ca8 !important;
}

.product-thumb .button-group button:hover {
  color: #e0e0e0 !important;  /* Force light icon on hover */
  background-color: #6b5ca8 !important;
  background-image: linear-gradient(to bottom, #4e3c7f, #8a7fc4) !important;
  border-color: #4e3c7f !important;
}
footer {
  background-color: #8a7fc4;
  background-image: linear-gradient(to bottom, #6b5ca8, #c3b5e8);
  background-repeat: repeat-x;
  border-top: 1px solid #6b5ca8;
  color: #fff;
}
/* ----------------------------------------------------
   MOBILE FOOTER ACCORDION — BuyOnlineMedication.com
   (Only applies below 992px — desktop unaffected)
---------------------------------------------------- */

@media (max-width: 991px) {

  footer h5 {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 12px 0;
    position: relative;
    cursor: pointer;
  }

  /* Arrow Icon */
  footer h5:after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: #EAE7FA;
    transition: transform 0.3s ease;
  }

  /* Active state */
  footer h5.active:after {
    transform: rotate(180deg);
    color: #FFFFFF;
  }

  /* Hide lists on mobile */
  footer h5 + ul {
    display: none;
    padding-left: 0;
    list-style: none;
  }

  /* Show when active */
  footer h5.active + ul {
    display: block;
  }

  /* Divider lines between sections */
  footer .row > div {
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 12px;
    margin-bottom: 12px;
  
}

footer a {
  color: #fff;
}

footer a:hover {
  color: #e0e0e0;
}
.bom-faq-section {
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.bom-faq-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #5a4ba1;
  margin-bottom: 15px;
}
.bom-question {
  padding: 12px;
  background: #eae7fa;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}
.bom-answer {
  display: none;
  padding: 12px;
  background: #fdfdfe;
  color: #444;
}
.bom-question.bom-active + .bom-answer {
  display: block;
}
#content a[href*="tag="] {
  color: #5a4ba1 !important;
  text-decoration: none;
}

#content a[href*="tag="]:hover {
  color: #3e2d80 !important;
  text-decoration: underline;
}
.nav-tabs .nav-link {
  color: #5a4ba1;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  color: #3e2d80;
  border-color: #5a4ba1 #5a4ba1 #fff;
}
.nav-tabs .nav-link::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  color: #5a4ba1;
  font-weight: bold;
}
.product-info .rating a[href="#"],
.product-info .rating a[onclick*="tab-review"] {
  color: #5a4ba1 !important;
  text-decoration: none !important;
}

.product-info .rating a[href="#"]:hover,
.product-info .rating a[onclick*="tab-review"]:hover {
  color: #3e2d80 !important;
  text-decoration: underline !important;
}

.page-title {
  color: #5a4ba1;
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}
.page-title {
  color: #5a4ba1 !important;
  font-weight: bold !important;
  font-size: 2rem !important;
  text-align: center !important;
  margin-bottom: 30px !important;
}
/* Force all old OpenCart blues → brand purple */
a,
a:visited,
.btn-primary,
.pagination > li > a,
.pagination > li > span {
  color: #5a4ba1;
}

a:hover,
a:focus,
.btn-primary:hover,
.btn-primary:focus {
  color: #3e2d80;
}
.btn-primary,
.button,
input[type="submit"] {
  background-color: #5a4ba1 !important;
  background-image: linear-gradient(to bottom, #6b5ca8, #c3b5e8) !important;
  border-color: #4e3c7f !important;
  color: #fff !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: #5a4ba1 #5a4ba1 #fff;
  color: #3e2d80;
}
/* === Footer Styling Fix === */

/* Footer headings */
footer h5 {
  color: #ffffff !important;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Footer links */
footer a {
  color: #f2f2f2 !important;   /* off-white for readability */
  text-decoration: none;
}

footer a:hover {
  color: #ffffff !important;   /* brighter white on hover */
  text-decoration: underline;
}

/* Footer paragraphs/text */
footer,
footer p,
footer li {
  color: #e0e0e0 !important;
  font-size: 13px;
}
/* Force top menu items to be white */
#menu .navbar-nav > li > a,
#menu .navbar-nav > li > a.dropdown-item {
  color: #ffffff !important;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: transparent;
}

/* Hover and active states */
#menu .navbar-nav > li > a.dropdown-item:hover,
#menu .navbar-nav > li.active > a.dropdown-item {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
}
/* Adjust card padding for small screens */
@media (max-width: 576px) {
  .card {
    padding: 20px !important;
  }

  .card h3 {
    font-size: 1.2rem !important;
  }

  .card p {
    font-size: 14px !important;
    text-align: left !important;
  }

  .container {
    padding: 10px 15px !important;
  }
}

/* Optional: center the text for smaller screens */
@media (max-width: 768px) {
  .text-center {
    text-align: center !important;
  }
}
@media (max-width: 576px) {
  /* Force the category image to go full width above the text */
  .category-info img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 15px auto !important;
    float: none !important;
  }

  .category-info {
    display: block !important;
    text-align: center !important;
  }

  .category-description .card {
    padding: 15px !important;
  }

  .category-description p {
    font-size: 14px;
    text-align: left;
  }

  .category-description h3 {
    font-size: 1.1rem;
  }
}
.splash-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.splash-button-group a {
  flex: 1 1 140px;
  min-width: 120px;
  text-align: center;
}
@media (max-width: 480px) {
  .fake-sales-ticker {
    width: auto !important;
    max-width: 92vw !important;
    left: 4vw !important;
    right: auto !important;
    bottom: 16px !important;
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .fake-sales-ticker .msg {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .fake-sales-ticker .flag {
    flex: 0 0 24px !important;
    height: 24px !important;
    width: 24px !important;
    border-radius: 5px !important;
  }

  .fake-sales-ticker .close-btn {
    font-size: 12px !important;
    padding: 0 6px !important;
  }
}
/* Override AQC7 blue buttons to match theme */
.ve-btn--primary {
  background-color: #5a4ba1 !important;
  border-color: #4e3c7f !important;
  color: #fff !important;
}
}

@media (max-width: 991px) {
    #content,
    #column-left,
    #column-right {
        padding-bottom: 40px !important;   /* was 730px */
    }

    footer {
        position: relative !important; /* stop forcing it off-screen */
        bottom: 0 !important;
    }
}
/* ----------------------------------------------------
   MOBILE FOOTER — EVEN OUT ACCORDION HEADER HEIGHT
---------------------------------------------------- */

@media (max-width: 991px) {

    footer h5 {
        padding: 10px 0 !important;  /* consistent header spacing */
        margin: 0 !important;
    }

    footer h5 + ul li a {
        padding: 6px 0 !important;  /* consistent list spacing */
        display: block;
    }
}
/* ----------------------------------------------------
   FINAL FIX — FORCE ALL ACCORDION HEADERS SAME HEIGHT
---------------------------------------------------- */
@media (max-width: 991px) {

    footer h5 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        min-height: 44px !important;  /* ensures identical height */
        display: flex;
        align-items: center;          /* centers text visually */
    }
}
/* ==========================================
   BUYONLINEMEDICATION — FINAL ACCORDION LINES
   MOBILE ONLY — EXACT SPEC
========================================== */
@media (max-width: 991px) {

    /* Fix broken theme positioning */
    footer {
        position: relative !important;
        bottom: auto !important;
    }

    /* Standard accordion header */
    footer h5 {
        font-size: 17px;
        font-weight: 600;
        margin: 0 !important;
        padding: 14px 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    /* Arrow indicator */
    footer h5:after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        transition: transform 0.3s ease;
        color: #EAE7FA;
    }

    footer h5.active:after {
        transform: rotate(180deg);
    }

    /* Hide lists by default */
    footer h5 + ul {
        display: none;
    }

    /* Show list when heading is active */
    footer h5.active + ul {
        display: block;
    }

    /* Remove ALL borders so we can apply clean ones */
    footer .row > div {
        border: none !important;
    }

    /* Add a line above each section INCLUDING INFORMATION */
    footer .row > div {
        border-top: 1px solid rgba(255,255,255,0.25) !important;
    }

    /* NO bottom border — keep clean ending */
    footer .row > div:last-child {
        border-bottom: none !important;
    }
}
/* ==========================================
   FOOTER CLEANUP + ICONS
   Mobile Only
========================================== */
@media (max-width: 991px) {

    /* Remove faint HR / borders under accordion */
    footer hr {
        border: none !important;
    }

    footer p, 
    footer .powered {
        border-top: none !important;
    }

    /* Base icon spacing for headers */
    footer h5 {
        padding-left: 28px !important;
        position: relative;
    }

    /* INFORMATION icon */
    footer .row > div:nth-child(1) h5::before {
        content: "\f05a"; /* info-circle */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 14px;
    }

    /* CUSTOMER SERVICE icon */
    footer .row > div:nth-child(2) h5::before {
        content: "\f0e0"; /* envelope */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 14px;
    }

    /* EXTRAS icon */
    footer .row > div:nth-child(3) h5::before {
        content: "\f005"; /* star */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 14px;
    }

    /* MY ACCOUNT icon */
    footer .row > div:nth-child(4) h5::before {
        content: "\f007"; /* user */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 14px;
    }
}
/* --- GLOBAL BUTTON RESTYLE --- */
.btn,
button,
.product-thumb .button button {
    border-radius: 6px !important;          /* soft, not rounded */
    background: linear-gradient(to bottom, #e8e3f8, #cfc7f0) !important;
    border: 1px solid #b9b2d6 !important;
    color: #4b3c76 !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.btn:hover,
button:hover,
.product-thumb .button button:hover {
    background: linear-gradient(to bottom, #f5f2ff, #dcd5f5) !important;
    border-color: #a49ac8 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* --- ICON BUTTONS (heart, compare, refresh) --- */
.btn-wishlist,
.btn-compare,
.product-thumb .button button i,
button i {
    color: #4b3c76 !important;
}

/* --- PRODUCT PAGE HEART / COMPARE BUTTONS --- */
button.btn.btn-light,
button.btn.btn-default {
    background: linear-gradient(to bottom, #ece7fa, #d8d2f2) !important;
    border-radius: 6px !important;
    border: 1px solid #cbc3e8 !important;
    padding: 10px 14px !important;
}

/* --- QUANTITY BUTTONS ( + / - ) --- */
.input-group-btn button,
button.btn-quantity {
    background: linear-gradient(to bottom, #ede9fb, #d8d1f2) !important;
    border: 1px solid #c8c0e6 !important;
    color: #4b3c76 !important;
    height: 44px !important;
    width: 44px !important;
}

/* --- MAKE MOBILE BUTTON GROUPS SPACED --- */
@media (max-width: 768px) {
    .product-thumb .button button {
        margin: 5px !important;
        width: 48% !important;
    }

    .btn, button {
        padding: 12px 18px !important;
    }

    .input-group-btn button {
        width: 48px !important;
        height: 48px !important;
    }
}

/* --- ADD TO CART BUTTON CLEANED UP --- */
#button-cart,
button#button-cart {
    background: linear-gradient(to right, #6a5bbe, #8c79e8) !important;
    border-radius: 8px !important;
    color: #fff !important;
    border: none !important;
    font-size: 1.1rem !important;
    padding: 14px !important;
    box-shadow: 0 4px 10px rgba(80,60,150,0.25);
    transition: all 0.25s ease;
}

#button-cart:hover {
    background: linear-gradient(to right, #8c79e8, #6a5bbe) !important;
    transform: translateY(-2px);
}
/* --------------------------------------------------
   PRODUCT BUTTON GROUP — FIX FLOATING & SPACING
-------------------------------------------------- */

/* Remove the condensed grouping */
.product-thumb .button {
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    background: transparent !important;
    position: relative !important;
    top: 0 !important;
}

/* Make each button equal width but separated */
.product-thumb .button button {
    flex: 1 !important;
    border-radius: 8px !important;
    background: linear-gradient(to bottom, #f6f3ff, #e5e0f8) !important;
    border: 1px solid #d1c9ef !important;
    color: #4b3c76 !important;
    height: 50px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

/* Fix icons */
.product-thumb .button button i {
    color: #4b3c76 !important;
}

/* --------------------------------------------------
   FIX BUTTONS COVERING STAR RATINGS
-------------------------------------------------- */

.product-thumb .rating {
    margin-bottom: 60px !important;  /* Adds space between stars and floating buttons */
    z-index: 5 !important;
    position: relative !important;
}

/* --------------------------------------------------
   MOBILE FIX — VISIBLE, SPACED BUTTONS
-------------------------------------------------- */
@media (max-width: 768px) {
    .product-thumb .button {
        flex-direction: row !important;
        gap: 12px !important;
    }

    .product-thumb .button button {
        flex: 1 !important;
        height: 48px !important;
    }
}
/* --------------------------------------------------
   GLOBAL THEME-FRIENDLY BUTTON REWORK
   Soft purple, rounded, accessible contrast
-------------------------------------------------- */

:root {
    --soft-purple-light: #f3efff;
    --soft-purple-mid: #e3dcfa;
    --soft-purple-border: #c7bee8;
    --soft-purple-icon: #4c3e77;
    --hover-dark: #3a2f63;
    --hover-grey: #444;
}

/* UNIVERSAL BUTTONS */
.btn, button, .button, .product-thumb .button button {
    background: linear-gradient(to bottom, var(--soft-purple-light), var(--soft-purple-mid)) !important;
    border: 1px solid var(--soft-purple-border) !important;
    border-radius: 8px !important;
    color: var(--soft-purple-icon) !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

/* ACCESSIBILITY — HOVER/ACTIVE STATE */
.btn:hover, button:hover, .product-thumb .button button:hover {
    background: linear-gradient(to bottom, #ffffff, #e9e9e9) !important;
    border-color: #bfbfbf !important;
    color: var(--hover-grey) !important;
}

.btn:active, button:active {
    background: #dcdcdc !important;
    color: #000 !important;
}

/* ICONS */
.product-thumb .button button i,
button i,
.btn i {
    color: var(--soft-purple-icon) !important;
}

.product-thumb .button button:hover i {
    color: #222 !important;
}

/* ---------------------------------------------
   SAFE: Splash Page Buttons ONLY
   Won't affect any other page or element
--------------------------------------------- */

#content .splash-btn,
#content .splash-btn-large,
#content .animated-btn {
    background: linear-gradient(to bottom, #6a57b2, #c8b7f0) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12) !important;
    transition: all 0.25s ease !important;
}

/* Hover */
#content .splash-btn:hover,
#content .splash-btn-large:hover,
#content .animated-btn:hover {
    background: linear-gradient(to bottom, #5a4aa1, #8c75da) !important;
    transform: translateY(-2px);
}

/* Active */
#content .splash-btn:active,
#content .splash-btn-large:active,
#content .animated-btn:active {
    background: #333 !important;
    color: #fff !important;
}
/* =============================================================
   FIX PRODUCT LISTING BUTTONS
   Remove dark border + enable hover float-up animation
============================================================= */

/* Remove ugly outer border/panel */
.product-thumb .button-group,
.product-thumb .button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Position the button group for hover animation */
.product-thumb {
    position: relative !important;
    overflow: hidden !important;
}

/* Start hidden (slide-up animation) */
.product-thumb .button-group {
    position: absolute !important;
    bottom: -70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    transition: bottom 0.32s ease !important;
}

/* Slide up on hover */
.product-thumb:hover .button-group {
    bottom: 10px !important;
}

/* Individual buttons */
.product-thumb .button-group button {
    flex: 1 !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: linear-gradient(to bottom, #f3efff, #e3dcfa) !important;
    border: 1px solid #d4caef !important;
    color: #4b3c76 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transition: all 0.2s ease !important;
}

/* Hover state (clean, light hover — not black) */
.product-thumb .button-group button:hover {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0) !important;
    color: #000 !important;
    border-color: #ccc !important;
}

/* Ensure star rating NEVER gets covered */
.product-thumb .rating {
    position: relative !important;
    z-index: 5 !important;
    margin-bottom: 55px !important;
}

/* =============================================================
   UNIVERSAL FLOAT-UP FIX FOR ALL PRODUCT MODULES
   Works even when caption sits above the buttons
============================================================= */

/* Hide all button containers below card */
.product-layout .button-group,
.product-layout .button {
    position: absolute !important;
    bottom: -80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    transition: bottom .32s ease !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 20 !important;
}

/* Float-up on hover of entire product card */
.product-layout:hover .button-group,
.product-layout:hover .button {
    bottom: 10px !important;
}

/* Buttons themselves */
.product-layout .button-group button,
.product-layout .button button {
    flex: 1 !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #f4f0ff !important;
    border: 1px solid #d8d0f3 !important;
    color: #4b3c76 !important;
    transition: all .2s ease !important;
}

/* Hover effect */
.product-layout .button-group button:hover,
.product-layout .button button:hover {
    background: #ffffff !important;
    border-color: #ccc !important;
    color: #000 !important;
}
/* ===== RED DELETE BUTTON (CART ONLY) ===== */

.cart-action-group a {
    background: #ff4a4a !important;       /* red button */
    color: #fff !important;
    border-left: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 0 !important;
    width: 60px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .2s ease !important;
}

.cart-action-group a:hover {
    background: #e13b3b !important;       /* darker red on hover */
}

.cart-action-group a i {
    color: #fff !important;
}
/* ============================
   MOBILE CART FIX (≤ 768px)
   Prevents horizontal scrolling
   Stacks elements neatly
============================ */

@media (max-width: 768px) {

    /* Make the quantity cell auto-height and vertical */
    td:nth-child(3) {
        min-width: 140px !important;
        white-space: normal !important;
    }

    /* Wrap Qty block + buttons cleanly */
    .cart-controls {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Keep qty group centered and within boundaries */
    .cart-qty-group {
        width: 130px !important;
        margin: 0 auto !important;
    }

    /* Stack update + delete nicely */
    .cart-action-group {
        width: 130px !important;
        display: flex !important;
    }

    .cart-action-group button,
    .cart-action-group a {
        width: 50% !important;
    }

    /* Prevent table overflow */
    #output-cart table {
        table-layout: fixed !important;
        width: 100% !important;
    }

    #output-cart td,
    #output-cart th {
        word-break: break-word !important;
        white-space: normal !important;
    }
}
/* =======================================
   CART FIX — DELETE + UPDATE BUTTONS
   Remove Bootstrap interference
======================================= */

/* Remove ALL Bootstrap btn styling */
.cart-action-group a.btn-danger,
.cart-action-group a,
.cart-action-group button {
    all: unset !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:48px !important;
    width:60px !important;
    cursor:pointer !important;
    border-radius:8px !important;
    font-size:18px !important;
}

/* Update button (↻) */
.cart-action-group button {
    background: linear-gradient(to bottom, #f3efff, #e3dcfa) !important;
    border:1px solid #d1c9ef !important;
    color:#4b3c76 !important;
}

/* Delete button (RED square) */
.cart-action-group a {
    background:#ff4a4a !important;
    border:1px solid #d83838 !important;
}

.cart-action-group a:hover {
    background:#e03939 !important;
}

.cart-action-group i {
    color:#fff !important;
}

/* =======================================
   MOBILE FIX — STACK ELEMENTS
======================================= */
@media (max-width: 768px) {

    .cart-controls {
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        gap:12px !important;
        width:100% !important;
    }

    .cart-qty-group {
        width:140px !important;
        margin:0 auto !important;
    }

    .cart-action-group {
        width:140px !important;
    }

    .cart-action-group button,
    .cart-action-group a {
        width:50% !important;
    }

    /* Prevent table cell overflow */
    #output-cart table {
        table-layout: fixed !important;
        width:100% !important;
    }

    #output-cart td,
    #output-cart th {
        white-space: normal !important;
        word-break: break-word !important;
    }
}
/* ================================
   ❄ SNOWFLAKE STYLE (Blue + Soft Glow)
   ================================ */

.snowflake {
  position: fixed;
  top: -10px;
  color: #8cd2ff; /* soft blue */
  pointer-events: none;
  user-select: none;
  z-index: 9999 !important;

  text-shadow:
      0 0 4px rgba(140,210,255,0.8),
      0 0 8px rgba(140,210,255,0.6);
  
  animation: snow_fall linear infinite;
}

/* Falling animation */
@keyframes snow_fall {
  0% {
    transform: translateY(-10vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0.3;
  }
}
/* ================================================
   GLOBAL PURPLE OVERRIDE — NUKE ALL BLUE LEAKS
   BuyOnlineMedication.com  —  FINAL FIX
================================================ */

/* Force all system-blue text → brand purple */
a,
a:visited,
.text-primary,
label a,
.product-info a,
.review-score a,
.page-link,
.pagination a,
.pagination > li > a,
.pagination > li > span {
    color: #5a4ba1 !important;
}

/* Hover states → darker purple */
a:hover,
a:focus,
.page-link:hover,
.pagination a:hover {
    color: #3e2d80 !important;
}

/* Primary button variants */
.btn-primary,
button.btn-primary,
input.btn-primary,
#button-review,
#button-search {
    background: linear-gradient(to bottom, #6b5ca8, #c3b5e8) !important;
    border-color: #4e3c7f !important;
    color: #fff !important;
}

/* Hover */
.btn-primary:hover,
button.btn-primary:hover,
#button-review:hover {
    background: linear-gradient(to bottom, #4e3c7f, #8a7fc4) !important;
    color: #ffffff !important;
}

/* Disable Bootstrap v5 blue variables */
:root {
    --bs-primary: #5a4ba1 !important;
    --bs-primary-rgb: 90, 75, 161 !important;
    --bs-link-color: #5a4ba1 !important;
    --bs-link-hover-color: #3e2d80 !important;
}

/* Breadcrumb blue fix */
.breadcrumb a,
.breadcrumb i {
    color: #6b5ca8 !important;
}
.breadcrumb a:hover {
    color: #4e3c7f !important;
}

/* Blog title, blog links */
.blog-thumb h4 a,
#content .blog-title a {
    color: #5a4ba1 !important;
}
.blog-thumb h4 a:hover,
#content .blog-title a:hover {
    color: #3e2d80 !important;
}

/* Tabs (description / review / blog / account pages) */
.nav-tabs .nav-link,
.nav-tabs .nav-link a {
    color: #5a4ba1 !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: #3e2d80 !important;
    border-color: #5a4ba1 #5a4ba1 #fff !important;
}

/* Review stars link (“Write a review”) */
.product-info .rating a {
    color: #5a4ba1 !important;
}
.product-info .rating a:hover {
    color: #3e2d80 !important;
}

/* Force ALL buttons that fallback to Bootstrap blue */
.btn-default,
.btn-light,
.btn-info,
button.btn-info {
    color: #4c3e77 !important;
    background: linear-gradient(to bottom, #f3efff, #e3dcfa) !important;
    border: 1px solid #c7bee8 !important;
}

/* Pagination active */
.pagination > .active > a,
.pagination > .active > span {
    background: #6b5ca8 !important;
    border-color: #4e3c7f !important;
    color: #fff !important;
}

/* Inputs using blue focus ring */
input:focus,
textarea:focus,
select:focus {
    border-color: #6b5ca8 !important;
    box-shadow: 0 0 0 0.2rem rgba(90, 75, 161, 0.25) !important;
}

/* ===================================================
   GLOBAL FIX — FORCE ALL LINKS TO THEMED PURPLE
   =================================================== */

a,
a:visited,
a:link,
a:active {
    color: #5a4ba1 !important;      /* main purple */
}

a:hover {
    color: #7b68ee !important;      /* lighter purple hover */
}

/* Fix Opencart breadcrumb links */
.breadcrumb a {
    color: #5a4ba1 !important;
}

/* Fix titles injected dynamically (e.g., blog heading links) */
h1 a, h2 a, h3 a {
    color: #5a4ba1 !important;
}
/* ==========================================================
   FINAL LINK COLOR FIX — OVERRIDES BOOTSTRAP COMPLETELY
   ========================================================== */

html body a,
html body a:link,
html body a:visited,
html body .text-primary,
html body .pagination a,
html body .pagination > li > a,
html body .pagination > li > span,
html body .product-info a,
html body .review-score a,
html body h1 a, 
html body h2 a, 
html body h3 a,
html body .breadcrumb a {
    color: #5a4ba1 !important;
}

/* Hover + focus */
html body a:hover,
html body a:focus,
html body .pagination a:hover,
html body .breadcrumb a:hover {
    color: #3e2d80 !important;
}

/* Active pagination */
html body .pagination > .active > a,
html body .pagination > .active > span {
    background: #6b5ca8 !important;
    border-color: #4e3c7f !important;
    color: #fff !important;
}
html body a,
html body a:link,
html body a:visited {
    color: #5a4ba1 !important;
}

html body a:hover,
html body a:focus {
    color: #3e2d80 !important;
}

/* Hard override of Bootstrap’s CSS variable */
:root {
    --bs-link-color: #5a4ba1 !important;
    --bs-link-hover-color: #3e2d80 !important;
    --bs-primary: #5a4ba1 !important;
}
/* ======================================================================
   FINAL FIX — OVERRIDE ALL BOOTSTRAP BLUE LINKS GLOBALLY
   This block MUST stay at the bottom of stylesheet.css
   ====================================================================== */

/* Global link color override (kills Bootstrap v3 + v5 blue) */
html body a,
html body a:link,
html body a:visited,
html body a * {
    color: #5a4ba1 !important;           /* main purple */
}

/* Hover color */
html body a:hover,
html body a:focus {
    color: #3e2d80 !important;           /* darker hover purple */
}

/* Override Bootstrap V3 rules that force blue */
html body a:not(.btn),
html body .pagination > li > a,
html body .pagination > li > span {
    color: #5a4ba1 !important;
}

/* Fix breadcrumb links */
.breadcrumb a,
.breadcrumb a:visited {
    color: #5a4ba1 !important;
}
.breadcrumb a:hover {
    color: #3e2d80 !important;
}

/* Fix tab headers (description / review / blog / account) */
.nav-tabs > li > a {
    color: #5a4ba1 !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    color: #3e2d80 !important;
    border-color: #5a4ba1 !important;
}

/* Fix OpenCart review link ("Write a review") */
.rating a {
    color: #5a4ba1 !important;
}
.rating a:hover {
    color: #3e2d80 !important;
}

/* Buttons that fallback to Bootstrap blue */
.btn,
button,
input[type="submit"],
input[type="button"] {
    color: #fff !important;
    background: linear-gradient(to bottom, #6b5ca8, #c3b5e8) !important;
    border-color: #4e3c7f !important;
}

/* Inputs blue-focus ring fix */
input:focus,
textarea:focus,
select:focus {
    border-color: #6b5ca8 !important;
    box-shadow: 0 0 0 0.2rem rgba(90, 75, 161, 0.25) !important;
}
/* ==========================================================
   WHITELIST — KEEP MENU, BUTTONS & CTA TEXT WHITE
   ========================================================== */

/* Top menu links */
#menu a,
#menu .nav > li > a,
#menu .dropdown-menu a {
    color: #ffffff !important;
}

/* Header navigation (if using different container) */
nav a,
.navigation a,
.top-links a {
    color: #ffffff !important;
}

/* ALL buttons should have white text */
.btn,
.btn-primary,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    color: #ffffff !important;
}

/* CTA buttons that use link instead of button */
a.btn,
a.btn-primary,
.card a.btn-primary {
    color: #ffffff !important;
}
/* ==========================================================
   FOOTER — MAKE TEXT BRIGHT OFF-WHITE FOR BETTER CONTRAST
   ========================================================== */

footer,
footer * {
    color: #f4f1ff !important;   /* soft off-white lavender */
}

/* Make footer headings slightly stronger */
footer h5,
footer .footer-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Ensure footer links stay readable (no purple override) */
footer a,
footer a:visited {
    color: #f4f1ff !important;
}

footer a:hover {
    color: #ffffff !important;
}
/* ==========================================================
   UNIVERSAL FOOTER BRIGHTENING — WORKS WITH ANY THEME
   ========================================================== */

#footer,
#footer *,
.footer,
.footer *,
.common-home #footer,
.common-home .footer,
.bottom-footer,
.bottom-footer * {
    color: #f4f1ff !important; /* off-white purple-tint */
}

/* Footer section headings */
#footer h5,
.footer h5,
#footer .footer-title,
.footer .footer-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Footer links */
#footer a,
.footer a,
#footer a:visited,
.footer a:visited {
    color: #f4f1ff !important;
}

#footer a:hover,
.footer a:hover {
    color: #ffffff !important;
}
/* ==========================================================
   FINAL FOOTER FIX — FORCE OFF-WHITE TEXT
   ========================================================== */

footer ul.list-unstyled li a,
footer .list-unstyled li a,
footer a,
footer a:visited {
    color: #f4f1ff !important;
}

footer a:hover {
    color: #ffffff !important;
}
