
/* Modern Premium Card Styling */
.card-premium {
    background: #2f74f5;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(47, 116, 245, 0.4);
}

.card-premium-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eef2ff;
    border-radius: 12px 12px 0 0 !important;
}

.card-premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0 !important;
    transition: transform 0.6s ease;
}

.card-premium:hover .card-premium-img {
    transform: scale(1.1);
}

/* Countdown Bar Styles (Solid Red Theme) */
.premium-countdown-bar {
    background: #dc2626; /* Solid Red */
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0; 
    border-radius: 0;
    color: #ffffff; /* White text */
    font-size: 0.85rem; 
    font-weight: 700;
    height: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.premium-countdown-bar i {
    color: #ffffff;
    font-size: 0.85rem;
}

/* Placeholder area for non-limited cards (Full Width Divider) */
.premium-placeholder-line {
    height: 32px; 
    display: flex;
    align-items: flex-end; /* Pushed lower */
    padding: 0 15px 12px 15px; /* Added bottom padding to center it visually */
}
.premium-placeholder-line::after {
    content: "";
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.timer-display b {
    color: #ffffff;
    margin: 0 1px;
}

/* Body styling */
.card-premium-body {
    padding: 8px 15px 15px 15px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-premium-title-wrapper {
    height: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2px;
}

.card-premium-title {
    font-size: 1rem; /* Reduced from 1.05rem */
    font-weight: 700; /* Reduced from 800 */
    color: #ffffff;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    text-align: left;
}

.card-premium-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-premium-price small {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Actions */
.card-premium-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.btn-premium {
    background: #ffffff;
    color: #2f74f5;
    border: none;
    border-radius: 8px;
    padding: 7px 5px;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
    color: #1a4fc4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-premium.disabled {
    background: rgba(255, 255, 255, 0.4);
    color: #2f74f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Limited ribbon */
.premium-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    width: 140px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    text-align: center;
    transform: rotate(45deg);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 0;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.chip-btn {
    background-color: transparent; /* No white background when inactive */
    color: #2f74f5;
    border: 1px solid #2f74f5; /* Thinner border */
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

/* Search Bar Unified Premium Styles */
.search-bar-unified {
    background: #ffffff;
    border: 2px solid #2f74f5;
    border-radius: 12px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(47, 116, 245, 0.1);
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

.search-bar-unified .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #2f74f5;
    margin: 0;
    line-height: 1.5;
}

.search-bar-unified .form-control:focus {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.search-bar-unified .form-control::placeholder {
    color: #97b6f1;
    font-weight: 500;
}

.search-bar-unified .drop-ctn {
    padding: 0 5px;
}

.search-bar-unified .dropbtn {
    background: #2f74f5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-bar-unified .dropbtn:hover {
    background: #1a4fc4;
}

.search-bar-unified button[type="button"]#button-addon2 {
    background: transparent !important;
    border: none !important;
    padding: 0 10px;
    color: #2f74f5 !important;
}

.chip-btn.active {
    background: #2f74f5;
    color: #fff;
    border-color: #2f74f5;
}

#category-filters {
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
    display: flex;
    gap: 8px;
}

#category-filters::-webkit-scrollbar {
    display: none;
}

@media (max-width: 576px) {
    .card-premium-body { padding: 4px 12px 12px 12px; }
    .card-premium-title-wrapper { height: 2.1rem; margin-bottom: 2px; }
    .card-premium-title { font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
    .card-premium-price { font-size: 0.95rem; margin-bottom: 8px; }
    .btn-premium { font-size: 0.72rem; padding: 6px 2px; }
    .premium-countdown-bar { font-size: 0.65rem; height: 24px; padding: 2px 12px; }
    .premium-placeholder-line { height: 24px; }
}

/* Modal Scrollbar & Hover Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f3;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cdd2d6;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a9b0b7;
}

#productModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
#productModal .modal-header {
    background: linear-gradient(135deg, #1a4fc4, #2f74f5);
    padding: 16px 22px;
    border-bottom: none;
}
#productModal .modal-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}
#productModal .modal-body {
    padding: 24px 22px;
}
#productModal .modal-footer {
    border-top: 1px solid #eef2ff;
    padding: 12px 22px;
    background: #f8faff;
}
#productModal .announce-img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #f4f6fb;
    padding: 15px;
}
#productModal .announce-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2940;
    margin-bottom: 10px;
    line-height: 1.4;
}
#productModal .announce-body {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.75;
}
#productModal .btn-close-announce {
    background: linear-gradient(135deg, #2f74f5, #1a5cd8);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 22px;
    transition: all 0.2s;
}
#productModal .btn-close-announce:hover { opacity: 0.88; }

#productModal .modal-footer {
    flex-wrap: nowrap !important;
    gap: 8px;
}
.modal-action-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 45px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 0 12px !important;
    border: none !important;
    color: #fff !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
}
.btn-blue {
    background: linear-gradient(135deg, #2f74f5, #1a5cd8) !important;
}
.btn-gray {
    background: #64748b !important;
}
