/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Site-wide look for the public pages. Loaded on every page after
main.css / responsive.css; it restyles the existing classes, so
the page markup and logic stay as they are.
–––––––––––––––––––––––––––––––––––––––––––––––––– */

:root {
  --ink: #131921;
  --ink-soft: #5b6472;
  --brand: #0d1452;
  --accent: #e7a340;
  --accent-dark: #c9851f;
  --line: #e4e7ec;
  --tint: #f5f6f8;
  --danger: #cf0d42;
}

body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Header search ---------- */

.header .navbar-form .form-control {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}

.header .navbar-form .form-control:focus {
  border-color: var(--brand);
}

.header .search-area button {
  height: 40px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.header .search-area button:hover,
.header .search-area button:focus {
  background: var(--ink);
  color: #fff;
}

/* ---------- Page banner ---------- */

.page-banner {
  padding: 34px 0 38px;
  background-color: var(--ink);
}

.page-banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(19, 25, 33, 0.94) 0%, rgba(19, 25, 33, 0.78) 55%, rgba(19, 25, 33, 0.55) 100%);
}

.page-banner .overlay {
  display: none;
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-align: left;
}

/* ---------- Page body ---------- */

.page {
  padding-top: 44px;
  padding-bottom: 64px;
}

.page h3 {
  font-weight: 700;
  color: var(--ink);
}

.page h3.special {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
}

.page h3.special:after {
  bottom: -1px;
  height: 3px;
  background: var(--accent);
}

.page a {
  color: var(--brand);
}

/* ---------- Buttons ---------- */

.page .btn,
.home-newsletter .btn {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: none;
  text-shadow: none;
  -webkit-transition: background 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease;
}

.page .btn-lg {
  padding: 13px 24px;
  font-size: 16px;
}

.page .btn-primary,
.page .btn-success,
.page .btn-danger,
.page .btn-warning,
.page .btn-default,
.page .review-form .btn-default,
.page .cform input[type="submit"] {
  background: var(--ink);
  color: #fff;
}

.page .btn-primary:hover,
.page .btn-primary:focus,
.page .btn-success:hover,
.page .btn-success:focus,
.page .btn-danger:hover,
.page .btn-danger:focus,
.page .btn-warning:hover,
.page .btn-warning:focus,
.page .btn-default:hover,
.page .btn-default:focus,
.page .cform input[type="submit"]:hover {
  background: var(--accent);
  color: var(--ink);
}

.page .btn:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Forms ---------- */

.page label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.page .form-control {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
  -webkit-transition: border-color 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page textarea.form-control {
  height: auto;
  min-height: 90px;
}

.page .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 20, 82, 0.12);
}

.page .form-control[disabled] {
  background: var(--tint);
  color: var(--ink-soft);
}

.page .form-group {
  margin-bottom: 18px;
}

.page .has-error .form-control {
  border-color: var(--danger);
  box-shadow: none;
}

.page .has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(207, 13, 66, 0.12);
}

.page .has-error .help-block {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b00b36;
}

/* select2 dropdowns, same height and border as the inputs */
.page .select2-container .select2-selection--single {
  height: 44px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
}

.page .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 12px;
  line-height: 42px;
  color: var(--ink);
}

.page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 6px;
}

.page .has-error .select2-container .select2-selection--single {
  border-color: var(--danger);
}

/* Message boxes (the pages print these with inline styles) */
.page div.error,
.page div.success {
  padding: 12px 14px !important;
  border: 1px solid;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.page div.error {
  border-color: #f3c0cc;
  background: #fdeef1 !important;
  color: #b00b36;
}

.page div.success {
  border-color: #b9e2c6;
  background: #edf8f0 !important;
  color: #1c6b35;
}

.page .alert {
  border-radius: 8px;
}

/* ---------- Customer account pages ---------- */

.account-nav {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.page .account-nav a {
  margin: 2px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-transition: background 0.15s ease, color 0.15s ease;
  transition: background 0.15s ease, color 0.15s ease;
}

.page .account-nav a .fa {
  margin-right: 7px;
  color: var(--ink-soft);
}

.page .account-nav a:hover,
.page .account-nav a:focus {
  background: var(--tint);
  text-decoration: none;
}

.page .account-nav a.active {
  background: var(--ink);
  color: #fff;
}

.page .account-nav a.active .fa {
  color: var(--accent);
}

.page .account-nav a.is-logout {
  margin-left: auto;
  color: var(--danger);
}

.page .account-nav a.is-logout .fa {
  color: var(--danger);
}

.user-content h3 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 22px;
}

/* ---------- Tables ---------- */

.page .table {
  border: 1px solid var(--line);
  font-size: 14px;
}

.page .table > thead > tr > th,
.page .table > tbody > tr > th,
.page .table > tbody > tr > td,
.page .table > tfoot > tr > td,
.page .table > tfoot > tr > th {
  padding: 12px 14px;
  border-color: var(--line);
  vertical-align: middle;
}

.page .table > thead > tr > th,
.page .table > tbody > tr:first-child > th {
  border-bottom-width: 1px;
  background: var(--tint);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.page .table-striped > tbody > tr:nth-of-type(odd) {
  background: #fff;
}

.page .table-hover > tbody > tr:hover {
  background: #fafbfc;
}

.page .bill-address td:first-child,
.page .bill-address th:first-child {
  width: 38%;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Old-style pagination (order history) */
div.pagination {
  display: block;
  margin: 24px 0 0;
  padding: 0;
  text-align: center;
}

div.pagination div.pagination {
  margin: 0;
}

div.pagination a,
div.pagination span.current,
div.pagination span.disabled {
  display: inline-block;
  min-width: 40px;
  margin: 3px 2px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

div.pagination a:hover,
div.pagination a:active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

div.pagination span.current {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

div.pagination span.disabled {
  background: var(--tint);
  color: #a9b1bd;
}

/* ---------- Cart and checkout ---------- */

.cart table img {
  width: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart input[type="number"],
.product .p-quantity input[type="number"] {
  width: 84px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
}

.cart input[type="number"]:focus,
.product .p-quantity input[type="number"]:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 20, 82, 0.12);
}

.cart table tr td .trash {
  color: var(--danger);
}

.cart table tr td.total-text,
.cart table tr th.total-text,
.cart table tr td.total-amount,
.cart table tr th.total-amount {
  font-size: 15px;
}

.page .cart table tr th.total-text,
.page .cart table tr th.total-amount {
  background: var(--tint);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.cart-buttons {
  margin-top: 28px;
}

.cart-buttons ul {
  margin: 0;
}

.cart-buttons li {
  margin-left: 10px;
  margin-bottom: 10px;
}

.page .cart-buttons li input[type="submit"],
.page .cart-buttons li a {
  padding: 11px 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cfd4dc;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.page .cart-buttons li input[type="submit"]:hover,
.page .cart-buttons li a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* The last button is the way forward (checkout) */
.page .cart-buttons li:last-child a {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.page .cart-buttons li:last-child a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- Product page ---------- */

.page .breadcrumb {
  margin-top: -16px;
  padding: 0;
  overflow: hidden; /* contain the floated items */
  background: transparent;
  font-size: 14px;
  color: var(--ink-soft);
}

.page .breadcrumb a {
  color: var(--ink-soft);
}

.page .breadcrumb a:hover {
  color: var(--brand);
}

ul.prod-slider li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #fff;
  -webkit-background-size: contain;
  background-size: contain;
  background-position: center center;
}

.product .bx-wrapper .bx-viewport {
  border-radius: 12px;
}

.prod-pager-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-position: center center;
}

#prod-pager a {
  margin-right: 8px;
}

#prod-pager a.active .prod-pager-thumb {
  border-color: var(--brand);
}

.product .p-title h2 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.product .p-review .rating,
.page .rating .fa {
  color: var(--accent);
}

.product .p-short-des {
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.product .p-price {
  margin-bottom: 22px;
  color: var(--brand);
}

.product .p-price span {
  font-size: 30px;
}

.product .p-price del {
  font-size: 18px;
  font-weight: 400;
  color: #8a93a0;
}

.product .p-quantity {
  margin-bottom: 24px;
  font-weight: 500;
}

.product .btn-cart a,
.product .btn-cart1 input[type="submit"] {
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  -webkit-transition: background 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease;
}

.product .btn-cart a:hover,
.product .btn-cart1 input[type="submit"]:hover {
  background: var(--ink);
  color: #fff;
}

.product .out-of-stock {
  text-align: left;
}

.product .out-of-stock .inner {
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--tint);
  color: #8a93a0;
  font-weight: 500;
  text-decoration: none;
}

.product ul.nav-tabs {
  margin-top: 44px;
  border-bottom: 1px solid var(--line);
}

.product .nav-tabs > li > a {
  margin-right: 4px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.product .nav-tabs > li > a:hover,
.product .nav-tabs > li > a:focus {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.product .nav-tabs > li.active > a,
.product .nav-tabs > li.active > a:hover,
.product .nav-tabs > li.active > a:focus {
  border: 0;
  border-bottom: 3px solid var(--accent);
  background: transparent;
  color: var(--ink);
}

.review-form h2 {
  font-size: 20px;
}

/* ---------- FAQ ---------- */

.page .panel-group .panel {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.page .panel-group .panel + .panel {
  margin-top: 0;
}

.page .panel-default > .panel-heading {
  padding: 16px 18px;
  border: 0;
  background: #fff;
  cursor: pointer;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}

.page .panel-default > .panel-heading:hover {
  background: var(--tint);
}

.page .panel-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.page .panel-default > .panel-heading + .panel-collapse > .panel-body {
  padding: 4px 18px 18px;
  border-top: 0;
  color: var(--ink-soft);
}

.page .label-primary {
  background: var(--brand);
}

/* ---------- Contact ---------- */

.page .well {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.page legend {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.page iframe {
  border-radius: 12px;
}

/* ---------- Newsletter and footer ---------- */

.home-newsletter {
  padding: 48px 0;
  background: var(--tint);
  border-top: 1px solid var(--line);
}

.home-newsletter .single {
  max-width: none;
  text-align: center;
}

.home-newsletter .single h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.home-newsletter .single .form-control {
  height: 48px;
  padding: 10px 16px;
  border: 1px solid #cfd4dc;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
}

.home-newsletter .single .form-control:focus {
  border-color: var(--brand);
}

.home-newsletter .single .btn {
  min-width: 0;
  height: 48px;
  padding: 0 24px;
  border-radius: 0 8px 8px 0;
  background: var(--ink);
  color: #fff;
}

.home-newsletter .single .btn:hover,
.home-newsletter .single .btn:focus {
  background: var(--accent);
  color: var(--ink);
}

.footer-bottom {
  padding: 18px 0;
  background: var(--ink);
}

.footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.7);
}

.scrollup i {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
  line-height: 42px;
  font-size: 22px;
  opacity: 0.85;
}

.scrollup i:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 991px) {
  .page-banner h1 {
    font-size: 26px;
  }
  .page .account-nav a.is-logout {
    margin-left: 2px;
  }
}

@media only screen and (max-width: 767px) {
  .page-banner {
    padding: 24px 0 28px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
  .page {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .product .p-title h2 {
    font-size: 22px;
  }
  ul.prod-slider li {
    height: 320px;
  }
  .cart-buttons ul {
    float: none;
    padding: 0;
  }
  .cart-buttons li {
    float: none;
    margin-left: 0;
  }
  .page .cart-buttons li input[type="submit"],
  .page .cart-buttons li a {
    display: block;
    width: 100%;
    text-align: center;
  }
}
