@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Barlow:wght@300;400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

p,
a {
  font-family: "Barlow", sans-serif;
}

/* Base Styles */
body {
  background-color: #f5f5f5;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px;
  background-color: #333;
}

.menu-icon {
  position: absolute;
  left: 20px;
  cursor: pointer;
  color: white;
  font-size: 28px;
  display: none;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-button {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-counter {
  position: absolute;
  top: -10px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 50%;
}

/* CART BUTTONS */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3 ease-in;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  min-width: 18px;
}

.navbar img {
  width: 190px;
  padding: 10px;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-btn:hover svg path,
.cart-button:hover svg path {
  fill: rgb(255, 208, 0);
  transition: 400ms;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 40px;
  padding: 20px;
  justify-content: center;
  align-items: center;
  background-color: #3c3c3c;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links a:hover {
  color: red;
}

/* Search Container */
.search-container {
  display: flex;
  justify-content: center;
}

#search-input,
#search-inp {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

#search-inp {
  width: 90%;
}

#search-input:focus,
#search-inp:focus {
  border-color: #d9534f;
  box-shadow: 0 2px 8px rgba(217, 83, 79, 0.3);
}

.search-con {
  display: none;
  justify-content: center;
}

/* SIDE PANEL (Mobile Menu) */
.side-panel {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in-out;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.side-panel a {
  padding: 20px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: 0.3s;
}

.side-panel a:hover {
  background-color: #f1f1f1;
  color: red;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

.side-panel.open {
  left: 0;
}

/* CART PANEL */
#cart-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 2000;
}

#cart-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

#cart-panel.open+.cart-overlay {
  display: block;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

#cart-panel.open {
  right: 0;
}

.closed-btn {
  color: rgb(61, 61, 61);
  border: none;
  font-size: 30px;
  cursor: pointer;
  align-self: flex-end;
  background: none;
}

#cart-items {
  list-style: none;
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

/* Cart item container */
#cart-items li {
  display: grid;
  grid-template-areas:
    "remove image"
    "details details";
  grid-template-columns: 1fr auto;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  gap: 10px;
  position: relative;
  align-items: start; /* Align items to top */
  overflow: auto;
}

/* Remove button at top right */
.remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1;
}

/* Centered image container */
.cart-item-image-container {
  grid-area: image;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px; /* Fixed width for image container */
  height: 100px; /* Fixed height for image container */
  margin: 0 auto; /* Center horizontally */
}

/* Image styling */
.cart-item-image {
  height: 170px;
  width: 170px;
  object-fit: contain;
  display: block;
  transform: translateX(-100px);
}

/* Details section */
.cart-item-details {
  grid-area: details;
  display: flex;
  flex-direction: column;
  padding-right: 30px;
}

/* Price and quantity row */
.price-qty-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-name {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}

.cart-item-price {
  color: red;
  font-size: 20px;
  font-weight: bold;
}

/* Quantity controls */
.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-right: -25px;
}

.qty-btn {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.qty-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: white;
}
.qty-btn:active {
  transform: scale(0.95);
}

.qty-btn.minus {
  border-right: 1px solid #e2e8f0;
}

.qty-btn.plus {
  border-left: 1px solid #e2e8f0;
}

.qty-value {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: white;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f1f5f9;
}

.qty-btn:disabled:hover {
  background-color: #f1f5f9;
  transform: none;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  margin-left: 12px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: #fee2e2;
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.qty-updated {
  animation: pulse 0.3s ease;
}

/* Cart Footer */
.cart-footer {
  border-top: 2px solid #ccc;
  padding-top: 10px;
  text-align: center;
}

.cart-footer p {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.view-cart-btn,
.clear-cart-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.view-cart-btn {
  background: #4caf50 !important;
  color: white !important;
  margin-bottom: 10px;
  border: none !important;
}

.view-cart-btn:hover {
  background: #45a049 !important;
  transform: scale(1.05);
}

.clear-cart-btn {
  background: #d9534f;
  color: white;
}

.clear-cart-btn:hover {
  transform: scale(1.05);
}

.view-cart-btn:active,
.checkout-btn:active {
  transform: scale(0.98);
}

/* Product Grid */

.item-card h3 {
  font-size: clamp(12px, 3vw, 16px); /* Responsive font size with minimum 12px and maximum 16px */
  font-weight: 600;
  color: #1f2937;
  margin: 8px 0;
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em; /* Use em units for better scalability */
  line-height: 1.3em;
  word-break: break-word; /* Prevent long words from overflowing */
  hyphens: auto; /* Enable hyphenation where supported */
  text-align: center;
}

/* For very small screens */
@media (max-width: 380px) {
  .item-card h3 {
    font-size: clamp(10px, 3.2vw, 14px);
    min-height: 2.8em;
  }
}

/* For tablets and larger screens */
@media (min-width: 768px) {
  .item-card h3 {
    font-size: clamp(13px, 1.5vw, 15px);
  }
}

/* For large screens */
@media (min-width: 1024px) {
  .item-card h3 {
    font-size: clamp(14px, 1.2vw, 16px);
  }
}

.item-card img {
  width: 80%;
  height: auto;
  max-height: 192px;
  object-fit: contain;
  border-radius: 8px 8px 0 0;
  margin-bottom: 12px;
  /* Consistent spacing */
  flex-shrink: 0;
  /* Prevent image from shrinking */
}

.price-container {
  margin: 8px 0;
  width: 100%;
}

.old-price {
  color: #6b7280;
  font-size: 14px;
  text-decoration: line-through;
}

.current-price {
  color: #ef4444;
  font-size: 18px;
  font-weight: bold;
}

.add-to-cart {
  width: 140px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background-color: rgb(255, 208, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 0.5s;
  overflow: hidden;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.103);
  position: relative;
  margin-top: auto;
  /* Push button to bottom */
  flex-shrink: 0;
  /* Prevent button from shrinking */
}
/* Add these styles to your CSS file */
.add-to-cart-modal {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  transform: translateX(150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 5px solid #4CAF50;
  max-width: 350px;
}

.add-to-cart-modal.active {
  transform: translateX(0);
  opacity: 1;
}

.add-to-cart-modal.fade-out {
  transform: translateX(150%);
  opacity: 0;
}

.cart-modal-icon {
  width: 40px;
  height: 40px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-modal-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.cart-modal-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.cart-modal-content p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.cart-modal-product {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.cart-modal-product img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

.cart-modal-product-info {
  flex-grow: 1;
}

.cart-modal-product-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.cart-modal-product-price {
  font-size: 14px;
  font-weight: bold;
  color: #d9534f;
}

.cart-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.cart-modal-close:hover {
  opacity: 1;
}

/* Animation for the checkmark */
@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cart-modal-icon .checkmark {
  animation: checkmark 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 380px) {
  .item-card h3 {
    font-size: 14px;
    min-height: 42px;
  }

  .add-to-cart {
    width: 120px;
    height: 36px;
  }

  .item-card img {
    max-height: 160px;
  }
}

@media (min-width: 768px) {
  .item-card h3 {
    font-size: 15px;
  }
}

/* For large screens */
@media (min-width: 1024px) {
  .item-card h3 {
    font-size: 16px;
  }
}

.add-to-cart p {
  font-size: 15px;
}

.IconContainer {
  position: absolute;
  left: -50px;
  width: 30px;
  height: 30px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  transition-duration: 0.5s;
}

.icon {
  border-radius: 1px;
}

.text {
  height: 100%;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(17, 17, 17);
  z-index: 1;
  transition-duration: 0.5s;
  font-size: 1.04em;
  font-weight: 600;
}

.add-to-cart:hover .IconContainer {
  transform: translateX(58px);
  border-radius: 40px;
  transition-duration: 0.5s;
}

.add-to-cart:hover .text {
  transform: translate(10px, 0px);
  transition-duration: 0.5s;
}

.add-to-cart:active {
  transform: scale(0.95);
  transition-duration: 0.5s;
}

/* Sidebar */
.sidebar {
  width: 25%;
  padding: 16px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.side-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.side-panel-overlay.active {
  display: block;
}

#wizzkid-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.sidebar h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.category-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-filters label {
  display: flex;
  align-items: center;
}

.category-filters input {
  margin-right: 8px;
}

/* Container */
.main-container {
  max-width: 2200px;
  padding: 24px;
  display: flex;
}

.item-container {
  margin-right: 100px;
  padding: 24px;
  display: flex;
}

.cart-item-info {
  display: flex;
  align-items: center;
  justify-self: content;
  flex-direction: column;
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: white;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  max-height: 91vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.modal-price {
  font-size: 30px;
  color: #d9534f;
  font-weight: bold;
}

.modal-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.modal-image {
  flex: 1;
  max-width: 50%;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  max-height: 350px;
}

.modal-description {
  flex: 1;
  max-width: 50%;
}

.modal-description p {
  font-size: 19px;
  text-align: left;
  font-weight: bold;
}

.modal-specs {
  margin-top: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  overflow-y: auto;
  max-height: 320px;
}

.modal-specs h4 {
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 3px;
}

.modal-specs-content {
  line-height: 1.5;
  font-size: 13px;
}

.modal-specs-list {
  list-style-type: disc;
  padding-left: 18px;
  margin: 5px 0;
  font-size: 15px;
}

.modal-specs-list li {
  margin-bottom: 6px;
}

.spec-label {
  font-weight: bold;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 90vh;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image,
  .modal-description {
    max-width: 100%;
  }
}

/* Responsive Grid Layout */
/* Mobile (1 column) */
@media (max-width: 480px) {
  .item-card {
    height: auto;
    min-height: 280px;
  }
}

/* Product Grid */

.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 350px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: transform 300ms, box-shadow 300ms;
}

.item-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.item-card img {
  width: 100%;
  height: auto;
  max-height: 192px;
  object-fit: contain;
  border-radius: 8px 8px 0 0;
}

.item-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 8px;
}

.old-price {
  color: #6b7280;
  font-size: 14px;
  text-decoration: line-through;
}

.current-price {
  color: #ef4444;
  font-size: 18px;
  font-weight: bold;
}

/* Base Grid - Centered by default */
.items-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 10px;
  margin: 0 auto;
  width: 100%;
}

/* Very small devices - 1 centered column */
@media (max-width: 379px) {
  .items-container {
    grid-template-columns: minmax(0, 300px);
    /* Single centered column */
  }
}

/* Mobile default - 2 centered columns */
@media (min-width: 380px) {
  .items-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
  }
}

/* Tablets - 3 centered columns */
@media (min-width: 768px) {
  .items-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
  }
}

/* Laptops - 4 centered columns */
@media (min-width: 1440px) {
  .items-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
  }
}

/* Large screens - 5 centered columns */
@media (min-width: 1538px) {
  .items-container {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1400px;
  }
}


/* Mobile Responsive Settings */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    display: none;
  }

  .nav-links a {
    font-size: 18px;
    padding: 10px;
  }

  .navbar img {
    width: 150px;
  }

  .menu-icon {
    display: block;
  }

  .main-container {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 16px;
  }

  .search-container {
    padding: 10px;
  }

  #search-input {
    width: 80%;
    padding: 8px 15px;
  }

  .search-con {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
  }
}

@media (min-width: 769px) {
  .cart-button {
    display: none;
  }

  .nav-links .cart-button {
    display: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(81, 82, 81);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgb(60, 60, 60);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Mobile back to top button */
@media (max-width: 768px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}

/* Pagination Styles - Mobile Responsive */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 5px;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn, .page-btn {
  padding: 6px 10px;
  min-width: 36px;
  font-size: 14px;
  background-color: #3c3c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 2px;
  text-align: center;
}

.pagination-btn {
  padding: 6px 8px;
}

.page-btn.active {
  background-color: #d9534f;
  color: white;
  border-color: #d9534f;
}

/* Ellipsis styling */
.page-numbers span {
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: #333;
}

/* Mobile specific styles */
@media (max-width: 480px) {
  .pagination-container {
    gap: 3px;
  }
  
  .pagination-btn, .page-btn {
    padding: 7px 14px;
    min-width: 32px;
    font-size: 13px;
  }
  
  .pagination-btn {
    padding: 5px 6px;
  }
}

@media (max-width: 380px) {
  .pagination-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .page-numbers {
    order: 2;
  }
  
  .pagination-btn {
    order: 1;
    width: 80%;
    max-width: 200px;
  }
  
  #prev-page {
    margin-bottom: 5px;
  }
  
  #next-page {
    order: 3;
    width: 80%;
    max-width: 200px;
    margin-top: 5px;
  }
}

/* PDF Size Modal Styles */
.pdf-size-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  padding: 25px;
  border-radius: 12px;
  z-index: 10000;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.pdf-size-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.pdf-size-modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}

.pdf-size-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-size-btn {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.pdf-size-btn:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pdf-size-btn .pdf-size-icon {
  font-size: 20px;
  margin-right: 15px;
  width: 24px;
  text-align: center;
}

.pdf-size-btn .pdf-size-text {
  font-weight: 500;
  flex-grow: 1;
}

.pdf-size-btn .pdf-size-dims {
  font-size: 12px;
  color: #777;
  transition: color 0.2s;
}

.pdf-size-btn:hover .pdf-size-dims {
  color: rgba(255,255,255,0.8);
}

.pdf-size-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pdf-size-close-btn:hover {
  color: #333;
  background: #f0f0f0;
}

.pdf-size-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(3px);
}

.no-scroll {
  overflow: hidden;
}