/* ===========================
   Label by Mahi — Custom CSS
   Discovering Elegance
   =========================== */

/* --- Base --- */
::selection {
    background-color: rgba(201, 169, 110, 0.3);
    color: #2D2D2D;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C9A96E;
    border-radius: 4px;
}

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

[x-cloak] { display: none !important; }

/* --- Product Card Image Swap --- */
.product-card .product-img-secondary {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-img-secondary {
    opacity: 1;
}

.product-card:hover .product-img-primary {
    opacity: 0;
}

.product-card .product-img-primary {
    transition: opacity 0.5s ease;
}

/* --- Product Card Hover Lift --- */
.product-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* --- Image Zoom on Hover --- */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* --- Gold Gradient Button --- */
.btn-gold {
    background: linear-gradient(135deg, #C9A96E 0%, #E8D5B0 50%, #C9A96E 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: #2D2D2D;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.35);
    transform: translateY(-1px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0ebe4 25%,
        #e8e0d6 50%,
        #f0ebe4 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

/* --- Marquee --- */
.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Divider with Diamond --- */
.divider-diamond {
    display: flex;
    align-items: center;
    gap: 16px;
}

.divider-diamond::before,
.divider-diamond::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A96E, transparent);
}

.divider-diamond .diamond {
    width: 8px;
    height: 8px;
    background: #C9A96E;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* --- Collection Card Overlay --- */
.collection-card {
    position: relative;
    overflow: hidden;
}

.collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    transition: opacity 0.4s ease;
}

.collection-card:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%);
}

.collection-card img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-card .collection-content {
    position: relative;
    z-index: 10;
}

/* --- Star Rating --- */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating .star {
    width: 16px;
    height: 16px;
    color: #E8D5B0;
}

.star-rating .star.filled {
    color: #C9A96E;
}

/* --- Hero Parallax --- */
.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll;
    }
}

/* --- Radio color swatches --- */
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: #C9A96E;
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.3);
}

/* --- Qty Input --- */
.qty-input {
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Price Display --- */
.price-original {
    text-decoration: line-through;
    opacity: 0.5;
}

/* --- Sticky Add to Cart Bar --- */
.sticky-cart-bar {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cart-bar.visible {
    transform: translateY(0);
}

/* --- Tab indicator --- */
.tab-active {
    position: relative;
}

.tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #C9A96E;
}

/* --- Input focus styles --- */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

/* --- Breadcrumb --- */
.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #C9A96E;
}

/* --- Swiper Custom Styles --- */
.swiper-button-prev,
.swiper-button-next {
    color: #C9A96E !important;
    background: rgba(255, 253, 247, 0.9);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: #C9A96E !important;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* --- Aspect Ratio for Product Images --- */
.aspect-product {
    aspect-ratio: 3/4;
}

/* --- Form Styles --- */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    background: #FFFDF7;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(45, 45, 45, 0.7);
}

/* --- Page Transition --- */
.page-enter {
    animation: fadeUp 0.4s ease-out;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-sale {
    background: #C9A96E;
    color: white;
}

.badge-new {
    background: #2D2D2D;
    color: white;
}

.badge-out {
    background: #e5e7eb;
    color: #6b7280;
}
