/* footer  */
.powered-by {
    color: #777;
    font-size: 0.9em;
    margin-left: 5px;
}

.powered-by a {
    font-weight: 500;
    text-decoration: none;
}

.powered-by a {
    color: #e18821 !important;
    text-decoration: underline;
}

/* footer  */

/* hero banner  */
.d-desktop-only {
    display: block !important;
}

.d-mobile-only {
    display: none !important;
}

@media only screen and (max-width: 991px) {
    .d-desktop-only {
        display: none !important;
    }

    .d-mobile-only {
        display: block !important;
    }
}

/* hero banner  */

/* Custom: Force show cart drawer on AJAX success */
.category-hover-header.forced-show .category-sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    top: 100% !important;
    transform: translateY(0) !important;
}

.successfully-addedin-cart {
    position: fixed;
    visibility: visible;
    opacity: 1;
    width: max-content;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    transition: 0.3s;
    height: auto;
    padding: 15px 30px;
    background: #fff;
    gap: 20px;
    border-radius: 4px;
    border: 1px solid #e2e2e2;
}

.successfully-addedin-cart i {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    background: var(--color-primary);
}

.successfully-addedin-cart p {
    color: var(--color-success);
    font-size: 18px;
    line-height: normal;
    font-weight: 500;
    margin-bottom: 0px !important;
}

.successfully-addedin-cart.show {
    display: flex !important;
}

.successfully-addedin-cart {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    width: max-content;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    height: auto;
    padding: 15px 30px;
    background: #fff;
    gap: 20px;
    border-radius: 4px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.successfully-addedin-cart.show {
    visibility: visible;
    opacity: 1;
}

.successfully-addedin-cart i {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    background: var(--color-primary);
}

.successfully-addedin-cart p {
    color: var(--color-success);
    font-size: 18px;
    line-height: normal;
    font-weight: 500;
    margin: 0;
}

/* Button Loading State */
.loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}

.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Quantity Control in Drawer */
.cart-edit-drawer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.cart-edit-drawer .qty-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e2e2;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
    border-radius: 3px;
    padding: 0;
}

.cart-edit-drawer .qty-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.cart-edit-drawer input {
    width: 30px;
    height: 24px;
    text-align: center;
    border: 1px solid #e2e2e2;
    font-size: 12px;
    padding: 0;
    border-radius: 3px;
}

/* Instant 'Go to Cart' style */
.btn-go-to-cart {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

.forced-show .category-sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Custom Preloader Styles */
.siridhanya-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.siridhanya-preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    width: 100%;
    max-width: 300px;
    padding: 20px;
}

.preloader-logo {
    margin-bottom: 30px;
    animation: loader-pulse 2s infinite ease-in-out;
}

.preloader-logo img {
    max-width: 180px;
    height: auto;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary, #629d23);
    border-radius: 10px;
    transition: width 0.3s ease-out;
}

.loader-percentage {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    font-family: var(--font-primary, inherit);
    letter-spacing: 1px;
}

@keyframes loader-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .preloader-logo img {
        max-width: 140px;
    }
    .preloader-inner {
        max-width: 250px;
    }
}
