:root {
  --color-primary: #1A2F22;
  --color-secondary: #D4AF37;
  --color-background: #F6F4F0;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-white: #FFFFFF;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.santanta-shop-wrapper {
  margin: var(--spacing-md) 0;
}

.santanta-shop-wrapper p {
  margin-bottom: 0;
}

.santanta-shop-wrapper .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.santanta-shop-wrapper .shop-card {
    text-align: center;
    transition: var(--transition-smooth);
}

.santanta-shop-wrapper .shop-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fff;
}

.santanta-shop-wrapper .shop-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.santanta-shop-wrapper .shop-card:hover .shop-image-wrapper img {
    transform: scale(1.05);
}

.santanta-shop-wrapper .shop-add-to-cart {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    text-decoration: none;
    z-index: 10;
}

.santanta-shop-wrapper .shop-card:hover .shop-add-to-cart {
    bottom: 0;
    opacity: 1;
}

.santanta-shop-wrapper .shop-add-to-cart:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.santanta-shop-wrapper .shop-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0;
}

.santanta-shop-wrapper .shop-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.santanta-shop-wrapper .shop-info h3 a:hover {
    color: var(--color-secondary);
}

.santanta-shop-wrapper .shop-info p.category {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.santanta-shop-wrapper .shop-info .price {
    font-size: 1.1rem;
    color: var(--color-text);
}

.santanta-shop-wrapper .shop-info .price del {
    color: var(--color-text-light);
    margin-right: 5px;
    font-size: 0.9em;
    opacity: 0.7;
}

.santanta-shop-wrapper .shop-info .price ins {
    text-decoration: none;
    color: var(--color-text);
}

/* Pagination (from journal.html) */
.santanta-shop-wrapper .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 1.2rem;
}

.santanta-shop-wrapper .pagination a, 
.santanta-shop-wrapper .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
    border-radius: 50%;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
}

.santanta-shop-wrapper .pagination a.page-numbers:not(.prev):not(.next):hover {
    color: var(--color-primary);
    background-color: rgba(0,0,0,0.03);
}

.santanta-shop-wrapper .pagination span.current {
    color: var(--color-primary);
    border: 1px solid var(--color-secondary);
    font-style: italic;
    background-color: transparent;
}

.santanta-shop-wrapper .pagination a.prev, 
.santanta-shop-wrapper .pagination a.next {
    width: auto;
    border-radius: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.santanta-shop-wrapper .pagination a.prev:hover, 
.santanta-shop-wrapper .pagination a.next:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

/* Animations */
.santanta-shop-wrapper .fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* delays for grid items */
.santanta-shop-wrapper .shop-card:nth-child(2n) {
    animation-delay: 0.1s;
}
.santanta-shop-wrapper .shop-card:nth-child(3n) {
    animation-delay: 0.2s;
}

@media (max-width: 768px) {
    .santanta-shop-wrapper .shop-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-sm);
    }
    .santanta-shop-wrapper .shop-image-wrapper {
        border-radius: 8px;
    }
}
