/* Minimal custom styles for Aurelia Atelier site */
/* Ensure featured products are visible even when AOS sets initial hidden styles */
#featured-products .aos-init,
#featured-products .aos-animate,
#featured-products .aos-animate.in-view {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Utility: make sure product-card is visible and clickable */
.product-card {
  z-index: 30;
}

/* Small visual polishing for buttons inside cards */
.product-card .btn-primary {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* End of custom overrides */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-primary {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: #C9A24B;
    color: white;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 300ms;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: rgba(201, 162, 75, 0.9);
    box-shadow: 0 10px 15px -3px rgba(201, 162, 75, 0.3), 0 4px 6px -2px rgba(201, 162, 75, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border: 2px solid #111317;
    color: #111317;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 300ms;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #111317;
    color: white;
    transform: translateY(-2px);
}

.btn-ghost {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: #111317;
    font-weight: 500;
    transition: color 300ms;
    display: inline-block;
    text-decoration: none;
}

.btn-ghost:hover {
    color: #C9A24B;
}

.product-card {
    cursor: pointer;
}

.product-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.collection-card {
    display: block;
}

.sparkle-overlay {
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(201, 162, 75, 0.3), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(201, 162, 75, 0.2), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(201, 162, 75, 0.2), transparent);
    background-size: 200px 200px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.parallax-bg {
    transition: transform 0.1s ease-out;
}

@media (hover: hover) {
    .product-card:hover .quick-add {
        transform: translateY(0);
    }
}

.swiper-button-next,
.swiper-button-prev {
    color: #C9A24B;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #C9A24B;
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FBF9F6;
}

::-webkit-scrollbar-thumb {
    background: #C9A24B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B89240;
}

.price-slider {
    width: 100%;
    height: 0.5rem;
    background-color: #E5E7EB;
    border-radius: 0.5rem;
    appearance: none;
    cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
    appearance: none;
    width: 1rem;
    height: 1rem;
    background-color: #C9A24B;
    border-radius: 9999px;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background-color: #C9A24B;
    border-radius: 9999px;
    cursor: pointer;
    border: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.gold-glow {
    box-shadow: 0 0 20px rgba(201, 162, 75, 0.3);
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

.filter-checkbox:checked {
    background-color: #C9A24B;
    border-color: #C9A24B;
}

.size-option.selected {
    background-color: #C9A24B;
    color: white;
    border-color: #C9A24B;
}

.metal-option.selected {
    background-color: #111317;
    color: white;
    border-color: #111317;
}

.badge {
    display: inline-block;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-gold {
    background-color: rgba(201, 162, 75, 0.1);
    color: #C9A24B;
    border: 1px solid rgba(201, 162, 75, 0.3);
}

.badge-limited {
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.badge-new {
    background-color: rgba(14, 165, 164, 0.1);
    color: #0EA5A4;
    border: 1px solid rgba(14, 165, 164, 0.3);
}

@media (max-width: 768px) {
    .sparkle-overlay {
        opacity: 0.3;
    }
}

.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom-container img {
    transition: transform 0.3s ease;
}

.image-zoom-container:hover img {
    transform: scale(1.5);
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    z-index: 50;
    transform: translateY(0);
    transition: transform 300ms;
}

.toast.show {
    transform: translateY(0);
}

.toast.hide {
    transform: translateY(100%);
}
