* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #f4f6f9;
  color: #1a202c;
}

/* NAVBAR STYLING */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0082C8;
  padding: 1rem 2.5rem;
  color: #ffffff;
}

.navbar .logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: #0d1b2a;
  font-weight: 600;
}

/* SUB NAVBAR / CATEGORY PILLS */
.sub-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
}

.category-pills {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.category-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-pill:hover {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #f8fafc;
}

/* All Products Pill Unique Format */
.all-products-pill {
  background-color: #0082C8;
  color: #ffffff;
  border-color: #0082C8;
}

.all-products-pill:hover,
.all-products-pill.active-pill {
  background-color: #1e293b;
  color: #ffffff;
}

.category-pill.active-pill {
  background-color: #0082C8;
  color: #ffffff;
  border-color: #0082C8;
}

.pill-arrow {
  font-size: 0.75rem;
}

/* DROPDOWN HOVER LOGIC */
.category-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* Invisible hover-bridge preventing premature menu closing */
.category-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  z-index: 100;
}

.category-dropdown-wrapper:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

/* PRODUCTS CONTAINER */
.page-view {
  max-width: 1350px;
  margin: 2rem auto;
  padding: 0 2rem;
}


.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

/* PRODUCT GRID & CARDS MATCHING SCREENSHOT */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}


/* Container for the image slot */
.image-slot-placeholder {
  width: 100%;
  height: 200px; /* Adjust height as needed for your grid */
  background-color: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Base image styling */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Handles broken image icons automatically in browsers without Javascript flickering */
.product-img:not([src]), 
.product-img[src=""],
.product-img[src="images/default-placeholder.jpg"] {
  opacity: 0;
}

/* Image scaling and containment */
.image-slot-placeholder img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Keeps original aspect ratio without stretching/cropping */
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.click-details {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: 700;
  color: #0082C8;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.add-to-cart-btn {
  background-color: #0082C8;
  color: #ffffff;
  border: none;
  padding: 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.add-to-cart-btn:hover {
  background-color: #0d1b2a;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #f4f6f9;
  color: #1a202c;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0082C8;
  padding: 1rem 2.5rem;
  color: #ffffff;
}

.navbar .logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: #0d1b2a;
  font-weight: 600;
}

/* CHECKOUT & CART CONTAINER */
.checkout-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* TABLE STYLING */
.cart-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
}

.table-responsive {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cart-table th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
  vertical-align: middle;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: #e2e8f0;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.qty-btn:hover {
  background: #cbd5e1;
}

.remove-btn {
  background: transparent;
  color: #ef4444;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cart-summary {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #f1f5f9;
  text-align: right;
  font-size: 1.2rem;
  color: #0f172a;
}

/* ORDER FORM STYLING */
.checkout-form-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
  height: fit-content;
}

.checkout-form-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #0f172a;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.place-order-btn {
  width: 100%;
  background-color: #0082C8;
  color: #ffffff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.place-order-btn:hover {
  background-color: #2563eb;
}

/* TRUST BADGES */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.badge-item i {
  font-size: 1.8rem;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.badge-item h4 {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

/* FOOTER STYLING */
.footer {
  background-color: #0082C8;
  color: #94a3b8;
  padding: 3rem 2.5rem 2rem 2.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col .subtitle {
  font-size: 0.75rem;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.reg-details {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.follow-title {
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #ffffff;
  font-size: 1.1rem;
}

.social-links a:hover {
  color: #38bdf8;
}

.location-group {
  margin-bottom: 1.2rem;
}

.location-group h5 {
  color: #e2e8f0;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
}

/* MODAL OVERLAY STYLES */
/* Modal Overlay Setup */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex !important;
}

/* Inner Modal Window */
.modal-content.large-modal {
  background: #ffffff;
  width: 90%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #0f172a;
}

/* Grid layout for modal body */
.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.modal-image-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  height: 320px; /* Fixed height for consistency */
  overflow: hidden;
}

/* Modal product image rendering */
#modal-product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Prevents cropping and keeps original aspect ratio */
}

.modal-details-pane {
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #0082C8;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.75rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0082C8;
  margin-bottom: 1rem;
}

.modal-description {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}


/*Global Modal Description Styles "https://gemini.google.com/app/a9e6cacf256b69c1" */
/*
#modal-description {
  white-space: pre-line; --Preserves line breaks automatically
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
} */

/* Reusable classes you can use inside any description */
/* 
#modal-description .spec-label {
  font-weight: 600;
  color: #1a202c;
}

#modal-description .highlight-text {
  color: #0088cc;
  font-weight: 600;
}

#modal-description .model-list {
  margin: 8px 0;
  padding-left: 18px;
}  */


.modal-details-pane .add-to-cart-btn {
  background-color: #0082C8;
  color: #ffffff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.modal-details-pane .add-to-cart-btn:hover {
  background-color: #0f172a;
}


.subcategory-group {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 2.5rem;
  clear: both;
  scroll-margin-top: 80px; /* Adjust 80px to match your header height */
}

.subcategory-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #032739;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e2e8f0;
}

.view-model-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  color: #0082C8;
  border: 2px solid #0082C8;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-top: 0.75rem;
}

.view-model-btn:hover {
  background-color: #0082C8;
  color: #ffffff;
}

/* Footer Container */
.site-footer {
  background-color: #0b1329; /* Dark brand blue backdrop */
  color: #cbd5e1;
  font-size: 0.9rem;
  padding-top: 3.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
}

/* Column 1: Brand */
.logo-placeholder {
  background-color: #0088cc;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  text-align: center;
}

/* Column 1: Brand */
.footer-logo-row {
  display: flex;
  align-items: center; /* Keeps logo and text vertically centered */
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Link wrapper around image */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevents container from shrinking the logo */
}

/* Fixed Logo Image Styles */
.footer-logo {
  width: 140px;           /* Set explicit width */
  height: auto !important;/* Maintains correct proportions */
  object-fit: contain;   /* Ensures no squishing */
  display: block;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-brand-subtitle {
  color: #0088cc;
  font-size: 0.68rem;
  font-weight: 700;
  margin: 2px 0 0 0;
  letter-spacing: 0.5px;
}

.footer-desc {
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* Badges */
.registration-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reg-badge {
  display: flex;
  align-items: center;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 12px;
  gap: 10px;
}

.badge-tag {
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
}

.green-badge .badge-tag { background-color: #10b981; }
.blue-badge .badge-tag { background-color: #0088cc; }

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-label {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 700;
}

.badge-val {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 700;
}

/* Headings */
.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

/* Solutions Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow {
  font-size: 0.7rem;
  color: #0088cc;
}

.footer-links a:hover {
  color: #0088cc;
}

/* Social Icons */
.social-heading {
  margin-bottom: 0.8rem;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social-icons a:hover {
  background-color: #0088cc;
  border-color: #0088cc;
}

/* Contact Column */
.contact-branch {
  margin-bottom: 1.5rem;
}

.branch-tag {
  color: #0088cc;
  font-weight: 800;
  font-size: 0.75rem;
  margin: 0 0 4px 0;
}

.branch-address {
  color: #ffffff;
  margin: 0 0 6px 0;
  font-weight: 500;
}

.contact-branch p {
  margin: 3px 0;
}

.contact-branch a {
  color: #94a3b8;
  text-decoration: none;
}

.contact-branch a:hover {
  color: #ffffff;
}

/* Bottom Copyright Bar */
.footer-bottom {
  border-top: 1px solid #1e293b;
  background-color: #070d1d;
  padding: 1.2rem 1.5rem;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-methods {
  display: flex;
  gap: 8px;
}

.pay-card {
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
}

.legal-links a:hover {
  color: #cbd5e1;
}

.copyright {
  color: #64748b;
  font-size: 0.8rem;
}

/* Responsive Grid */
@media (max-width: 850px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Container Spacing */
.catalog-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

/* Hide Inactive Category Sections Entirely (Headings + Products) */
.product-category-section.hidden {
  display: none !important;
}

.product-category-section {
  display: block;
  margin-bottom: 3rem;
  width: 100%;
}

/* Titles */
.category-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.sub-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0088cc;
  margin: 0 0 1.5rem 0;
}


.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}


.image-placeholder-text {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Card Content & Button */
.product-details {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  flex-grow: 1;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.product-action-text {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0 0 8px 0;
}

.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: #0088cc;
  margin-bottom: 12px;
}

.add-to-cart-btn {
  background-color: #0088cc;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #006699;
}

/* Hides category sections when filtered out */
.category-section.hidden {
  display: none !important;
}

/* Ensure main page view spans full width */
#page-products,
.page-view {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}

/* Category Sections - Hiding logic */
.category-section {
  margin-bottom: 2.5rem;
  width: 100%;
  display: block;
}

/* Hides empty or non-selected category sections completely (including their h2 title) */
.category-section.hidden,
.category-section:empty {
  display: none !important;
}

/* Title Styling */
.category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
  text-align: left;
}

/* Subcategory Headings */
.subcategory-title,
.product-category-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #032739;
  margin: 1rem 0 0.75rem 0;
}

/* GRID LAYOUT - Forces 4 Columns on desktop */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* Forces 4 cards per row */
  gap: 1.25rem !important;
  width: 100% !important;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* PRODUCT CARD STYLING & HOVER POP-UP EFFECT */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

/* Hover Shadow and Pop Effect */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

/* Fixed Aspect Ratio Placeholder Box (Standard Dimensions) */
.product-image-container,
.image-slot-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text Content Inside Card */
.product-title,
.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.product-subtitle,
.click-details {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 8px 0;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0088cc;
  margin-bottom: 10px;
}

.add-to-cart-btn {
  background-color: #0088cc;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #006699;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: #0088cc;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 99;
  
  /* Hidden by default until scrolled down */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

/* Hover & Active States */
#scrollToTopBtn:hover {
  background-color: #006699;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Class toggled via JS when scrolling down */
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}