body {
  width: 100%;
  height: 100%;
  font-family: "Lato", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  color: #444;
  font-family: "Lato", sans-serif;
}
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: 200px;
}
@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: #000000;
  background-image: none;
  background-repeat: repeat-x;
  border: 1px solid #000000;
  border-color: #000000 #000000 #000000;
  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: "Lato", 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;
}

/* ========== Invoice Styles ========== */
.invoice-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 40px 45px;
  margin-bottom: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Invoice Header */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 25px;
  border-bottom: 3px solid #1a1a2e;
  margin-bottom: 30px;
}
.invoice-header-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.invoice-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
.invoice-store-name {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}
.invoice-store-detail {
  font-size: 12.5px;
  color: #666;
  line-height: 1.7;
}
.invoice-store-detail i {
  width: 16px;
  color: #999;
  margin-right: 4px;
}
.invoice-title {
  font-size: 42px;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: 6px;
  margin: 0;
  line-height: 1;
}

/* Invoice Meta */
.invoice-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.invoice-meta-item {
  flex: 1;
  min-width: 140px;
  background: #f8f9fa;
  padding: 14px 18px;
  border-radius: 6px;
  border-left: 3px solid #1a1a2e;
}
.invoice-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 4px;
}
.invoice-meta-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
.invoice-status {
  color: #0a7c42;
}

/* Addresses */
.invoice-addresses {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
.invoice-address-block {
  flex: 1;
  background: #fafbfc;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px;
}
.invoice-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #1a1a2e;
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}
.invoice-address-content {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}
.invoice-method {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
  font-size: 13px;
  color: #555;
}

/* Products Table */
.invoice-table-wrapper {
  margin-bottom: 0;
  overflow-x: auto;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.invoice-table thead tr {
  background: #1a1a2e;
  color: #fff;
}
.invoice-table thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
}
.invoice-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.15s;
}
.invoice-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.invoice-table tbody tr:hover {
  background: #f0f4ff;
}
.invoice-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  color: #333;
}
.invoice-col-num {
  width: 50px;
  text-align: center;
  color: #999;
  font-weight: 600;
}
.invoice-col-qty, .invoice-col-price, .invoice-col-total {
  text-align: right;
  white-space: nowrap;
}
.invoice-col-total {
  font-weight: 600;
}
.invoice-table thead .invoice-col-num { text-align: center; }
.invoice-table thead .invoice-col-qty,
.invoice-table thead .invoice-col-price,
.invoice-table thead .invoice-col-total { text-align: right; }
.invoice-product-details {
  margin-top: 4px;
}
.invoice-product-model,
.invoice-product-option {
  display: block;
  font-size: 12px;
  color: #888;
}
.invoice-table a {
  color: #1a1a2e;
  text-decoration: none;
}
.invoice-table a:hover {
  color: #000000;
}

/* Totals */
.invoice-totals {
  max-width: 360px;
  margin-left: auto;
  margin-top: 0;
  padding: 20px 0;
  border-top: 2px solid #1a1a2e;
}
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
}
.invoice-total-row + .invoice-total-row {
  border-top: 1px solid #f0f0f0;
}
.invoice-total-grand {
  background: #1a1a2e;
  color: #fff;
  border-radius: 4px;
  margin-top: 6px;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 800;
}
.invoice-total-label {
  font-weight: 600;
}
.invoice-total-grand .invoice-total-label,
.invoice-total-grand .invoice-total-value {
  color: #fff;
}

/* Comment */
.invoice-comment {
  margin-top: 25px;
  padding: 18px 20px;
  background: #fffbf0;
  border: 1px solid #f0e6c8;
  border-radius: 6px;
}
.invoice-comment .invoice-section-label {
  color: #b8860b;
  border-bottom-color: #f0e6c8;
}
.invoice-comment-content {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Footer Note */
.invoice-footer-note {
  text-align: center;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.invoice-footer-note p {
  font-size: 15px;
  font-weight: 600;
  color: #999;
  font-style: italic;
  margin: 0;
}

/* Actions */
.invoice-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.invoice-actions .btn {
  min-width: 180px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* History Section */
.invoice-history-section {
  margin-bottom: 30px;
}
.invoice-history-toggle {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  padding: 10px 0;
  width: 100%;
  text-align: left;
}
.invoice-history-toggle:hover {
  color: #1a1a2e;
}
.invoice-history-toggle .fa-chevron-down {
  float: right;
  transition: transform 0.3s;
}
.invoice-history-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
  .invoice-wrapper {
    padding: 22px 18px;
  }
  .invoice-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .invoice-header-left {
    flex-direction: column;
    align-items: center;
  }
  .invoice-header-right {
    text-align: center;
    width: 100%;
  }
  .invoice-title {
    font-size: 30px;
    letter-spacing: 4px;
  }
  .invoice-meta {
    flex-direction: column;
  }
  .invoice-addresses {
    flex-direction: column;
    gap: 15px;
  }
  .invoice-actions {
    flex-direction: column;
  }
  .invoice-actions .btn {
    width: 100%;
  }
  .invoice-totals {
    max-width: 100%;
  }
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-wrapper, .invoice-wrapper * {
    visibility: visible;
  }
  .invoice-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 20px;
  }
  .no-print, #top, header, footer, .breadcrumb, #column-left, #column-right {
    display: none !important;
  }
}
