/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #444444;
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: #1977cc;
  text-decoration: none;
}

a:hover {
  color: #3291e6;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.shop-topbar {
  background: #fff;
  height: 40px;
  font-size: 14px;
  transition: all 0.5s;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 996;
}

.shop-topbar.topbar-scrolled {
  top: -40px;
}

.shop-header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-topbar .shop-header-container {
  height: 40px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  color: #444444;
}

.topbar-contact span {
  margin-left: 15px;
  line-height: 1;
}

.topbar-contact a {
  line-height: 1;
  color: #444444;
  font-size: 14px;
  transition: color 0.3s;
}

.topbar-contact a:hover {
  color: #1977cc;
}

.shop-site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 40px;
  z-index: 997;
  background: #fff;
  padding: 15px 0;
  box-shadow: 0px 2px 15px rgba(25, 119, 204, 0.1);
  transition: all 0.5s;
}

.shop-site-header.header-scrolled {
  top: 0;
}

.shop-site-header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: "Poppins", "Raleway", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  flex: 0 0 auto;
}

.shop-site-header .logo a {
  color: #2c4964;
}

.navbar {
  padding: 0;
  margin-left: auto;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 8px 0 8px 20px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #2c4964;
  white-space: nowrap;
  transition: 0.3s;
  border-bottom: 2px solid #fff;
  padding: 5px 2px;
  text-decoration: none;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #1977cc;
  border-color: #1977cc;
}

.nav-chevron {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 20px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  color: #082744;
  border: none;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul li:hover > a {
  color: #1977cc;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.mobile-nav-toggle {
  color: #2c4964;
  font-size: 28px;
  cursor: pointer;
  display: block;
  line-height: 0;
  transition: 0.5s;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
}

.mobile-nav-toggle::before {
  content: '☰';
  display: block;
  line-height: 30px;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

.mobile-nav-toggle.bi-x::before {
  content: '×';
  font-size: 34px;
}

.navbar > ul {
  display: none;
}

@media (min-width: 1400px) and (min-resolution: 1dppx) {
  .navbar > ul {
    display: flex;
  }

  .mobile-nav-toggle {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(28, 47, 65, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile > ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile > ul > li {
  padding: 0;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #2c4964;
  border: none;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #1977cc;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

.shop-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 25px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 14px;
  color: #2c4964;
}

.login-button,
.logout-button {
  background: #1977cc;
  border: 1px solid #1977cc;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.2;
}

.login-button:hover,
.logout-button:hover {
  background-color: #166ab5;
  border-color: #166ab5;
  color: #ffffff;
}

.cart-button {
  position: relative;
  background: #ffffff;
  border: 1px solid #d5e3ef;
  border-radius: 50%;
  cursor: pointer;
  width: 42px;
  height: 42px;
  color: #2c4964;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-button:hover {
  border-color: #1977cc;
  color: #1977cc;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #1977cc;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 150px 20px 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.content-wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.products-container {
  flex: 1;
  order: 1;
}

.filters-container {
  flex-shrink: 0;
  width: 280px;
  order: 2;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 100%;
}

/* Product Card */
.product-card {
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-add-button {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-card:hover .product-add-button {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-add-button:hover {
  background-color: #333333;
}

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

.product-category {
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a1a1a;
  line-height: 1.4;
  flex-grow: 1;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.product-package {
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  margin-bottom: 0;
}

.product-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.color-option:hover {
  transform: scale(1.1);
  border-color: #1a1a1a;
}

.color-option.active {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #1a1a1a;
}

/* Filters */
.filters {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 24px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.filters-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.filters-reset {
  background: none;
  border: none;
  color: #666666;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.filters-reset:hover {
  color: #1a1a1a;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option {
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  padding: 8px 16px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}

.filter-option:hover {
  border-color: #1a1a1a;
  background-color: #ffffff;
}

.filter-option.active {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 24px 0;
}

.pagination-button {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1a1a1a;
  padding: 0;
}

.pagination-button:hover:not(:disabled) {
  border-color: #1a1a1a;
  background-color: #f5f5f5;
}

.pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-page {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}

.pagination-page:hover {
  border-color: #1a1a1a;
  background-color: #f5f5f5;
}

.pagination-page.active {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.pagination-ellipsis {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 14px;
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background-color: #ffffff;
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.6;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: calc(100vh - 80px);
}

.modal-image-container {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  position: relative;
  background-color: #f5f5f5;
  overflow: hidden;
}

.modal-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-image-zoom {
  position: absolute;
  z-index: 3;
  width: 380px;
  height: 380px;
  border: 1px solid #1a1a1a;
  background-color: #ffffff;
  background-repeat: no-repeat;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.modal-image-zoom.active {
  opacity: 1;
  transform: scale(1);
}

.modal-info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.modal-title {
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.modal-price {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.modal-package {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 8px;
}

.modal-description {
  font-size: 16px;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 8px;
}

.modal-meta {
  font-size: 16px;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 8px;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-color-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #000000;
  margin-bottom: 8px;
}

.modal-color-selected-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.modal-color-selected-label {
  font-size: 16px;
  color: #000000;
}

.modal-label {
  font-weight: 600;
}

.modal-colors {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal-color-option {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.modal-color-option:hover,
.modal-color-option:focus-visible,
.modal-color-option.preview {
  transform: scale(1.1);
  border-color: #1a1a1a;
  outline: none;
}

.modal-color-option.active {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #1a1a1a;
}

.modal-color-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 20;
  max-width: 190px;
  padding: 8px 10px;
  border: 1px solid #1a1a1a;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.modal-color-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  transform: translate(-50%, -4px) rotate(45deg);
}

.modal-color-option:hover .modal-color-tooltip,
.modal-color-option:focus-visible .modal-color-tooltip,
.modal-color-option.preview .modal-color-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e5e5e5;
  width: fit-content;
  padding: 4px;
}

.quantity-button {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.quantity-button:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.quantity-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-input {
  min-width: 60px;
  max-width: 80px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border: none;
  background: none;
  padding: 0;
  color: #1a1a1a;
  font-family: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
}

.quantity-value {
  min-width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.modal-add-button {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.modal-add-button:hover {
  background-color: #333333;
}

/* Cart */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.cart-content {
  background-color: #ffffff;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e5e5e5;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.cart-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.cart-close:hover {
  opacity: 0.6;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666666;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-image-container {
  width: 80px;
  height: 80px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.cart-item-color {
  font-size: 13px;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-price {
  font-size: 14px;
  color: #1a1a1a;
  margin-top: 4px;
}

.cart-item-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.cart-item-controls {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.cart-quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e5e5;
  padding: 4px;
}

.cart-quantity-button {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.cart-quantity-button:hover {
  background-color: #f5f5f5;
}

.cart-quantity-value {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.cart-quantity-input {
  min-width: 50px;
  max-width: 80px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e5e5;
  padding: 4px 8px;
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-quantity-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.cart-remove-button {
  background: none;
  border: none;
  color: #666666;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.cart-remove-button:hover {
  color: #1a1a1a;
}

.cart-item-total {
  grid-column: 3;
  grid-row: 1 / 3;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  align-self: start;
}

.cart-item-warning {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #d32f2f;
  margin-top: 8px;
  padding: 8px;
  background-color: #ffebee;
  border: 1px solid #d32f2f;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-discount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-discount-label {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
}

.cart-discount-value {
  font-size: 14px;
  font-weight: 600;
  color: #008000;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-label {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
}

.cart-total-price {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.cart-minimum-info {
  padding: 8px 0;
}

.cart-minimum-text {
  font-size: 13px;
  color: #d32f2f;
  text-align: center;
}

.cart-checkout-button {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 4px;
}

.cart-checkout-button:hover:not(:disabled) {
  background-color: #333333;
}

.cart-checkout-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Checkout Form */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 1001;
  backdrop-filter: blur(4px);
}

.checkout-content {
  background-color: #ffffff;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e5e5e5;
  animation: slideInRight 0.3s ease-out;
  overflow-y: auto;
}

.checkout-header {
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 10;
  flex-shrink: 0;
}

.checkout-back-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #1a1a1a;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.checkout-back-button:hover {
  opacity: 0.6;
}

.checkout-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkout-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

.checkout-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.checkout-close:hover {
  opacity: 0.6;
}

.checkout-form {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.checkout-section {
  margin-bottom: 32px;
}

.checkout-section:last-of-type {
  margin-bottom: 24px;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  font-size: 15px;
  color: #1a1a1a;
  background-color: #ffffff;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.form-input.error,
.form-textarea.error {
  border-color: #d32f2f;
}

.form-error {
  display: block;
  font-size: 12px;
  color: #d32f2f;
  margin-top: 4px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border: 1px solid #e5e5e5;
  transition: border-color 0.2s;
}

.payment-option:hover {
  border-color: #1a1a1a;
}

.payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.payment-option span {
  font-size: 15px;
  color: #1a1a1a;
}

.checkout-footer {
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
}

.checkout-discount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-discount-label {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
}

.checkout-discount-value {
  font-size: 14px;
  font-weight: 600;
  color: #008000;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-total-label {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
}

.checkout-total-price {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-submit-button {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.checkout-submit-button:hover {
  background-color: #333333;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 90%;
  width: 100%;
  max-width: 400px;
}

.toast {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toastSlideIn 0.3s ease-out;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.toast.success {
  background-color: #1a1a1a;
}

.toast.info {
  background-color: #1a1a1a;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: toastFadeOut 0.3s ease-out forwards;
}

@keyframes toastFadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  
  .filters-container {
    width: 100%;
    order: -1;
  }
  
  .products-container {
    order: 2;
  }

  .filters {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .shop-site-header .logo {
    font-size: 24px;
  }

  .shop-header-actions {
    gap: 8px;
    margin-left: 8px;
  }

  .login-button,
  .logout-button {
    padding: 7px 14px;
    font-size: 13px;
  }

  .cart-button {
    width: 38px;
    height: 38px;
  }

  .navbar-mobile ul {
    top: 50px;
    right: 15px;
    bottom: 15px;
    left: 15px;
  }

  .mobile-nav-toggle {
    font-size: 26px;
  }

  .main-content {
    padding: 130px 10px 20px;
  }
  
  .content-wrapper {
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-info {
    padding: 16px;
  }
  
  .product-name {
    font-size: 14px;
  }
  
  .product-category {
    font-size: 11px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .product-add-button {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    bottom: 12px;
    padding: 8px 16px;
    font-size: 12px;
  }

  .filters {
    padding: 20px;
  }
  
  .filter-options {
    gap: 6px;
  }
  
  .filter-option {
    padding: 6px 12px;
    font-size: 13px;
  }

  .pagination {
    margin-top: 32px;
    padding: 20px 0;
  }
  
  .pagination-button,
  .pagination-page {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .pagination-ellipsis {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .modal-image-container {
    min-height: 50vh;
    height: 50vh;
  }
  
  .modal-info {
    padding: 32px 24px;
    gap: 24px;
    max-width: 100%;
  }
  
  .modal-title {
    font-size: 28px;
  }
  
  .modal-price {
    font-size: 24px;
  }
  
  .modal-description {
    font-size: 15px;
  }

  .cart-content {
    max-width: 100%;
  }
  
  .cart-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .cart-item-image-container {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-total {
    grid-column: 2;
    grid-row: 3;
    text-align: left;
    margin-top: 8px;
  }

  .checkout-content {
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }

}

/* Quantity Choice Modal */
.quantity-choice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  backdrop-filter: blur(4px);
}

.quantity-choice-content {
  background-color: #ffffff;
  max-width: 400px;
  width: 90%;
  border: 1px solid #e5e5e5;
  padding: 32px;
  animation: slideIn 0.3s ease-out;
}

.quantity-choice-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.quantity-choice-message {
  font-size: 14px;
  color: #666666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.quantity-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quantity-choice-button {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.quantity-choice-button:hover {
  background-color: #333333;
}

.quantity-choice-button.quantity-choice-cancel {
  background-color: #f5f5f5;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
}

.quantity-choice-button.quantity-choice-cancel:hover {
  background-color: #e5e5e5;
}
