/* Custom styles that Tailwind cannot handle easily */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Complex pseudo-elements with content */
.new-arrival-info::before {
    content: '10% OFF';
    position: absolute;
    top: -12px;
    left: 12px;
    background: #dc3545;
    color: #ffffff;
    font-family: 'Playfair Display', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favourite-decorative-line .decorative-symbol::before,
.favourite-decorative-line .decorative-symbol::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: #ff9900;
}

.favourite-decorative-line .decorative-symbol::before {
    right: 100%;
}

.favourite-decorative-line .decorative-symbol::after {
    left: 100%;
}

/* Complex decorative pattern for video section */
.video-decorative-pattern {
    background-image:
        radial-gradient(ellipse 15px 8px at 80% 15%, rgba(255, 215, 0, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 12px 6px at 75% 25%, rgba(255, 223, 0, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 18px 10px at 85% 35%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 14px 7px at 70% 45%, rgba(255, 223, 0, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 16px 9px at 88% 55%, rgba(255, 215, 0, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 13px 6px at 78% 65%, rgba(255, 223, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle 4px at 82% 20%, rgba(255, 215, 0, 0.5) 0%, transparent 70%),
        radial-gradient(circle 3px at 77% 40%, rgba(255, 223, 0, 0.45) 0%, transparent 70%),
        radial-gradient(circle 5px at 86% 50%, rgba(255, 215, 0, 0.4) 0%, transparent 70%),
        radial-gradient(circle 3.5px at 72% 60%, rgba(255, 223, 0, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 10px 5px at 83% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 8px 4px at 79% 50%, rgba(255, 223, 0, 0.35) 0%, transparent 50%);
    background-size: 100% 100%;
    background-position: top right;
    background-repeat: no-repeat;
    border-radius: 0 8px 0 0;
}

.video-decorative-pattern::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 250px;
    height: 250px;
    background-image:
        radial-gradient(ellipse 20px 12px at 75% 20%, rgba(255, 200, 0, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 14px 8px at 88% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 16px 9px at 72% 50%, rgba(255, 200, 0, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 18px 10px at 85% 60%, rgba(255, 215, 0, 0.3) 0%, transparent 60%);
    background-size: 100% 100%;
    background-position: top right;
    background-repeat: no-repeat;
}

/* Hide CSS pattern when image is used */
.video-decorative-pattern:has(.video-pattern-image) {
    background-image: none;
}

.video-decorative-pattern:has(.video-pattern-image)::before {
    display: none;
}

/* Swiper Navigation Customization */
.swiper-button-prev.favourite-nav-prev,
.swiper-button-next.favourite-nav-next {
    width: 50px !important;
    height: 50px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    color: #006a71 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 20 !important;
}

.swiper-button-prev.favourite-nav-prev:after,
.swiper-button-next.favourite-nav-next:after {
    font-size: 20px !important;
    font-weight: bold;
    font-family: swiper-icons;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
}

.swiper-button-prev.favourite-nav-prev:hover,
.swiper-button-next.favourite-nav-next:hover {
    background-color: #ff9900 !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1);
    border-color: #ff9900;
}

.swiper-button-prev.favourite-nav-prev {
    left: 10px !important;
}

.swiper-button-next.favourite-nav-next {
    right: 10px !important;
}

/* Swiper Pagination Customization */
.favourite-pagination-dots {
    bottom: 0 !important;
}

.favourite-pagination-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: transparent;
    border: 1px solid #999;
    opacity: 1;
    margin: 0 5px;
}

.favourite-pagination-dots .swiper-pagination-bullet-active {
    background: #ff9900;
    border-color: #ff9900;
    width: 30px;
    border-radius: 4px;
}

/* Categories Swiper */
.categories-swiper .swiper-wrapper {
    align-items: center;
    transition-timing-function: linear !important;
    will-change: transform;
}

/* Collection Swiper */
.collection-swiper {
    overflow: visible !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    min-height: 700px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    position: relative !important;
}

.collection-swiper .swiper-wrapper {
    align-items: center;
    height: 650px !important;
    display: flex !important;
    position: relative !important;
}

.collection-overlay {
    transform: translateY(0) !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* All slides with equal size */
.collection-swiper .swiper-slide {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
    opacity: 0.6;
    overflow: visible !important;
    height: auto;
}

/* Make center slide pop up */
.collection-swiper .swiper-slide-active {
    transform: scale(1.15) !important;
    opacity: 1;
    z-index: 10;
}

.collection-swiper .swiper-slide-active .collection-item {
    box-shadow: 0 20px 40px rgba(255, 153, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    border: 4px solid #ff9900;
}

.collection-swiper .swiper-slide-active .collection-overlay {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    pointer-events: auto;
}

/* Hover effects - only on active slide */
.collection-swiper .swiper-slide-active .collection-item:hover {
    transform: translateY(-10px);
}

.collection-swiper .swiper-slide-active .collection-item:hover img {
    transform: scale(1.05);
}

.collection-swiper .swiper-slide-active .collection-item:hover .collection-description {
    opacity: 1 !important;
}

.collection-swiper .swiper-slide-active .collection-item:hover .collection-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Collection Navigation */
.swiper-button-prev.collection-nav-prev,
.swiper-button-next.collection-nav-next {
    width: 50px !important;
    height: 50px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
    border: 1px solid #e0e0e0 !important;
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10 !important;
}

.swiper-button-prev.collection-nav-prev:after,
.swiper-button-next.collection-nav-next:after {
    font-size: 18px !important;
    font-weight: bold;
    font-family: swiper-icons;
}

.swiper-button-prev.collection-nav-prev {
    left: 10px !important;
}

.swiper-button-next.collection-nav-next {
    right: 10px !important;
}

/* Collection Pagination */
.collection-pagination {
    bottom: 0 !important;
}

.collection-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    border: 1px solid #999;
    opacity: 1;
    margin: 0 5px;
}

.collection-pagination .swiper-pagination-bullet-active {
    background: #ff9900;
    border-color: #ff9900;
    width: 8px;
    height: 8px;
}

/* Brass Idols product card hover image swap */
.product-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.product-card-image-wrapper .product-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card-image-main {
    opacity: 1;
    z-index: 1;
}

.product-card-image-hover {
    opacity: 0;
    z-index: 2;
    transform: scale(1.05);
}

.product-card:hover .product-card-image-main {
    opacity: 0;
    transform: scale(1.02);
}

.product-card:hover .product-card-image-hover {
    opacity: 1;
    transform: scale(1);
}

/* Favourite Section Layout Fixes */
.favourite-left {
    min-height: 400px;
}

.favourite-left>div {
    min-height: 500px;
}

/* Make left and right favourite images specific heights */
.favourite-left img {
    width: 100%;
    height: 600px;
    /* show full product without cropping */
    border-radius: 10px;
}

.fav-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fav-product-image {
    width: 100%;
    height: 380px !important;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .favourite-left>div {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .favourite-layout {
        flex-direction: column;
        padding: 0;
        gap: 20px;
    }

    .favourite-left,
    .favourite-right {
        max-width: 100%;
        width: 100%;
    }

    .favourite-left {
        height: 400px;
    }

    .favourite-nav-prev,
    .favourite-nav-next {
        display: none;
    }
}

@media (max-width: 991px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .newsletter-center {
        text-align: center;
        padding-left: 0;
    }

    .newsletter-right-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .newsletter-inline-form {
        width: 100%;
        justify-content: center;
    }

    .limited-offers-grid {
        grid-template-columns: 1fr;
    }

    .limited-offer-card {
        height: 220px;
    }

    .limited-offer-title {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .video-wrapper {
        flex-direction: column;
    }

    .video-left,
    .video-right {
        max-width: 100%;
    }

    .video-right {
        min-height: auto;
        padding: 40px 30px;
    }

    .video-title {
        font-size: 32px;
    }

    .video-description {
        font-size: 16px;
    }
}