#product-body > p > img {
  width: 100%;
}


.text-fade {
  /* For most browsers */
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  /* For Webkit browsers (Chrome, Safari) */
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* alpine x-cloak */

[x-cloak] { display: none !important; }


/* checkbox input as slider */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.no-border {
  border: none;
}

.clickable {
  cursor: pointer;
}


.float-right{
  float: right;
}

.float-center{
  float: center;
}


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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-bold{
  font-weight: bold;
}

.fs-0\.25{
  font-size: 0.25em;
}

.fs-0\.5{
  font-size: 0.5em;
}

.fs-0\.75{
  font-size: 0.75em;
}

.fs-1{
  font-size: 1em;
}

.fs-2{
  font-size: 2em;
}

.fs-3{
  font-size: 3em;
}

.fs-4{
  font-size: 4em;
}

.fs-5{
  font-size: 5em;
}

.fs-6{
  font-size: 6em;
}

.fs-7{
  font-size: 7em;
}

.fs-8{
  font-size: 8em;
}

.fs-9{
  font-size: 9em;
}

.fs-10{
  font-size: 10em;
}


.r-1{
  border-radius: 1em;
}

.r-2{
  border-radius: 2em;
}

.r-3{
  border-radius: 3em;
}

.r-4{
  border-radius: 4em;
}

.r-5{
  border-radius: 5em;
}

.r-6{
  border-radius: 6em;
}

no-text-deco{
  text-decoration: none;
}


.outline-0{
  outline: 0;
}

.border-0{
  border: 0;
}


.w-100{
  width: 100%;
}


dialog.product-image-modal[open] {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pico-background-color);
    position: relative;
}

.nav-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li {
    margin: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: var(--pico-background-color);
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: var(--pico-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animation for hamburger when open */
.hamburger[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 80%;
        max-width: 300px;
        background: var(--pico-background-color);
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-left: 1px solid var(--pico-muted-border-color);
        border-bottom: 1px solid var(--pico-muted-border-color);
        z-index: 9;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--pico-muted-border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
}
