/*
Theme Name: Moderno-Child
Theme URI: https://parkofideas.com/moderno/
Text Domain: moderno-child
Description: Fashion & Furniture Store WooCommerce Theme
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.0
Template: moderno
Author: parkofideas.com
Author URI: https://parkofideas.com
Tags: right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, theme-options, translation-ready
*/


/* =Theme customization starts here
-------------------------------------------------------------- */
.home .c-product-grid__list {
  gap: 0px;
}

/* Paslēpt brandu nosaukumus - rādīt tikai bildes */
.brand-slider .brand-name,
.brand-name,
span.brand-name {
    display: none !important;
}

/* Paslēpt Voluspa logo */
.brand-slide img[alt="Voluspa"] {
    display: none !important;
}

.brand-slide:has(img[alt="Voluspa"]) {
    display: none !important;
}

/* Mobile button spacing fix for client card registration */
@media (max-width: 768px) {
    .c-category-card__buttons {
        flex-direction: column !important;
        margin-top: 30px !important;
        display: flex !important;
    }
    
    .c-category-card__buttons .c-button {
        margin-bottom: 15px !important;
        width: 100% !important;
        display: block !important;
    }
}

/* Mobile product image fixes - ensure full width on single product pages */
@media (max-width: 768px) {
    /* Product gallery wrapper */
    .single-product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Main product image */
    .single-product .woocommerce-product-gallery__wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Product image itself */
    .single-product .woocommerce-product-gallery__image,
    .single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Product summary and images container */
    .single-product .summary,
    .single-product div.product .images {
        width: 100% !important;
        max-width: 100% !important;
    }
}
.home .c-product-grid__list > * {
  flex: 0 0 50%;
}
/* === FILTER BAR === */
.custom-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  padding: 30px 40px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  font-family: inherit;
  min-height: 80px;
}
.custom-filter-form {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
}
.custom-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 16px;
  font-weight: 500;
  margin-right: 5px;
}
.custom-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.sort-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  font-family: inherit;
}
/* === CATEGORIES === */
.product-anchor-bar {
  background-color: #f7f7f7;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
  font-family: inherit;
  min-height: 80px;
}
.anchor-nav-custom ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.anchor-button {
  background: none;
  border: none;
  font-weight: 800;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
  padding-bottom: 2px;
}
.anchor-button:hover {
  color: #000;
  border-bottom: 2px solid #000;
}
/* Sānu filtrs */
.filter-sidebar {
  position: fixed;
  top: 180px;
  left: -300px;
  width: 300px;
  height: calc(100vh - 180px);
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  transition: left 0.3s ease;
  z-index: 9999;
  padding: 20px;
}
.filter-sidebar.active {
  left: 0;
}
.filter-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  float: right;
  cursor: pointer;
  color: #000;
}
/* Produktu zona nobīdās pa labi, kad sidebar atvērts */
.product-grid-area-full {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}
.product-grid-area-shrink {
  margin-left: 300px;
  transition: margin-left 0.3s ease;
}
/* Filtra poga un kategorijas vienā rindā */
.filter-category-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f7f7;
  padding: 30px 40px;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 40px;
  position: relative;
}
.filter-toggle-btn {
  position: absolute;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  border: 1px solid #000;
  background: transparent;
  font-weight: bold;
  cursor: pointer;
}
.anchor-nav-custom ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Jauns kvadrāta stils ar redzamu ķeksīti */
.woocommerce .widget_layered_nav ul li a:before, .woocommerce-page .widget_layered_nav ul li a:before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  border: 2px solid #000 !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  position: relative !important;
}
.woocommerce .widget_layered_nav ul li.chosen a:before, .woocommerce-page .widget_layered_nav ul li.chosen a:before {
  content: "✓" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  border: 2px solid #000 !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 15px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  position: relative !important;
}
/* Pārliecināmies, ka kvadrāts ir redzams */
.woocommerce .widget_layered_nav ul li, .woocommerce-page .widget_layered_nav ul li {
  padding: 5px 0;
}
/* Slēpjam vecās checkbox kontroles un WooCommerce noklusējuma ikonas */
.woocommerce .widget_layered_nav ul li input[type="checkbox"], .woocommerce-page .widget_layered_nav ul li input[type="checkbox"] {
  display: none !important;
}
.shop-wrapper {
  display: flex;
  gap: 30px;
  transition: all 0.3s ease;
}
.filter-sidebar-static {
  width: 250px;
  transition: width 0.3s ease;
  overflow: hidden;
}
.shop-wrapper:not(.filters-active) .filter-sidebar-static {
  width: 0;
  padding: 0;
  margin: 0;
}
.product-content-area {
  flex: 1;
  transition: all 0.3s ease;
}
/* Atstatums filtriem no malas */
.filter-sidebar-static {
  padding-left: 20px;
}
/* Checkbox kvadrāti bez bumbiņām */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  background: #000;
}
/* Noņem tikai bumbiņas, neko citu nemaina */
.widget_layered_nav ul {
  list-style: none;
  padding-left: 0;
 /* Ja vajag saglabāt atstarpi, noņem šo! */
}
.c-product-grid {
  transition: opacity 0.2s ease;
}
/* Hide featured badge */
.c-badge--featured {
    display: none !important;
}

/* Pārrakstām tēmas "New" zīmes (.c-badge--new) stilus */
.product .woocommerce-loop-product__link .c-product-grid__badges, .woocommerce div.product div.images .woocommerce-product-gallery__wrapper .c-product-grid__badges {
  position: absolute;
 /* Novieto badge konteineri absolūti */
  top: 10px;
  left: 10px;
  z-index: 9;
  background: none;
 /* Noņemam fona krāsu no konteinera, ja tāda ir */
  border: none;
 /* Noņemam border no konteinera */
  padding: 0;
 /* Noņemam padding no konteinera */
  margin: 0;
 /* Noņemam margin no konteinera */
 /* Pārliecinamies, ka vecāki ir relatīvi pozicionēti (no iepriekšējā CSS) */
}
.c-badge.c-badge--new {
  background-color: rgba(255, 255, 255, 0.8) !important;
 /* Balts fons ar 80% caurspīdīgumu */
  color: #d38368 !important;
 /* Norādītā teksta krāsa */
  border: 1px solid #d38368 !important;
 /* Pievienojam border jaunajā krāsā, ja vēlas */
  padding: 8px 12px !important;
 /* Palielinātas iekšējās atstarpes */
  font-size: 12px !important;
 /* Palielināts fonta izmērs */
  font-weight: bold !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
 /* Saglabājam uppercase, ja tēma to lieto */
  margin: 0 !important;
 /* Noņemam margin no paša badge */
  display: inline-block !important;
 /* Nodrošinām pareizu attēlošanu */
}
/* Pielāgojam atlaides zīmes (.c-badge--sale) izmēru */
.c-badge.c-badge--sale {
  padding: 8px 12px !important;
 /* Palielinātas iekšējās atstarpes (kā New zīmei) */
  font-size: 12px !important;
 /* Palielināts fonta izmērs (kā New zīmei) */
  font-weight: bold !important;
 /* Biezāks fonts (kā New zīmei) */
  line-height: 1 !important;
 /* Līnijas augstums (kā New zīmei) */
 /* Saglabājam tēmas krāsas, bet pārējie izmēri ir kā New zīmei */
  background-color: var(--badge-bgcolor-sale) !important;
 /* Nodrošinām, ka fons paliek pareizs */
  color: #ffffff !important;
 /* Pieņemam, ka tekstam jābūt baltam uz šī fona */
  border: none !important;
 /* Noņemam border, ja tāds bija */
}
/* Nodrošinām, ka badges konteiners joprojām strādā labajā pusē, ja nav 'new' badge */
.product .woocommerce-loop-product__link .c-product-grid__badges:not(:has(.c-badge--new)), .woocommerce div.product div.images .woocommerce-product-gallery__wrapper .c-product-grid__badges:not(:has(.c-badge--new)) {
  position: absolute;
  top: 10px;
  right: 10px;
 /* Novietojam labajā pusē */
  left: auto;
 /* Noņemam kreisās puses pozicionēšanu */
  width: auto;
 /* Ļaujam platumam pielāgoties saturam */
  justify-content: flex-end;
 /* Izlīdzinam elementus uz labo pusi */
}
/* Ja ir gan New, gan Sale zīme, Sale zīme parādās blakus New zīmei kreisajā pusē */
/* Ja vēlaties Sale zīmi labajā pusē arī tad, ja ir New zīme, šo CSS var dzēst vai pielāgot */
.c-product-grid__badges:has(.c-badge--new) {
 /* Te varētu pievienot specifisku CSS, ja abas zīmes ir kopā un vajag citu izkārtojumu */
 /* Piemēram, palielināt atstarpi starp tām */
  gap: 5px;
}
/* === Sticky Header Functionality (ULTRA-MINIMAL TO RESTORE ROW VISIBILITY) === */
/* Force original logo to be visible in non-sticky state */
.c-header--desktop:not(.c-header--sticky) .c-header__logo--desktop {
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}
/* Force sticky header to work on ALL pages - override theme restrictions */
.c-header {
  position: relative !important;
  transition: all 0.3s ease-out;
}

.c-header.c-header--sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Sticky header top row - proper hide/show transitions */
.c-header--desktop .c-header__row-top {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: translateY(0);
  opacity: 1;
}

.c-header--sticky.c-header--desktop .c-header__row-top {
  transform: translateY(-100%);
  opacity: 0;
}
/* 3. Original logo in top row - HIDE WHEN STICKY */
.c-header--desktop .c-header__logo--desktop {
  transition: opacity 0.3s ease-out;
}
.c-header--sticky.c-header--desktop .c-header__logo--desktop {
  opacity: 0;
  visibility: hidden;
}
/* --- .c-header__row-bottom AND ITS CELLS SHOULD NOW BE FULLY THEME-DEFAULT --- */
/* NEKĀDU PAPILDU STILU .c-header__row-bottom VAI TĀ ŠŪNĀM NO MANAS PUSES */
/* 4. Bottom-left cell - TIKAI position:relative (nepieciešams ::before) */
/* Šis tiek piemērots TIKAI tad, ja .c-header__cell--bottom-left eksistē un ir redzams pēc tēmas stiliem */
.c-header--desktop .c-header__row-bottom .c-header__cell--bottom-left {
  position: relative;
 /* Šis ir vienīgais stils šūnai no manas puses */
}
/* 5. Sticky logo using ::before on the bottom-left cell - SHOW WHEN STICKY */
.c-header--sticky.c-header--desktop .c-header__row-bottom .c-header__cell--bottom-left::before {
  content: '';
  display: block;
  width: 150px;
 /* Pielāgojiet logo platumu */
  height: 45px;
 /* Pielāgojiet logo augstumu */
  background-image: url('https://mieganams.lv/wp-content/uploads/2025/07/miega-nams_nosaukums_b-2-1-1.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  opacity: 1;
 /* Pagaidām padarām redzamu, ja sticky, lai testētu */
  visibility: visible;
 /* Pagaidām padarām redzamu, ja sticky, lai testētu */
  position: absolute;
  left: 15px;
 /* Atstarpe no kreisās malas */
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000 !important;
 /* Augstāks par sticky header */
}
/* Sākotnēji sticky logo ir paslēpts, ja NAV .c-header--sticky */
.c-header--desktop .c-header__row-bottom .c-header__cell--bottom-left::before {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s ease-out 0.3s;
}
/* Default states are now properly defined above - no need for NOT selectors */
/* === Logo maiņa veikala lapā === */
/* Tiek izmantota .woocommerce-shop klase, ko WordPress pievieno veikala lapai */
/* 1. Logo saites elementam iestatām fona attēlu (melno logo) */
body.woocommerce-shop .c-header__row-top .c-header__logo--desktop {
  display: inline-block;
 /* Nodrošinām, ka <a> tagam ir izmēri */
  background-image: url('https://mieganams.lv/wp-content/uploads/2025/07/miega-nams_nosaukums_b-2-1-1.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
 /* Izlīdzina logo pa kreisi */
}
/* 2. Paslēpjam oriģinālo <img> elementu (balto logo) */
body.woocommerce-shop .c-header__row-top .c-header__logo--desktop .c-header__logo-img {
  opacity: 0 !important;
 /* Izmantojam opacity, nevis display:none, lai saglabātu saites laukuma izmērus */
}
/* === Header Layout Adjustments === */
.c-header__cell--top-right .c-header__buttons {
  padding-right: 20px !important;
}
/* Filter Toggle Button */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #000;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-toggle-btn:hover {
  background: #f5f5f5;
}
.filter-toggle-btn .icon {
  transition: transform 0.3s ease;
}
.filters-active .filter-toggle-btn .icon {
  transform: rotate(180deg);
}
/* Custom styles extracted from functions.php */
/* Slēpjam visus checkboxes, jo mēs tos aizvietojam ar ::before */
.woocommerce .widget_layered_nav input[type="checkbox"], .woocommerce-page .widget_layered_nav input[type="checkbox"], .woocommerce .widget_layered_nav ul li input[type="checkbox"], .woocommerce-page .widget_layered_nav ul li input[type="checkbox"] {
  display: none !important;
}
/* Noņemam veco checkbox stilu */
.woocommerce .widget_layered_nav ul li::before, .woocommerce-page .widget_layered_nav ul li::before, .woocommerce .widget_layered_nav ul li a::after, .woocommerce-page .widget_layered_nav ul li a::after {
  display: none !important;
  content: none !important;
}
/* Noņemam veco checkbox stilu no saraksta elementiem */
.woocommerce .widget_layered_nav ul li, .woocommerce-page .widget_layered_nav ul li {
  padding-left: 0 !important;
  margin: 0 !important;
}
/* Quadrāts pirms filtra - GAIŠĀKA BORDER */
.woocommerce .widget_layered_nav ul li a:before, .woocommerce-page .widget_layered_nav ul li a:before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  border: 2px solid #bbb !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}
/* Ķeksītis aktīvajiem filtriem - GAIŠĀKS */
.woocommerce .widget_layered_nav ul li.chosen a:before, .woocommerce-page .widget_layered_nav ul li.chosen a:before {
  content: "✓" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  border: 2px solid #888 !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 15px !important;
  font-size: 14px !important;
  color: #555 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}
/* Noslēpjam nevajadzīgo elementu */
.c-ip-attribute-filter__sw--checkbox {
  display: none !important;
}
/* Noņemam jebkādus papildus pseudo elementus */
.woocommerce .widget_layered_nav ul li *::before, .woocommerce .widget_layered_nav ul li *::after, .woocommerce-page .widget_layered_nav ul li *::before, .woocommerce-page .widget_layered_nav ul li *::after {
  display: none !important;
  content: none !important;
}
/* Atjaunojam tikai mūsu checkbox ::before */
.woocommerce .widget_layered_nav ul li a:before, .woocommerce-page .widget_layered_nav ul li a:before {
  display: inline-block !important;
}
/* Pilnībā noslēpjam page-header struktūru */
header.l-section.c-page-header, .c-page-header--header-type-1, .c-page-header--product-list, .c-page-header--low, .c-page-header__row-1, .c-page-header__row-2, .c-page-header__sub-cat, .c-page-header__line {
  display: none !important;
}
/* Atlaides birka vienā augstumā ar cenu */
.price .c-badge.c-badge--sale {
  display: inline-flex !important;
  vertical-align: middle !important;
  margin-right: 5px !important;
  position: relative !important;
  top: 0 !important;
  transform: none !important;
}
/* Cenas stila uzlabojumi */
.price del, .price ins {
  display: inline-flex !important;
  vertical-align: middle !important;
}
/* Nodrošinām, lai cenas elements būtu flex container */
.price {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}
/* Paslēpjam screen-reader tekstus, kas var traucēt izkārtojumu */
.price .screen-reader-text {
  display: none !important;
}
/* =========================== */
/* PRODUKTA LAPAS FORMATĒJUMS */
/* =========================== */
/* 1. ATSTARPE STARP APRAKSTU UN ATRIBŪTIEM (samazināta) */
.woocommerce-product-details__short-description {
  margin-bottom: 5px !important;
 /* vēl vairāk samazināta apakšējā mala */
}
.variations {
  margin-top: 5px !important;
 /* vēl vairāk samazināta augšējā mala */
}
/* Atribūtu atstarpe */
.variations tr {
  display: block !important;
  margin-bottom: 25px !important;
 /* Nedaudz samazināta atstarpe starp atribūtiem */
}
.variations td.label, .variations td.value {
  display: block !important;
  padding: 0 !important;
  width: 100% !important;
}
/* Virsraksta stils */
.variations .label label {
  display: block !important;
  font-weight: normal !important;
  font-size: 16px !important;
  color: #333 !important;
  margin-bottom: 8px !important;
 /* Samazināta atstarpe starp label un vērtībām */
}
/* Krāsu izvēle - kvadrāti, nevis apļi */
.variable-items-wrapper.color-variable-items-wrapper .variable-item {
  border-radius: 0 !important;
 /* Noņem noapaļotās malas */
  width: 40px !important;
  height: 40px !important;
  margin-right: 8px !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
}
/* Krāsu swatch hover un active stāvokļi */
.variable-items-wrapper .variable-item:hover, .variable-items-wrapper .variable-item.selected {
  box-shadow: 0 0 0 2px #333 !important;
}
/* Fix Clear button styling */
.reset_variations {
  display: inline-block !important;
  margin-top: 15px !important;
  font-size: 14px !important;
  color: #666 !important;
  text-decoration: underline !important;
}
/* 3. DAUDZUMA IZVĒLE UN ADD TO CART POGA VIENĀ LĪNIJĀ */
/* Wrapper for both quantity and add to cart button */
.woocommerce-variation-add-to-cart, .variations_button {
  display: flex !important;
  flex-direction: row !important;
 /* Vienā līnijā */
  align-items: center !important;
  width: 100% !important;
  gap: 10px !important;
 /* Atstarpe starp elementiem */
}
/* Daudzuma izvēlētājs - mazāks */
.c-product__quantity.quantity {
  display: flex !important;
  width: 30% !important;
 /* Mazāka daļa no rindas */
  flex-shrink: 0 !important;
 /* Neļauj sarauties mazākam */
  border: 1px solid #e5e5e5 !important;
  height: 50px !important;
 /* Fiksēts augstums */
  background: #fff !important;
}
/* Input field styling */
.c-product__quantity .qty {
  flex: 1 !important;
  border: none !important;
  text-align: center !important;
  font-size: 16px !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
 /* Remove spinner in Firefox */
}
/* Hide spinner buttons in webkit browsers */
.c-product__quantity .qty::-webkit-inner-spin-button, .c-product__quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
/* Plus/minus buttons */
.c-product__quantity-minus, .c-product__quantity-plus {
  width: 35px !important;
  height: 100% !important;
  border: none !important;
  background: #f7f7f7 !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.c-product__quantity-minus:hover, .c-product__quantity-plus:hover {
  background: #e0e0e0 !important;
}
/* Icons inside buttons */
.c-product__quantity-minus i, .c-product__quantity-plus i {
  font-size: 14px !important;
}
/* "Pievienot grozam" poga - lielāka */
.single_add_to_cart_button {
  flex: 1 !important;
 /* Aizņem pārējo vietu */
  height: 50px !important;
  background-color: #1a1a1a !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  text-transform: none !important;
  font-size: 16px !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background-color 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 24px !important;
}
.single_add_to_cart_button:hover {
  background-color: #444 !important;
}
/* Cart form general styling */
.cart {
  margin-top: 20px !important;
 /* Samazināta augšējā mala */
}
/* Style for afterpay/klarna type messages */
.woocommerce-product-details__afterpay {
  margin-top: 15px !important;
  font-size: 14px !important;
  color: #666 !important;
  display: flex !important;
  align-items: center !important;
}
/* Product title styling */
.product_title {
  font-size: 24px !important;
  font-weight: normal !important;
  margin-bottom: 5px !important;
}
/* Product price styling */
.woocommerce-Price-amount {
  font-weight: normal !important;
}
/* Product description styling */
.woocommerce-product-details__short-description {
  margin: 20px 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #666 !important;
}
/* Clearfix for cart form */
.cart::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}
/* Basic product info styling */
.product_meta {
  margin-top: 20px !important;
  font-size: 14px !important;
  color: #666 !important;
}
/* Mini-cart stila korekcijas */
.widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
}
.mini-cart-upsells {
  order: 1;
 /* Pirmais - upsell produkti */
  margin-top: 15px;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e5e5;
}
.woocommerce-mini-cart__total {
  order: 2;
 /* Otrais - subtotal */
}
.woocommerce-mini-cart__buttons {
  order: 3;
 /* Trešais - pogas */
}
.mini-cart-upsells h4 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}
.mini-cart-upsell-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-cart-upsell-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f5;
}
.mini-cart-upsell-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.mini-cart-upsell-image {
  width: 50px;
  margin-right: 10px;
}
.mini-cart-upsell-content {
  flex: 1;
}
.mini-cart-upsell-title {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.mini-cart-upsell-price {
  font-size: 12px;
  font-weight: 600;
}
.mini-cart-upsell-item .button {
  font-size: 12px;
  padding: 5px 10px;
  text-align: center;
  width: 100%;
}
/* Palielinām speciskumu, lai pārrakstītu tēmas stilus */
.widget_product_categories ul.product-categories {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 15px !important;
}
.widget_product_categories ul.product-categories > li {
  padding: 0 !important;
  margin-bottom: 4px !important;
 /* Samazināta atstarpe */
  list-style-type: none !important;
}
.widget_product_categories ul.product-categories > li::before {
  display: none !important;
}
.widget_product_categories ul.product-categories li a {
  display: block;
  padding: 8px 12px !important;
 /* Samazināts polsterējums */
  text-decoration: none !important;
  color: #555 !important;
  font-size: 12px !important;
 /* Samazināts fonts */
  border-radius: 4px !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
  border-left: 3px solid transparent !important;
 /* Līnija nedaudz plānāka */
}
.widget_product_categories ul.product-categories li a:hover {
  background-color: #f5f5f5 !important;
  color: #111 !important;
}
.widget_product_categories ul.product-categories li.current-cat > a {
  font-weight: 700 !important;
  color: #111 !important;
  border-left-color: #000 !important;
  background-color: #f0f0f0 !important;
}
.widget_product_categories ul.product-categories ul.children {
  padding-left: 18px !important;
 /* Nedaudz samazināta atkāpe */
  margin-top: 8px !important;
  border-left: 1px solid #e9e9e9 !important;
 /* Plānāka līnija */
  margin-left: 6px !important;
}
.widget_product_categories ul.product-categories ul.children li {
  margin-bottom: 4px !important;
 /* Samazināta atstarpe arī apakškategorijām */
}
.widget_product_categories .cat-parent {
  position: relative;
}
/* Stils priekš +/- pogas */
.widget_product_categories .cat-parent > .toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
 /* Poga ir tikpat augsta kā saite (padding 8px*2 + fonts 12px) */
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #777;
  -webkit-user-select: none;
 /* Neļauj iezīmēt +/- zīmi */
  -ms-user-select: none;
  user-select: none;
}
.widget_product_categories .cat-parent > .toggle:hover {
  color: #000;
}
/* Mainām saturu no "+" uz "–" */
.widget_product_categories .cat-parent > .toggle::before {
  content: '+';
}
.widget_product_categories .cat-parent.expanded > .toggle::before {
  content: '−';
}
/* Nodrošinām, ka kategorijas nosaukums neiet zem +/- pogas */
.widget_product_categories .cat-parent > a {
  padding-right: 40px !important;
}
/* Filter Section Styles */
.filter-section {
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border: 1px solid #eee;
}
.filter-section .widget-title {
  font-size: 16px;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.filter-content {
  min-height: 50px;
}
/* Scrollable Filter List */
.scrollable-filter-list {
  max-height: 200px;
 /* You can adjust this value */
  overflow-y: auto;
  padding-right: 15px;
 /* Creates space for the scrollbar */
}
/* Custom Scrollbar Styling (for Webkit browsers like Chrome, Safari) */
.scrollable-filter-list::-webkit-scrollbar {
  width: 6px;
}
.scrollable-filter-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.scrollable-filter-list::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 3px;
}
.scrollable-filter-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* === CLEAN FILTER STYLES - SINGLE CHECKBOX === */
/* Reset WooCommerce default styles completely */
.woocommerce-widget-layered-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Hide ALL WooCommerce default pseudo-elements */
.woocommerce .widget_layered_nav ul li::before, .woocommerce-page .widget_layered_nav ul li::before, .woocommerce .widget_layered_nav ul li *::before, .woocommerce-page .widget_layered_nav ul li *::before, .woocommerce-widget-layered-nav-list__item::before {
  display: none !important;
  content: none !important;
}
/* Remove default WooCommerce padding */
.woocommerce .widget_layered_nav ul li, .woocommerce-page .widget_layered_nav ul li {
  padding-left: 0 !important;
  margin: 0 !important;
}
/* Our custom filter item layout */
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 0 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  border: none !important;
  background: none !important;
}
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item:hover {
  background-color: #f9f9f9 !important;
}
/* The link that contains checkbox and text */
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item a {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Our SINGLE custom checkbox */
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item a::before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  border: 1px solid #999 !important;
  background-color: #fff !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  line-height: 14px !important;
  font-size: 12px !important;
}
/* Filter item name */
.filter-sidebar-static .filter-item-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* Count styling */
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item .count {
  font-size: 0.85em !important;
  color: #888 !important;
  flex-shrink: 0 !important;
  font-weight: 400 !important;
}
/* Checked state */
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item.chosen a {
  color: #000 !important;
  font-weight: 600 !important;
}
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item.chosen .count {
  font-weight: 600 !important;
}
.filter-sidebar-static .woocommerce-widget-layered-nav-list__item.chosen a::before {
  content: "✓" !important;
  border-color: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}
/* Loading Indicator */
.ajax-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
/* Shop Wrapper Styles */
.shop-wrapper {
  display: flex;
  gap: 30px;
  transition: all 0.3s ease;
}
.filter-sidebar-static {
  width: 250px;
  transition: width 0.3s ease;
  overflow: hidden;
}
.shop-wrapper:not(.filters-active) .filter-sidebar-static {
  width: 0;
  padding: 0;
  margin: 0;
}
.product-content-area {
  flex: 1;
  transition: all 0.3s ease;
}
/* Filter Toggle Button */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #000;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-toggle-btn:hover {
  background: #f5f5f5;
}
.filter-toggle-btn .icon {
  transition: transform 0.3s ease;
}
.filters-active .filter-toggle-btn .icon {
  transform: rotate(180deg);
}
/* Active Filters Summary */
.active-filters-summary {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}
.active-filters-summary .widget-title {
  font-size: 14px;
  margin: 0 0 10px;
  font-weight: 600;
}
.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
}
.remove-filter {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #999;
  transition: color 0.2s;
}
.remove-filter:hover {
  color: #333;
}
.clear-all-filters {
  background: transparent;
  border: 1px solid #999;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.clear-all-filters:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}
.gift-card-purchase-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.gift-card-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
}
.gift-card-title {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}
.gift-card-subtitle {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}
.gift-card-form-wrapper {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}
.form-section {
  margin-bottom: 30px;
}
.section-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}
.amount-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.amount-btn {
  flex: 1;
  min-width: 80px;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  background: white;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.amount-btn:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}
.amount-btn.selected {
  background: #667eea;
  color: white;
  border-color: #667eea;
}
.custom-amount-wrapper {
  margin-top: 15px;
}
.custom-amount-wrapper input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-grid {
      grid-template-columns: 1fr;
 }
  .amount-buttons {
      flex-direction: column;
 }
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}
.form-group input, .form-group textarea {
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}
.message-counter {
  text-align: right;
  margin-top: 5px;
  font-size: 0.9rem;
  color: #666;
}
.summary-section {
  border-top: 1px solid #e1e5e9;
  padding-top: 30px;
}
.summary-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}
.summary-card h3 {
  margin: 0 0 15px 0;
  color: #333;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px 0;
}
.summary-row.total {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 1.1rem;
}
.purchase-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 20px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.info-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.info-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}
.info-card h3 {
  margin: 0 0 10px 0;
  color: #333;
}
.info-card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}
/* Palielinām speciskumu, lai pārrakstītu tēmas stilus */
.widget_product_categories ul.product-categories {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 15px !important;
}
.widget_product_categories ul.product-categories > li {
  padding: 0 !important;
  margin-bottom: 4px !important;
 /* Samazināta atstarpe */
  list-style-type: none !important;
}
.widget_product_categories ul.product-categories > li::before {
  display: none !important;
}
.widget_product_categories ul.product-categories li a {
  display: block;
  padding: 8px 12px !important;
 /* Samazināts polsterējums */
  text-decoration: none !important;
  color: #555 !important;
  font-size: 12px !important;
 /* Samazināts fonts */
  border-radius: 4px !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
  border-left: 3px solid transparent !important;
 /* Līnija nedaudz plānāka */
}
.widget_product_categories ul.product-categories li a:hover {
  background-color: #f5f5f5 !important;
  color: #111 !important;
}
.widget_product_categories ul.product-categories li.current-cat > a {
  font-weight: 700 !important;
  color: #111 !important;
  border-left-color: #000 !important;
  background-color: #f0f0f0 !important;
}
.widget_product_categories ul.product-categories ul.children {
  padding-left: 18px !important;
 /* Nedaudz samazināta atkāpe */
  margin-top: 8px !important;
  border-left: 1px solid #e9e9e9 !important;
 /* Plānāka līnija */
  margin-left: 6px !important;
}
.widget_product_categories ul.product-categories ul.children li {
  margin-bottom: 4px !important;
 /* Samazināta atstarpe arī apakškategorijām */
}
.widget_product_categories .cat-parent {
  position: relative;
}
/* Stils priekš +/- pogas */
.widget_product_categories .cat-parent > .toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #777;
  line-height: 1;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.widget_product_categories .cat-parent > .toggle:hover {
  color: #000;
}
/* Mainām saturu no "+" uz "–" */
.widget_product_categories .cat-parent > .toggle::before {
  content: '+';
}
.widget_product_categories .cat-parent.expanded > .toggle::before {
  content: '−';
}
/* Nodrošinām, ka kategorijas nosaukums neiet zem +/- pogas */
.widget_product_categories .cat-parent > a {
  padding-right: 30px !important;
}

/* =Klienta kartes atlaides stili
-------------------------------------------------------------- */
.client-card-discount th,
.client-card-discount td {
    color: #22aa00;
    font-weight: bold;
}

.woocommerce-info {
    background-color: #f0f8ff;
    border-left: 4px solid #1e85be;
}

/* Atlaides badge produktu lapās */
.client-card-badge {
    display: inline-block;
    background: #22aa00;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

/* Klienta kartes atlaides rindas grozā un checkout */
.woocommerce-cart .client-card-discount td,
.woocommerce-checkout .client-card-discount td {
    color: #22aa00;
    font-weight: bold;
}

/* Uzlabo atlaides paziņojumu izskatu */
.woocommerce-info strong {
    color: #1e85be;
}

/* Noņem padding-top no lapām, lai saturs būtu tuvāk menu */
@media (min-width: 1190px) {
    .c-post__container--page .c-post__inner {
        padding-top: 0;
        padding-bottom: 70px;
    }
}

/* =Mobile Responsive Styles for Shop Page
-------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Custom filter bar mobile adjustments */
    .custom-filter-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px 20px;
        align-items: flex-start;
    }
    
    .custom-filter-form {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-sort {
        margin-left: 0;
        align-self: flex-start;
        order: 1;
    }
    
    .custom-filters {
        order: 2;
        width: 100%;
    }
    
    /* Filter category wrapper mobile adjustments */
    .filter-category-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 20px;
        align-items: center;
    }
    
    .filter-toggle-btn {
        position: static;
        align-self: flex-start;
        order: 1;
        margin-bottom: 10px;
    }
    
    .anchor-nav-custom {
        order: 2;
        width: 100%;
    }
    
    .anchor-nav-custom ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* Shop wrapper mobile adjustments */
    .shop-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-sidebar-static {
        width: 100%;
        order: 1;
    }
    
    .product-content-area {
        order: 2;
        width: 100%;
    }
    
    .shop-wrapper:not(.filters-active) .filter-sidebar-static {
        display: none;
    }
    
    /* Product grid mobile centering */
    .c-product-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .c-product-grid .c-product-grid__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }
    
    .c-product-grid .c-product-grid__list > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Filter sections mobile adjustments */
    .filter-section {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .filter-section .widget-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Active filters summary mobile */
    .active-filters-summary {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .active-filters-list {
        gap: 6px;
    }
    
    .active-filter-tag {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* =Mobile Responsive Styles for Very Small Screens (Phones)
-------------------------------------------------------------- */
@media (max-width: 480px) {
    /* Extra small screen adjustments */
    .custom-filter-bar {
        padding: 15px 15px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .filter-category-wrapper {
        padding: 15px 15px;
    }
    
    .filter-toggle-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .anchor-nav-custom ul {
        gap: 12px;
    }
    
    .anchor-button {
        font-size: 16px;
        padding: 8px 0;
    }
    
    /* Product grid adjustments for very small screens */
    .c-product-grid .c-product-grid__list > * {
        max-width: 280px;
    }
    
    /* Filter sidebar adjustments */
    .filter-sidebar-static {
        padding: 15px;
    }
    
    .filter-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .scrollable-filter-list {
        max-height: 150px;
        padding-right: 10px;
    }
    
    /* Sort dropdown mobile styling */
    .custom-sort select {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .sort-label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .custom-sort {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* =Brand Slider - Hide brands without logos
-------------------------------------------------------------- */
/* Hide brand items that contain the brand-name-placeholder class */
.brand-slider .swiper-slide:has(.brand-name-placeholder) {
    display: none !important;
}

/* CAPTCHA styling for WooCommerce forms */
.c-form .captcha-question {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.c-form #reg_captcha {
    max-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Klientu kartes paziņojuma stilizācija */
.woocommerce-info {
    background-color: #f5f5f5;
    border-left: 4px solid #d38368;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.woocommerce-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 15px;
}

.woocommerce-info a {
    color: #d38368;
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-info a:hover {
    color: #c27258;
    text-decoration: underline;
}

/* Klientu kartes informācijas ziņojuma stilizācija */
.woocommerce-message.woocommerce-message--info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #d38368;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-message.woocommerce-message--info strong {
    color: #d38368;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

.woocommerce-message.woocommerce-message--info small {
    color: #666;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
    display: block;
    margin-top: 8px;
}

/* Hide mobile filter button */
.h-cb.c-page-header__filter.c-button.c-button--small.c-page-header__filter--mobile.js-filter-show-button.c-header__filter.js-header-filter {
    display: none !important;
}

/* Hide custom filter bar completely */
.custom-filter-bar {
    display: none !important;
}


/* Mobile product width adjustments - full width products on category pages */
@media (max-width: 768px) {
    /* FORCE product content area to use full width when filters are hidden */
    .shop-wrapper:not(.filters-active) .product-content-area,
    .product-content-area {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }
    
    /* Ensure shop wrapper takes full width on mobile */
    .shop-wrapper {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* Hide filter sidebar completely on mobile */
    .filter-sidebar-static {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Force product grid wrapper to single column - this is key! */
    .c-product-grid__wrap--4-per-row,
    .c-product-grid__wrap--1-per-row-mobile,
    .c-product-grid__wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Force product grid list to single column */
    .c-product-grid__list--4-per-row,
    .c-product-grid__list--1-per-row-mobile,
    .c-product-grid__list {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        align-items: center !important;
        max-width: 100% !important;
    }
    
    /* Individual product items - force full width */
    .c-product-grid__item--4-per-row,
    .c-product-grid__item--1-per-row-mobile,
    .c-product-grid__item {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        display: block !important;
    }
    
    /* Product thumbnail wrappers */
    .c-product-grid__thumb-wrap,
    .c-product-grid__thumb-wrap--buttons {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Product thumbnail images */
    .c-product-grid__thumb {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Product details section */
    .c-product-grid__details {
        width: 100% !important;
        padding: 10px 0 !important;
        text-align: center !important;
    }
    
    /* Force main product grid container to full width */
    .c-product-grid,
    #ajax-product-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .c-product-grid__list .c-product-grid__item {
        width: 100% !important;
        max-width: 95% !important;
        margin: 0 auto !important;
    }
}

/* Hide video element on mobile completely */
@media (max-width: 768px) {
    .elementor-element-fb20d34 {
        display: none !important;
    }
    
    .elementor-element-39917fb {
        display: none !important;
    }
    
    .elementor-widget-video {
        display: none !important;
    }
    
    .e-hosted-video {
        display: none !important;
    }
}

/* Larger cart page product images */
.c-cart__thumbnail {
  max-width: 85px !important;
  width: 85px !important;
}

/* Adjust mobile cart thumbnail size */
@media (max-width: 768px) {
  .c-cart__shop-td--product-thumbnail {
    width: 60px !important;
  }
  
  .c-cart__thumbnail {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Fix mini cart thumbnail size on mobile */
  .c-product-list-widget__thumb,
  .c-product-list-widget__thumb--grid,
  .c-product-list-widget__thumb--crop {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  .c-product-list-widget__thumb-col {
    width: 50px !important;
    min-width: 50px !important;
  }
  
  /* Super aggressive gift card image override */
  .c-cart__thumbnail-link img[alt*="Dāvanu karte"],
  .c-cart__thumbnail.attachment-woocommerce_thumbnail[alt*="Dāvanu karte"],
  img.c-cart__thumbnail.c-cart__thumbnail--crop[alt*="Dāvanu karte"] {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  /* Target gift cards with all their classes and inline style */
  img.attachment-woocommerce_thumbnail.c-cart__thumbnail.c-cart__thumbnail--crop[src*="MN_davanu_karte"][style] {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  /* Most specific - target exact HTML structure */
  .c-cart__thumbnail-link[href*="davanu-karte-3"] > img.attachment-woocommerce_thumbnail {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  /* Nuclear option - force with transform and object properties */
  img[alt="Dāvanu karte"] {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    transform: scale(1) !important;
    box-sizing: border-box !important;
  }
  
  /* Mini cart gift card images - super specific */
  .c-product-list-widget__thumb-wrap img[alt="Dāvanu karte"],
  .c-product-list-widget__thumb img[alt="Dāvanu karte"],
  .woocommerce-mini-cart img[alt="Dāvanu karte"],
  .widget_shopping_cart img[alt="Dāvanu karte"] {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
  }
  
  /* Mini cart with all possible classes */
  img.c-product-list-widget__thumb[alt="Dāvanu karte"],
  img.c-product-list-widget__thumb--crop[alt="Dāvanu karte"],
  img.c-product-list-widget__thumb--grid[alt="Dāvanu karte"] {
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
  }
  
  /* Override the brutal inline style for gift cards in mini cart */
  img[style*="width: 100px !important; height: 100px !important"][alt="Dāvanu karte"],
  img[src*="MN_davanu_karte"][style*="width: 100px !important"],
  .c-product-list-widget__thumb[style*="100px"][alt="Dāvanu karte"] {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }
  
  /* Most brutal approach - target exact HTML structure with inline styles */
  .c-product-list-widget__thumb-col a[href*="davanu-karte-3"] img[style] {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }
}

/* Hide bottom-left header cell on smaller screens */
@media (max-width: 1340px) {
    .c-header__cell--bottom-left {
        opacity: 0 !important;
    }
}

/* Product materials styling */
.product-materials {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

/* Clean and simple - no extra z-index complications */

@media (max-width: 768px) {
  .elementor-heading-title.elementor-size-default {
    font-size: 24px !important;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ===== FOOTER TUVĀK - SABALANSĒTS FIX ===== */
/* Tikai produktu kataloga lapām - footer tuvāk, BEZ horizontālu izmaiņu */

/* Noņemam lieko min-height no vertikālās hierarhijas - TIKAI kataloga lapās */
.woocommerce-shop .product-content-area,
.tax-product_cat .product-content-area,
.tax-pa_uznemums .product-content-area,
.tax-pa_brand .product-content-area,
.woocommerce-shop .l-section.l-section--bottom-margin,
.tax-product_cat .l-section.l-section--bottom-margin,
.tax-pa_uznemums .l-section.l-section--bottom-margin,
.tax-pa_brand .l-section.l-section--bottom-margin,
.woocommerce-shop .l-section__content,
.tax-product_cat .l-section__content,
.tax-pa_uznemums .l-section__content,
.tax-pa_brand .l-section__content,
.woocommerce-shop #ajax-product-container,
.tax-product_cat #ajax-product-container,
.tax-pa_uznemums #ajax-product-container,
.tax-pa_brand #ajax-product-container {
  min-height: auto !important;
}

/* Sidebar arī nepagarinās kataloga lapās */
.woocommerce-shop .filter-sidebar-static,
.tax-product_cat .filter-sidebar-static,
.tax-pa_uznemums .filter-sidebar-static,
.tax-pa_brand .filter-sidebar-static {
  max-height: 80vh !important;
  overflow-y: auto !important;
}

/* PAPILDU SPĒCĪGS FIX BRAND LAPĀM - noņem visu lieko augstumu */
.tax-pa_brand .l-wrap,
.tax-pa_brand .l-section,
.tax-pa_brand .c-post__container,
.tax-pa_brand .c-post__inner,
.tax-pa_brand .shop-wrapper,
.tax-pa_brand .woocommerce,
.tax-pa_brand main {
  min-height: auto !important;
  height: auto !important;
}

/* Nodrošina, ka galvenais saturs nepagarinās */
.tax-pa_brand .c-post__container--archive {
  display: flex !important;
  flex-direction: column !important;
  min-height: auto !important;
}

.tax-pa_brand .c-post__inner {
  flex: 0 1 auto !important;
  min-height: auto !important;
}

/* ULTRA SPĒCĪGS FIX - VISĀM BRAND LAPĀM */
body.tax-pa_brand .l-wrap,
body.tax-pa_brand .l-section,
body.tax-pa_brand .c-post,
body.tax-pa_brand .c-post__container,
body.tax-pa_brand .c-post__inner,
body.tax-pa_brand .woocommerce,
body.tax-pa_brand main,
body.tax-pa_brand #main,
body.tax-pa_brand .site-main {
  min-height: 0 !important;
  height: auto !important;
}

/* Spēcīgs fix priekš page layout */
body.tax-pa_brand {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

body.tax-pa_brand .l-wrap {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.tax-pa_brand main,
body.tax-pa_brand #main {
  flex: 0 1 auto !important;
}

body.tax-pa_brand .site-footer,
body.tax-pa_brand footer {
  margin-top: auto !important;
}

/* Hide shipping destination and calculator in cart */
.c-cart__shipping-destination.woocommerce-shipping-destination,
.shipping-calculator-form,
.c-cart__shipping-calculator-button.shipping-calculator-button,
#billing_country_field,
#billing_company_field {
  display: none !important;
}

/* Add spacing to product title to prevent overlap with badges */
.c-product-grid__title-wrap {
  margin-bottom: 0 !important;
  margin-top: 25px;
}

/* Fix z-index for related products on mobile */
@media (max-width: 767px) {
  .c-product__products--related {
    position: relative;
    z-index: 1 !important;
  }
  
  .c-product__products--related .swiper-wrapper,
  .c-product__products--related .swiper-slide {
    z-index: 1 !important;
  }
  
  /* Ensure header stays on top */
  .c-header__outer {
    position: relative;
    z-index: 9999 !important;
  }
  
  .c-header,
  .c-header__menu,
  .c-header__menu-inner {
    z-index: 9999 !important;
  }
  
  /* Also fix mobile menu if it exists */
  .c-header__mobile-menu,
  .mobile-menu {
    z-index: 10000 !important;
  }
}

/* Hide remove button for all coupons in cart */
.cart-discount .woocommerce-remove-coupon {
  display: none !important;
}

/* Header Styles */
.c-header {
    transition: transform 0.3s ease;
}

.c-header__row-top {
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.c-header__row-bottom {
    position: relative;
    z-index: 99;
}

/* When header becomes sticky */
.c-header--sticky {
    position: fixed !important;
    width: 100%;
}

/* Animation for top row sliding */
.c-header--sticky .c-header__row-top {
    transform: translateY(-100%);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Ensure bottom row stays visible */
.c-header--sticky .c-header__row-bottom {
    transform: translateY(0);
    position: relative;
}

/* Initial state - both rows visible */
.c-header:not(.c-header--sticky) .c-header__row-top,
.c-header:not(.c-header--sticky) .c-header__row-bottom {
    transform: translateY(0);
    opacity: 1;
}

/* Header Animation Styles */
.c-header.c-header--desktop {
    transition: transform 0.3s ease;
}

.c-header--desktop .c-header__row-top {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1001;
}

.c-header--desktop .c-header__row-bottom {
    position: relative;
    z-index: 1000;
}

/* Sticky Header Animation */
.c-header--sticky.c-header--desktop .c-header__row-top {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.c-header--sticky.c-header--desktop .c-header__row-bottom {
    transform: translateY(0);
}

/* Reset when not sticky */
.c-header--desktop:not(.c-header--sticky) .c-header__row-top,
.c-header--desktop:not(.c-header--sticky) .c-header__row-bottom {
    transform: translateY(0);
    opacity: 1;
    height: auto;
}

/* === Sticky Header Functionality (MINIMAL APPROACH TO RESTORE VISIBILITY) === */

/* 1. Basic sticky header positioning */
.c-header.c-header--sticky {
    position: fixed !important;
    top: 0 !important; /* Pielāgojiet, ja ir WP Admin josla, piem., top: 32px !important; */
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff; /* Fons sticky hederim - noņemiet, ja nav nepieciešams */
}

/* 2. Top row - HIDE WHEN STICKY */
.c-header--desktop .c-header__row-top {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, height 0.3s ease-out, border-bottom-color 0.3s ease-out;
    overflow: hidden; 
    border-bottom: 1px solid #fff; /* Jūsu norādītā BALTĀ LĪNIJA starp rindām */
}

.c-header--sticky.c-header--desktop .c-header__row-top {
    transform: translateY(-100%);
    opacity: 0;
    height: 0 !important; 
    border-bottom-color: transparent !important; 
}

/* 3. Original logo in top row - HIDE WHEN STICKY */
.c-header--desktop .c-header__logo--desktop { 
    transition: opacity 0.3s ease-out;
}

.c-header--sticky.c-header--desktop .c-header__logo--desktop {
    opacity: 0;
    visibility: hidden;
}

/* --- .c-header__row-bottom and its cells SHOULD NOW REVERT TO THEME DEFAULT DISPLAY --- */
/* Visi iepriekšējie mēģinājumi stilot .c-header__row-bottom vai .c-header__cell--bottom-center */
/* sticky stāvoklī ir NOŅEMTI, lai atjaunotu redzamību. */

/* 4. Bottom-left cell - TIKAI position:relative (nepieciešams ::before) */
.c-header--desktop .c-header__row-bottom .c-header__cell--bottom-left {
    position: relative; 
}

/* 5. Sticky logo using ::before on the bottom-left cell - SHOW WHEN STICKY */
.c-header--desktop .c-header__row-bottom .c-header__cell--bottom-left::before {
    content: '';
    display: block;
    width: 150px;  /* Pielāgojiet logo platumu */
    height: 45px;  /* Pielāgojiet logo augstumu */
    background-image: url('http://mieganamsjauns.local/wp-content/uploads/2025/06/miega-nams_nosaukums_b-2.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out 0.1s, visibility 0s ease-out 0.4s; 
    position: absolute; 
    left: 15px; /* Atstarpe no kreisās malas */
    top: 50%;
    transform: translateY(-50%); 
    z-index: 1; 
}

.c-header--sticky.c-header--desktop .c-header__row-bottom .c-header__cell--bottom-left::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s; 
}

/* 6. Reset top row and its logo when NOT STICKY */
.c-header--desktop:not(.c-header--sticky) .c-header__row-top {
    transform: translateY(0);
    opacity: 1;
    height: auto; /* Vai specifisks augstums, ja tēmai tāds ir */
    border-bottom-color: #fff; /* Atjauno baltās līnijas krāsu */
}

.c-header--desktop:not(.c-header--sticky) .c-header__logo--desktop {
    opacity: 1;
    visibility: visible;
}

.elementor-widget-theme-post-featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}

/* === Header Layout Adjustments === */
.c-header__cell--top-right .c-header__buttons {
    padding-right: 20px !important;
}

.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

.c-product-grid__item {
  border: 6px solid white; /* vai 10px – pēc vēlmes */
  box-sizing: border-box;
  border-radius: 6px; /* opcionali, ja gribi noapaļotus stūrus */
}

.single-product td select {width:100%}

img[src*="1lpp_Produktu_rezgis_gulta_s.jpg"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: 100%;
  overflow: hidden;
}

/* salabot add to cart */
.blockOverlay {display:none!important}

/* noslēpt kopšanas instrukcijas */
.product-cat-noskanai .ha-toggle__item:nth-of-type(3) {
  display: none;
}

.c-account__user-icon {
    display: none;
}

.c-account__user-text {
    padding-left: 0;
    margin-left: 0;
}

.c-product-list-widget__brand {
    display: none;
}

@media (max-width: 768px) {
  .elementor-element-2fdccc8 .elementor-heading-title {
    font-size: 1.1rem !important;
  }
}

/*galvenās lapas režģī sakārtoti melnie kvadrāti */
@media (max-width: 768px) {
  /* Nodrošiniet, ka vecākelementi ir pareizi iestatīti */
  .ha-product-cat-grid,
  .elementor-widget-container {
    position: relative !important;
  }
  
  .ha-product-cat-grid-content-inner {
    /* Pārrakstiet VISUS pozicionēšanas stilus */
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    /* Pārrakstiet izmērus */
    width: 65% !important; /* Samazināts no 80% */
    margin: 0 !important; /* Noņemiet margin: 30px 20px */
    
    /* Stila iestatījumi */
    padding: 5px 10px !important; /* Samazināts augstums un platums */
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px) !important;
    border-radius: 8px !important;
    text-align: center !important;
    z-index: 10 !important;
    
    /* Pārrakstiet flexbox stilus */
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
  }
  
  .ha-product-cat-grid-content-inner .ha-product-cat-grid-title {
    font-size: 14px !important; /* Nedaudz samazināts fonts */
    font-weight: 500 !important;
    margin: 0 0 2px 0 !important; /* Samazināts margin */
    line-height: 1.2 !important; /* Samazināta rindas augstuma */
  }
  
  .ha-product-cat-grid-content-inner .ha-product-cat-grid-title a {
    font-size: 14px !important; /* Nedaudz samazināts fonts */
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }
  
  .ha-product-cat-grid-count {
    font-size: 12px !important; /* Nedaudz samazināts fonts */
    color: #ffffff !important;
    line-height: 1.2 !important; /* Samazināta rindas augstuma */
  }
}

.c-wishlist__share {
  display: none !important;
}

#gform_confirmation_message_1 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* Variāciju cena lielāka */
.woocommerce-variation-price .price {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #000000 !important; /* vai cita krāsa pēc vajadzības */
}

/* TIKAI MOBILO IERĪČU STILI */
@media (max-width: 768px) {
    /* E-pasta label mazāks */
    .gfield_label, .gform-field-label {
        font-size: 12px !important;
    }
    
    /* Legend teksts vēl sīkāks */
    fieldset legend {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
    
    /* E-pasta lauks sīkāks */
    .ginput_container_email input {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    
    /* Checkbox sīkāks */
    .gfield-choice-input + label::before {
        width: 12px !important;
        height: 12px !important;
        margin-right: 5px !important;
    }
    
    .gfield-choice-input:checked + label::after {
        font-size: 8px !important;
        left: 2px !important;
        top: 1px !important;
    }
    
    .gfield-choice-input + label {
        font-size: 9px !important;
        line-height: 1.2 !important;
        max-width: 280px !important;
    }
    
    /* Poga sīkāka */
    .gform_button {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/* To-top poga oranžā krāsā - visām ierīcēm */
.c-to-top-button {
    background: #d38368 !important;
    border-color: #d38368 !important;
}
.c-to-top-button:hover {
    background: #c67358 !important;
    border-color: #c67358 !important;
}

.brand-slider-prev,
.brand-slider-next {
  display: none !important;
}

/* Paslēpt skaitļus iekavās Jaunumu sadaļā */
.wpgb-button-label span {
    display: none !important;
}

/* Paslēpt preču skaitu */
.ha-product-cat-grid-count {
    display: none !important;
}

/* Kategorijas bloka fona uzlabojumi */
.ha-product-cat-grid-content-inner {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px) !important;
    border-radius: 8px !important;
    padding: 15px !important;
}

/* Kategorijas virsraksts – palielināts fonts un lasāmība */
.ha-product-cat-grid-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin: 0 !important;
}

/* Saite virsrakstā – fonta izmērs, krāsa un stils */
.ha-product-cat-grid-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: inline-block;
}

/* Hover efekts – akcentkrāsa */
.ha-product-cat-grid-title a:hover {
    color: #d38368 !important;
}

#gform_1_validation_container {
  display: none !important;
}

/* === Tikai Gravity Form ar ID #gform_wrapper_1 === */
#gform_wrapper_1 .gform_required_legend {
    display: none !important;
}

#gform_wrapper_1 .gfield_label,
#gform_wrapper_1 .gform-field-label,
#gform_wrapper_1 fieldset legend {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

#gform_wrapper_1 fieldset legend {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

#gform_wrapper_1 .ginput_container_email input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
}

#gform_wrapper_1 .ginput_container_email input:focus {
    border-color: #d38368 !important;
    box-shadow: 0 0 0 2px rgba(211, 131, 104, 0.2) !important;
    outline: none !important;
}

#gform_wrapper_1 .gfield-choice-input[type="checkbox"] {
    opacity: 0 !important;
    position: absolute !important;
}

#gform_wrapper_1 .gfield-choice-input + label::before {
    content: '' !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: inline-block !important;
    margin-right: 8px !important;
    vertical-align: top !important;
    margin-top: 2px !important;
}

#gform_wrapper_1 .gfield-choice-input:checked + label::before {
    background: #d38368 !important;
    border-color: #d38368 !important;
}

#gform_wrapper_1 .gfield-choice-input:checked + label::after {
    content: '✓' !important;
    color: white !important;
    font-size: 12px !important;
    position: absolute !important;
    left: 3px !important;
    top: 3px !important;
}

#gform_wrapper_1 .gfield-choice-input + label {
    color: #ffffff !important;
    position: relative !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    max-width: 400px !important;
}

#gform_wrapper_1 .gform_button {
    width: 100% !important;
    background: #d38368 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#gform_wrapper_1 .gform_button:hover {
    background: #c67358 !important;
}

#gform_wrapper_1 .gform_validation_container {
    display: none !important;
}

/* 1. Noslēpt virsrakstu, aprakstu un "required" tekstu */
#gform_wrapper_2 .gform_heading {
    display: none !important;
}

/* 2. Noslēpt rakstzīmju skaitītāju teksta laukam */
#gform_wrapper_2 .ginput_counter {
    display: none !important;
}

/* 3. Stilizēt pogu tāpat kā pirmajai formai */
#gform_wrapper_2 .gform_button {
    width: 100% !important;
    background: #d38368 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#gform_wrapper_2 .gform_button:hover {
    background: #c67358 !important;
}

.c-product-grid__badges .c-badge--sale {
    background-color: #d38368 !important;
    border-color: #d38368 !important;
    color: #ffffff !important; /* baltie burti */
}

.reset_variations {display:none!important}
.variations {width:50%!important}
.woocommerce-variation-availability {margin-bottom:30px}
.woocommerce-variation-availability .stock {margin-top:0px}

.c-top-menu__submenu .c-top-menu__subitem {
    text-transform: none;
}

.c-top-menu__submenu .c-top-menu__subitem a,
.c-top-menu__submenu .c-top-menu__subitem span {
    text-transform: none;
}

@media (max-width: 768px) {
  .ha-product-cat-grid-content {
    padding: 5px !important;
    text-align: center !important;
  }

  .ha-product-cat-grid-content-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
  }

  .ha-product-cat-grid-title {
    font-size: 13px !important;
    margin: -3px 0 !important;
  }
    
  /*blogs telefonam jaunumu lapa */    
  .wpgb-block-4 {
    display: block !important;
    width: 40% !important;
    max-width: 100% !important;
    text-align: center !important;
    font-size: 12px !important;
    padding: 4px 6px !important;
    white-space: normal !important; /* ļauj lauzt rindu */
    word-break: break-word !important; /* ja ir garš vārds, lauž to */
    box-sizing: border-box !important;
  }
  
  .price,
  .price .woocommerce-Price-amount,
  .price .woocommerce-Price-currencySymbol {
    font-size: 15.5px !important;
    margin-left: 2.5px !important;
  }
  
  .c-product-grid__title {
    text-align: left !important;
    display: block !important; /* Ja nepieciešams, lai `text-align` strādā span elementam */
    padding-left: 4px !important; /* Papildus atkāpe no kreisās malas */
  }
  
  /* 1. "Jūsu guļamistabai…" */
  .elementor-3632 .elementor-element.elementor-element-2fdccc8 .elementor-heading-title {
    font-size: 16px !important;
  }

  /* 2. "Viss pārdomāts un ētiski izstrādāts…" */
  .elementor-3632 .elementor-element.elementor-element-f08c5c1 .elementor-heading-title {
    font-size: 16px !important;
  }
  
  .elementor-3632 .elementor-element.elementor-element-7bc2d6a .elementor-heading-title {
    font-size: 29px !important;
  }

  .elementor-3632 .elementor-element.elementor-element-8d39978 .elementor-heading-title {
    font-size: 21px !important;
  }

  .elementor-3632 .elementor-element.elementor-element-ef6ebb7 .elementor-heading-title {
    font-size: 16px !important;
  }
  
  .c-product-grid__thumb-button--quickview {
    display: none !important;
  }
}

/* Checkout 3-section structure styles - clean without boxes */
.woocommerce-checkout .c-cart__form {
    margin-bottom: 40px;
}

.c-cart__header {
    margin: 0 0 25px 0 !important;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #d38368;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    font-family: inherit;
}

/* Company invoice fields styling - minimal */
#company_invoice_fields {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #ddd !important;
}

/* Hide delivery section by default - JavaScript will show if needed */
.woocommerce-shipping-fields {
    display: none;
}

/* Make shipping section compact for 2x2 layout */
.woocommerce-shipping-fields .shipping_address {
    min-height: 200px;
    padding-bottom: 20px;
    overflow: visible;
}

.woocommerce-shipping-fields .c-cart__shipping-fields {
    width: 100%;
    overflow: visible;
}

/* Smaller margin between delivery and order notes sections */
.woocommerce-additional-fields {
    margin-top: 25px !important;
    clear: both;
}

/* Improve form field spacing */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}