body {
    font-family: 'Garamond', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #454545;
}

a {
    text-decoration: none;
    color: #e1e1e1;
}

header {
    width: 100%;
    text-align: center;
    position: fixed;
    height: 60px;
    top: 0;
    z-index: 10;
}

header section {
    display: flex;
    padding: 5px;
}

header section:first-child {
    justify-content: start;
    gap: 8px;
}

header section:last-child {
    justify-content: end;
    gap: 5px;
}

header img {
    max-width: 100%;
    max-height: 100%;
}

footer {
    z-index: 10;
    width: 100vw;
    position: fixed;
    bottom: 0;
    text-align: center;
    background-color: #454545;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    box-shadow: #000000a6 0px 1px 4px;
}

footer a {
    padding: 4px;
}

footer a i {
    margin: 0 auto;
}

hr {
    width: 100%;
    border-color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

img {
    width: 100%;
}

table {
    margin: 12px 0;
    border-collapse: collapse;
    border-spacing: 0;
    padding: 8px;
    width: 100%;
    text-align: center;
}

table td {
    padding: 4px 8px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

table tr:first-child td:first-child {
    border-top-right-radius: 12px;
}

table tr:first-child td:last-child {
    border-top-left-radius: 12px;
}

table tr:last-child td:last-child {
    border-bottom-left-radius: 12px;
}

table tr:last-child td:first-child {
    border-bottom-right-radius: 12px;
}

#wrapper {
    margin: 80px auto;
    max-width: 800px;
    padding: 0 8px;
}

#background {
    width: 100vw;
    height: 100vh;
    background-position: center;
    background-size: cover;
    z-index: -1;
    position: fixed;
    top: 0;
    opacity: var(--bg-opacity);
}

.quantity {
    color: #e1e1e1;
    background: transparent;
    border: none;
    width: 30px;
    text-align: center;
    padding: 0;
    font-size: 20px;
}

.flex-items,
.flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
}

.flex-items>* {
    flex: 1;
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

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

.center-circle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background-color: #454545;
    border-radius: 50%;
}

.details {
    color: #e5e5e5 !important;
}

.details a{
    color: #9fc1e3 !important;
}

.pin {
    background: #000000;
    text-align: center;
    padding: 4px 8px;
}

.active {
    background-color: var(--primary-color);
    color: #000000;
}

.active i {
    filter: invert(0%) sepia(6%) saturate(1%) hue-rotate(156deg) brightness(103%) contrast(101%) !important;
}

.danger {
    background-color: #f43131;
    color: #e5e5e5;
}

.warning {
    background-color: #ff9800;
    color: #e5e5e5;
}

.success {
    background-color: #4caf50;
    color: #e5e5e5;
}

button.success {
    background-color: #4caf50;
    justify-content:center;
    color: #e5e5e5;
    font-size: 18px;
    font-weight: bold;
    width: 160px;
}

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

.shadow {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.center-header {
    padding: 0;
    height: 100%;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.center-header a {
    width: 100%;
    padding: 1px;
}

.center-header a img{
    padding-top: 2px;
    height: 100%;
    object-fit: contain;
}

.hint {
    color: #e5e5e5;
    font-size: 10px;
}

.discount {
    color: #ff7f7f;
    font-size: 8px;
    position: relative;
    text-decoration: line-through;
}

.price-tag {
    top: 5px;
    left: 5px;
    z-index: 1;
    padding: 2px 5px;
    align-items: center;
    text-align: center;
    position: absolute;
    background-color: #454545;;
    border-radius: 8px;
}

.sale-tag {
    z-index: 1;
    padding: 2px 5px;
    align-items: center;
    text-align: center;
    position: absolute;
    background-color: #454545;
    border-radius: 8px;
}

select {
    border: 1px dashed;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 0 4px;
}

.search-input {
    width: 80%;
    padding: 10px !important;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"%3E%3Ccircle cx="11" cy="11" r="8"%3E%3C/circle%3E%3Cline x1="21" y1="21" x2="16.65" y2="16.65"%3E%3C/line%3E%3C/svg%3E') no-repeat 8px center white;
    background-size: 16px;
}

input[type="text" i] {
    border: 0px;
    border-radius: 8px;
    height: 20px;
    padding: 6px 8px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.input-group {
    width: 100%;
    padding: 8px;
    margin: 6px;
}

.input-group label{
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.input-group select{
    width: 100%;
}

.icon {
    border-radius: 12px;
    background-color: #454545;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #454545;
    color: #bebdbd;
    gap: 5px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 22px;
    height: 22px;
}

.icon-lg {
    width: 26px;
    height: 26px;
}

i {
    display: block;
    width: 100%;
    height: 100%;
    filter: invert(77%) sepia(11%) saturate(14%) hue-rotate(316deg) brightness(98%) contrast(89%);
}

.dropdown > .btn {
    width: 120px;
}

.btn {
    font-size: 16px;
    border-radius: 12px;
    border: 0;
    padding: 8px 12px;
    text-wrap: nowrap;
}

.p-sm {
    padding: 8px;
}

.p-0 {
    padding: revert !important;
}

.dropdown-content {
    display: none;
    border-radius: 12px;
    position: absolute;
    background-color: #454545;
    color: #bebdbd;
    width: 100%;
    z-index: 1;
    max-height: 300px;
    overflow-y: scroll;
}

.dropdown-content a {
    color: #e1e1e1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    z-index: 1;
}

.radius-half {
    border-radius: 12px;
}

.mx-sm {
    margin: 0 8px;
}

.mb-sm {
    margin-bottom: 8px !important;
}

.mb-md {
    margin-bottom: 12px;
}

.text-stroke {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px;
}

.container {
    margin: 16px 8px;
}

.container-title {
    gap: 0;
    margin: 12px;
    padding: 6px;
    color: var(--accent-color);
    border-bottom: 2.5px solid var(--primary-color);
    overflow: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.list-container {
    gap: 8px;
    padding-top: 4px;
    display: grid;
    grid-template-columns: 1fr;
}

.floating-cart {
    position: fixed;
    bottom: 70px;
    z-index: 3;
}

.floating-cart a{
    position: absolute;
    bottom: 60px;
}

.floating-cart span {
    top: 5px;
    border: 1.5px dashed #5c6fff;
}

.side-cart {
    position: fixed;
    top: 50%;
    z-index: 3;
    box-shadow: rgb(61 61 61 / 70%) 0px 1px 4px;
}
.side-cart button {
    box-shadow: rgb(61 61 61 / 70%) 0px 1px 4px;
}

.cart-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid var(--primary-color);
}

.cart-item img {
    height: 80px;
    width: 80px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    color: #e1e1e1;
    display: flex;
    flex-direction: column;
    background-color: #454545;
    box-shadow: #000000a6 0px 1px 4px;
}

.card-bottom {
    border-top: 2px solid var(--primary-color);
    background-color: #454545;
    margin: 0;
    padding: 5px;
    z-index: 2;
}

.card-bottom>h1 {
    margin: 0;
}

.card-row {
    flex-direction: row;
}

.card-row .img-thumb{
    width: 40%;
}

.description {
    text-overflow: ellipsis;
  word-wrap: break-word;
  max-height: 3em;
  line-height: 1.5em;
  overflow: hidden;
  margin-top: 8px;
}

.card-row .card-bottom{
    border: none;
    border-right: 2px solid var(--primary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.collections .img-thumb {
    object-fit: contain;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}


button {
    border: none;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.bg-overlay {
    right: 0px;
    left: 0px;
    top: 0px;
    bottom: 0px;
    position: absolute;
    z-index: 1;
}

.bg-gradient {
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 20%, rgba(187, 187, 187, 0.1) 57.14%, rgba(167, 167, 167, 0.8) 83.19%, rgb(146, 146, 146)) !important;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.img-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: scale-down;
    object-position: center center;
    background-color: #262626;
    transition: opacity 0.5s ease-in-out;
}

.img-slide {
    max-width: 100%;
    height: auto;
    border-radius:10px;
}

.pin-view {
    padding: 0 24px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: #e1e1e1;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.prev {
    right: 8px;
}

.next {
    left: 8px;
}

.dashed {
    border-top: 1px var(--primary-color) dashed;
}

#product-form {
    display: flex;
    flex-direction: row;
}

#product-form section{
    flex: 1;
}

@media only screen and (max-width: 600px) {   
    @media only screen and (max-width: 600px) {
        .product-gallery {
            height: 50vh;
        }
        #product-form {
            flex-direction: column;
        }
    }
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    background-color: #454545;
    border-radius: 12px;
    height: 100%;
    padding: 4px;
}

.main-image {
    flex: 3;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.product-gallery-sidebar {
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
}

.thumbnail {
    margin-bottom: 8px;
    cursor: pointer;
}

.thumbnail img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.selected {
    border: 1px solid var(--primary-color) !important;
}

.highlight {
    text-align: center;
    background-color: var(--primary-color);
    color: #e5e5e5;
}

.alert {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: calc(100% - 10%);
    color: #e5e5e5;
    text-align: center;
    border-radius: 12px;
    z-index: 9999;
    border: none;
    animation: slideDownAndUp 3s forwards;
}

.cart-counter {
    padding: 2px;
    font-size: 14px;
    font-weight: bold;
    background-color: var(--primary-color);
    color: black;
}

@keyframes slideDownAndUp {
    0% {
        top: -80px;
    }

    25%,
    75% {
        top: 8px;
    }

    100% {
        top: -80px;
    }
}

@keyframes scaleOut {
    from {
      scale: 0.5;
    }
    to {
      scale: 1;
    }
}

dialog {
    border-radius: 8px;
    border: none;
    background-color: #454545;
    color: #e5e5e5;
}

.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-height: 80vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

dialog .dialog-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

dialog[open] {
    animation: scaleOut 0.3s;
    pointer-events: inherit;
}

dialog::backdrop {
    backdrop-filter: blur(8px);
}

#order-total {
    margin-top: 8px;
    padding-top: 6px;
}

#loading-dialog {
    background-color: transparent;
    width: 80px;
    height: 80px;
}

#loading-dialog div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

#loading-dialog div:nth-child(1) {
    animation-delay: -0.45s;
}

#loading-dialog div:nth-child(2) {
    animation-delay: -0.3s;
}

#loading-dialog div:nth-child(3) {
    animation-delay: -0.15s;
}

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    right: -250px;
    background-color: #454545;
    overflow-x: hidden;
    transition: 0.35s;
    padding-top: 60px;
    z-index: 1000;
}
  
.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}
  
.sidebar .closebtn {
    top: 0;
    position: absolute;
    font-size: 36px;
    margin-left: 50px;
}
  
.open-sidebar {
    right: 0;
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.2);
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .step {
    flex: 1;
    text-align: center;
    padding: 20px;
    position: relative;
  }

.step::before {
    content: '';
    position: absolute;
    top: 35%;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e1e1e1;
    z-index: -1;
}

.step:first-child::before {
    display: none;
}

.step.passive .number {
    background-color: var(--primary-color);
    color: black;
}

.step.passive .text {
    color: var(--primary-color);
}

.step.passive::before {
    background-color: var(--primary-color);
}

.stepper .number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: #e1e1e1;
    color: #454545;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.stepper-content {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: scroll;
}

.step-footer {
    width: 100%;
    text-align:center;
}
  
.step-content{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease; 
}
  
.step-content.active-step, .step-footer.active-step {
    opacity: 1;
    z-index: 2;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#mic-init-access-tool img{
    width: initial;
}

[dir='ltr'] #background {
    right: 0;
}

[dir='rtl'] #background {
    right: 0;
}

[dir='rtl'] .prev {
    right: 8px;
}

[dir='rtl'] .next {
    left: 8px;
}

[dir='ltr'] .prev {
    left: 8px;
}

[dir='ltr'] .next {
    right: 8px;
}

[dir='rtl'] .cart-item div:last-child {
    margin-right: auto;
    align-self: center;
}

[dir='ltr'] .cart-item div:last-child {
    margin-left: auto;
    align-self: center;
}

[dir='rtl'] .side-cart button {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[dir='ltr'] .side-cart button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

[dir='ltr'] .cart-counter {
    right: 0;
}

[dir='rtl'] .cart-counter {
    left: 0;
}

[dir='rtl'] .floating-cart a{
    right: 50px;
}

[dir='ltr'] .floating-cart a{
    left: 50px;
}

[dir='rtl'] .step::before {
    right: -50%;
}

[dir='ltr'] .step::before {
    left: -50%;
}
