﻿/* Shimmer effect for product cards */
.card.product-card.shimmer {
    position: relative;
    overflow: hidden;
    background: #f6f7f8; /* Light background for placeholder */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Match your card width */
    max-width: 200px; /* Adjust based on your design */
    margin: 10px;
    padding: 10px; /* Ensure padding matches your real card */
}

/* Shimmer background with moving gradient */
.shimmer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100% );
    animation: shimmer 1.5s infinite;
}

/* Shimmer animation keyframes */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Placeholder for image box */
.img-box.shimmer-placeholder {
    width: 100%;
    height: 150px; /* Matches the product box image height */
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px; /* Space between image and title */
}

/* Placeholder for title */
.shimmer-line.title {
    height: 20px; /* Matches the bold title height */
    width: 90%; /* Matches title width */
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0 auto 10px auto; /* Centered, with 10px space below to button */
    position: relative;
    overflow: hidden;
}

/* Placeholder for long, flat-edged, rounded button */
.shimmer-line.button {
    width: 120px; /* Longer width for flat-edged design */
    height: 40px; /* Matches button height */
    background: #e0e0e0;
    border-radius: 8px; /* Rounded corners, not fully round */
    margin: 0 auto; /* Centered */
    position: relative;
    overflow: hidden;
}

/* Apply shimmer animation to placeholders */
.shimmer-placeholder::after,
.shimmer-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100% );
    animation: shimmer 1.5s infinite;
}

.prescription-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #faa138;
    z-index: 9;
    color: #fff;
    border-radius: 30px;
    padding: 3px 15px;
    font-size: 12px;
}

.btn-prescription {
    background-color: #faa138;
    font-size: 14px;
    width: 100%;
    height: 42.6px;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
}

.moving-text {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

    .moving-text p {
        display: inline-block;
        padding-left: 100%;
        animation: moveText 10s linear infinite;
    }

@keyframes moveText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.displayUL {
    display: block !important;
}

.d-flex > .equal-btn {
    min-width: 220px;
    flex: 1;
}

/* On small screens, make them full-width and remove min-width */
@media (max-width: 767.98px) {
    .d-flex.flex-column > .equal-btn {
        min-width: 0;
        width: 100%;
        flex: none;
    }
}

/* ✅ This targets ONLY buttons that are text-only */
.text-only-provider {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 30%;              /* same width as image ones */
  margin: 1%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background-color: #fff;
  text-align: center;
  vertical-align: top;
}

.text-only-provider .p-3 {
  padding: 4px !important;
  white-space: normal;
  word-break: break-word;
  width: 100%;
  font-size: 13px;
  line-height: 1.3;
}

/* optional: improve readability on small screens */
@media (max-width: 480px) {
  .text-only-provider {
    width: 45%; /* make sure 2 fit per row */
  }
}
/* ✅ This targets ONLY buttons that are text-only */



/*.d-flex .equal-btn {
    flex: 1;*/ /* makes all buttons share available space equally */
/*}*/

.hidePermanentUL {
    display: none !important;
}

.hideUL {
    display: none !important;
}

.width-50 {
    width: 50%;
}

.margin-l {
    margin-left: 5%;
}

.margin-r {
    margin-right: 5%
}


.ml-7px {
    margin-left: 7px;
}

/*dependentmodal =>*/
/* Ensure modal takes full height on mobile */
#dependent-addition-modal {
    position: fixed; /* Important for overlay */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allow modal to scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    background: rgba(0,0,0,0.5); /* Optional: overlay background */
    /*z-index: 1050;*/ /* Make sure it’s above page */
}

/* Ensure modal-content fits properly */
#dependent-addition-modal .modal-content {
    max-height: 90vh; /* Prevent going off screen */
    overflow-y: auto;
    margin: 5% auto; /* Center it */
    border-radius: 8px;
}


/*dependentmodal =>*/
.bottom-border {
    border-bottom: 1px solid rgb(231, 236, 244);
}


.carousel-control-prev {
    position: absolute;
    top: 0;
    height: auto;
    display: inline-flex;
    left: 0;
    min-height: auto;
    max-height: 32px;
}


.carousel-control-next {
    position: absolute;
    top: 0;
    height: auto;
    display: inline-flex;
    right: 0;
    min-height: auto;
    max-height: 32px;
}

#orderCarousel .carousel-inner {
    padding-top: 40px;
}

.pac-container {
    z-index: 100000 !important;
}

.header-navigation ul a.categoryHeading {
    background-color: #e8e8e8 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    border-radius: 8px !important;
    font-weight: bold;
}

/* Enhanced Modal Styling */
.error-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.error-modal .modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    padding: 2rem 2rem 1rem;
    position: relative;
    overflow: hidden;
}

    .error-modal .modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

.error-modal .modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.error-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.error-modal .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 1;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

    .error-modal .btn-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.error-modal .modal-body {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    position: relative;
}

.error-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    text-align: center;
}

.error-details {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #721c24;
}

.error-modal .modal-footer {
    background: rgba(248, 249, 250, 0.9);
    border: none;
    padding: 1.5rem 2rem 2rem;
    justify-content: center;
}

.error-modal .btn-close-modal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

    .error-modal .btn-close-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        background: linear-gradient(135deg, #5a67d8, #6b46c1);
    }

    .error-modal .btn-close-modal:active {
        transform: translateY(0);
    }

/* Backdrop */
.modal-backdrop.show {
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.6);
}
