/*
Theme Name: DynaSec Security
Theme URI: https://dynasec.ge
Author: DynaSec
Description: სამეთვალყურეო კამერები და უსაფრთხოების სისტემების WordPress თემა პროდუქტების dropdown მენიუთი და სლაიდერით.
Version: 4.22
Text Domain: dynasec-security
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.6;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Header */

.site-header {
  background: #111827;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .2px;
}

.logo-subtitle {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  letter-spacing: 1.3px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.products-toggle {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 25px 14px;
  transition: .2s ease;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.products-dropdown:hover .products-toggle {
  color: #38bdf8;
}

.products-dropdown {
  position: relative;
}

.products-toggle::after {
  content: "▾";
  font-size: 12px;
  margin-left: 7px;
  transition: .2s ease;
}

.products-dropdown:hover .products-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: .2s ease;
}

.products-dropdown:hover .dropdown-menu,
.products-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  color: #111827;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 10px;
  transition: .2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #e0f2fe;
  color: #0284c7;
}

/* Second strip */

.category-strip {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  padding: 24px 0;
}

.category-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-strip h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 800;
  transition: .2s ease;
  text-align: center;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2,132,199,0.25);
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-dark {
  background: #111827;
  color: #ffffff;
}

.btn-dark:hover {
  background: #374151;
}

/* Slider */

.promo-slider-section {
  background: #f4f6f8;
  padding: 28px 0 58px;
}

.promo-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 390px;
  box-shadow: 0 18px 40px rgba(17,24,39,0.15);
  background: #111827;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: dynasecSlide 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.92), rgba(30,58,138,0.65), rgba(17,24,39,0.18));
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 70px 58px;
  color: #ffffff;
}

.slide-badge {
  display: inline-block;
  background: rgba(56,189,248,0.16);
  color: #bae6fd;
  border: 1px solid rgba(56,189,248,0.35);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

.slide h2 {
  font-size: 44px;
  line-height: 1.14;
  margin-bottom: 16px;
}

.slide p {
  font-size: 18px;
  color: #d1d5db;
  max-width: 560px;
  margin-bottom: 24px;
}

@keyframes dynasecSlide {
  0% { opacity: 0; }
  6% { opacity: 1; }
  30% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

/* Products */

.section {
  padding: 70px 0;
}

.section-white {
  background: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 38px;
}

.section-title h2 {
  font-size: 34px;
  color: #111827;
  margin-bottom: 9px;
}

.section-title p {
  color: #6b7280;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: .2s ease;
  border: 1px solid #e5e7eb;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 220px;
  background: linear-gradient(135deg, #dbeafe, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  padding: 20px;
}

.product-body {
  padding: 22px;
}

.category {
  display: inline-block;
  font-size: 13px;
  color: #0284c7;
  font-weight: 900;
  margin-bottom: 8px;
}

.product-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111827;
}

.product-body p {
  color: #6b7280;
  min-height: 72px;
  margin-bottom: 15px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 16px;
}

/* Footer */

.site-footer {
  background: #030712;
  color: #9ca3af;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Responsive */

@media (max-width: 900px) {
  .header-inner,
  .category-strip-inner,
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link,
  .products-toggle {
    padding: 12px 10px;
  }

  .dropdown-menu {
    left: 50%;
    transform: translate(-50%, 10px);
  }

  .products-dropdown:hover .dropdown-menu,
  .products-dropdown:focus-within .dropdown-menu {
    transform: translate(-50%, 0);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide-content {
    padding: 50px 32px;
  }

  .slide h2 {
    font-size: 34px;
  }
}

@media (max-width: 650px) {
  .category-strip h1 {
    font-size: 22px;
  }

  .promo-slider {
    min-height: 430px;
    border-radius: 18px;
  }

  .slide-content {
    padding: 42px 24px;
  }

  .slide h2 {
    font-size: 29px;
  }

  .slide p {
    font-size: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.1 - Fixed WordPress custom logo layout */
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: static !important;
  padding-left: 0 !important;
  min-height: 76px !important;
  flex: 0 0 auto;
}

.site-header .logo-icon-link {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 58px !important;
  margin: 0 !important;
}

.site-header .custom-logo,
.site-header .logo-icon-link img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  display: block !important;
}

.site-header .logo-text-link {
  display: block !important;
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.site-header .logo-title {
  display: block !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
}

.site-header .logo-subtitle {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  color: #9ca3af !important;
  letter-spacing: 1.3px !important;
  margin-top: 4px !important;
}

@media (max-width: 900px) {
  .site-header .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-header .logo {
    justify-content: center;
    min-height: auto !important;
    padding-top: 12px;
  }
}

/* Projects page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  transition: .2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  height: 230px;
  background: linear-gradient(135deg, #111827, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  padding: 20px;
}

.project-body {
  padding: 22px;
}

.project-body h3 {
  font-size: 21px;
  color: #111827;
  margin-bottom: 10px;
}

.project-body p {
  color: #6b7280;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Top advertising slider */
.top-ad-slider-section {
  background: #f4f6f8;
  padding: 28px 0 12px;
}

.ad-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 330px;
  box-shadow: 0 18px 40px rgba(17,24,39,0.15);
  background: #111827;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
  color: #ffffff;
  display: block;
}

.ad-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
}

.ad-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.18), rgba(17,24,39,0.04));
  pointer-events: none;
}

.ad-slide-caption {
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 2;
  background: rgba(17,24,39,0.58);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.ad-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #111827;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  transition: .2s ease;
}

.ad-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.ad-prev {
  left: 18px;
}

.ad-next {
  right: 18px;
}

.ad-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ad-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: .2s ease;
}

.ad-dot.is-active {
  background: #38bdf8;
  width: 26px;
}

/* Contact social section */
.contact-social-section {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  padding: 42px 0;
}

.contact-social-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-social-box h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.contact-social-box p {
  color: #d1d5db;
  max-width: 670px;
}

.social-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.16);
  transition: .2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}

.social-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-weight: 900;
  font-size: 16px;
}

.social-btn.whatsapp .social-icon { background: #22c55e; }
.social-btn.facebook .social-icon { background: #2563eb; }
.social-btn.instagram .social-icon { background: #db2777; }
.social-btn.tiktok .social-icon { background: #111827; border: 1px solid rgba(255,255,255,0.3); }
.social-btn.phone .social-icon { background: #0284c7; }

/* Mobile adjustments */
@media (max-width: 900px) {
  .ad-slider {
    min-height: 280px;
    border-radius: 20px;
  }

  .ad-slide img {
    min-height: 280px;
  }

  .contact-social-box {
    flex-direction: column;
    text-align: center;
  }

  .social-actions {
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .top-ad-slider-section {
    padding: 18px 0 8px;
  }

  .ad-slider {
    min-height: 225px;
    border-radius: 18px;
  }

  .ad-slide img {
    min-height: 225px;
  }

  .ad-arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .ad-prev { left: 10px; }
  .ad-next { right: 10px; }

  .ad-slide-caption {
    left: 16px;
    right: 16px;
    bottom: 38px;
    text-align: center;
    border-radius: 14px;
    font-size: 14px;
  }

  .contact-social-box h2 {
    font-size: 26px;
  }

  .social-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-btn {
    justify-content: center;
    width: 100%;
  }
}


/* v2.0 manageable content improvements */
.product-thumb,
.project-thumb {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

.product-thumb img,
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb {
  height: 230px;
}

.ad-slider {
  height: 360px;
}

.ad-slide img {
  min-height: 360px;
}

.ad-content {
  position: absolute;
  z-index: 3;
  left: 54px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 610px;
  color: #ffffff;
}

.ad-content .slide-badge {
  margin-bottom: 14px;
}

.ad-title {
  display: block;
  font-size: 42px;
  line-height: 1.14;
  font-weight: 900;
  margin-bottom: 12px;
}

.ad-desc {
  display: block;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.5;
}

.ad-slide-caption {
  display: none;
}

.editable-services .wp-block-columns {
  width: 100%;
}

.editable-services .wp-block-column {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.single-entry {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.single-entry h1 {
  color: #111827;
  font-size: 36px;
  margin-bottom: 20px;
}

.single-thumb {
  margin-bottom: 24px;
  border-radius: 18px;
  overflow: hidden;
}

.single-thumb img {
  width: 100%;
  height: auto;
}

.single-content {
  color: #374151;
}

@media (max-width: 900px) {
  .ad-slider {
    height: 300px;
  }

  .ad-slide img {
    min-height: 300px;
  }

  .ad-content {
    left: 32px;
    right: 32px;
  }

  .ad-title {
    font-size: 32px;
  }

  .ad-desc {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .ad-slider {
    height: 255px;
  }

  .ad-slide img {
    min-height: 255px;
  }

  .ad-content {
    left: 18px;
    right: 18px;
    text-align: center;
  }

  .ad-title {
    font-size: 24px;
  }

  .ad-desc {
    font-size: 14px;
  }

  .ad-content .slide-badge {
    font-size: 12px;
    padding: 6px 10px;
  }

  .single-entry {
    padding: 22px;
  }

  .single-entry h1 {
    font-size: 28px;
  }
}


/* v2.1 fallback content keeps original sliders/products visible until Admin content is added */

/* v2.2: default slides are now created in Slides menu and can be edited directly. */


/* v2.3 Popular products section */
.popular-products-section {
  background: #ffffff;
  padding-top: 62px;
  padding-bottom: 62px;
}

.popular-product-card {
  border: 1px solid rgba(2, 132, 199, 0.16);
}

.empty-popular-box {
  grid-column: 1 / -1;
  background: #f4f6f8;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #374151;
}

.empty-popular-box h3 {
  color: #111827;
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-popular-box p {
  color: #6b7280;
}

@media (max-width: 650px) {
  .popular-products-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}


/* v2.4 Products section as category cards */
.products-categories-section {
  background: #f4f6f8;
}

.product-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-category-card {
  position: relative;
  display: block;
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1e3a8a);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  transition: .2s ease;
  color: #ffffff;
}

.product-category-card:hover {
  transform: translateY(-5px);
}

.product-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.05), rgba(17,24,39,0.74));
  z-index: 1;
}

.product-category-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 22px;
  font-weight: 900;
}

.product-category-overlay {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.product-category-overlay strong {
  display: block;
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 5px;
}

.product-category-overlay small {
  display: inline-block;
  color: #d1d5db;
  font-weight: 800;
  background: rgba(17,24,39,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 9px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .product-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 650px) {
  .product-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-category-card {
    height: 155px;
    border-radius: 14px;
  }

  .product-category-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .product-category-overlay strong {
    font-size: 15px;
  }

  .product-category-overlay small {
    font-size: 11px;
    padding: 4px 7px;
  }

  .product-category-placeholder {
    font-size: 15px;
  }
}

/* v2.5 - Mobile slider fix */
.ad-slider {
  overflow: hidden !important;
}

.ad-slide {
  overflow: hidden !important;
}

.ad-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.ad-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(17,24,39,0.88), rgba(30,58,138,0.54), rgba(17,24,39,0.35));
  pointer-events: none;
}

.ad-content {
  z-index: 5 !important;
}

@media (max-width: 650px) {
  .top-ad-slider-section,
  .promo-slider-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-ad-slider-section .container,
  .promo-slider-section .container {
    width: 92% !important;
  }

  .ad-slider {
    height: 245px !important;
    min-height: 245px !important;
    border-radius: 18px !important;
  }

  .ad-slide img {
    min-height: 245px !important;
    opacity: 0.28 !important;
    transform: scale(1.04);
  }

  .ad-slide::before {
    background: linear-gradient(180deg, rgba(17,24,39,0.90), rgba(17,24,39,0.82)) !important;
  }

  .ad-content {
    position: absolute !important;
    left: 58px !important;
    right: 58px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    max-width: none !important;
    text-align: center !important;
  }

  .ad-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: auto;
  }

  .ad-desc {
    font-size: 14px !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .ad-content .slide-badge {
    display: inline-block !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    margin-bottom: 10px !important;
  }

  .ad-arrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 28px !important;
    z-index: 8 !important;
  }

  .ad-prev {
    left: 12px !important;
  }

  .ad-next {
    right: 12px !important;
  }

  .ad-dots {
    bottom: 12px !important;
    z-index: 8 !important;
  }

  .ad-dot {
    width: 9px !important;
    height: 9px !important;
  }

  .ad-dot.is-active {
    width: 24px !important;
  }
}

@media (max-width: 390px) {
  .ad-slider {
    height: 230px !important;
    min-height: 230px !important;
  }

  .ad-slide img {
    min-height: 230px !important;
  }

  .ad-content {
    left: 50px !important;
    right: 50px !important;
  }

  .ad-title {
    font-size: 21px !important;
  }

  .ad-desc {
    font-size: 13px !important;
  }
}

/* v2.6.1 - Fixed two sliders in one row on desktop */
.sliders-pair-section {
  background: #f4f6f8;
  padding: 28px 0;
}

.sliders-desktop-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.slider-pair-card {
  min-width: 0;
}

.sliders-desktop-row .ad-slider {
  height: 330px !important;
  min-height: 330px !important;
  border-radius: 24px !important;
}

.sliders-desktop-row .ad-slide img {
  min-height: 330px !important;
}

.sliders-desktop-row .ad-content {
  left: 56px !important;
  right: 56px !important;
  max-width: none !important;
  text-align: center !important;
}

.sliders-desktop-row .ad-title {
  font-size: 30px !important;
  line-height: 1.18 !important;
}

.sliders-desktop-row .ad-desc {
  font-size: 15px !important;
  line-height: 1.45 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.sliders-desktop-row .ad-content .slide-badge {
  font-size: 13px !important;
  padding: 7px 13px !important;
}

.sliders-desktop-row .ad-arrow {
  width: 38px !important;
  height: 38px !important;
  font-size: 30px !important;
}

.sliders-desktop-row .ad-prev {
  left: 12px !important;
}

.sliders-desktop-row .ad-next {
  right: 12px !important;
}

@media (max-width: 900px) {
  .sliders-pair-section {
    padding: 18px 0;
  }

  .sliders-desktop-row {
    display: block;
  }

  .slider-pair-card + .slider-pair-card {
    margin-top: 22px;
  }

  .sliders-desktop-row .ad-slider {
    height: 245px !important;
    min-height: 245px !important;
    border-radius: 18px !important;
  }

  .sliders-desktop-row .ad-slide img {
    min-height: 245px !important;
  }

  .sliders-desktop-row .ad-content {
    left: 58px !important;
    right: 58px !important;
  }

  .sliders-desktop-row .ad-title {
    font-size: 24px !important;
  }

  .sliders-desktop-row .ad-desc {
    font-size: 14px !important;
    -webkit-line-clamp: 2 !important;
  }
}

@media (max-width: 390px) {
  .sliders-desktop-row .ad-slider {
    height: 230px !important;
    min-height: 230px !important;
  }

  .sliders-desktop-row .ad-slide img {
    min-height: 230px !important;
  }

  .sliders-desktop-row .ad-content {
    left: 50px !important;
    right: 50px !important;
  }

  .sliders-desktop-row .ad-title {
    font-size: 21px !important;
  }
}

/* v2.7 - Keep mobile sliders same light-blue image colors as desktop */
@media (max-width: 650px) {
  .ad-slide img,
  .sliders-desktop-row .ad-slide img {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .ad-slide::before,
  .sliders-desktop-row .ad-slide::before {
    background: linear-gradient(90deg, rgba(17,24,39,0.42), rgba(30,58,138,0.22), rgba(17,24,39,0.18)) !important;
  }

  .ad-slide::after,
  .sliders-desktop-row .ad-slide::after {
    background: linear-gradient(90deg, rgba(17,24,39,0.18), rgba(17,24,39,0.04)) !important;
  }
}

@media (max-width: 390px) {
  .ad-slide img,
  .sliders-desktop-row .ad-slide img {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* v2.7.1 - Mobile slider fix, applied on top of v2.7 */
.ad-slider {
  overflow: hidden !important;
}

.ad-slide {
  overflow: hidden !important;
}

.ad-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.ad-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(17,24,39,0.78), rgba(30,58,138,0.45), rgba(17,24,39,0.25));
  pointer-events: none;
}

.ad-content {
  z-index: 5 !important;
}

@media (max-width: 650px) {
  .ad-slider {
    background: #111827 !important;
    height: 245px !important;
    min-height: 245px !important;
    border-radius: 18px !important;
  }

  .ad-slide img {
    min-height: 245px !important;
    opacity: 0.10 !important;
    filter: none !important;
    transform: scale(1.04);
  }

  .ad-slide::before {
    background: rgba(17,24,39,0.88) !important;
  }

  .ad-content {
    position: absolute !important;
    left: 48px !important;
    right: 48px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    max-width: none !important;
    text-align: center !important;
  }

  .ad-title {
    font-size: 22px !important;
    line-height: 1.22 !important;
    margin-bottom: 10px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: none !important;
  }

  .ad-desc {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #d1d5db !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .ad-content .slide-badge {
    display: inline-block !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    margin-bottom: 9px !important;
  }

  .ad-arrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 28px !important;
    z-index: 8 !important;
  }

  .ad-prev { left: 12px !important; }
  .ad-next { right: 12px !important; }

  .ad-dots {
    bottom: 12px !important;
    z-index: 8 !important;
  }

  .ad-dot {
    width: 9px !important;
    height: 9px !important;
  }

  .ad-dot.is-active {
    width: 24px !important;
  }
}

@media (max-width: 390px) {
  .ad-slider {
    height: 230px !important;
    min-height: 230px !important;
  }

  .ad-slide img {
    min-height: 230px !important;
  }

  .ad-content {
    left: 44px !important;
    right: 44px !important;
  }

  .ad-title {
    font-size: 20px !important;
  }
}

/* v2.7.2: seeded 3 sample popular products with prices. */

/* v2.7.3 - Popular products 2 columns on mobile + Google Maps button */
.social-btn.maps .social-icon {
  background: #ef4444;
}

@media (max-width: 650px) {
  .popular-products-section .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .popular-products-section .product-card {
    border-radius: 14px !important;
  }

  .popular-products-section .product-thumb,
  .popular-products-section .product-image {
    height: 125px !important;
  }

  .popular-products-section .product-body {
    padding: 12px !important;
  }

  .popular-products-section .category {
    font-size: 11px !important;
    margin-bottom: 5px !important;
  }

  .popular-products-section .product-body h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .popular-products-section .product-body p {
    display: none !important;
  }

  .popular-products-section .price {
    font-size: 15px !important;
    margin-bottom: 9px !important;
  }

  .popular-products-section .btn {
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 9px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
  }
}

@media (max-width: 370px) {
  .popular-products-section .product-thumb,
  .popular-products-section .product-image {
    height: 110px !important;
  }

  .popular-products-section .product-body h3 {
    font-size: 13px !important;
  }
}

/* v3.0 WooCommerce support */
.woocommerce-section {
  background: #f4f6f8;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  padding-bottom: 18px;
  transition: .2s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-4px);
}

.woocommerce ul.products li.product a img {
  height: 230px;
  object-fit: cover;
  margin: 0 0 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 18px;
  margin-right: 18px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce ul.products li.product .price {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart {
  background: #111827;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 900;
  transition: .2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: #374151;
  color: #ffffff;
}

.woocommerce div.product {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.woocommerce div.product .product_title {
  color: #111827;
  font-size: 34px;
  font-weight: 900;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #0284c7;
  font-size: 26px;
  font-weight: 900;
}

@media (max-width: 650px) {
  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    border-radius: 14px;
  }

  .woocommerce ul.products li.product a img {
    height: 125px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.25;
  }

  .woocommerce ul.products li.product .price {
    font-size: 14px;
  }

  .woocommerce ul.products li.product .button {
    font-size: 12px;
    padding: 8px 9px;
  }

  .woocommerce div.product {
    padding: 18px;
  }

  .woocommerce div.product .product_title {
    font-size: 26px;
  }
}


/* v3.1 WooCommerce fallback display */
.fallback-product-card .product-image,
.fallback-category-card {
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

@media (max-width: 650px) {
  .fallback-product-card .product-image {
    height: 125px !important;
    font-size: 14px !important;
  }
}

/* v3.2: Stable folder slug dynasec-security to preserve Customizer settings on future updates. */

/* v3.3 - Right side drawer/hamburger menu */
.site-header .header-inner {
  position: relative;
}

.drawer-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: .2s ease;
  margin-left: 12px;
  flex: 0 0 46px;
}

.drawer-toggle:hover {
  background: rgba(255,255,255,0.15);
}

.drawer-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3,7,18,0.58);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  width: min(390px, 88vw);
  height: 100vh;
  background: #111827;
  color: #ffffff;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -18px 0 40px rgba(0,0,0,0.32);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

body.drawer-open .side-drawer {
  transform: translateX(0);
}

.side-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.side-drawer-brand .logo-title,
.side-drawer-brand .logo-subtitle {
  display: block;
}

.side-drawer-brand .logo-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
}

.side-drawer-brand .logo-subtitle {
  color: #9ca3af;
  font-size: 13px;
  letter-spacing: 1.3px;
  margin-top: 4px;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav a,
.drawer-products-toggle {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: .2s ease;
  text-align: left;
}

.drawer-nav a:hover,
.drawer-products-toggle:hover {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
}

.drawer-chevron {
  font-size: 24px;
  line-height: 1;
  transition: .2s ease;
}

.drawer-group.is-open .drawer-chevron {
  transform: rotate(90deg);
}

.drawer-submenu {
  display: none;
  padding: 8px 0 2px 14px;
}

.drawer-group.is-open .drawer-submenu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.drawer-submenu a {
  min-height: 42px;
  font-size: 14px;
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
  border-left: 3px solid #0284c7;
  border-radius: 10px;
}

@media (min-width: 901px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .desktop-nav {
    margin-left: auto;
  }

  .drawer-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 900px) {
  .site-header .header-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
    min-height: 76px;
  }

  .site-header .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-title {
    font-size: 22px !important;
  }

  .logo-subtitle {
    font-size: 12px !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .drawer-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 480px) {
  .side-drawer {
    width: 86vw;
  }

  .drawer-nav a,
  .drawer-products-toggle {
    font-size: 15px;
    min-height: 48px;
  }

  .drawer-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .drawer-toggle span {
    width: 20px;
  }
}

/* v3.4 - Header search button and expandable search */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  flex: 0 0 auto;
}

.search-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s ease;
  flex: 0 0 46px;
}

.search-toggle:hover,
body.search-open .search-toggle {
  background: rgba(255,255,255,0.15);
}

.search-icon {
  width: 19px;
  height: 19px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
  right: -7px;
  bottom: -4px;
  transform: rotate(45deg);
}

.header-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 998;
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 28px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .22s ease;
  padding: 16px 0;
}

body.search-open .header-search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-search-form input[type="search"] {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  padding: 0 15px;
  font-size: 16px;
  outline: none;
}

.header-search-form input[type="search"]::placeholder {
  color: #9ca3af;
}

.header-search-form input[type="search"]:focus {
  border-color: #38bdf8;
}

.header-search-form button {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 900;
  padding: 0 22px;
  cursor: pointer;
  transition: .2s ease;
}

.header-search-form button:hover {
  background: #0369a1;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.search-result-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.search-result-thumb {
  height: 210px;
  display: block;
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-body {
  padding: 20px;
}

.search-result-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.search-result-body h3 a {
  color: #111827;
}

.search-result-body p {
  color: #6b7280;
  margin-bottom: 14px;
}

.pagination-wrap {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .header-actions {
    margin-left: 8px;
    gap: 8px;
  }

  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .search-toggle,
  .drawer-toggle {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  .header-search-form {
    gap: 8px;
  }

  .header-search-form input[type="search"] {
    height: 44px;
    font-size: 14px;
  }

  .header-search-form button {
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .search-result-card {
    border-radius: 14px;
  }

  .search-result-thumb {
    height: 125px;
    font-size: 15px;
  }

  .search-result-body {
    padding: 12px;
  }

  .search-result-body h3 {
    font-size: 14px;
    line-height: 1.25;
  }

  .search-result-body p {
    display: none;
  }

  .search-result-body .btn {
    width: 100%;
    min-height: 34px;
    padding: 8px 9px;
    font-size: 12px;
    border-radius: 9px;
  }
}

/* v3.5 - Polylang language flags beside search */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 46px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  flex: 0 0 auto;
}

.lang-flag {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid transparent;
  transition: .2s ease;
}

.lang-flag:hover {
  background: rgba(56,189,248,0.16);
  transform: translateY(-1px);
}

.lang-flag.is-active {
  border-color: #38bdf8;
  background: rgba(56,189,248,0.20);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.08);
}

@media (max-width: 650px) {
  .header-actions {
    gap: 6px !important;
  }

  .language-switcher {
    height: 42px;
    padding: 0 5px;
    gap: 4px;
    border-radius: 11px;
  }

  .lang-flag {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .language-switcher {
    padding: 0 4px;
  }

  .lang-flag {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
}

/* v3.6 - Polylang dropdown: show only current flag, open other flag on click */
.language-switcher.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  flex: 0 0 auto;
}

.lang-current {
  width: 58px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.lang-flag-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-arrow {
  font-size: 10px;
  color: #d1d5db;
  transform: translateY(1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 58px;
  padding: 6px;
  border-radius: 12px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 24px rgba(0,0,0,0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
  z-index: 1102;
}

.language-switcher.lang-dropdown.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher.lang-dropdown .lang-flag {
  width: 42px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid transparent;
  transition: .2s ease;
}

.language-switcher.lang-dropdown .lang-flag:hover {
  background: rgba(56,189,248,0.16);
  border-color: #38bdf8;
}

.language-switcher.lang-dropdown .lang-flag.is-active {
  display: none;
}

@media (max-width: 650px) {
  .language-switcher.lang-dropdown {
    height: 42px;
    border-radius: 11px;
  }

  .lang-current {
    width: 50px;
    height: 40px;
    font-size: 16px;
  }

  .lang-menu {
    min-width: 50px;
  }

  .language-switcher.lang-dropdown .lang-flag {
    width: 36px;
    height: 32px;
    font-size: 16px;
  }
}

/* v3.7 - Compact language switcher closer to hamburger */
.header-actions {
  gap: 5px !important;
}

.language-switcher.lang-dropdown {
  height: 34px !important;
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.04) !important;
  margin-left: 0 !important;
  margin-right: -2px !important;
}

.lang-current {
  width: 36px !important;
  height: 32px !important;
  padding: 0 !important;
  gap: 1px !important;
  border-radius: 9px !important;
}

.lang-flag-current {
  font-size: 17px !important;
  line-height: 1 !important;
}

.lang-arrow {
  font-size: 8px !important;
  margin-left: -2px !important;
  color: rgba(255,255,255,0.72) !important;
}

.lang-menu {
  min-width: 38px !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  padding: 4px !important;
  border-radius: 9px !important;
}

.language-switcher.lang-dropdown .lang-flag {
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
}

.search-toggle,
.drawer-toggle {
  margin-left: 0 !important;
}

@media (max-width: 650px) {
  .header-actions {
    gap: 4px !important;
  }

  .language-switcher.lang-dropdown {
    height: 32px !important;
    width: 36px !important;
    min-width: 36px !important;
    border-radius: 8px !important;
    margin-right: -3px !important;
  }

  .lang-current {
    width: 34px !important;
    height: 30px !important;
  }

  .lang-flag-current {
    font-size: 16px !important;
  }

  .lang-arrow {
    font-size: 7px !important;
  }

  .language-switcher.lang-dropdown .lang-flag {
    width: 26px !important;
    height: 26px !important;
    font-size: 15px !important;
  }
}

/* v3.8 - Move language switcher into drawer + drawer cart/account icons */
.header-actions {
  gap: 8px !important;
}

.header-actions > .language-switcher {
  display: none !important;
}

.drawer-top-actions {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.drawer-lang-wrap {
  grid-column: 1 / -1;
  min-height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.drawer-action-label {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 900;
}

.drawer-top-actions .language-switcher.lang-dropdown {
  height: 36px !important;
  width: 44px !important;
  min-width: 44px !important;
  margin: 0 !important;
  border-color: rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.08) !important;
}

.drawer-top-actions .lang-current {
  width: 42px !important;
  height: 34px !important;
}

.drawer-top-actions .lang-menu {
  right: 0 !important;
  left: auto !important;
  z-index: 1200 !important;
}

.drawer-icon-action {
  min-height: 78px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 900;
  transition: .2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.drawer-icon-action:hover {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  transform: translateY(-1px);
}

.drawer-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 650px) {
  .header-actions {
    gap: 6px !important;
  }

  .drawer-top-actions {
    gap: 8px;
  }

  .drawer-icon-action {
    min-height: 72px;
    font-size: 14px;
  }
}

/* v3.9 fixes: desktop products dropdown, drawer language position, mobile contact layout */

/* Desktop products dropdown fix */
@media (min-width: 901px) {
  .site-header {
    overflow: visible !important;
  }

  .site-header .header-inner {
    overflow: visible !important;
  }

  .desktop-nav {
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .desktop-nav .products-dropdown {
    position: relative !important;
    overflow: visible !important;
  }

  .desktop-nav .dropdown-menu {
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 2005 !important;
    min-width: 270px !important;
    transform: translateY(10px) !important;
    padding: 10px !important;
  }

  .desktop-nav .products-dropdown:hover .dropdown-menu,
  .desktop-nav .products-dropdown:focus-within .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .desktop-nav .dropdown-menu a {
    display: block !important;
    color: #111827 !important;
    background: transparent !important;
    padding: 12px 14px !important;
  }

  .desktop-nav .dropdown-menu a:hover {
    background: #e0f2fe !important;
    color: #0284c7 !important;
  }
}

/* Drawer account/cart icons only at top */
.drawer-top-actions-icons {
  grid-template-columns: repeat(2, 1fr) !important;
}

.drawer-language-row {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
}

.drawer-language-row .drawer-action-label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.drawer-language-row .language-switcher.lang-dropdown {
  margin: 0 !important;
  height: 36px !important;
  width: 44px !important;
  min-width: 44px !important;
}

/* Contact mobile: phone full row, socials two per row */
@media (max-width: 650px) {
  .contact-social-box {
    gap: 20px !important;
  }

  .social-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .social-btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .social-btn.phone {
    grid-column: 1 / -1 !important;
    font-size: 15px !important;
    padding: 11px 12px !important;
  }

  .social-btn.maps {
    grid-column: 1 / -1 !important;
  }

  .social-icon {
    width: 23px !important;
    height: 23px !important;
    flex: 0 0 23px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 370px) {
  .social-btn {
    font-size: 12px !important;
    gap: 6px !important;
  }

  .social-btn.phone {
    font-size: 14px !important;
  }
}

/* v4.0 - Real SVG social/contact icons + address text */
.social-icon svg,
.contact-address-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.social-btn.whatsapp .social-icon {
  background: #25D366;
  color: #ffffff;
}

.social-btn.facebook .social-icon {
  background: #1877F2;
  color: #ffffff;
}

.social-btn.instagram .social-icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
}

.social-btn.tiktok .social-icon {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}

.social-btn.maps .social-icon {
  background: #EA4335;
  color: #ffffff;
}

.social-btn.phone .social-icon {
  background: #0284c7;
  color: #ffffff;
}

.contact-address {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}

.contact-address-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

@media (max-width: 650px) {
  .social-icon svg,
  .contact-address-icon svg {
    width: 14px;
    height: 14px;
  }

  .contact-address {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.35;
    padding: 10px 12px;
  }
}

/* v4.1 - Top strip call button + language flag visibility fix */
.category-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-call {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}

.btn-call:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

.btn-call-icon {
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex: 0 0 21px;
}

.btn-call-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}

/* Make current language always visible and menu above drawer content */
.lang-flag-current {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  visibility: visible !important;
  opacity: 1 !important;
}

.language-switcher.lang-dropdown,
.drawer-language-row {
  overflow: visible !important;
}

.language-switcher.lang-dropdown .lang-menu {
  z-index: 3000 !important;
}

@media (max-width: 650px) {
  .category-strip-inner {
    gap: 14px !important;
  }

  .category-strip-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .category-strip-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .btn-call-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    margin-right: 5px;
  }

  .btn-call-icon svg {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 370px) {
  .category-strip-actions .btn {
    font-size: 11px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* v4.2: Offers / Deals section added above popular products */
.offers-products-section {
  background: #f8fafc;
  padding-top: 62px;
  padding-bottom: 62px;
}

.offers-products-section + .popular-products-section {
  padding-top: 62px;
}

@media (max-width: 650px) {
  .offers-products-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

/* v4.3 - Drawer menu cleanup + reliable CSS language flags */
.lang-flag-current,
.language-switcher.lang-dropdown .lang-flag {
  color: #ffffff !important;
}

.lang-flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.45);
  flex: 0 0 auto;
}

.lang-flag-ge {
  background: #ffffff;
}

.lang-flag-ge .ge-h,
.lang-flag-ge .ge-v {
  position: absolute;
  background: #e11d48;
  display: block;
}

.lang-flag-ge .ge-h {
  left: 0;
  right: 0;
  top: 6px;
  height: 4px;
}

.lang-flag-ge .ge-v {
  top: 0;
  bottom: 0;
  left: 9px;
  width: 4px;
}

.lang-flag-ge::before,
.lang-flag-ge::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: #e11d48;
  border-radius: 1px;
  top: 3px;
  box-shadow: 0 7px 0 #e11d48;
}

.lang-flag-ge::before { left: 4px; }
.lang-flag-ge::after { right: 4px; }

.lang-flag-us {
  background: repeating-linear-gradient(to bottom, #b91c1c 0 2px, #ffffff 2px 4px);
}

.lang-flag-us .us-canton {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 8px;
  background: #1d4ed8;
  display: block;
}

.lang-flag-code {
  min-width: 22px;
  height: 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.drawer-language-row .language-switcher.lang-dropdown .lang-menu {
  right: 0 !important;
  left: auto !important;
  top: auto !important;
  bottom: calc(100% + 6px) !important;
}

.drawer-nav > a[href*="#popular-products"],
.drawer-nav > a[href*="product-category/offers"] {
  display: flex;
  align-items: center;
}

/* v4.4 - Use product tags for Offers/Popular and force visible SVG flags */
.lang-flag-icon,
.lang-flag-current .lang-flag-icon,
.language-switcher.lang-dropdown .lang-flag .lang-flag-icon {
  width: 24px !important;
  height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.55) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lang-flag-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.lang-flag-current,
.language-switcher.lang-dropdown .lang-flag {
  min-width: 28px !important;
  min-height: 24px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.drawer-nav > a[href*="#popular-products"],
.drawer-nav > a[href*="#offers-products"] {
  display: flex;
  align-items: center;
}


/* v4.6 - Partner logos strip between CTA and promotional slider */
.hivideo-partner-strip {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 18px 0 6px;
}

.hivideo-partner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.hivideo-partner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #0f172a;
  text-align: center;
}

.hivideo-partner-kicker {
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hivideo-partner-text strong {
  font-size: 15px;
  line-height: 1.35;
}

.hivideo-logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hivideo-logo-card {
  width: 170px;
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hivideo-logo-card img {
  display: block;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

/* Projects must stay a plain desktop button, not a dropdown trigger. */
.desktop-nav .nav-link::after {
  content: none !important;
}

@media (max-width: 650px) {
  .hivideo-partner-strip {
    padding-top: 14px;
  }

  .hivideo-partner-inner {
    gap: 10px;
  }

  .hivideo-partner-text strong {
    font-size: 13px;
  }

  .hivideo-logo-grid {
    gap: 10px;
  }

  .hivideo-logo-card {
    width: 148px;
    min-height: 48px;
    padding: 7px 12px;
  }
}

/* v4.8 - WooCommerce product/category navigation fixes */
.product-title-link {
  color: inherit;
  text-decoration: none;
}
.product-title-link:hover {
  color: var(--primary);
}
.dynasec-products-archive-grid {
  margin-top: 24px;
}
.dynasec-wc-description {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
}
.dynasec-wc-taxonomy-section .section-title h1,
.dynasec-wc-shop-section .section-title h1 {
  margin-bottom: 10px;
}


/* v4.10 - WooCommerce single product gallery/custom lightbox polish */
.woocommerce div.product div.images .woocommerce-product-gallery__image a {
  display: block;
  cursor: pointer;
}

.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: 72px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  opacity: .72;
  transition: opacity .18s ease, transform .18s ease;
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
  opacity: 1;
  transform: scale(1.03);
}

.woocommerce-product-gallery__trigger {
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}


/* v4.11 - DynaSec custom product image lightbox */
body.dynasec-lightbox-open {
  overflow: hidden;
}

.dynasec-product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
}

.dynasec-product-lightbox.is-open {
  display: flex;
}

.dynasec-lightbox-stage {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, 92vw);
  height: min(760px, 82vh);
}

.dynasec-lightbox-image {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.dynasec-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.dynasec-lightbox-close,
.dynasec-lightbox-prev,
.dynasec-lightbox-next {
  position: absolute;
  z-index: 2;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.dynasec-lightbox-close:hover,
.dynasec-lightbox-prev:hover,
.dynasec-lightbox-next:hover {
  background: rgba(37, 99, 235, 0.78);
  transform: scale(1.04);
}

.dynasec-lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.dynasec-lightbox-prev,
.dynasec-lightbox-next {
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 42px;
  transform: translateY(-50%);
}

.dynasec-lightbox-prev:hover,
.dynasec-lightbox-next:hover {
  transform: translateY(-50%) scale(1.04);
}

.dynasec-lightbox-prev {
  left: 22px;
}

.dynasec-lightbox-next {
  right: 22px;
}

@media (max-width: 768px) {
  .dynasec-product-lightbox {
    padding: 18px;
  }

  .dynasec-lightbox-stage {
    width: 94vw;
    height: 74vh;
  }

  .dynasec-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .dynasec-lightbox-prev,
  .dynasec-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }
}

/* v4.12 - Product card image fit + mobile grid alignment */
.product-thumb,
.product-image {
  background: #f8fafc;
}

.product-thumb img,
.product-card .product-thumb img,
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f8fafc;
  padding: 10px;
  box-sizing: border-box;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  height: 230px !important;
}

.products-grid,
.woocommerce ul.products,
.woocommerce-page ul.products {
  justify-content: start !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  direction: ltr;
}

.product-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  box-sizing: border-box;
  direction: ltr;
}

@media (max-width: 650px) {
  .products-grid,
  .popular-products-section .products-grid,
  .offers-products-section .products-grid,
  .dynasec-products-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: start !important;
    justify-items: stretch !important;
  }

  .products-grid > .product-card:only-child,
  .popular-products-section .products-grid > .product-card:only-child,
  .offers-products-section .products-grid > .product-card:only-child,
  .dynasec-products-archive-grid > .product-card:only-child {
    grid-column: 1 / 2 !important;
    justify-self: stretch !important;
  }

  .product-thumb,
  .product-image,
  .popular-products-section .product-thumb,
  .popular-products-section .product-image,
  .offers-products-section .product-thumb,
  .offers-products-section .product-image {
    height: 145px !important;
  }

  .product-thumb img,
  .product-card .product-thumb img {
    object-fit: contain !important;
    padding: 8px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    justify-content: start !important;
    justify-items: stretch !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    display: none !important;
  }

  .woocommerce ul.products li.product:only-child,
  .woocommerce-page ul.products li.product:only-child {
    grid-column: 1 / 2 !important;
    justify-self: stretch !important;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img {
    height: 145px !important;
    object-fit: contain !important;
    padding: 8px;
  }
}

@media (max-width: 370px) {
  .product-thumb,
  .product-image,
  .popular-products-section .product-thumb,
  .popular-products-section .product-image,
  .offers-products-section .product-thumb,
  .offers-products-section .product-image,
  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img {
    height: 130px !important;
  }
}


/* v4.13 - Product cards keep full image without empty padding + red SALE badge */
.product-thumb,
.product-card .product-thumb,
.popular-products-section .product-thumb,
.offers-products-section .product-thumb {
  position: relative;
  display: block;
  height: auto !important;
  min-height: 0 !important;
  background: #ffffff;
  overflow: hidden;
}

.product-thumb img,
.product-card .product-thumb img,
.popular-products-section .product-thumb img,
.offers-products-section .product-thumb img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: initial !important;
  object-position: center center !important;
  padding: 0 !important;
  background: #ffffff;
}

.product-card .product-image,
.popular-products-section .product-image,
.offers-products-section .product-image {
  min-height: 220px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: initial !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: 0 0 15px !important;
  background: #ffffff;
}

.dynasec-sale-badge,
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
  position: absolute !important;
  z-index: 5 !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28) !important;
}

.product-card .price del,
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: #9ca3af !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.product-card .price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: #dc2626 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

@media (max-width: 650px) {
  .product-thumb,
  .product-card .product-thumb,
  .popular-products-section .product-thumb,
  .offers-products-section .product-thumb,
  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img {
    height: auto !important;
  }

  .dynasec-sale-badge,
  .woocommerce span.onsale,
  .woocommerce ul.products li.product .onsale,
  .woocommerce-page ul.products li.product .onsale {
    top: 8px !important;
    left: 8px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
  }
}

/* v4.14 - Product archive 4-column desktop grid, Georgian cart button, hide product tags */
@media (min-width: 901px) {
  .dynasec-products-archive-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch !important;
    justify-content: start !important;
  }

  .dynasec-products-archive-grid > .product-card:only-child,
  .woocommerce ul.products li.product:only-child,
  .woocommerce-page ul.products li.product:only-child {
    grid-column: 1 / 2 !important;
    justify-self: stretch !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    display: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
  }
}

.dynasec-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.dynasec-product-actions .btn,
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button,
.woocommerce a.added_to_cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dynasec-product-actions .btn-cart,
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.20) !important;
}

.dynasec-product-actions .btn-cart:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce div.product form.cart .button:hover {
  background: #b91c1c !important;
  color: #ffffff !important;
}

.woocommerce div.product .tagged_as {
  display: none !important;
}

@media (max-width: 900px) and (min-width: 651px) {
  .dynasec-products-archive-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    display: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 650px) {
  .dynasec-product-actions {
    gap: 8px;
  }

  .dynasec-product-actions .btn,
  .woocommerce ul.products li.product .button,
  .woocommerce div.product form.cart .button {
    font-size: 12px !important;
    padding: 9px 8px !important;
    border-radius: 10px !important;
  }
}


/* v4.15 - Product cards show only View; single product has Add to Cart + Buy Now */
.dynasec-product-actions {
  grid-template-columns: 1fr !important;
}

.dynasec-product-actions .btn-cart {
  display: none !important;
}

.woocommerce div.product form.cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.woocommerce div.product form.cart .quantity {
  margin: 0 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .dynasec-buy-now-button {
  min-height: 46px;
  padding: 0 22px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  background: #dc2626 !important;
  color: #fff !important;
}

.woocommerce div.product form.cart .dynasec-buy-now-button {
  background: #111827 !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18) !important;
}

.woocommerce div.product form.cart .dynasec-buy-now-button:hover {
  background: #000000 !important;
  color: #fff !important;
}

@media (max-width: 650px) {
  .woocommerce div.product form.cart {
    gap: 10px;
  }

  .woocommerce div.product form.cart .single_add_to_cart_button,
  .woocommerce div.product form.cart .dynasec-buy-now-button {
    flex: 1 1 calc(50% - 6px);
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .woocommerce div.product form.cart .quantity {
    flex: 1 1 100%;
  }
}


/* v4.16 - Show product category/brand meta, hide only tags */
.woocommerce div.product .product_meta {
  display: block !important;
  margin-top: 18px !important;
  font-size: 14px !important;
  color: #64748b !important;
}

.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .sku_wrapper,
.woocommerce div.product .product_meta .brand,
.woocommerce div.product .product_meta .brands,
.woocommerce div.product .product_meta [class*="brand"] {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 12px 8px 0 !important;
}

.woocommerce div.product .product_meta .tagged_as {
  display: none !important;
}

.woocommerce div.product .product_meta a {
  color: #0f766e !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.woocommerce div.product .product_meta a:hover {
  color: #dc2626 !important;
}

/* v4.20 - Cleaner product cards and checkout layout */
.product-card .dynasec-product-card-desc,
.popular-products-section .product-card .product-body p,
.offers-products-section .product-card .product-body p,
.dynasec-products-archive-grid .product-card .product-body p {
  display: none !important;
}

.product-card .dynasec-product-actions,
.dynasec-products-archive-grid .dynasec-product-actions,
.woocommerce ul.products li.product .dynasec-product-actions,
.woocommerce-page ul.products li.product .dynasec-product-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 14px !important;
}

.product-card .dynasec-product-actions .btn,
.dynasec-products-archive-grid .dynasec-product-actions .btn,
.woocommerce ul.products li.product .button.dynasec-loop-view-button,
.woocommerce-page ul.products li.product .button.dynasec-loop-view-button,
.dynasec-loop-view-button {
  width: auto !important;
  min-width: 118px !important;
  max-width: 170px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #111827 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  border: 0 !important;
  font-weight: 900 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce ul.products li.product .button:not(.dynasec-loop-view-button),
.woocommerce-page ul.products li.product .button:not(.dynasec-loop-view-button) {
  text-align: center !important;
}

@media (max-width: 650px) {
  .product-card .dynasec-product-actions .btn,
  .dynasec-products-archive-grid .dynasec-product-actions .btn,
  .dynasec-loop-view-button {
    min-width: 96px !important;
    max-width: 140px !important;
  }
}

/* v4.21 - Full-width View button on product cards (desktop + mobile) */
.product-card .dynasec-product-actions,
.dynasec-products-archive-grid .dynasec-product-actions,
.woocommerce ul.products li.product .dynasec-product-actions,
.woocommerce-page ul.products li.product .dynasec-product-actions {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.product-card .dynasec-product-actions .btn,
.dynasec-products-archive-grid .dynasec-product-actions .btn,
.woocommerce ul.products li.product .button.dynasec-loop-view-button,
.woocommerce-page ul.products li.product .button.dynasec-loop-view-button,
.dynasec-loop-view-button {
  width: calc(100% - 48px) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 18px auto 0 !important;
  padding: 15px 18px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 14px !important;
  background: #111827 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.woocommerce ul.products li.product .button.dynasec-loop-view-button,
.woocommerce-page ul.products li.product .button.dynasec-loop-view-button {
  clear: both !important;
}

@media (max-width: 650px) {
  .product-card .dynasec-product-actions .btn,
  .dynasec-products-archive-grid .dynasec-product-actions .btn,
  .woocommerce ul.products li.product .button.dynasec-loop-view-button,
  .woocommerce-page ul.products li.product .button.dynasec-loop-view-button,
  .dynasec-loop-view-button {
    width: calc(100% - 28px) !important;
    padding: 13px 14px !important;
    border-radius: 13px !important;
  }
}
