@import url('./class.css');
@import url('./nav.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

/* Using Lost Sarafin font */
@font-face {
  font-family: 'LostSarafin';
  src: url('/assets/fonts/LostSarafin.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Playfair', sans-serif;
}

.lost-font {
  font-family: 'LostSarafin', sans-serif;
  font-size: 3em;
  white-space: nowrap;
}

/* CSS for the home */
.banner-height {
  height: 750px;
}

@media(max-width:550px) {
  .banner-height {
    height: 630px;
  }
}

.category-card {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.slider-card {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.slider-card-2 {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.overlay-text {
  color: white;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 15px;
  padding: 10px 20px;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .category-card {
    height: 250px;
  }
}

.slider-container {
  width: 350px;
}

/* Overlay */
.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}


.position-relative>.position-absolute:not(.overlay) {
  z-index: 2;
}


.blended-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, rgb(0 0 0), transparent);
  z-index: 2;
}

.blended-banner-2::before {
  content: '';
  position: absolute;
  top: 31em;
  left: 0;
  width: 100%;
  height: 67px;
  background: linear-gradient(to bottom, rgb(0 0 0), transparent);
  z-index: 2;
}



/* Circular text Css */
.circle {
  position: relative;
  height: 200px;
  border-radius: 100vmax;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  position: absolute;
  width: 140px;
  height: 140px;
  background: url("/assets/images/kervystore-white-bg.webp");
  background-size: cover;
  border-radius: 100vmax;
  background-position: center;
}

.text {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #f1f1f1;
  font-size: 17px;
  animation: textRotation 8s linear infinite;
}

@keyframes textRotation {
  to {
      transform: rotate(360deg);
  }
}

.text span {
  position: absolute;
  left: 50%;
  font-size: 1.2em;
  transform-origin: 0 100px;
}

/* shop CSS */
@media(max-width:991px) {
  .rev-col {
    flex-direction: column-reverse;
  }

  .categorie-list {
    display: flex;
    flex-wrap: wrap;
  }
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(2, 0, 36, 0.115) 0%, rgb(0 0 0 / 0%) 66%, rgb(0 0 0 / 64%) 100%);
  z-index: 1;
}

.overlay-text {
  position: relative;
  z-index: 2;
}

/* About CSS */
.accordion {
  background-color: #f1f1f1;
}
.accordion-button {
  background-color: #f1f1f1 !important;
  color: inherit !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color:#f1f1f1 !important;
  color: inherit !important;
}

.accordion-item {
  border: none !important;
  background-color: #f1f1f1;
}

/* Dropdown button Css */
.select {
  width: fit-content;
  cursor: pointer;
  position: relative;
  transition: 300ms;
  color: white;
  overflow: hidden;
}

.selected {
  background-color: #c2d2f8;
  padding: 5px;
  margin-bottom: 3px;
  border-radius: 5px;
  position: relative;
  z-index: 100000;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arrow {
  position: relative;
  right: 0px;
  height: 10px;
  transform: rotate(-90deg);
  width: 25px;
  fill: white;
  z-index: 100000;
  transition: 300ms;
}

.options {
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  padding: 5px;
  background-color: #2a2f3b;
  position: relative;
  top: -100px;
  opacity: 0;
  transition: 300ms;
}

.select:hover>.options {
  opacity: 1;
  top: 0;
}

.select:hover>.selected .arrow {
  transform: rotate(0deg);
}

.option {
  border-radius: 5px;
  padding: 5px;
  transition: 300ms;
  background-color: #2a2f3b;
  width: 150px;
  font-size: 15px;
}

.option:hover {
  background-color: #323741;
}

.options input[type="radio"] {
  display: none;
}

.options label {
  display: inline-block;
}

.options label::before {
  content: attr(data-txt);
}

.options input[type="radio"]:checked+label {
  display: none;
}

.options input[type="radio"]#all:checked+label {
  display: none;
}

.select:has(.options input[type="radio"]#all:checked) .selected::before {
  content: attr(data-default);
}

.select:has(.options input[type="radio"]#option-1:checked) .selected::before {
  content: attr(data-one);
}

.select:has(.options input[type="radio"]#option-2:checked) .selected::before {
  content: attr(data-two);
}

.select:has(.options input[type="radio"]#option-3:checked) .selected::before {
  content: attr(data-three);
}

/* CSS for the Cart */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Styles pour le scrollbar sur WebKit (Chrome, Safari) */
.table-responsive::-webkit-scrollbar {
  width: 8px;
  /* largeur du scrollbar */
  height: 3px;
  /* hauteur du scrollbar */
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: #888;
  /* couleur de la barre */
  border-radius: 10px;
  /* coins arrondis */
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  /* couleur au survol */
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* couleur de la piste */
  border-radius: 10px;
  /* coins arrondis */
}

.table-content table {
  background: #fff none repeat scroll 0 0;
  border-color: #e5e5e5;
  border-radius: 0;
  border-style: solid;
  border-width: 1px 0 0 1px;
  text-align: center;
  width: 100%;
}

.table-content table th {
  border-top: medium none;
  font-weight: normal;
  padding: 20px 10px;
  text-align: center;
  text-transform: capitalize;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 600;
}

.table-content table th,
.table-content table td {
  border-bottom: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

.table-content table td.product-thumbnail {
  width: 100px;
}

.table-content table td.product-name {
  width: 270px;
}

.table-content table td.product-price {
  width: 130px;
}

.table-content table td.product-quantity {
  width: 180px;
}

.table-content table td.product-subtotal {
  font-size: 14px;
  font-weight: bold;
  width: 120px;
}

.table-content table td.product-remove {
  width: 150px;
}

.table-content table .product-price .amount {
  font-size: 15px;
  font-weight: 700;
}

.table-content table td input {
  background: #e5e5e5 none repeat scroll 0 0;
  border: medium none;
  border-radius: 3px;
  color: #6f6f6f;
  font-size: 15px;
  font-weight: normal;
  height: 40px;
  padding: 0 5px 0 10px;
  width: 60px;
}

.table-content table td {
  border-top: medium none;
  padding: 20px 10px;
  vertical-align: middle;
  font-size: 13px;
}