:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #f1c40f;
    --gray-dark: #1a1a1a;
    --gray-light: #333;
}

.stwr-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.stwr-popup-container {
    background-color: #121212;
    width: 100%;
    max-width: 850px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    animation: slideUp 0.3s forwards;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.stwr-popup-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

.stwr-popup-media-col {
    flex: 1.2;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.stwr-popup-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stwr-popup-main-img:hover {
    transform: scale(1.05);
}

.stwr-popup-info-col {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stwr-popup-info-col::-webkit-scrollbar {
    width: 4px;
}

.stwr-popup-info-col::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}
/* 
.stwr-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    line-height: 1;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stwr-popup-close:hover {
    color: var(--accent-color);
    background: #000;
    transform: rotate(90deg);
} */


.stwr-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    z-index: 20;
    transition: color 0.3s;
}
.stwr-popup-close:hover {
    color: #ff0000; 
}

.stwr-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stwr-popup-price {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.stwr-popup-label {
    font-size: 12px;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.qv-colors-section .stwr-popup-options-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qv-option-box.color-option {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 0 1px #333;
}

.qv-option-box.color-option:hover {
    transform: scale(1.1);
}

.qv-option-box.color-option.active {
    box-shadow: 0 0 0 2px #fff;
    transform: scale(1.1);
}

.qv-sizes-section .stwr-popup-options-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.qv-sizes-section .stwr-popup-options-wrapper::-webkit-scrollbar {
    height: 4px;
}

.qv-sizes-section .stwr-popup-options-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.qv-sizes-section .stwr-popup-options-wrapper::-webkit-scrollbar-track {
    background-color: #222;
}

.qv-option-box.size-option {
    min-width: 45px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    background-color: transparent;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 12px;
}

.qv-option-box.size-option:hover {
    border-color: #777;
    color: #fff;
}

.qv-option-box.size-option.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
}

.stwr-popup-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #0a0a0a;
    width: fit-content;
}

.stwr-qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.stwr-qty-btn:hover {
    background-color: #222;
    color: var(--accent-color);
}

.stwr-qty-val {
    color: #fff;
    font-weight: bold;
    width: 35px;
    text-align: center;
    font-size: 14px;
}

.stwr-popup-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stwr-popup-link {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    transition: 0.2s;
    border-bottom: 1px dotted #444;
    width: fit-content;
}

.stwr-popup-link:hover {
    color: #aaa;
    border-color: #aaa;
}

.stwr-error-text {
    color: #ff0000;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    
    visibility: hidden;
    min-height: 20px;  
}


/* From Uiverse.io by vinodjangid07 */ 
.stwr-popup-add-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  font-weight: 500;
  position: relative;
  background-color: rgb(29, 29, 29);
  box-shadow: 0 20px 30px -7px rgba(27, 27, 27, 0.219);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}

.cart {
  z-index: 2;
}

.stwr-popup-add-btn:active {
  transform: scale(0.96);
}

.product {
  position: absolute;
  width: 60%;
  border-radius: 3px;
  content: "";
  left: 23px;
  bottom: 23px;
  opacity: 0;
  z-index: 1;
  fill: rgb(211, 211, 211);
  font-size: 10px;
}

.stwr-popup-add-btn:hover .product {
  animation: slide-in-top 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-30px);
    opacity: 1;
  }

  100% {
    transform: translateY(0) rotate(-90deg);
    opacity: 1;
  }
}

.stwr-popup-add-btn:hover .cart {
  animation: slide-in-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .stwr-popup-container {
        width: 100%;
        max-height: 85vh;
        margin: 0;
        flex-direction: column;
    }

    .stwr-popup-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .stwr-popup-media-col {
        height: 280px;
        width: 100%;
        flex: none;
    }

    .stwr-popup-info-col {
        padding: 20px;
        width: 100%;
        flex: 1;
        overflow-y: visible;
        gap: 15px;
    }

    .stwr-popup-title {
        font-size: 18px;
    }

    .stwr-popup-price {
        font-size: 16px;
    }
}