/* General Reset */
.product-card {
    background-color: #fff;
    border: none;
    overflow: hidden;
    margin: 1rem;
    border-radius: 10px;
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease; /* Smooth transition for transform and shadow */
    position: relative;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle default shadow */
}

.product-card:hover {
    -webkit-transform: scale(1.02);
            transform: scale(1.02);
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
}

/* Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ensures a square ratio */
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover; /* Ensures the image fills the square without distortion */
}

/* Overlay Text Pills */
.overlay-text-pill {
    position: absolute;
    padding: 0.4rem 0.8rem;
    border-radius: 50px; /* Pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff; /* White text */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    z-index: 2;
    white-space: nowrap;
    text-wrap: wrap;
}

/* Bottom Left: Product Name */
.overlay-left {
    top: 10px;
    margin-right: 10px;
    left: 10px;
    text-align: left;
}

/* Bottom Right: Price */
.overlay-right {
    bottom: 10px;
    right: 10px;
    text-align: right;
}


/* Regular Price Styling */
.price-regular {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: #ccc; /* Muted for comparison */
    margin-right: 0.5rem;
}

/* Discounted Price Styling */
.price-discounted {
    font-size: 1rem;
    font-weight: 700;
    color: #ED1C24; /* Bright color to make it stand out */
    background-color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 50px; /* Pill-shaped background */
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Slight shadow for a premium effect */
}

/* General Styles */
.navigacija {
  
  font-family: Arial, sans-serif;
  padding: 1rem 0;
  margin: 0 0 1rem 0;
}

.seznam-povezav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

          -webkit-box-pack: start;

              -ms-flex-pack: start;

                  justify-content: start;
  padding: 0;
  margin: 0;
  list-style: none;
}

.element-povezave {
  margin: 0 15px;
}

.povezava {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 6px 18px;
  display: inline-block;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.povezava:hover {
  color: white;
  background-color: black;
  border-radius: 20px;
}

/* Active Link Styles */
.povezava.aktivna {
  color: white;
  background-color: black;
  border-radius: 20px;
}

.cart-indicator {
    position: fixed;
   top:20px;
    right: 20px;
    background-color: white; /* Dark Gray for modern look */
    color: black;
    padding: 7px 11px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 1000;
    cursor: pointer;
  }


  .cart-indicator:hover i{
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
            rotate: 20deg;
 
  }

    .cart-indicator:hover .cart-badge{
background-color: #ffe016;
  }

  .cart-indicator i {
    font-size: 1.5rem;
    margin-right: 8px;
        -webkit-transition: 0.3s;
    transition: 0.3s;
  }

  .cart-indicator .cart-badge {
    background-color: white; /* Yellow for visibility */
    color: #212529; /* Dark Gray for contrast */
    font-size: 0.5rem;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 50%;
    margin-left: 8px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.18);
    -webkit-transition: 0.3s;
    transition: 0.3s;
  }


  


@media (max-width: 768px) {
    .element-povezave {
        margin: 0 ;
    }

    .seznam-povezav {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    .overlay-left{
        top:3px;
        left: 3px;
        bottom:inherit;
    }
    .overlay-right{
        bottom:3px;
        right: 3px;
       
    }

    .cart-indicator {
      position: fixed;
      bottom: 20px;
      top: inherit;
    }
    .overlay-text-pill {
      padding: 0.2rem 0.4rem;
      border-radius: 10px; /* Pill shape */
      font-size: 0.6rem;
      
    }

    .price-regular {
        font-size: 0.6rem;

        margin-right: 0.5rem;
    }

    /* Discounted Price Styling */
    .price-discounted {
        font-size: 0.7rem;

        padding: 0.1rem 0.3rem;
        border-radius: 50px; /* Pill-shaped background */

    }
    .product-card{
      margin:0.3rem;
    }

    .navigacija {
      position: sticky;
  top:0;
  width: 100%;
    z-index: 1;
    background-color: white;
      padding: 0.3rem 0;
    }


}

