
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal overlay & shell */
.shopify-quick-shop-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.8);
      animation: fadeIn 0.3s;
}
.shopify-quick-shop-modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
}
.shopify-modal-content {
      background-color: #fff;
      padding: 0;
      border-radius: 12px;
      max-width: var(--cf-max-screen-width);
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      animation: slideUp 0.3s;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.shopify-modal-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      padding: 40px;
}

/* Close button */
.shopify-modal-close {
      position: absolute;
      right: 20px;
      top: 20px;
      font-size: 28px;
      font-weight: bold;
      color: #333;
      cursor: pointer;
      z-index: 10;
      background: #fff;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: background 0.2s;
}
.shopify-modal-close:hover {
      background: #f5f5f5;
}

/* Image gallery */
.shopify-modal-images img {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 10px;
}

/* Typography */
.shopify-modal-price {
     margin-bottom: 20px;
}

/* Variant + actions */
.shopify-modal-add-to-cart {
      width: 100%;
      padding: 16px;
      background: #000;
      color: #fff;
      border: none;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      border-radius: 6px;
      margin-bottom: 15px;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: background 0.3s;
}
.shopify-modal-add-to-cart:hover {
      background: #333;
}
.shopify-modal-add-to-cart:disabled {
      background: #ccc;
      cursor: not-allowed;
}

/* Status */
.sssr-modal-status {
      padding: 60px;
      text-align: center;
}

/* Quick Shop button on card */
.product-card {
      position: relative;
}
.product-card .quick-shop-button {
      all: unset;
      box-sizing: border-box;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 3;
      padding: 6px 12px;
      background: #fff;
      color: #000;
      border: 2px solid #000;
      border-radius: 4px;
      font-size: var(--cf-text-s);
      font-family: inherit;
      font-weight: 600;
      letter-spacing: 0;
      text-transform: none;
      white-space: nowrap;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.25s ease;
}
.product-card:hover .quick-shop-button {
      opacity: 1;
}
.product-card .quick-shop-button:hover {
      background: #000;
      color: #fff;
}

/* Other */
.quick-shop-button:hover {
      background: #000;
      color: #fff;
}
.collection-title {
      margin-bottom: 1rem;
}
.collection-description {
      margin-bottom: 2rem;
}
.product-card-link {
      text-decoration: none;
      color: inherit;
      display: block;
}
.shopify-card-image {
      width: 100%;
      height: auto;
      border-radius: 8px;
      display: block;
}
.product-card-image {
      width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 1rem;
      display: block;
}
.product-card-title {
      margin-bottom: 0.5rem;
}
.product-card-price {
      text-align: center;
      margin: 0;
}
.shopify-modal-info h2 {
      /*font-size: var(--cf-title-xl);*/
      margin-bottom: 15px;
      color: #333;
}
.shopify-modal-description {
      margin-bottom: 25px;
      line-height: 1.8;
      color: #666;
      font-size: var(--cf-text-m);
}
.shopify-modal-variants {
      margin-bottom: 20px;
}
.shopify-modal-variants select {
      width: 100%;
      padding: 14px;
      font-size: 16px;
      border: 2px solid #ddd;
      border-radius: 6px;
      background: #fff;
      cursor: pointer;
      transition: border-color 0.2s;
}
.shopify-modal-variants select:hover {
      border-color: #000;
      outline: none;
}
.shopify-modal-variants select:focus {
      border-color: #000;
      outline: none;
}
.shopify-modal-view-full {
      display: block;
      text-align: center;
      color: #666;
      text-decoration: underline;
      font-size: 14px;
      transition: color 0.2s;
      font-size: var(--cf-title-m);
}
.shopify-modal-view-full:hover {
      color: #000;
}

/* Responsive */
@media (max-width: 767px) {
.product-card .quick-shop-button {
      opacity: 1;
}
}

@media (max-width: 768px) {
.shopify-modal-body {
      grid-template-columns: 1fr;
      padding: 20px;
      gap: 20px;
}
/*.shopify-modal-info h2 {
     font-size: 1.5rem;
}*/
}

@media (max-width: 480px) {
.shopify-products-grid {
     grid-template-columns: 1fr !important;
}
}
