/* Creations category pages (party-favors, weddings, corporate, holiday, custom).
   Copied 20261109 from creations.html's inline styles so the cards look identical; creations.html keeps its own copy. */
  /* Gallery Grid */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(107,33,168,.28);
    border-color: var(--primary);
  }

  .gallery-card__image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .gallery-card__icon {
    font-size: 80px;
    opacity: 0.9;
  }
  .gallery-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #1A1207;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
  }

  .gallery-card__content {
    padding: 24px;
  }
  .gallery-card__title {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    color: var(--orange);
    margin-bottom: 10px;
  }
  .gallery-card__desc {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .gallery-card__items {
    background: rgba(0,0,0,.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }
  .gallery-items-label {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .gallery-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .gallery-item:last-child {
    border-bottom: none;
  }
  .gallery-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .gallery-item__name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
  }
  .gallery-item__price {
    font-size: 13px;
    font-weight: 900;
    color: var(--price-green);
  }

  .gallery-card__placeholder {
    margin: 16px 0;
  }
  .item-placeholder {
    background: rgba(255,255,255,.02);
    border: 2px dashed rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
  }
  .item-placeholder__icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.3;
  }
  .item-placeholder__text {
    font-size: 12px;
    color: rgba(255,255,255,.3);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .item-placeholder__hint {
    font-size: 10px;
    color: rgba(255,255,255,.2);
    font-weight: 600;
    font-family: monospace;
  }

  /* Product Images Gallery */
  .gallery-card__images {
    margin: 16px 0;
  }
  .product-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
  }
  .product-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform .3s, filter .3s, box-shadow .3s;
    cursor: zoom-in;
    border-radius: 8px;
    position: relative;
  }
  .product-images img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }
  /* Single image - full width */
  .product-images:has(img:only-child) {
    grid-template-columns: 1fr;
  }
  .product-images:has(img:only-child) img {
    height: 200px;
  }
  /* Two images - side by side */
  .product-images:has(img:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
  }


  /* Button Utility */
  .btn--sm {
    padding: 10px 20px;
    font-size: 13px;
  }
  .btn--full {
    width: 100%;
    text-align: center;
  }

  /* Image Lightbox */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
  }
  .lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.3s forwards;
  }
  @keyframes lightboxFadeIn {
    to { opacity: 1; }
  }
  .lightbox__content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
  }
  .lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    cursor: default;
  }
  .lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.8);
    transition: all 0.3s;
  }
  .lightbox__close:hover {
    background: var(--orange);
    transform: rotate(90deg);
  }
  .lightbox__hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }


  @media (max-width: 900px) {
    .gallery-grid { padding: 0 20px; grid-template-columns: 1fr; }
    .cat-links { padding: 0 20px; }
  }

  /* Category page layout */
  .cat-wrap { max-width: 780px; margin: 0 auto; }
  .cat-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; font-weight: 800; }
  .cat-links a { color: var(--orange); }
  .cat-links a:hover, .cat-links a:focus-visible { color: var(--gold); }
