/* Promedic Product Catalog & WhatsApp Enquiry System Styles */

:root {
    --p-primary: #77A0BC;
    --p-primary-hover: #5b84a1;
    --p-secondary: #00b4d8;
    --p-accent: #77A0BC;
    --p-accent-dark: #5b84a1;
    --p-dark: #1d2d44;
    --p-light: #f8f9fa;
    --p-border: #e2e8f0;
    --p-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --p-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.catalog-section {
    padding: 35px 20px;
    background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 25px rgba(119, 160, 188, 0.12);
    border: 1px solid #e0eeff;
}

.catalog-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalog-header h2 {
    font-size: 2.2rem;
    color: var(--p-dark);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.catalog-header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Controls Bar (Search + Categories) */
.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: var(--p-shadow);
    border: 1px solid var(--p-border);
}

.search-box-wrapper {
    position: relative;
    flex: 1 1 280px;
}

.search-box-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #77A0BC;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 5;
}

#featured-products input.search-input {
    width: 100% !important;
    height: 48px !important;
    line-height: 24px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    padding-left: 52px !important;
    padding-right: 18px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    background-color: #ffffff !important;
    color: var(--p-dark) !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
}

#featured-products input.search-input:focus {
    outline: none !important;
    border-color: #77A0BC !important;
    box-shadow: 0 0 0 4px rgba(119, 160, 188, 0.2) !important;
}

.category-select-wrapper {
    flex: 0 0 auto;
}

#featured-products select.category-select {
    height: 48px !important;
    line-height: 24px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
    padding-right: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    background-color: #ffffff !important;
    color: var(--p-dark) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377A0BC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
}

#featured-products select.category-select:focus {
    outline: none !important;
    border-color: #77A0BC !important;
    box-shadow: 0 0 0 4px rgba(119, 160, 188, 0.2) !important;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 28px;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--p-shadow);
    border: 1px solid var(--p-border);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--p-shadow-hover);
    border-color: #77A0BC;
}

.product-image-box {
    position: relative;
    height: 195px;
    background: #f8fafc;
    overflow: hidden;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.08);
}

.stock-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #77A0BC 0%, #5b84a1 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(119, 160, 188, 0.35);
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #77A0BC;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.6px;
}

.product-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--p-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.product-dosage {
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-description {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--p-dark);
}

/* HIGHLY POLISHED ENQUIRY NOW BUTTON WITH #77A0BC THEME */
.btn-enquiry-now {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #77A0BC 0%, #5b84a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(119, 160, 188, 0.4);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-enquiry-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

.btn-enquiry-now:hover::before {
    left: 100%;
}

.btn-enquiry-now:hover {
    background: linear-gradient(135deg, #5b84a1 0%, #456b85 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(119, 160, 188, 0.55);
}

.btn-enquiry-now:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(119, 160, 188, 0.3);
}

.btn-enquiry-now i {
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pagination Container */
.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1.5px solid #e2e8f0;
}

.pagination-info {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 600;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover:not(:disabled) {
    border-color: #77A0BC;
    color: #77A0BC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 160, 188, 0.2);
}

.page-btn.active {
    background: linear-gradient(135deg, #77A0BC 0%, #5b84a1 100%);
    border-color: #77A0BC;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(119, 160, 188, 0.35);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* VIEWPORT-RESPONSIVE MODAL POPUP */
.enquiry-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.enquiry-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.enquiry-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 490px;
    max-height: calc(100vh - 30px);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(15px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.enquiry-modal-backdrop.active .enquiry-modal-content {
    transform: scale(1) translateY(0);
}

.modal-header-banner {
    background: linear-gradient(135deg, #77A0BC 0%, #5b84a1 100%);
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header-banner h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: rotate(90deg);
}

.modal-product-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.modal-product-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.modal-product-info h4 {
    margin: 0 0 2px 0;
    font-size: 0.98rem;
    color: var(--p-dark);
    font-weight: 800;
}

.modal-product-info p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.modal-form-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    box-sizing: border-box;
}

.modal-form-body::-webkit-scrollbar {
    width: 6px;
}

.modal-form-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-form-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-form-body::-webkit-scrollbar-thumb:hover {
    background: #77A0BC;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #77A0BC;
    box-shadow: 0 0 0 3px rgba(119, 160, 188, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 65px;
}

.preset-messages {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.preset-pill {
    font-size: 0.75rem;
    background: #f0f7fc;
    color: #456b85;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s ease;
    border: 1px solid #d0e4f2;
}

.preset-pill:hover {
    background: #77A0BC;
    color: #ffffff;
    border-color: #77A0BC;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(119, 160, 188, 0.35);
}

.btn-submit-whatsapp {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #77A0BC 0%, #5b84a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    box-shadow: 0 6px 20px rgba(119, 160, 188, 0.42);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-submit-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

.btn-submit-whatsapp:hover::before {
    left: 100%;
}

.btn-submit-whatsapp:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 25px rgba(119, 160, 188, 0.6);
    background: linear-gradient(135deg, #5b84a1 0%, #456b85 100%);
}

.btn-submit-whatsapp:active {
    transform: translateY(0) scale(0.98);
}

.btn-submit-whatsapp i {
    font-size: 1.2rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.catalog-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1e293b;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s ease;
}

.catalog-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.catalog-toast i {
    color: #77A0BC;
    font-size: 1.3rem;
}
