
.wizard-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.step-tracker {
  position: relative;
  padding: 20px 0;
  width: 100%;
}

/* Vertical connecting lines */
.step-connector {
  position: absolute;
  left: 29px;
  width: 2px;
  background: #ddd;
  z-index: 3;
}

.step-connector.top {
    top: 60px;
    height: 52px;
}

.step-connector.bottom {
    top: 140px;
    height: 52px;
}

.step {
    position: relative;
    width: 95%; /* Or use a max-width */
    padding: 10px 16px 10px 50px; /* Adjust padding */
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #c4c4c4;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 1rem;
}

.step:first-child {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.step:hover {
  border-color: var(--primary);
}

.step.active {
  border-color: var(--primary);
  background-color: #2a79f8;
  color: white;
  animation: pulse-border 1s;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(42, 121, 248, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(42, 121, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 121, 248, 0); }
}

/* Circle indicator */
.step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
    box-sizing: border-box;
    z-index: 3;
}

.step:first-child::before {
  background: var(--primary);
  border-color: white;
}

.step.active::before {
  background: white;
  border-color: white;
}

.step.completed::before {
  background: var(--success);
  border-color: var(--success);
}

.step-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: #3333337a;
}

.step:first-child .step-title,
.step:first-child .step-description {
  color: white;
}

.active .step-title {
  color: white;
}

.step-description {
  font-size: 13px;
  color: #666;
}

.step.active .step-description{
    color: white;
}

/* Off-canvas panel styling - UPDATED FOR CENTER POSITIONING */
.off-canvas {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  height: 100vh;
  background: #f9fafa;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  padding: 25px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
}

.off-canvas.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

#itemPanel{
  gap: 2rem;
}

.close-panel {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  z-index: 101;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Panel content styling */

.search{
    width: 100%;
}
.search {
    width: 100%;
    display: flex;
    align-content: center;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}
.search .cancel-btn {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search .cancel-btn:hover {
    background: darken(var(--primary), 5%);
}

.panel-content {
    flex: 1;
    width: 100%;
    overflow-y: auto;
}

.panel-footer {
    /* padding: 16px 20px; */
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-content: space-between;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#pricePanel .panel-footer {
    flex-direction: column;
    align-items: stretch;

}

#pricePanel .cancel-btn {
    width: 100%;

}

.cancel-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 50%;
    transition: background-color 0.2s;
    color: #3333339c;
    border: 1px solid #5555558f;
    background-color: #fff;
}

.cancel-btn:hover {
  border-color: #1a6de8;
  color: #1a6de8;
}

.cancel-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.wizard-footer{
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

/* arousel-indicator... */

.carousel-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.arrow {
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 24px;
    font-weight: bold;
    user-select: none;
    transition: color 0.2s ease;
}

.arrow:hover {
    color: #4a6cf7;
}

.dots {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 16px;
    height: 16px;
    background-color: #55555547;
}

.dot:not(.active):hover {
    background-color: #bbb;
    transform: scale(1.2);
}


.done-btn {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.done-btn:hover {
    background-color: #1d4ed8;
}

.done-btn:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}


.panel-content {
  flex: 1;
  padding-right: 1rem;
}

.panel-footer {
  /* margin-top: auto;
  padding-top: 20px; */
}

.catalogue-grid{
    overflow-y: auto;
}

.item-option {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.item-option:hover {
  border-color: var(--primary);
}

.item-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}



.input-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

.input-field:focus {
  border-color: var(--primary);
  outline: none;
}

.input-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.error-message {
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

/* Upload area */
.upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

.artwork-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.artwork-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #eee;
}

.done-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.done-btn:hover {
  background-color: #1a6de8;
}

.done-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.file-info {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.file-error {
  color: var(--error);
}

.price-display {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
  display: none;
}

.file-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
}

.thumbnail-container {
  position: relative;
  display: inline-block;
}

.selection-summary {
  font-size: 12px;
  color: #666;
  font-style: italic;
  display: none;
}

/*     
    .container {
        max-width: 1200px;
        margin: 0 auto;
    } */
    
    .header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .header h1 {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #1e293b;
    }
    
    .header p {
        color: var(--text-light);
        font-size: 14px;
    }
    
    .search-bar {
        position: relative;
        width: 100%;
        padding: 0;
    }
    
    .search-bar input {
        width: 100%;
        border: 1px solid transparent;
        border-radius: 8px;
        font-size: 15px;
        background-color: #ebebec;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        padding: 12px 20px;
        padding-left: 50px;
    }
    
    .search-bar input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    .search-bar::before {
        content: "";
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' /%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .catalogue-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 16px;
        justify-items: stretch;
        align-items: stretch;
        justify-content: space-around;
    }
    .catalogue-grid-container {
        height: 100%;
        /* overflow-y: auto; */
        width: 100%;
    }

    .catalogue-item {
        background: white;
        border-radius: 2px;
        overflow: hidden;
        border: 1px solid var(--border);
        transition: var(--transition);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        box-shadow: var(--shadow-sm);
    }
    
    .catalogue-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .catalogue-item.selected {
        border: 2px solid var(--primary);
        background-color: var(--primary-light);
    }
    
    .item-image-container {
        position: relative;
        padding-top: 100%; /* Square aspect ratio */
        overflow: hidden;
    }
    
    .item-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .catalogue-item:hover .item-image {
        transform: scale(1.03);
    }
    
    .item-info {
        padding: 12px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .item-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 4px;
    }
    
    .item-price {
        font-size: 10px;
        color: var(--text-light)#64748b;
        margin-top: auto;
        font-weight: 500;
    }
    
    .no-results {
        text-align: center;
        grid-column: 1 / -1;
        padding: 40px 20px;
        color: var(--text-light);
    }
    
    .no-results img {
        width: 80px;
        opacity: 0.7;
        margin-bottom: 16px;
    }
    
/* Previous CSS remains the same, add these new styles at the end */

/* New styles for multiple trackers */
.trackers-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 220px;
}

.step-tracker {
    position: relative;
    padding: 20px 0 0 0;
    width: 100%;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.step-tracker.slide-in {
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.carousel-indicator {
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.carousel-indicator.visible {
  display: flex;
}


/* Add this to enable smooth panning */
.trackers-container {
  touch-action: pan-y; /* Allow vertical scrolling but handle horizontal pan ourselves */
  user-select: none; /* Prevent text selection during swipe */
}

.step-tracker {
  /* Ensure trackers can be dragged */
  pointer-events: auto;
}

/* Update the step connector positioning */
.step-connector.top {
  top: 60px;
  height: 40px;
}

.step-connector.bottom {
  top: 128px;
  height: 40px;
}

/* Make sure the add more button is properly aligned */
.wizard-footer {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
  width: 95%;
}

.addmore-btn {
  display: flex;
  flex-direction: row;
  gap: 5px;
  color: #1a6de8;
  border: 1px solid #1a6de8;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
  background-color: transparent;
  align-items: center;
  justify-content: center;
}

.addmore-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}


.addmore-btn:disabled {
    color: #3333337a;
    border: 1px solid #55555547;
    cursor: not-allowed;
    background-color: #fff;
}


#priceBtn {
  width: 60%;
}

#priceBtn {
    width: 60%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#addmore-btn {
  width: 40%;
}

#downloadInvoiceButton{
  background-color: white;
  border: 2px solid #1a6de8;
  color: #1a6de8;
  width: 100%;
  display: none;
}


/* Animation styles */
@keyframes slideOutLeft {
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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

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

/* Tracker container and items */


.trackers-container .step-tracker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* First tracker should be visible by default */
.trackers-container .step-tracker:first-child {
  position: relative;
  opacity: 1;
  transform: none;
}


.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    aspect-ratio: 0.9;
    overflow: hidden;
}



@media (min-width: 640px) {

    .header h1 {
        font-size: 24px;
    }
    
    .catalogue-grid {
        /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
        gap: 20px;
    }

    .addmore-btn {
      width: 40%;
    }


    .wizard-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 20px;
    }

    .step-title {
      font-size: 18px;
    }

    .step{
      margin-bottom: 12px;
    }
   

}

@media (min-width: 768px) {


    
    .header {
        margin-bottom: 32px;
    }
    
    .header h1 {
        font-size: 26px;
    }
    
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }

    #downloadInvoiceButton{
      background-color: white;
      border: 2px solid #1a6de8;
      color: #1a6de8;
      width: 60%;
    }

}

@media (max-width:640px) {
  .catalogue-grid {
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width:800px) {
  .catalogue-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (min-width:360px) {
  .catalogue-grid {
      grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  }
  .product-card {
    aspect-ratio: 0.9;
}
}

.input-group-container{
  display: flex;
  flex-direction: column;
}
.input-group-info{
  background-color: #55555547;
  font-size: 14px;
  padding: 1rem;
  border-radius: 4px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.details-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-checkbox {
  margin-right: 8px;
}

select.input-field {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
  background-color: white;
}

select.input-field:focus {
  border-color: var(--primary);
  outline: none;
}






/* Price Panel Styles */
#pricePanel .panel-content {
  padding: 0;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.price-summary-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-item {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;

  background-color: #33333314;
  border-radius: 4px;
}

.price-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.price-item-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  flex: 1;
}

.price-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.price-item-details {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.price-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-item-quantity {
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.price-item-remove {
  color: #ff4444;
  background: none;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 5px 0;
  cursor: pointer;
}

.price-item-remove svg {
  margin-right: 5px;
}

.price-total-container {
    padding: 15px;
    background: #f9f9f9;
    margin-top: 10px;
    border-top: 1px solid #eee;
    border-radius: 6px;
}

.price-total-row.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

.price-action{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-action a{
  width: 100%;
}

.panel-footer .primary-btn {
  background-color: var(--primary);
  color: white;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
}

#download-invoice {
    width: 100%;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width:780px) {
  .price-action{
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  #download-invoice{
  width: 40%;
}

}



/* authorization */

/* Auth Panel Styles */

/* Auth Panel Styles */
#itemPanel .auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255, 255, 255);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

#itemPanel .auth-overlay.visible {
  opacity: 1;
  visibility: visible;
}

#itemPanel .auth-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

#itemPanel .auth-overlay.visible .auth-container {
  transform: translateY(0);
  opacity: 1;
}

/* Disable scroll when auth is visible */
#itemPanel.auth-visible {
  overflow: hidden;
}

.auth-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.auth-header h3 {
  margin: 0 0 8px 0;
  color: #333;
}

.auth-header p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 15px;
}

.auth-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-btn:focus{
  border: 2px solid #1a6de8;
}

.login-btn {
  background: var(--primary);
  color: white;
}

.register-btn {
  background: transparent;
  color: #1a6de8;
}

.google-btn {
  background: #4285F4;
  color: white;
}

.auth-skip {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.auth-form .input-group {
  text-align: left;
}

.auth-primary-btn{
  min-height: 52px;
}
.auth-primary-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.auth-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ababab;
    border-radius: 6px;
    font-size: 14px;
}

.auth-back {
    background: none;
    border: 2px solid #1a6de8;
    color: #1a6de8;
    cursor: pointer;
    margin-top: 10px;
    background-color: transparent;
    padding: 10px;
    border-radius: 4px;
    max-width: 40%;
}

.nsm7Bb-HzV7m-LgbsSe {
    border: none !important;
    background-color: transparent !important;
}
.nsm7Bb-HzV7m-LgbsSe:hover {
    border: none !important;
    background-color: transparent !important;
}

.S9gUrf-YoZ4jf, .S9gUrf-YoZ4jf * {
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.L6cTce{
  display: none !important;
}
























.catalogue-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); */
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
}

/* Better responsive behavior */
@media (min-width: 640px) {
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}














.catalogue-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.catalogue-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.catalogue-item.selected {
    border: 2px solid var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.catalogue-item.selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.item-image-container {
    position: relative;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
}

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

.catalogue-item:hover .item-image {
    transform: scale(1.05);
}

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

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.item-category {
    font-size: 12px;
    color: #666;
    margin: 0;
}
















/* Loading skeleton */
.catalogue-item.loading .item-image-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.catalogue-item.loading .item-info {
    padding: 12px;
}

.catalogue-item.loading .item-title,
.catalogue-item.loading .item-price {
    height: 16px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.catalogue-item.loading .item-price {
    width: 60px;
    height: 14px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


















.catalogue-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.catalogue-empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.catalogue-empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.catalogue-empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}







.search-container {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-button:hover,
.filter-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}



.catalogue-grid-container {
    will-change: transform;
    /* contain: layout; */
}

.catalogue-item {
    will-change: transform;
    backface-visibility: hidden;
}

/* Virtual scrolling for large lists */
.catalogue-grid.virtual-scroll {
    position: relative;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.virtual-item {
    position: absolute;
    width: calc(25% - 16px);
    transition: opacity 0.3s ease;
}


.catalogue-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.catalogue-item:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .catalogue-item {
        border: 2px solid;
    }
    
    .catalogue-item.selected {
        border: 3px solid;
    }
}