/* ==========================================================================
   Cig88 brand stylesheet — ported from the OpenCart 3 production theme
   (theme refresh 2026-11-02), adapted to the OpenCart 4 markup.
   ========================================================================== */

:root {
  --brand-red: #a3161b;
  --brand-red-dark: #8c1015;
  --ink: #1c1c1c;
  --text: #333;
  --muted: #6e6e6e;
  --line: #e5e5e5;
  --surface-muted: #f7f7f8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

a { color: var(--brand-red-dark); }
a:hover { color: #6f0c10; text-decoration: underline; }

label { font-size: 14px; }

.btn { border-radius: 6px; }
.btn-primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  text-shadow: none;
  background-image: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
  background-image: none;
}
.btn-info { background: var(--brand-red); border-color: var(--brand-red); background-image: none; }
.btn-info:hover, .btn-info:focus { background: var(--brand-red-dark); border-color: var(--brand-red-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Top utility bar */
#top { background: #f4f4f4; border-bottom: 1px solid #ddd; }
#top a, #top .list-inline-item { color: #555; }
#top a:hover { color: var(--brand-red); }
#top .list-inline-item { margin-bottom: 0; }

/* Header */
header { padding-top: 18px; padding-bottom: 12px; }
#logo { margin-bottom: 8px; }
#logo img { width: auto; max-width: 230px; max-height: 64px; }
#search { margin-bottom: 0; }
#search .form-control-lg { height: 44px; font-size: 14px; }
#search .btn-lg { height: 44px; padding: 0 18px; color: #555; background: #f1f1f1; border-color: #ced4da; }
#search .btn-lg:hover { color: var(--brand-red); }
#cart { margin-bottom: 0; }
#cart > .btn { min-height: 44px; font-weight: 600; }

/* Main navigation: black bar with red hover, like the production shop */
#menu {
  background: var(--ink) !important;
  background-image: none !important;
  border: 1px solid var(--ink) !important;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
  min-height: 40px;
}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: none;
  padding: 10px 15px;
  font-weight: 500;
}
#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li > a:focus,
#menu .navbar-nav > li > a.show {
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
}
#menu .dropdown-menu { border-top-left-radius: 0; border-top-right-radius: 0; }
#menu .dropdown-menu a:hover,
#menu .dropdown-menu a:focus {
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
}
#menu #category { color: #fff; font-weight: 700; }
#menu .navbar-toggler i { color: #fff; }

/* Footer */
footer { font-size: 14px; margin-top: 40px; padding: 34px 0 24px; }
footer h5 { font-size: 15px; margin-bottom: 12px; }
footer ul li { margin-bottom: 7px; }
footer a { color: #d6d6d6; }
footer a:hover { color: #fff; }

/* Breadcrumb */
.breadcrumb { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 6px; }

/* --------------------------------------------------------------------------
   Home hero: page H1 + call-to-action buttons above the banner
   -------------------------------------------------------------------------- */
.home-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}
.home-hero-head .home-heading {
  margin: 0;
  max-width: 66%;
  line-height: 1.2;
  font-size: 34px;
}
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; flex: 0 0 auto; align-items: center; }
.home-cta .btn { min-height: 44px; padding: 10px 20px; font-weight: 600; }
.home-cta .btn-default {
  background: #fff;
  border: 1px solid #c9c9c9;
  color: #333;
  text-shadow: none;
  background-image: none;
}
.home-cta .btn-default:hover { background: #f2f2f2; color: var(--brand-red); border-color: #b5b5b5; }

/* --------------------------------------------------------------------------
   Product cards (thumb.twig) — category listing, featured, search, etc.
   -------------------------------------------------------------------------- */
.product-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.product-thumb:hover { border-color: #d3d3d3; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.product-thumb .image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.product-thumb .image img { width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.product-thumb .content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.product-thumb .description { flex: 1 1 auto; min-height: 0; padding: 12px 14px 10px; }
.product-thumb h4 {
  min-height: 44px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-thumb h4 a { color: var(--brand-red); font-weight: 600; text-decoration: none; }
.product-thumb h4 a:hover { color: var(--brand-red-dark); text-decoration: underline; }
.product-thumb .description p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.product-thumb .price { margin-bottom: 4px; color: var(--brand-red); font-size: 16px; font-weight: 700; }
.product-thumb .price-new { color: var(--brand-red); }
.product-thumb .price-old { font-size: 12px; font-weight: 400; color: var(--muted); }
.product-thumb .price-tax { display: none; }
.product-thumb .rating { line-height: 1; }
.product-thumb .button {
  display: flex;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}
.product-thumb .button button {
  flex: 1 1 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #666;
}
.product-thumb .button button:hover { background: #ececee; color: var(--brand-red); }

@media (max-width: 767px) {
  .product-thumb .description { padding: 10px; }
  .product-thumb h4 { min-height: 42px; font-size: 14px; }
  .product-thumb .description p { -webkit-line-clamp: 2; font-size: 12px; }
  .product-thumb .image { min-height: 120px; padding: 8px; }
  .product-thumb .image img { max-height: 150px; }
  .product-thumb .button button { min-height: 44px; }
  .home-hero-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .home-hero-head .home-heading { max-width: 100%; font-size: 26px; }
  .home-cta { width: 100%; }
  .home-cta .btn { flex: 1 1 calc(50% - 10px); padding-left: 10px; padding-right: 10px; font-size: 14px; }

  /* Mobile header: logo + cart share one row, search goes underneath. */
  header .row { display: flex; flex-wrap: wrap; align-items: center; margin-left: -8px; margin-right: -8px; }
  header .row > .col-md-3.col-lg-4 { flex: 0 0 52%; max-width: 52%; padding: 0 8px; order: 1; }
  header .row > #cart { flex: 0 0 48%; max-width: 48%; padding: 0 8px; margin: 0; order: 2; }
  header .row > .col-md-5 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; margin-top: 8px; order: 3; }
  #logo { margin: 0; }
  #logo img { max-width: 160px; max-height: 42px; }
  #cart > .btn { width: 100%; padding: 0 6px; font-size: 12px; white-space: nowrap; }

  /* Breadcrumbs scroll horizontally instead of stacking. */
  .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px 10px;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .breadcrumb > li { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */
#product-info h1 { font-size: 32px; line-height: 1.25; margin: 0 0 12px; }
#product-info h2 { font-size: 20px; }
#product-info h3 { font-size: 17px; }
#product-info .image .img-thumbnail { border: 1px solid var(--line); border-radius: 8px; }
#product-info .magnific-popup .img-thumbnail { padding: 10px; }
#product-info .list-unstyled { font-size: 14px; }
#product-info .price-new { color: var(--ink); font-weight: 700; }
#product-info .price-old { color: var(--muted); font-size: 16px; }
#product-info .price-tax { display: none; }
#product-info .rating { margin-bottom: 14px; }
#product-info #button-cart,
#product-info .btn-primary { text-transform: none; }
#product-info .btn-lg { font-size: 16px; }
#product-info .nav-tabs .nav-link { color: var(--ink); }
#product-info .nav-tabs .nav-link.active { color: var(--brand-red); }
#tab-description { font-size: 15px; line-height: 1.7; }
#tab-description h2, #tab-description h3 {
  padding-inline-start: 10px;
  border-inline-start: 4px solid var(--brand-red);
}

/* Category page */
#product-category h1 { margin-bottom: 12px; }
#product-category .img-thumbnail { border: 1px solid var(--line); border-radius: 8px; }
#column-left .list-group { border-radius: 8px; overflow: hidden; }
#column-left .list-group-item { font-size: 14px; padding: 10px 14px; border-color: var(--line); color: #444; }
#column-left .list-group-item:hover { background: var(--surface-muted); color: var(--brand-red); }
#column-left .list-group-item.active {
  background: #f1f1f1;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
}

/* Wider gallery / narrower summary, like the production product page */
@media (min-width: 768px) {
  #product-info > .row > .row.mb-3 > .col-sm:first-child { flex: 0 0 58%; max-width: 58%; }
  #product-info > .row > .row.mb-3 > .col-sm:last-child { flex: 0 0 42%; max-width: 42%; }
}

/* Generic form controls */
.form-control:focus { border-color: #c98c8f; box-shadow: 0 0 0 .2rem rgba(163, 22, 27, .12); }

/* RTL fixes */
html[dir="rtl"] .product-thumb h4,
html[dir="rtl"] .product-thumb .description p { text-align: right; }
html[dir="rtl"] .home-hero-head { direction: rtl; }
html[dir="rtl"] #top .list-inline { padding-right: 0; }
