/* ============================================================
   TLWL Flower Theme — inspired by bosobooflowers.com
   ============================================================ */

:root {
  --tf-primary: #2196f3;
  --tf-primary-dark: #1565c0;
  --tf-accent: #ff6f00;
  --tf-text: #333;
  --tf-text-light: #666;
  --tf-border: #e8e8e8;
  --tf-bg-light: #f7f8fc;
  --tf-white: #ffffff;
  --tf-section-gap: 40px;
  --tf-radius: 8px;
  --tf-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body.tlwl-flower-theme {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--tf-text);
  background: #fff;
}

/* ---- Top Bar ---- */
.tf-topbar {
  background: var(--tf-bg-light) !important;
  border-bottom: 1px solid var(--tf-border) !important;
  padding: 4px 0 !important;
  margin-bottom: 0 !important;
}
.tf-topbar a {
  color: var(--tf-text-light);
  font-size: 13px;
  text-decoration: none;
}
.tf-topbar a:hover { color: var(--tf-primary); }

/* ---- Header ---- */
.tf-header {
  background: var(--tf-white);
  border-bottom: 1px solid var(--tf-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Logo */
#logo { margin: 0; }
#logo img { max-height: 60px; max-width: 180px; }

/* Search wrap */
.tf-search-wrap #search { margin-bottom: 2px; }
.tf-search-wrap #search .form-control {
  border-radius: var(--tf-radius) 0 0 var(--tf-radius);
  border: 2px solid var(--tf-primary);
  height: 42px;
  font-size: 14px;
}
.tf-search-wrap #search .btn {
  background: var(--tf-primary);
  border: 2px solid var(--tf-primary);
  color: #fff;
  border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
  height: 42px;
  padding: 0 20px;
}
.tf-search-wrap #search .btn:hover {
  background: var(--tf-primary-dark);
  border-color: var(--tf-primary-dark);
}

/* Hot Keywords */
.tf-hot-keywords {
  font-size: 12px;
  color: var(--tf-text-light);
  line-height: 1.4;
}
.tf-hot-label {
  color: var(--tf-accent);
  font-weight: 700;
  margin-right: 4px;
}
.tf-hot-keywords a {
  color: var(--tf-text-light);
  text-decoration: none;
  margin-right: 10px;
  transition: color 0.2s;
}
.tf-hot-keywords a:hover { color: var(--tf-primary); }

/* ---- Navigation Menu ---- */
.tf-nav-wrapper { margin-bottom: 0; }
.tf-nav-wrapper #menu {
  background: var(--tf-white) !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 2px solid var(--tf-border) !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tf-nav-wrapper #menu .navbar-nav > li > a {
  color: var(--tf-text) !important;
  text-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px !important;
  transition: color 0.2s;
}
.tf-nav-wrapper #menu .navbar-nav > li > a:hover,
.tf-nav-wrapper #menu .navbar-nav > li > a:focus {
  color: var(--tf-primary) !important;
  background: transparent !important;
}
.tf-nav-wrapper #menu .navbar-nav > li.active > a {
  color: var(--tf-primary) !important;
}
.tf-nav-wrapper #menu .navbar-toggler i {
  color: var(--tf-text) !important;
  border-color: var(--tf-text) !important;
}
.tf-nav-wrapper #category {
  color: var(--tf-text) !important;
  text-shadow: none !important;
}

/* ---- Slideshow / Banner ---- */
.tf-slideshow-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.tf-slideshow {
  width: 100%;
}
.tf-banner-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.tf-slideshow .swiper-button-next,
.tf-slideshow .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  color: var(--tf-primary);
  box-shadow: var(--tf-shadow);
  transition: background 0.2s;
}
.tf-slideshow .swiper-button-next:after,
.tf-slideshow .swiper-button-prev:after { display: none; }
.tf-slideshow .swiper-button-next i,
.tf-slideshow .swiper-button-prev i { font-size: 20px; }
.tf-slideshow .swiper-button-next:hover,
.tf-slideshow .swiper-button-prev:hover { background: var(--tf-primary); color: #fff; }
.tf-slideshow .swiper-pagination-bullet-active { background: var(--tf-primary); }

/* ---- Main content area ---- */
main { padding-top: 0; }
#content { padding-top: var(--tf-section-gap); padding-bottom: 0; }

/* ---- Product Module Sections ---- */
.tf-module-section {
  padding: 32px 0 24px;
}
.tf-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.tf-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tf-text);
  white-space: nowrap;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.tf-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--tf-primary);
  border-radius: 4px;
}
.tf-section-line {
  flex: 1;
  height: 1px;
  background: var(--tf-border);
}

/* ---- Product Cards ---- */
.tf-product-col .product-thumb {
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  background: var(--tf-white);
}
.tf-product-col .product-thumb:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.tf-product-col .product-thumb .image img {
  border-radius: var(--tf-radius) var(--tf-radius) 0 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s;
}
.tf-product-col .product-thumb:hover .image img {
  transform: scale(1.04);
}
.tf-product-col .product-thumb .caption {
  padding: 10px 12px 12px;
}
.tf-product-col .product-thumb .caption h4 a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tf-text);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-product-col .product-thumb .caption h4 a:hover { color: var(--tf-primary); }
.tf-product-col .product-thumb .caption .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--tf-primary);
  margin: 4px 0;
}
.tf-product-col .product-thumb .caption .price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}
.tf-product-col .product-thumb .caption .price-tax {
  font-size: 11px;
  color: #aaa;
}
.tf-product-col .product-thumb .button-group {
  border-top: 1px solid var(--tf-border);
  background: var(--tf-bg-light);
  border-radius: 0 0 var(--tf-radius) var(--tf-radius);
}
.tf-product-col .product-thumb .button-group button {
  transition: background 0.2s;
}
.tf-product-col .product-thumb .button-group button:first-child {
  background: var(--tf-primary);
  color: #fff;
  border-color: var(--tf-primary);
}
.tf-product-col .product-thumb .button-group button:first-child:hover {
  background: var(--tf-primary-dark);
  border-color: var(--tf-primary-dark);
}

/* Rating stars */
.tf-product-col .rating .fa-solid { color: #f5a623; }
.tf-product-col .rating .fa-regular { color: #ddd; }

/* ---- Service Bar ---- */
.tf-service-bar {
  background: var(--tf-white);
  border-top: 2px solid var(--tf-primary);
  border-bottom: 1px solid var(--tf-border);
  padding: 24px 0;
  margin-top: 32px;
}
.tf-service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  text-align: left;
}
.tf-service-item i {
  font-size: 32px;
  color: var(--tf-primary);
  flex-shrink: 0;
}
.tf-service-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tf-text);
}
.tf-service-text span {
  font-size: 12px;
  color: var(--tf-text-light);
}

/* ---- Footer ---- */
.tf-footer {
  background: #1e2832;
  color: #c8cdd3;
  position: absolute;
  bottom: -1px;
  width: 100%;
  border-top: none !important;
  border: none !important;
}
.tf-footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tf-footer ul li { margin-bottom: 6px; }
.tf-footer a {
  color: #9da8b4;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.tf-footer a:hover { color: #fff; }
.tf-footer-desc {
  font-size: 13px;
  color: #9da8b4;
  line-height: 1.6;
}
.tf-footer-hr {
  border-color: #2f3d4d;
  margin: 0;
}
.tf-footer-copy {
  font-size: 12px;
  color: #6b7a8a;
}
.tf-payment-icons {
  max-height: 28px;
  opacity: 0.7;
}

/* ---- Vertical Banner + Products Side-by-Side Layout ---- */
/*
  OC4 outputs modules sequentially. We use CSS to make
  .tf-vbanner-wrap + .tf-module-section sit side-by-side via
  a wrapping flex trick on the parent content div.
*/

/* Mark the vbanner as a float-left sidebar */
.tf-vbanner-wrap {
  float: left;
  width: 220px;
  margin-right: 20px;
  margin-bottom: 24px;
}
.tf-vbanner-img {
  width: 220px;
  border-radius: var(--tf-radius);
  display: block;
  object-fit: cover;
}

/* The product section that follows a vbanner should fill remaining width */
.tf-vbanner-wrap + .tf-module-section {
  overflow: hidden; /* BFC to sit beside the float */
  margin-left: 0;
}

/* After the product section, clear the float */
.tf-vbanner-wrap + .tf-module-section::after {
  content: '';
  display: table;
  clear: both;
}

/* Clear float after the paired section ends */
#content .tf-module-section + .tf-module-section {
  clear: both;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .tf-banner-img { max-height: 220px; }
  .tf-service-item { flex-direction: column; text-align: center; gap: 6px; }
  .tf-service-item i { font-size: 24px; }
  .tf-hot-keywords { display: none; }
  .tf-section-title { font-size: 18px; }
}
@media (max-width: 575px) {
  .tf-banner-img { max-height: 160px; }
}

