/*
 Theme Name:   Shoptimizer Child - MyHOCl
 Theme URI:    https://myhocl.rs
 Description:  MyHOCl child theme for Shoptimizer
 Author:       ECOLIT DOO
 Author URI:   https://myhocl.rs
 Template:     shoptimizer
 Version:      1.0.0
 Text Domain:  shoptimizer-child
*/

:root {
  --myhocl-green: #4CAF50;
  --myhocl-dark-green: #2d6a4f;
  --myhocl-teal: #1b4332;
  --myhocl-light: #f8faf8;
  --myhocl-gray: #6c757d;
}

/* ===== Hero ===== */
.myhocl-hero {
  background: linear-gradient(135deg, var(--myhocl-teal) 0%, var(--myhocl-dark-green) 100%);
  color: white;
  padding: 70px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  min-height: 400px;
  border-radius: 16px;
  margin-bottom: 10px;
}
.myhocl-hero-content { max-width: 520px; flex: 1 1 380px; }
.myhocl-hero-content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: white !important; }
.myhocl-hero-content h1 span { color: var(--myhocl-green); }
.myhocl-hero-content p { font-size: 1.1rem; opacity: 0.9; line-height: 1.7; margin-bottom: 28px; }
.myhocl-hero-image { flex: 0 1 320px; text-align: center; }
.myhocl-hero-image img { max-width: 280px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); transition: transform 0.3s ease; }
.myhocl-hero-image img:hover { transform: scale(1.05); }

/* ===== Buttons ===== */
.myhocl-btn { display: inline-block; background: var(--myhocl-green); color: white !important; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; text-decoration: none !important; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.myhocl-btn:hover { background: #45a049; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76,175,80,0.4); }
.myhocl-btn-outline { background: transparent; border: 2px solid white; margin-left: 10px; }
.myhocl-btn-outline:hover { background: white; color: var(--myhocl-teal) !important; }

/* ===== Trust Badges ===== */
.myhocl-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 50px 0; text-align: center; }
.myhocl-trust-item { padding: 28px 16px; background: var(--myhocl-light); border-radius: 14px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.myhocl-trust-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.myhocl-trust-icon { font-size: 1.1rem; margin-bottom: 10px; display: block; }
.myhocl-trust-icon img, .myhocl-trust-icon img.emoji { width: 20px !important; height: 20px !important; margin: 0 auto !important; }
.myhocl-trust-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; color: var(--myhocl-teal); }
.myhocl-trust-item p { font-size: 0.82rem; color: var(--myhocl-gray); margin: 0; }

/* ===== Stats ===== */
.myhocl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 35px 0; text-align: center; }
.myhocl-stat h3 { font-size: 2rem; font-weight: 800; color: var(--myhocl-green); margin-bottom: 4px; }
.myhocl-stat p { font-size: 0.82rem; color: var(--myhocl-gray); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Section Titles ===== */
.myhocl-section { padding: 50px 0; }
.myhocl-section-title { text-align: center; margin-bottom: 40px; }
.myhocl-section-title h2 { font-size: 2rem; font-weight: 800; color: var(--myhocl-teal); margin-bottom: 10px; }
.myhocl-section-title p { font-size: 1.05rem; color: var(--myhocl-gray); max-width: 550px; margin: 0 auto; }
.myhocl-section-title .accent-line { width: 50px; height: 4px; background: var(--myhocl-green); margin: 14px auto 0; border-radius: 2px; }

/* ===== Steps ===== */
.myhocl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.myhocl-step { text-align: center; padding: 36px 20px; background: white; border-radius: 16px; border: 1px solid #e9ecef; transition: all 0.3s ease; }
.myhocl-step:hover { border-color: var(--myhocl-green); box-shadow: 0 8px 30px rgba(76,175,80,0.1); }
.myhocl-step-number { width: 50px; height: 50px; background: var(--myhocl-green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; margin: 0 auto 16px; }
.myhocl-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--myhocl-teal); margin-bottom: 8px; }
.myhocl-step p { font-size: 0.9rem; color: var(--myhocl-gray); line-height: 1.6; }

/* ===== Benefits ===== */
.myhocl-benefits { background: linear-gradient(135deg, var(--myhocl-green) 0%, var(--myhocl-dark-green) 100%); color: white; padding: 60px 40px; border-radius: 16px; margin: 20px 0; }
.myhocl-benefits h2 { text-align: center; font-size: 1.8rem; margin-bottom: 35px; color: white !important; }
.myhocl-benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.myhocl-benefit { display: flex; align-items: flex-start; gap: 12px; padding: 18px; background: rgba(255,255,255,0.08); border-radius: 10px; }
.myhocl-benefit-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.myhocl-benefit strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.myhocl-benefit span { font-size: 0.85rem; opacity: 0.8; }

/* ===== About Snippet ===== */
.myhocl-about-snippet { display: flex; align-items: center; gap: 50px; padding: 60px 0; flex-wrap: wrap; }
.myhocl-about-text { flex: 1 1 380px; }
.myhocl-about-text h2 { font-size: 1.8rem; color: var(--myhocl-teal); margin-bottom: 14px; }
.myhocl-about-text p { color: var(--myhocl-gray); line-height: 1.8; margin-bottom: 16px; font-size: 1rem; }
.myhocl-about-image { flex: 0 1 340px; text-align: center; }
.myhocl-about-image img { max-width: 100%; border-radius: 16px; }

/* ===== CTA ===== */
.myhocl-cta { text-align: center; padding: 60px 30px; background: linear-gradient(135deg, var(--myhocl-green) 0%, var(--myhocl-dark-green) 100%); color: white; border-radius: 16px; margin: 20px 0; }
.myhocl-cta h2 { font-size: 1.8rem; font-weight: 800; color: white !important; margin-bottom: 10px; }
.myhocl-cta p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 25px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== Hide page title on homepage ===== */
.page-template-template-fullwidth .entry-header { display: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .myhocl-hero { padding: 45px 24px; flex-direction: column; text-align: center; min-height: auto; border-radius: 0; }
  .myhocl-hero-content h1 { font-size: 1.8rem; }
  .myhocl-trust { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .myhocl-steps { grid-template-columns: 1fr; gap: 16px; }
  .myhocl-benefits-grid { grid-template-columns: 1fr; }
  .myhocl-stats { grid-template-columns: repeat(2, 1fr); }
  .myhocl-about-snippet { flex-direction: column; }
}

/* ===== Inner Page Styles ===== */
.myhocl-page-hero {
  background: linear-gradient(135deg, var(--myhocl-teal) 0%, var(--myhocl-dark-green) 100%);
  color: white;
  padding: 50px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
}
.myhocl-page-hero h2 { color: white !important; font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.myhocl-page-hero p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.myhocl-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 30px 0;
}
.myhocl-card {
  background: var(--myhocl-light);
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}
.myhocl-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.06); border-color: var(--myhocl-green); }
.myhocl-card h3 { font-size: 1.1rem; color: var(--myhocl-teal); margin-bottom: 8px; font-weight: 700; }
.myhocl-card p { font-size: 0.92rem; color: var(--myhocl-gray); line-height: 1.6; margin: 0; }

.myhocl-card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.myhocl-icon-card {
  text-align: center;
  padding: 36px 20px;
}
.myhocl-icon-card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }

.myhocl-faq-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.myhocl-faq-item:hover { border-color: var(--myhocl-green); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.myhocl-faq-item h3 { font-size: 1.05rem; color: var(--myhocl-teal); margin-bottom: 8px; font-weight: 700; }
.myhocl-faq-item p { font-size: 0.92rem; color: var(--myhocl-gray); line-height: 1.7; margin: 0; }

.myhocl-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}
.myhocl-contact-info { }
.myhocl-contact-info h3 { font-size: 1.1rem; color: var(--myhocl-teal); margin-bottom: 6px; font-weight: 700; }
.myhocl-contact-info p { color: var(--myhocl-gray); line-height: 1.8; font-size: 1rem; }
.myhocl-contact-info a { color: var(--myhocl-green); text-decoration: none; font-weight: 600; }
.myhocl-contact-info a:hover { text-decoration: underline; }

.myhocl-info-box {
  background: var(--myhocl-light);
  border-left: 4px solid var(--myhocl-green);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.myhocl-info-box p { margin: 0; color: var(--myhocl-gray); line-height: 1.7; }

.myhocl-highlight { color: var(--myhocl-green); font-weight: 700; }

.myhocl-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 30px 0;
}
.myhocl-partner {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.myhocl-partner:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.myhocl-partner h3 { font-size: 1rem; color: var(--myhocl-teal); margin-bottom: 4px; }
.myhocl-partner p { font-size: 0.88rem; color: var(--myhocl-gray); margin: 0; }

@media (max-width: 768px) {
  .myhocl-card-grid, .myhocl-card-grid-3, .myhocl-contact-grid, .myhocl-partners { grid-template-columns: 1fr; }
  .myhocl-page-hero { padding: 35px 24px; }
  .myhocl-page-hero h2 { font-size: 1.6rem; }
}

/* ===== Contact card with icon ===== */
.myhocl-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.myhocl-contact-card h3 { margin-bottom: 2px; }
.myhocl-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Fix contact icon sizing ===== */
.myhocl-contact-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.myhocl-contact-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.myhocl-contact-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
}
.myhocl-contact-card > div:last-child {
  flex: 1;
}

/* ===== Outline icon style ===== */
.myhocl-contact-icon-outline {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 1.5px solid #d0d5dd;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
  transition: border-color 0.3s ease;
}
.myhocl-contact-card:hover .myhocl-contact-icon-outline {
  border-color: #4CAF50;
}
.myhocl-contact-icon-outline svg {
  width: 24px;
  height: 24px;
}

/* ===== Clickable contact cards ===== */
a.myhocl-contact-card {
  text-decoration: none !important;
  cursor: pointer;
}
a.myhocl-contact-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 6px 20px rgba(76,175,80,0.1);
}
a.myhocl-contact-card span,
a.myhocl-contact-card strong {
  text-decoration: none !important;
}
/* Remove underline from all links inside contact cards and info boxes */
.myhocl-contact-info a,
.myhocl-card a {
  text-decoration: none !important;
}

/* ===== Footer Styling ===== */
.site-footer {
  font-size: 0.92rem;
}

/* Footer contact items with icons */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  padding: 6px 0;
}
.footer-contact-item:hover {
  color: #4CAF50 !important;
}
.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.footer-contact-item:hover svg {
  opacity: 1;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links li a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  font-size: 0.92rem;
}
.footer-links li a:hover {
  color: #4CAF50 !important;
}

/* Footer widget titles */
.site-footer .widget-title,
.site-footer h4 {
  color: white !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* ===== Blog / Centar znanja ===== */
.blog .archive-header { display: none; }
.blog .content-area { width: 100%; max-width: 100%; float: none; }
.blog #secondary { display: none; }

.myhocl-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.myhocl-blog-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.myhocl-blog-card:hover {
  border-color: var(--myhocl-green);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.myhocl-blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--myhocl-light);
}
.myhocl-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.myhocl-blog-card:hover .myhocl-blog-card-image img {
  transform: scale(1.05);
}
.myhocl-blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5cdd5;
  background: linear-gradient(135deg, #f0f4f0 0%, #e8ece8 100%);
}

.myhocl-blog-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.myhocl-blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--myhocl-gray);
  margin-bottom: 10px;
  text-transform: capitalize;
}

.myhocl-blog-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--myhocl-teal);
  margin-bottom: 10px;
  line-height: 1.4;
}

.myhocl-blog-card-body p {
  font-size: 0.92rem;
  color: var(--myhocl-gray);
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}

.myhocl-blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--myhocl-green);
  transition: gap 0.3s ease;
}
.myhocl-blog-card:hover .myhocl-blog-card-link {
  gap: 10px;
}

@media (max-width: 768px) {
  .myhocl-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== Single Post ===== */
.single .archive-header { display: none; }
.single .content-area { width: 100%; max-width: 100%; float: none; }
.single #secondary { display: none; }

.myhocl-post-hero-image {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 40px;
}
.myhocl-post-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.myhocl-post-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 40px 40px;
  background: linear-gradient(to top, rgba(27,67,50,0.92) 0%, rgba(27,67,50,0.6) 60%, transparent 100%);
  color: white;
}
.myhocl-post-hero-overlay h1 {
  font-size: 2rem;
  font-weight: 800;
  color: white !important;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.myhocl-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  opacity: 0.8;
}

.myhocl-single-article {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.myhocl-article-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #333;
}
.myhocl-article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--myhocl-teal);
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}
.myhocl-article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--myhocl-teal);
  margin: 30px 0 12px;
}
.myhocl-article-content p {
  margin-bottom: 16px;
  color: #444;
}
.myhocl-article-content ul {
  margin: 16px 0;
  padding-left: 24px;
}
.myhocl-article-content li {
  margin-bottom: 8px;
  color: #444;
  line-height: 1.7;
}
.myhocl-article-content strong {
  color: var(--myhocl-teal);
}

.myhocl-back-link {
  max-width: 780px;
  margin: 40px auto 20px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}
.myhocl-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--myhocl-green);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: gap 0.3s ease;
}
.myhocl-back-link a:hover {
  gap: 12px;
  color: var(--myhocl-dark-green);
}

@media (max-width: 768px) {
  .myhocl-post-hero-image { border-radius: 0; max-height: 280px; }
  .myhocl-post-hero-image img { height: 280px; }
  .myhocl-post-hero-overlay { padding: 30px 24px 24px; }
  .myhocl-post-hero-overlay h1 { font-size: 1.5rem; }
  .myhocl-article-content { padding: 0 16px; }
}

/* ===== Hide default page title when hero exists ===== */
.page .entry-header {
  display: none;
}

/* ===== Mobile hero buttons spacing ===== */
@media (max-width: 768px) {
  .myhocl-hero-content .myhocl-btn {
    display: block;
    text-align: center;
    margin: 0 auto 14px auto;
    max-width: 280px;
  }
  .myhocl-btn-outline {
    margin-left: auto;
  }
}

/* ===== Full-width pages (no sidebar) ===== */
.page .content-area {
  width: 100% !important;
  float: none !important;
}
.page #secondary {
  display: none !important;
}

/* ===== All links - no underline, green color ===== */
.entry-content a,
.myhocl-faq-item a,
.myhocl-card a,
.myhocl-info-box a,
.myhocl-benefit a,
.myhocl-about-text a,
.myhocl-contact-info a,
.footer-contact-item,
.footer-links a {
  text-decoration: none !important;
  color: #4CAF50;
}
.entry-content a:hover,
.myhocl-faq-item a:hover,
.myhocl-card a:hover,
.myhocl-info-box a:hover {
  color: #2d6a4f;
}

/* ===== Image additions (myhocl.rs visual assets) ===== */
.myhocl-brand-banner {
  margin: 40px 0;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.myhocl-brand-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(27,67,50,0.08);
}
.myhocl-brand-banner a {
  display: block;
  transition: transform 0.25s ease;
}
.myhocl-brand-banner a:hover {
  transform: translateY(-2px);
}

.myhocl-card-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.myhocl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}
.myhocl-split-text h2 {
  margin-top: 0;
}
.myhocl-split-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
@media (max-width: 768px) {
  .myhocl-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* More breathing room around standalone h2 headings on content pages */
.entry-content > h2.wp-block-heading {
  margin-top: 60px;
  margin-bottom: 28px;
}
.entry-content > h2.wp-block-heading + p {
  margin-bottom: 28px;
}

/* Center split-section button on mobile */
@media (max-width: 768px) {
  .myhocl-split-text {
    text-align: center;
  }
  .myhocl-split-text .myhocl-btn {
    display: inline-block;
  }
}

/* Force card images to square format for consistency */
.myhocl-card-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* Hide post-type labels (POST/PAGE) in Ajax Search results */
.commercekit-ajs-post-title .post-type {
  display: none;
}

/* Green brand color for Ajax Search view-all bars */
.commercekit-ajs-view-all-holder > a,
.commercekit-ajs-view-all-holder > a:hover {
  background: #4CAF50 !important;
  color: #fff !important;
}

/* ===== Mobile logo size override ===== */
@media (max-width: 992px) {
  body.theme-shoptimizer .site-header .custom-logo-link img,
  body.wp-custom-logo .site-header .custom-logo-link img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px;
  }
}

/* ===== Contact Form 7 ===== */
.wpcf7-form p { margin: 0 0 16px 0; }
.wpcf7-form label { display: block; font-weight: 600; color: var(--myhocl-teal); margin-bottom: 6px; font-size: 0.9rem; }
.wpcf7-form .myhocl-input,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe3df;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.wpcf7-form .myhocl-input:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--myhocl-green);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form .myhocl-btn-submit {
  background: var(--myhocl-green);
  color: white !important;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.wpcf7-form .myhocl-btn-submit:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76,175,80,0.4);
}
.wpcf7-response-output {
  margin-top: 16px !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  border: 1px solid #dfe3df !important;
  font-size: 0.9rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--myhocl-green) !important; background: rgba(76,175,80,0.08); color: var(--myhocl-teal); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #ff9800 !important; background: rgba(255,152,0,0.08); }
.wpcf7-not-valid-tip { color: #d32f2f; font-size: 0.82rem; margin-top: 4px; }

/* ===== Guarantee strip (PDV / bez skrivenih troškova) ===== */
.myhocl-guarantee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  padding: 20px 24px;
  margin: 20px 0 10px;
  background: linear-gradient(135deg, #f0f9f2 0%, #e8f5eb 100%);
  border: 1px solid rgba(76,175,80,0.18);
  border-radius: 14px;
}
.myhocl-guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--myhocl-teal);
  font-weight: 600;
  font-size: 0.92rem;
}
.myhocl-guarantee-item svg { flex-shrink: 0; }
@media (max-width: 992px) {
  .myhocl-guarantee { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
  .myhocl-guarantee-item { font-size: 0.88rem; }
}

/* ===== Price suffix (PDV uključen) — WooCommerce ===== */
.myhocl-price-suffix,
.price .woocommerce-price-suffix {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: rgba(76,175,80,0.12);
  color: var(--myhocl-dark-green);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* Lightbox (PhotoSwipe) background — brand green at 80% */
.pswp__bg {
	background: rgba(59, 181, 74, 0.8) !important;
}

/* ===== Sakrij theme-rendered page title na home (custom H1 je u sadržaju) ===== */
.home.page .entry-title,
.page-id-26 .entry-title {
	display: none;
}

/* MyHOCl logo fade-in pri ucitavanju
 * Forsiramo animaciju i kad je reduced-motion ON (vlasnik je tako trazio).
 * !important na shorthand pobedjuje Shoptimizer-ov universal a11y override
 * (* { animation-duration: 1ms !important }) zato sto klasa ima vecu specificnost.
 */
.custom-logo-link img,
.site-branding .custom-logo {
	animation: myhocl-logo-fadein 600ms cubic-bezier(.2, .7, .3, 1) 0s 1 both !important;
	will-change: opacity, transform;
}

@keyframes myhocl-logo-fadein {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== Clickable cards on "Kako MyHOCl pomaže" (link to knowledge-base posts) ===== */
.myhocl-card-link {
  display: block;
  text-decoration: none !important;
}
.myhocl-card-link h3 {
  color: var(--myhocl-teal);
  transition: color 0.2s ease;
}
.myhocl-card:hover .myhocl-card-link h3 {
  color: var(--myhocl-green);
}
.myhocl-card-link .myhocl-card-img {
  transition: transform 0.25s ease;
}
.myhocl-card:hover .myhocl-card-link .myhocl-card-img {
  transform: translateY(-3px);
}
