.product-grid .product-item {
  height: 100%;
  background-color: var(--surface-color);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-grid .product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.product-grid .product-item:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-grid .product-item:hover .cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-grid .product-image {
  position: relative;
  overflow: hidden;
  /*aspect-ratio: 1;*/
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
}

.product-grid .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-grid .product-badges {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 600;
}

.product-grid .product-badge {
  position: relative;

  background-color: var(--heading-color);
  color: var(--contrast-color);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--heading-font);
  padding: 0.4em 1em;
  border-radius: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-grid .product-badge.sale-badge {
  background-color: #dc2626;
}

.product-grid .product-badge.trending-badge {
  background-color: var(--accent-color);
}

.product-grid .product-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.product-grid .action-btn {
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--contrast-color);
  color: var(--heading-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-grid .action-btn:hover {
  background-color: var(--heading-color);
  color: var(--contrast-color);
}

.product-grid .action-btn.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.product-grid .cart-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 12px 24px;
  background-color: var(--contrast-color);
  color: var(--heading-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.product-grid .cart-btn:hover {
  background-color: var(--heading-color);
  color: var(--contrast-color);
  border-color: var(--heading-color);
}

.product-grid .product-info {
  padding: 30px 20px 25px;
}

.product-grid .product-category {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-grid .product-name {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 12px;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-grid .product-name a {
  color: var(--heading-color);
}

.product-grid .product-name a:hover {
  color: var(--accent-color);
}

.product-grid .product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.product-grid .stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

.product-grid .stars i {
  margin-right: 1px;
}

.product-grid .rating-count {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-weight: 400;
}

.product-grid .product-price {
  margin-bottom: 15px;
}

.product-grid .product-price .old-price {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  text-decoration: line-through;
  margin-right: 8px;
}

.product-grid .product-price .current-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--heading-color);
}

.product-grid .product-price:not(:has(.old-price)) {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--heading-color);
}

.product-grid .color-swatches {
  display: flex;
  gap: 6px;
}

.product-grid .swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.product-grid .swatch:hover {
  transform: scale(1.15);
}

.product-grid .swatch.active:after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1px solid var(--heading-color);
  border-radius: 50%;
}

.product-grid .color-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 1199.98px) {
  .product-grid .swatch {
    width: 22px;
    height: 22px;
  }
  .product-grid .color-swatches {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
  .product-grid .product-info {
    padding: 25px 18px 22px;
  }

  .product-grid .product-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 991.98px) {
  .product-grid .swatch {
    width: 30px;
    height: 30px;
  }
  .product-grid .color-swatches {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
  .product-grid .product-item {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .product-grid .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 3rem;
  }

  .product-grid .product-actions {
    opacity: 1;
    transform: translateY(0);
  }

  .product-grid .cart-btn {
    opacity: 1;
    transform: translateY(0);
  }

  .product-grid .product-info {
    padding: 22px 16px 20px;
  }
}

@media (max-width: 575.98px) {
  .product-grid .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2.5rem;
  }

  .product-grid .product-badge {
    top: 15px;
    left: 15px;
    font-size: 0.7rem;
    padding: 0.35em 0.8em;
  }

  .product-grid .product-actions {
    top: 15px;
    right: 15px;
  }

  .product-grid .action-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .product-grid .cart-btn {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}


    /* lamp */
    .lamp-container {
        position: absolute;
        top:0;
        bottom: 0;
        z-index: 500;
      }

      .lamp-shape {
        top:0;
        bottom: 0;
        left: 15%;
        right: 15%;
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-position-x: center;
        background-position-y: center;
        z-index: 510;
        position: absolute;
      }

      .lamp-light {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 50%;
        z-index: 505;
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-position-x: center;
        background-position-y: top;
      }

      .lamp-cable {
        position: absolute;
        top:0;
        width: 100%;
        height: 50%;
        z-index: 501;
        background-repeat: repeat-y;
        background-size: 100% auto;
        background-position-x: center;
      }

      .lamp-cable-dark {
        background-image: url('../img/lamp/cable-dark.png')
      }
      .lamp-cable-light {
        background-image: url('../img/lamp/cable-light.png')
      }

      .header-lamp1 {
        right: 0;
        width: 100vw;
      }
      .header-lamp2 {
        display: none;
      }
      .header-lamp3 {
        display: none;
      }

      .lamp-container .lamp-light.active {
        z-index: 510;
      }

      .lamp-container .lamp-cable.active {
        z-index: 502;
      }

      .lamp-shape.animate-transition {
        animation: 1s polygon;
        z-index: 500;
        opacity:0;
      }

      .lamp-cable.animate-transition {
        animation: 1s polygon2;
        z-index: 500;
        opacity:0;
      }

      @keyframes polygon {
        0% { clip-path:  polygon(0 0, 0 100%, 100% 100%, 100% 0);z-index:512;opacity:1;}
        30% { clip-path: polygon(0 0, 0 65%, 100% 55%, 100% 0);z-index:512;opacity:1;}
        60% { clip-path: polygon(0 0, 0 25%, 100% 35%, 100% 0);z-index:512;opacity:1;}
        100% { clip-path: polygon(0 0, 0 0, 100% 0, 100% 0);z-index:512;opacity:0.5;}
      }

      @keyframes polygon2 {
        0% { clip-path:  polygon(0 0, 0 100%, 100% 100%, 100% 0);z-index:503;opacity:1;}
        60% { clip-path: polygon(0 0, 0 60%, 100% 60%, 100% 0);z-index:503;opacity:1;}
        100% { clip-path: polygon(0 0, 0 0, 100% 0, 100% 0);z-index:503;opacity:0.5;}
      }

.lamp-container.product-lamp {
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
}



.swatch.lgrey {
  background-color: #adadad;
}

.swatch.dgrey {
  background-color: #4b4b4b;
}

.swatch.dualcolor div {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  border-radius: 50%;
  z-index: 900;
}

.swatch.lgreydgreydiag div:first-child {
  background-color: #adadad;
}
.swatch.lgreydgreydiag div:last-child {
  background-color: #4b4b4b;
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.swatch.dgreylgreydiag div:first-child {
  background-color: #4b4b4b;
}
.swatch.dgreylgreydiag div:last-child {
  background-color: #adadad;
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.swatch.lgreydgreyhor div:first-child {
  background-color: #adadad;
}
.swatch.lgreydgreyhor div:last-child {
  background-color: #4b4b4b;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0% 100%);
}

.swatch.dgreylgreyhor div:first-child {
  background-color: #4b4b4b;
}
.swatch.dgreylgreyhor div:last-child {
  background-color: #adadad;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0% 100%);
}


:root {
  --tdnn-toggleHeight: 50px;
  --tdnn-toggleWidth: 100px;
  --tdnn-toggleBtnRadius: 30px;

  --tdnn-nightColor: #423966;
  --tdnn-moonColor: #d9fbff;
  --tdnn-sunColor: #ffbf71;
  --tdnn-dayColor: #9ee3fb;

  --header-light-text: #fff;
  --header-dark-text: #000;
  --header-light-bg: #cdcdcd;
  --header-dark-bg: #3d3d3d;
}

#ligh-switch {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  width: 100px;
  height: 40px;
}
    .tdnn {
  cursor: pointer;
  margin: 0 auto;
  /*change size of toggle with font-size*/
  font-size: 30%;
  /*margin-top: 10em;*/
  position: relative;
  height: var(--tdnn-toggleHeight);
  width: var(--tdnn-toggleWidth);
  border-radius: var(--tdnn-toggleHeight);
  transition: all 500ms ease-in-out;
  background: var(--tdnn-nightColor);
  z-index: 9999;
}
.day {
  background: var(--tdnn-sunColor);
}
.moon {
  z-index: 99999;
  position: absolute;
  display: block;
  border-radius: 50%;
  transition: all 400ms ease-in-out;
  top: 10px;
  left: 10px;
  transform: rotate(-75deg);
  width: var(--tdnn-toggleBtnRadius);
  height: var(--tdnn-toggleBtnRadius);
  background: var(--tdnn-nightColor);
    box-shadow: 10px 8px 0 0 var(--tdnn-moonColor) inset,
    rgba(255, 255, 255, 0.1) 0 -21px 0 -13px,
    rgba(255, 255, 255, 0.1) 9px 21px 0 -13px,
    rgba(255, 255, 255, 0.1) 6px 39px 0 -12px,
    rgba(255, 255, 255, 0.1) 18px 3px 0 -12px,
    rgba(255, 255, 255, 0.1) 24px 24px 0 -13px,
    rgba(255, 255, 255, 0.1) 18px 39px 0 -13px,
    rgba(255, 255, 255, 0.1) -12px 21px 0 -13px,
    rgba(255, 255, 255, 0.1) -3px 30px 0 -13px;
}
.sun {
  top: 14px;
  left: 60px;
  transform: rotate(0deg);
  width: 22px;
  height: 22px;
  background: #fff;
  box-shadow: 10px 10px 0 15px #fff inset,
    0 -17px 0 -8px #fff,
    0 17px 0 -8px #fff,
    17px 0 0 -8px #fff,
    -17px 0 0 -8px #fff,
    12px 12px 0 -10px #fff,
    12px -12px 0 -10px #fff,
    -12px 12px 0 -10px #fff,
    -12px -12px 0 -10px #fff;
}

/* color filter widget */

.color-filter-widget .color-filter-content .color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.color-filter-widget .color-filter-content .color-options .color-option {
  margin: 0;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
}

.color-filter-widget .color-filter-content .color-options .color-option .form-check-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.color-filter-widget .color-filter-content .color-options .color-option .form-check-input:checked~.form-check-label .color-swatch {
  transform: scale(1.15);
  border: 2px solid var(--accent-color);
}

.color-filter-widget .color-filter-content .color-options .color-option  .color-swatch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: transparent;
  opacity: 0;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.color-filter-widget .color-filter-content .color-options .color-option .form-check-input:checked~.form-check-label .color-swatch::after {
  background-color: #fff;
  opacity: 0.8;
}

.color-filter-widget .color-filter-content .color-options .color-option .form-check-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.color-filter-widget .color-filter-content .color-options .color-option .color-swatch {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.2s ease;
  z-index: -3;
}

.color-swatch.swatch div {
  z-index: -2;
}

.color-filter-widget .color-filter-content .color-options .color-option .color-swatch:hover {
  transform: scale(1.1);
  border-color: var(--accent-color);
}

.color-filter-widget .color-filter-content .color-options .color-option .color-swatch[style*="background-color: #ffffff"] {
  border: 1px solid #e0e0e0;
}

.color-filter-widget .color-filter-content .filter-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.color-filter-widget .color-filter-content .filter-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.color-filter-widget .color-filter-content .filter-actions .btn.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.color-filter-widget .color-filter-content .filter-actions .btn.btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
}

.color-filter-widget .color-filter-content .filter-actions .btn.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--accent-color), transparent 70%);
}

.color-filter-widget .color-filter-content .filter-actions .btn.btn-outline-secondary {
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.color-filter-widget .color-filter-content .filter-actions .btn.btn-outline-secondary:hover {
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
}

@media (max-width: 575.98px) {
  .color-filter-widget .color-filter-content .color-options {
    justify-content: center;
  }
}

.clippedleft {
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 25% 50%, 0% 0%);
}

.plus-one {
  color: green;
  font-weight: bold;
  position: absolute;
  left:0;
  right:0;
  text-align: center;
  display:block;
  z-index:1000;
  font-size: 40px;

  -webkit-animation-name: translation; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration: 1s; /* Safari 4.0 - 8.0 */
  -webkit-animation-timing-function: ease-in;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-fill-mode: forwards;

  animation-name: translation;
  animation-duration: 1s;
  animation-timing-function: ease-in;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes translation {
  from {
    bottom: 0;
    opacity: 100%;
  }
  to {
    opacity: 0%;
    bottom: 250px;
    }
}


.hidden {
  display: none;
}
/* checkout */



//////////////////////////
.checkout .checkout-section .section-content .payment-options .payment-option label .payment-label span.shipping-price {
  display: block;
}

.secure-checkout {
  text-align: center;
}

.secure-checkout .secure-checkout-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--heading-color);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.secure-checkout .secure-checkout-header i {
  color: #28a745;
  font-size: 1.1rem;
}

.secure-checkout .payment-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.secure-checkout .payment-icons i {
  font-size: 1.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}
