:root { 
    --ss-green: #16a34a; 
    --transition-base: all 0.3s ease;
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background-color: #f8fafc;  */
    transition: background-color 0.5s, color 0.5s;
    line-height: 1.6;
}

.dark body {
    background-color: #111827;
    color: #f3f4f6;
}

.dark .st-btn[data-network='sharethis'] img  {
    filter: brightness(0.6) !important;
}


.dark .bg-white { background-color: #1f2937; }
.dark .bg-gray-50 { background-color: #374151; }
.dark .bg-gray-100 { background-color: #374151; }
.dark .bg-gray-200 { background-color: #4b5563; }
.dark .text-gray-900 { color: #f9fafb !important; }
.dark .text-gray-800 { color: #f9fafb !important; }
.dark .text-gray-700 { color: #d1d5db; }
.dark .text-gray-600 { color: #9ca3af !important; }
.dark .text-gray-500 { color: #6b7280 !important; }
.dark .border-gray-200 { border-color: #374151; }
.dark .border-gray-300 { border-color: #4b5563; }
.dark .shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.4); }
.dark .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4); }

/* Component Styles - Consolidated */
.text-primary { color: var(--ss-green); }

.btn-primary { 
    background-image: linear-gradient(to right, #16a34a, #15803d); 
    color: white; 
    transition: var(--transition-base);
    transform: translateZ(0); /* GPU acceleration */
}
.btn-primary:hover { box-shadow: 0 4px 15px 0 rgba(22, 163, 74, 0.45); }

.btn-secondary { 
    background-color: #ffffff; 
    color: var(--ss-green); 
    border: 1px solid var(--ss-green); 
    transition: var(--transition-base);
}
.btn-secondary:hover { background-color: var(--ss-green); color: white; }
.dark .btn-secondary { background-color: #374151; color: #34d399; border-color: #34d399; }
.dark .btn-secondary:hover { background-color: #34d399; color: #111827; }

.category-btn.active { 
    background-color: #15803d !important; 
    color: white !important; 
    font-weight: 600; 
    border-color: #15803d !important; 
}

.btn-filter { 
    background-color: #f3f4f6; 
    color: #374151; 
    transition: var(--transition-base);
}

.articleContent
{
    position: relative;
    z-index: 9;
}

.btn-filter.active, .btn-filter:hover { background-color: var(--ss-green); color: white; }
.dark .btn-filter { background-color: #4b5563; color: #f3f4f6; }
.dark .btn-filter.active, .dark .btn-filter:hover { background-color: #34d399; color: #111827; }

/* Tooltip - Improved accessibility */
.tooltip { position: relative; display: inline-block; }
.tooltip .tooltiptext {
   visibility: hidden;
    width: max-content;
    max-width: 240px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: normal;
    pointer-events: none;
}
.tooltip .tooltiptext::after {
    content: ""; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    margin-left: -5px;
    border-width: 5px; 
    border-style: solid; 
    border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext { 
    visibility: visible; 
    opacity: 1; 
}

/* Deal Card & Modal Animation - Enhanced */
.deal-card { 
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, box-shadow 0.3s, ring 0.3s;
    transform: translateZ(0); /* GPU acceleration */
}

#deal-modal.hidden .modal-content { transform: scale(0.95); opacity: 0; }
.modal-content { transition: transform 0.3s ease-out, opacity 0.3s ease-out; }

/* SNAP Toggle - Enhanced accessibility */
.snap-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.snap-switch input { opacity: 0; width: 0; height: 0; }
.snap-switch input:focus + .snap-slider {
    box-shadow: 0 0 0 2px var(--ss-green);
}
.snap-slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #ccc; 
    transition: .4s; 
    border-radius: 24px; 
}
.snap-slider:before { 
    position: absolute; 
    content: ""; 
    height: 16px; 
    width: 16px; 
    left: 4px; 
    bottom: 4px; 
    background-color: white; 
    transition: .4s; 
    border-radius: 50%; 
}
input:checked + .snap-slider { background-color: var(--ss-green); }
input:checked + .snap-slider:before { transform: translateX(20px); }

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; color: black !important; }
}

#st-133 .st-btn[data-network='sharethis'] , {
     background-color: transparent !important; 
}

/* Base styles for pagination */
.custom-pagination .pagination_count {
  list-style: none !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 10px 0 !important;
}

.custom-pagination .pagination_count li {
  margin: 0 4px !important;
}

/* Style page numbers and links */
.custom-pagination .pagination_count li,
.custom-pagination .pagination_count li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
  font-size: 14px !important;
  color: #000 !important; /* black text */
  text-decoration: none !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* Active page */
.custom-pagination .pagination_count li.active,
.custom-pagination .pagination_count li.active.white {
  background-color: #15803d !important;
  color: #fff !important;
  border-color: #15803d !important;
}

/* Hover effect */
.custom-pagination .pagination_count li:hover,
.custom-pagination .pagination_count li a:hover {
  background-color: #15803d !important;
  color: #fff !important;
  border-color: #15803d !important;
}

/* Previous/Next buttons */
.custom-pagination .pagination_count li a.page {
  font-weight: bold !important;
}

/* Disabled previous button */
.custom-pagination .pagination_count li a.deactive {
  opacity: 0.4 !important;
  pointer-events: none !important;
}

/* Make sure buttons keep rounded look and spacing */
.custom-pagination .pagination_count li a,
.custom-pagination .pagination_count li {
  border-radius: 6px !important;
}

.st-btn > img {
    display: inline-block;
    height: 16px !important;
    width: 16px !important;
    position: relative !important;
    top: 3px !important;
    vertical-align: top !important;
    filter: invert(1) !important;
    left: -22px !important;
}
.st-remove-label {
    background: transparent !important;

}
.sharethis-inline-share-buttons{
    width: 10px !important;
}
#email_notice_pop_up {
    max-height: 600px !important;          
    overflow-y: auto !important;
}
.snaplistsubspan{
    color: red !important;
}

/* For screens up to 800px (mobile) */
@media (max-width: 800px) {
    #desktop-Category {
        display: none !important;
    }
    #mobile-Category {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .dealpr {
        display: none !important;
    }
}


/* For screens above 800px (desktop) */
@media (min-width: 801px) {
    #desktop-Category {
        display: block !important;
    }
    #mobile-Category {
        display: none !important;
    }
}

.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #f8fafc; z-index: 9999;
  transform: translateY(100%); transition: transform 0.3s ease-in-out;
}
.modal-overlay.active { transform: translateY(0); }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px;  border-bottom-width: 1px;
}
.modal-header h2 { font-size: 18px; margin: 0; }
.modal-close { font-size: 28px; color: #666; cursor: pointer; }

.modal-content { position: relative; height: calc(100% - 60px); overflow: hidden; }
.view { position: absolute; top: 0; left: 0; width: 100%; padding: 15px;
  transition: transform 0.3s ease-in-out; overflow-y: auto; 
}
.view-main { transform: translateX(0); }
.view-main.hide { transform: translateX(-100%); }
.view-sub { transform: translateX(100%); }
.view-sub.active { transform: translateX(0); }

.subcategory-btn {
   align-items: center; padding: 12px; margin-bottom: 8px;
   border: 1px solid #ddd; border-radius: 6px; font-weight: 600;
   transition: background 0.2s; width: 49%;
   text-align: left !important;
   word-break: break-word !important;
}

.category-btn-mobile{
   align-items: center; padding: 12px; margin-bottom: 8px;
   border: 1px solid #ddd; border-radius: 6px; font-weight: 600;
   transition: background 0.2s; 
   text-align: left !important;
   border:none;
}

.category-btn-mobile:hover, .subcategory-btn:hover { background: #16a34a; color: #fff; }
.category-btn-mobile i { margin-right: 10px; color: #16a34a; }

.back-btn { display: inline-flex; align-items: center; margin-bottom: 10px;
  font-weight: bold; color: #16a34a; cursor: pointer; }
.back-btn i { margin-right: 5px; }

.st-remove-label{
    color: #e5e7eb;
}

.pDealBenefit{
   color: rgb(75 85 99) !important;
}

#cartcount {
    font-size: 9px;
    background: #01519A;
    color: #fff;
    font-weight: 700;
    position: relative;
    top: -10px;
    padding: 2px 6px;
    border-radius: 50%;
    left: 35px;
}

#sidebarOverlay{
    display: none;
}

.subcategory-nav-container a span {
    line-height: 2.5;
}

.dark\:hover\:bg-gray-700:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}



/* Manual override in dark mode for dropdown items */
.dark .dropdown-item:hover {
  background-color: rgb(55 65 81); /* gray-700 */
  color: #D1D5DB; /* gray-300, optional */
}

.subcategory-btnop{
  width:100% !important;
  border: none;
}

.subcategoryDiv{
    margin-top: 70px;
}

.dark\:bg-green-900\/20:is(.dark *) {
    background-color: rgb(20 83 45 / 0.2);
}

.dark\:text-green-300:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}

.dark\:text-yellow-300:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(253 224 71 / var(--tw-text-opacity, 1));
}

.dark\:bg-yellow-900\/20:is(.dark *) {
    background-color: rgb(113 63 18 / 0.2);
}

.text-yellow-600 {
    --tw-text-opacity: 1;
    color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.subcategory-nav-container a{
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .custom-pagination .pagination_count li, .custom-pagination .pagination_count li a {
        min-width: 10px !important;
    }
}

