/* Buttons, Cards, Forms and other Components */

/* Responsive Typography Utilities */
.text-xs {
  font-size: var(--font-size-xs);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-xxl {
  font-size: var(--font-size-xxl);
}

.text-display {
  font-size: var(--font-size-display);
}

/* Responsive Heading Utilities */
.h1 {
  font-size: var(--h1-font-size);
  font-weight: 600;
  line-height: 1.2;
}

.h2 {
  font-size: var(--h2-font-size);
  font-weight: 600;
  line-height: 1.2;
}

.h3 {
  font-size: var(--h3-font-size);
  font-weight: 600;
  line-height: 1.2;
}

.h4 {
  font-size: var(--h4-font-size);
  font-weight: 600;
  line-height: 1.2;
}

.h5 {
  font-size: var(--h5-font-size);
  font-weight: 600;
  line-height: 1.2;
}

.h6 {
  font-size: var(--h6-font-size);
  font-weight: 600;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-xs) .7rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-xxl);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-large);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-small);
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.card-header {
  padding: var(--spacing-lg);
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-footer {
  padding: var(--spacing-lg);
  background-color: #f8f9fa;
  border-top: 1px solid var(--border-color);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
  width: 100%;
}

.formgroup-sm {
  width: 49%;
}

.contact-page form {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
}

.contact-page form> :first-child {
  display: none;
}

.contact-page .checkbox .form-check {
  padding: 0px !important;

  .form-check-label {
    cursor: pointer;
    display: flex !important;
    align-items: center;

    input {
    	width: 1rem;
    	height: 1rem;
    }

    p {
      font-size: var(--font-size-base);
      font-weight: 400;
      color: var(--text-color);
      margin-left: 0.5rem !important;
      margin-bottom: 0px;
    }
  }
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-control::placeholder {
  color: var(--text-color);
  opacity: 0.6;
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: var(--box-shadow);
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-color);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0 var(--spacing-md);
}

.navbar-nav a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: var(--primary-color);
}

@media screen and (max-width: 768px){
  .formgroup-sm {
    width: 100%;
  }
}

/* Alerts */
.alert {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  border-left: 4px solid;
}

.alert-success {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}


.product-card .image-wrapper {
  width: 100%;
  background-color: var(--bg-gray);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.frame-portrait-view .product-card .image-wrapper img {
  aspect-ratio: 768 / 1024;
}
.product-card .image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  aspect-ratio: 1 / 1;
}

.product-card .product-info h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-top: .75rem;
  margin-bottom: 0;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .product-info p {
  font-size: var(--font-size-lg);
  line-height: 1.25;
  margin-top: .4rem;
  margin-bottom: 0;
  color: var(--text-color);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .product-info a {
  margin-top: 1.6rem;
}

.product-card .product-info button {
  margin-top: 1rem;
}

.home-statistic-products-section .image-wrapper {
  border-radius: 8px;

  img {
    border-radius: 8px;
  }
}

.content-with-image-section #c7 {
  border-top: 2px solid var(--border-black);
  border-bottom: 2px solid var(--border-black);
  padding: 2rem 0 !important;
}

.product-card .image-wrapper .offer-badge {
  background-color: var(--accent-color);
  color: var(--text-white);
  border-radius: var(--border-radius);
  width: 90px;
  height: 90px;
  border-radius: 100%;
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  span {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 0;
  }

  p {
    font-size: .8rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 2.9;

  }
}

.fullwidth-image {
	padding-bottom: 0px !important;
  .ce-gallery {
    width: 100%;
    .ce-row {
      width: 100%;
      .ce-column {
      	width: 100%;
        .image {
          width: 100%;
          img {
            width: 100%;
          }
        }
      }
    }
  }
}

.footer-contact-section {
  background-color: var(--background-color-darker);
  text-align: center;
  color: var(--text-white);
  padding: 3.75rem 0;
  margin-bottom: var(--section-padding);
}

.footer-contact-section a {
  color: var(--text-white);
  font-size: var(--font-size-display);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 10px;
}

.news-letter h2 {
  margin-bottom: 1rem;
  line-height: .8;
}

.news-letter p {
  margin-bottom: var(--spacing-xxl);
}

.news-letter ul {
  margin-bottom: 2.4rem;
}

.news-letter ul li {
  color: var(--icon-color);
  font-size: 40px;
  list-style: none;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.news-letter ul li span {
  font-family: var(--font-primary) ;
  color: var(--text-color) ;
  font-size: var(--font-size-xxl);
  
}

.register-offcanvas {
  padding: var(--spacing-md);
  overflow: auto;
}

.register-offcanvas .offcanvas-header {
  position: relative;
  border: none;
  padding-top: 0;
}

.register-offcanvas .btn-close {
  position: absolute;
  right: .5rem;
}

.register-offcanvas .offcanvas-body {
  overflow: visible;
}

.register-offcanvas .offcanvas-body form {
  overflow: auto;
}

.register-offcanvas form {
  padding: 1rem !important;
  overflow: auto;

  .form-label {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
  }

  .checkbox .form-check {
    padding: 0px !important;

    .form-check-label {
      cursor: pointer;
      display: flex !important;
      align-items: center;

      span {
        font-size: var(--font-size-lg);
        font-weight: 600;
        color: var(--text-color);
        margin-left: 0.5rem !important;
      }
    }
  }
}

.register-offcanvas input[type="email"] {
  height: 85px;
  border: 0.5px solid var(--text-color);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
}

.register-offcanvas input[type="checkbox"] {
  height: 43px;
  width: 43px;
  border-radius: 10px !important;
  border: 0.5px solid var(--text-color);
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

.register-offcanvas .checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.register-offcanvas label p {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  margin-bottom: 0;
  margin-left: var(--spacing-sm);
}


.register-offcanvas input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M20 6L9 17l-5-5' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70% 70%;
}

.register-offcanvas h2 {
  width: 100%;
  text-align: center;
  font-size: var(--font-size-xxl);
  margin-bottom: 0;
}

.register-offcanvas p {
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
}

.register-offcanvas ul {
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  font-weight: 300;
  list-style: disc;
  padding-left: var(--spacing-xl);
  list-style-position: outside;
}

.register-offcanvas .btn-secondary {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-lg);
}


@media screen and (min-width: 500px) {
  .register-offcanvas {
    width: 30rem !important;
  }

  .product-container {
    padding: 0px 0.5625rem;
  }
}

/* Ensure product container has relative positioning for dropdown */
.product-container {
  position: relative;
}

@media screen and (max-width: 768px) {
  .register-offcanvas input[type="email"] {
    height: 50px;
  }

  .register-offcanvas input[type="checkbox"] {
    height: 30px;
    width: 30px;
  }
}

@media screen and (max-width: 1200px) {
  .product-card .image-wrapper {
    width: 100%;
  }
}

/* Brand Switching Styles */
.brand-grid-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.brand-grid-section.active {
  display: block;
  opacity: 1;
}

.brand-slide {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Product Popup Styles */
.product-popup {
  position: fixed;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.product-popup.show .popup-content {
  transform: scale(1);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.popup-title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-color);
}

.popup-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background-color: var(--bg-gray);
  color: var(--primary-color);
}

.popup-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.popup-image {
  position: relative;
}

.popup-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.popup-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-description {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

.popup-specs h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.popup-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-specs-list li {
  padding: 0.25rem 0;
  font-size: var(--font-size-sm);
  color: var(--text-color);
  border-bottom: 1px solid #f0f0f0;
}

.popup-specs-list li:last-child {
  border-bottom: none;
}

.popup-specs-list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.popup-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.popup-price-current {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
}

.popup-price-original {
  font-size: var(--font-size-base);
  color: #999;
  text-decoration: line-through;
}

.popup-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.popup-btn-primary,
.popup-btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
}

/* Popup positioning classes */
.popup-position-top {
  align-items: flex-start;
  padding-top: 2rem;
}

.popup-position-bottom {
  align-items: flex-end;
  padding-bottom: 2rem;
}

.popup-position-left {
  justify-content: flex-start;
  padding-left: 2rem;
}

.popup-position-right {
  justify-content: flex-end;
  padding-right: 2rem;
}

.popup-position-center {
  align-items: center;
  justify-content: center;
}

/* Responsive popup styles */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-height: 90vh;
  }

  .popup-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .popup-header {
    padding: 1rem;
  }

  .popup-body {
    padding: 1rem;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-btn-primary,
  .popup-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .popup-content {
    width: 98%;
    margin: 1rem;
  }

  .popup-title {
    font-size: var(--font-size-lg);
  }

  .popup-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Product Card Dropdown Styles */
.clickable-image img {
  cursor: pointer;
  transition: transform 0.2s ease;
  aspect-ratio: 1 / 1;
}

.clickable-image:hover {
  img {
    transform: scale(1.02);
  }
}

.product-dropdown-image {
  position: fixed;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  transition: all 0.3s ease;
  width: 400px;
  max-width: 90vw;
  max-height: 80vh;
  pointer-events: none;
  box-shadow: -5px 4px 4px 1px #00000040;
  background-color: var(--text-white);
  padding: .6rem;
  padding-bottom: 1.5rem;
  transform: scale(1) translateY(0);
}

.product-dropdown-image.show {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-image-container {
  border-radius: 0;
  position: relative;
  display: block;

  h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0 !important;
  }

  p {
    font-size: var(--font-size-lg);
    color: var(--text-color);
    margin-bottom: 1rem;
  }
}

.dropdown-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.dropdown-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 1;
  display: none;

  .btn-close {
    display: flex;
    margin: auto;
    font-size: .8rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 1;
  }
}

/* Responsive dropdown styles */

@media (max-width: 480px) {
  .dropdown-close-btn {
    display: block;
    top: 0.25rem;
    right: 0.25rem;
  }

  .product-dropdown-image {
    left: 20px !important;
  }

}

.container-cards .ce-textpic .col-lg-6 {
  width: 100% !important;
  text-align: center;
}

.container-cards .ce-gallery {
  margin-bottom: 1.5rem;
}

.container-cards .content-data p {
  font-size: var(--font-size-lg);
  line-height: 1.25;
  margin-top: .4rem;
  margin-bottom: 0;
  color: var(--text-color);
}

.search-page {
	form {
		fieldset {
			display: flex;
			align-items: center;
			padding: 1rem 0;

			legend {
				font-size: var(--h2-font-size);
				font-weight: 600;
				line-height: 1.2;
			}

			.tx-indexedsearch-form {
				display: flex;
				align-items: center;
				white-space: nowrap;
				gap: 0.5rem;
			}
		}
	}

	.tx-indexedsearch-res {
		h3 {
			font-size: 1.25rem;
		}
		p {
			font-size: 1rem;

			strong {
				font-weight: 700;
				color: var(--primary-color);
			}
		}
	}

	.tx-indexedsearch-browsebox {
		display: flex;
		justify-content: center;
		padding: 1rem 0;

		li {
			list-style: none;
			padding: 0px 1rem;
			border-right: 1px solid gray;
			
			a{
				color: var(--text-color);
			}

			&:last-child {
				border: none;
			}
		}
	}
}

@media (max-width: 768px) {
	.search-page form fieldset {
		flex-wrap: wrap;
	}
}

.serch-button {
	background-color: var(--primary-color) !important;
  color: white;
  display: inline-block;
  padding: .3rem .7rem !important;
  border: none !important;
  border-radius: 0px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none !important;
  height: 38px;
}

.serch-button:hover {
  background-color: var(--secondary-color) !important;
  color: white;
}

.tx-indexedsearch-searchbox-sword {
  padding: .175rem 10px;
  border-radius: 0% !important;
  border:  1px solid var(--border-color);
  height: 38px;
}

.tx-indexedsearch-searchbox-sword:focus {
  outline-offset: 0px !important;
  border-radius: 0% !important;
}

.tx-indexedsearch-searchbox-sword:focus-visible {
  border-radius: 0% !important;
}

.about-page-content .container-cards .frame-layout-0 {
	margin-bottom: 1.25rem !important;
}

.static-page {
	padding-top: 3rem !important;

	p {
		font-size: var(--font-size-lg) !important;
		margin-top: 0.4rem;
		margin-bottom: 1rem;
		color: var(--text-color);
	}

	ul {
		padding-left: 2rem !important;
		li {
			font-size: var(--font-size-lg) !important;
			margin-top: 0.4rem;
			margin-bottom: 0;
			color: var(--text-color);
			font-weight: 300;
		}
	}
}

@media (max-width: 768px) {
	.static-page {
		padding-top: 2rem !important;
	}
}

@media (max-width: 375px) {
	.tx-indexedsearch-searchbox-sword {
    width: 140px;
  }
}

.image-wrapper.clickable-image img{
height: 100% !important;
} 

@media (max-width: 1200px) {
  .product-dropdown-image{width: 320px;}
}


/* Toast Styles */
.toast {
  background-color: var(--text-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  min-width: 300px;
  max-width: 400px;
}

.toast-header {
  background-color: var(--primary-color);
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.toast-header .btn-close {
  filter: invert(1);
}

.toast-body {
  color: var(--text-color);
  font-size: var(--font-size-base);
  line-height: 1.5;
  padding: var(--spacing-md);
}

/* Toast show/hide animation */
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast:not(.show) {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
}

/* Toast container positioning */
.toast-container {
  z-index: 1055;
}

/* Responsive toast styles */
@media (max-width: 576px) {
  .toast {
    min-width: 280px;
    max-width: 90vw;
  }
  
  .toast-container {
    padding: 1rem !important;
  }
}