:root {
  --cigar-bg: #f3efe7;
  --cigar-paper: #fffdf9;
  --cigar-ink: #211a14;
  --cigar-deep: #17130f;
  --cigar-deep-2: #282016;
  --cigar-gold: #b98a3d;
  --cigar-gold-light: #d6b56e;
  --cigar-line: #dfd5c3;
  --cigar-muted: #786d61;
  --cigar-danger: #8c3028;
  --cigar-radius: 12px;
  --cigar-shadow: 0 8px 28px rgba(31, 23, 15, .09);
}

html { background: var(--cigar-deep); }
body.cigar-h5-body {
  background: var(--cigar-bg);
  color: var(--cigar-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  padding-bottom: 0;
}
a { color: #6e4a18; }
a:hover, a:focus { color: var(--cigar-gold); text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--cigar-ink); font-weight: 600; }
.container { max-width: 1220px; }

.h5-age-strip {
  background: #0e0c09;
  color: #bfb3a1;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 5px 0;
  text-align: center;
}
.h5-age-strip i { color: var(--cigar-gold); margin-right: 6px; }

#top.h5-topbar {
  background: var(--cigar-deep);
  border: 0;
  color: #d4c7b4;
  min-height: 38px;
  margin: 0;
}
.h5-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.h5-top-contact { font-size: 13px; padding: 8px 0; }
#top.h5-topbar a { color: #d4c7b4; text-shadow: none; }
#top.h5-topbar a:hover { color: var(--cigar-gold-light); }
#top.h5-topbar .list-inline { margin: 0; }

.h5-main-header {
  background: linear-gradient(135deg, #1b1611 0%, #2d2419 58%, #1a1510 100%);
  border-top: 1px solid rgba(214,181,110,.18);
  padding: 20px 0;
  position: relative;
}
.h5-main-header:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(30deg, transparent 12%, rgba(214,181,110,.18) 12.5%, transparent 13%), linear-gradient(150deg, transparent 12%, rgba(214,181,110,.11) 12.5%, transparent 13%);
  background-size: 54px 54px;
}
.h5-header-row { display: flex; align-items: center; position: relative; z-index: 1; }
.h5-logo img { max-height: 70px; width: auto; }
.h5-wordmark { display: inline-flex; flex-direction: column; color: #f4e9d5; letter-spacing: .08em; }
.h5-wordmark span { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 700; }
.h5-wordmark small { color: var(--cigar-gold-light); font-size: 9px; letter-spacing: .24em; }

#search .form-control {
  background: #fffdf9;
  border: 1px solid #d8c7aa;
  border-radius: 24px 0 0 24px;
  box-shadow: none;
  height: 46px;
  padding-left: 20px;
}
#search .btn {
  background: linear-gradient(180deg, #d4ae62, #a9782d);
  border: 1px solid #d4ae62;
  border-radius: 0 24px 24px 0;
  color: #17130f;
  height: 46px;
  min-width: 56px;
  text-shadow: none;
}
.h5-header-cart #cart { margin: 0; }
.h5-header-cart #cart > .btn {
  background: transparent;
  border: 1px solid rgba(214,181,110,.55);
  border-radius: 24px;
  color: #f0dfc2;
  text-shadow: none;
}
.h5-header-cart #cart.open > .btn, .h5-header-cart #cart > .btn:hover { background: rgba(185,138,61,.16); color: #fff; }
#cart .dropdown-menu { border: 1px solid var(--cigar-line); border-radius: 10px; box-shadow: var(--cigar-shadow); min-width: 330px; }

.h5-menu-wrap { margin-top: 0; }
#menu.h5-category-nav {
  background: linear-gradient(90deg, #8e6327, #c29a51 50%, #8e6327);
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 16px rgba(66,42,12,.16);
  margin: 0 0 18px;
  min-height: 48px;
}
#menu.h5-category-nav .nav > li > a { color: #1d160e; font-weight: 600; padding: 14px 18px; text-shadow: none; }
#menu.h5-category-nav .nav > li > a:hover, #menu.h5-category-nav .nav > li.open > a { background: rgba(255,255,255,.18); color: #090704; }
#menu .dropdown-menu { background: var(--cigar-paper); border-color: #cdae70; border-radius: 0 0 10px 10px; }
#menu .dropdown-inner a, #menu .see-all { color: var(--cigar-ink); }

.h5-home { padding-top: 0; }
.h5-assurance {
  background: var(--cigar-paper);
  border: 1px solid var(--cigar-line);
  border-radius: var(--cigar-radius);
  box-shadow: var(--cigar-shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 22px;
  overflow: hidden;
}
.h5-assurance > div { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.h5-assurance > div + div { border-left: 1px solid var(--cigar-line); }
.h5-assurance i { color: var(--cigar-gold); font-size: 22px; width: 28px; text-align: center; }
.h5-assurance span { display: flex; flex-direction: column; }
.h5-assurance strong { font-size: 15px; }
.h5-assurance small { color: var(--cigar-muted); }

#content > h3, #content > h2 {
  border-left: 4px solid var(--cigar-gold);
  font-family: Georgia, "Noto Serif SC", serif;
  padding-left: 12px;
}
.slideshow, .swiper-viewport, .owl-wrapper-outer { border-radius: var(--cigar-radius); overflow: hidden; }
.swiper-viewport, .owl-carousel { border-color: var(--cigar-line) !important; box-shadow: var(--cigar-shadow) !important; }

.product-thumb {
  background: var(--cigar-paper);
  border: 1px solid var(--cigar-line);
  border-radius: var(--cigar-radius);
  box-shadow: 0 3px 16px rgba(46,33,19,.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-thumb:hover { transform: translateY(-2px); box-shadow: var(--cigar-shadow); }
.product-thumb .image { background: #fff; padding: 12px; }
.product-thumb .image img { margin: auto; object-fit: contain; }
.product-thumb .caption { flex: 1; min-height: 150px; padding: 13px 14px 8px; }
.product-thumb h4 { font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
.product-thumb h4 a { color: var(--cigar-ink); }
.product-thumb .caption > p:not(.price) { color: var(--cigar-muted); font-size: 13px; }
.product-thumb .price { color: var(--cigar-danger); font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.product-thumb .price-old { color: #9b9186; font-size: 13px; }
.product-thumb .price-tax { color: var(--cigar-muted); font-family: inherit; font-size: 11px; }
.product-thumb .button-group { background: #f7f1e7; border-top: 1px solid var(--cigar-line); display: flex; }
.product-thumb .button-group button { background: transparent; border: 0; color: #503716; min-height: 44px; text-shadow: none; }
.product-thumb .button-group button:first-child { background: linear-gradient(180deg, #c49a4f, #a9782e); color: #17110a; flex: 1; font-weight: 700; width: auto; }
.product-thumb .button-group button:hover { background: #231b13; color: var(--cigar-gold-light); }
.product-layout { margin-bottom: 20px; }

.breadcrumb { background: transparent; margin: 4px 0 14px; padding: 8px 0; }
.breadcrumb > li + li:before { color: #aa9270; }
.panel, .well, .list-group, .table-responsive {
  border-color: var(--cigar-line);
  border-radius: var(--cigar-radius);
  box-shadow: none;
}
.panel-default > .panel-heading { background: #eee5d6; border-color: var(--cigar-line); color: var(--cigar-ink); }
.list-group a.active, .list-group a.active:hover { background: var(--cigar-deep-2); border-color: var(--cigar-deep-2); color: var(--cigar-gold-light); }
.form-control { border-color: #d6c9b6; border-radius: 7px; box-shadow: none; }
.form-control:focus { border-color: var(--cigar-gold); box-shadow: 0 0 0 2px rgba(185,138,61,.14); }
.btn { border-radius: 7px; }
.btn-primary { background: linear-gradient(180deg, #c49b50, #9d6d29); border-color: #966622; color: #17110a; font-weight: 600; text-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #1f1913; border-color: #1f1913; color: var(--cigar-gold-light); }
.btn-danger { background: var(--cigar-danger); border-color: #74231d; }

#product-product #content > .row:first-of-type > div { margin-bottom: 18px; }
#product-product .thumbnail { background: #fff; border-color: var(--cigar-line); border-radius: var(--cigar-radius); }
#product-product h1 { font-family: Georgia, "Noto Serif SC", serif; line-height: 1.35; }
#product-product #product { background: var(--cigar-paper); border: 1px solid var(--cigar-line); border-radius: var(--cigar-radius); padding: 16px; }
#product-product #button-cart { font-size: 17px; min-height: 48px; width: 100%; }
#product-product .nav-tabs { border-color: var(--cigar-line); }
#product-product .nav-tabs > li.active > a { border-color: var(--cigar-line); border-bottom-color: transparent; color: #7d541e; }

#checkout-cart .table, #checkout-confirm .table { background: var(--cigar-paper); }
#checkout-cart .buttons .btn, #checkout-checkout .btn { min-height: 42px; }
#checkout-checkout #accordion .panel { overflow: hidden; }
#checkout-checkout #accordion .panel-title a { color: var(--cigar-ink); display: block; }

.pagination > .active > span, .pagination > .active > span:hover { background: var(--cigar-deep-2); border-color: var(--cigar-deep-2); }
.pagination > li > a { color: #76501d; }

.h5-footer { background: #17130f; border-top: 3px solid var(--cigar-gold); color: #a99d8c; margin-top: 38px; padding: 34px 0 18px; }
.h5-footer h5, .h5-footer-brand strong { color: #ead6b3; }
.h5-footer a { color: #bdb09e; }
.h5-footer a:hover { color: var(--cigar-gold-light); }
.h5-footer-brand { border-bottom: 1px solid rgba(214,181,110,.18); margin-bottom: 22px; padding-bottom: 16px; }
.h5-footer-brand strong { font-family: Georgia, serif; font-size: 20px; letter-spacing: .08em; }
.h5-footer-brand p { margin: 5px 0 0; }
.h5-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; margin-top: 15px; padding-top: 15px; text-align: center; }
.h5-bottom-nav { display: none; }

@media (max-width: 767px) {
  body.cigar-h5-body { font-size: 14px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container { padding-left: 12px; padding-right: 12px; }
  .h5-age-strip { font-size: 10px; padding: 4px 0; }
  #top.h5-topbar { display: none; }
  .h5-main-header { padding: 12px 0 10px; }
  .h5-header-row { display: flex; }
  .h5-logo img { max-height: 46px; max-width: 190px; }
  .h5-wordmark span { font-size: 21px; }
  .h5-wordmark small { font-size: 7px; }
  .h5-header-cart { padding-left: 4px; }
  .h5-header-cart #cart > .btn { font-size: 0; height: 42px; margin-top: 2px; min-width: 48px; padding: 8px 12px; }
  .h5-header-cart #cart > .btn i { font-size: 17px; }
  .h5-header-cart #cart > .btn #cart-total { font-size: 11px; margin-left: 3px; }
  #cart .dropdown-menu { left: auto; min-width: calc(100vw - 24px); right: 0; }
  .h5-mobile-search { margin-top: 10px; position: relative; z-index: 1; }
  #search .form-control, #search .btn { height: 42px; }

  .h5-menu-wrap { padding: 0; }
  #menu.h5-category-nav { border-radius: 0; margin-bottom: 12px; min-height: 44px; }
  #menu #category { color: #181109; font-size: 15px; font-weight: 700; line-height: 44px; padding-left: 14px; text-shadow: none; }
  #menu .btn-navbar { background: rgba(0,0,0,.12); border: 0; color: #181109; margin: 7px 10px; padding: 6px 12px; }
  #menu .navbar-collapse { background: #211a13; border: 0; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
  #menu.h5-category-nav .nav > li > a { border-bottom: 1px solid rgba(214,181,110,.12); color: #eadbc1; padding: 12px 16px; }
  #menu .dropdown-menu { background: #30261b; border: 0; border-radius: 0; }
  #menu .dropdown-inner a, #menu .see-all { color: #d8c7aa; }

  .h5-assurance { grid-template-columns: 1fr; margin-bottom: 14px; }
  .h5-assurance > div { padding: 10px 13px; }
  .h5-assurance > div + div { border-left: 0; border-top: 1px solid var(--cigar-line); }
  .h5-assurance i { font-size: 18px; }
  .h5-assurance small { font-size: 11px; }

  #content > h3, #content > h2 { font-size: 21px; margin: 18px 0 14px; }
  .product-layout, .product-layout.product-list, .product-layout.product-grid { float: left !important; padding-left: 5px; padding-right: 5px; width: 50% !important; }
  .product-layout:nth-child(2n+1) { clear: left; }
  .product-thumb { margin-bottom: 0; }
  .product-thumb .image { padding: 8px; }
  .product-thumb .caption { min-height: 118px; padding: 10px 10px 6px; }
  .product-thumb h4 { font-size: 14px; height: 40px; line-height: 20px; margin-bottom: 5px; overflow: hidden; }
  .product-thumb .caption > p:not(.price), .product-thumb .rating { display: none; }
  .product-thumb .price { font-size: 16px; line-height: 1.4; margin: 7px 0; }
  .product-thumb .price-tax { display: block; }
  .product-thumb .button-group button { min-height: 42px; }
  .product-thumb .button-group button:first-child { font-size: 13px; }
  .product-thumb .button-group button:first-child span { display: inline !important; }
  .product-thumb .button-group button:nth-child(2), .product-thumb .button-group button:nth-child(3) { flex: 0 0 38px; width: 38px; }

  .breadcrumb { font-size: 12px; margin-bottom: 8px; overflow-x: auto; white-space: nowrap; }
  #product-category h2, #product-product h1, #checkout-cart h1, #checkout-checkout h1 { font-size: 23px; }
  #product-category .row + hr { margin-top: 12px; }
  #product-category #compare-total { display: none; }
  #product-category .form-group.input-group { margin-bottom: 8px; }
  #product-product #content > .row:first-of-type { display: block; }
  #product-product #product { padding: 13px; }
  #product-product .thumbnails { margin-bottom: 10px; }
  #product-product #button-cart { min-height: 50px; }

  #checkout-cart .table-responsive { background: var(--cigar-paper); border: 0; }
  #checkout-cart table { min-width: 690px; }
  #checkout-cart .buttons .pull-left, #checkout-cart .buttons .pull-right { float: none !important; margin-bottom: 8px; }
  #checkout-cart .buttons .btn { display: block; width: 100%; }
  #checkout-checkout .panel-body { padding: 12px; }
  #checkout-checkout .form-horizontal .control-label { padding-top: 0; }

  .h5-footer { margin-top: 26px; padding: 25px 0 15px; }
  .h5-footer-brand { text-align: center; }
  .h5-footer-links > div { min-height: 170px; }
  .h5-bottom-nav {
    align-items: center;
    background: rgba(23,19,15,.98);
    border-top: 1px solid rgba(214,181,110,.55);
    bottom: 0;
    display: flex !important;
    height: calc(58px + env(safe-area-inset-bottom));
    justify-content: space-around;
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 1030;
  }
  .h5-bottom-nav a { align-items: center; color: #d5c7b2; display: flex; flex: 1; flex-direction: column; font-size: 10px; justify-content: center; min-height: 54px; }
  .h5-bottom-nav a:hover, .h5-bottom-nav a:focus { color: var(--cigar-gold-light); }
  .h5-bottom-nav i { font-size: 19px; margin-bottom: 2px; }
}

@media (min-width: 768px) {
  .product-layout { display: flex; }
  .product-layout .product-thumb { width: 100%; }
}
