/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #F54927;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F54927;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Category Pills */
.category-pill {
    padding: 0.5rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
}

.category-pill:hover {
    border-color: #535353b8;
    color: #3d3d3e;
    transform: translateY(-2px);
}

.category-pill.active {
    background: #f0eff4;
    color: #3d3d3e;
    border-color: transparent;
}

/* Hero Slider */
/* Hero Slider - Moved to Swiper */
.swiper-pagination-bullet-active {
    background: #ffffff !important;
    width: 24px !important;
    border-radius: 4px !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #F54927;
}

/* Category Boxes */
.category-box {
    cursor: pointer;
    transition: transform 0.3s;
}

.category-box:hover {
    transform: translateY(-8px);
}

.category-box-image {
    height: 200px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.category-box:hover .category-box-image {
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.category-box-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Product Cards */
/* Modern Product Card with Animated Borders */
.product-card-modern {
    background: white;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
}

.product-card-modern::before,
.product-card-modern::after,
.product-card-modern .border-primary-anim::before,
.product-card-modern .border-primary-anim::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Black border: Bottom-Left -> Up -> Right */
.product-card-modern::before {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #000;
    transform: scaleY(0);
    transform-origin: bottom;
}

.product-card-modern::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition-delay: 0.3s;
}

/* Primary border: Bottom-Left -> Right -> Up */
.product-card-modern .border-primary-anim::before {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F54927;
    transform: scaleX(0);
    transform-origin: left;
}

.product-card-modern .border-primary-anim::after {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #F54927;
    transform: scaleY(0);
    transform-origin: bottom;
    transition-delay: 0.3s;
}

.product-card-modern:hover::before {
    transform: scaleY(1);
}

.product-card-modern:hover::after {
    transform: scaleX(1);
}

.product-card-modern:hover .border-primary-anim::before {
    transform: scaleX(1);
}

.product-card-modern:hover .border-primary-anim::after {
    transform: scaleY(1);
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hover Content Animations */
.hover-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn {
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .quick-view-btn {
    opacity: 1;
    transform: translate(-50%, -10px);
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 5;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-price {
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9333ea;
}

.old-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-rating {
    color: #fbbf24;
    font-size: 0.875rem;
}

/* Advanced Product Cards */
.product-card-advanced {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

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

.product-image-advanced {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #9333ea;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.product-card-advanced:hover .quick-view-btn {
    bottom: 10px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
}

.wishlist-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(to right, #9333ea, #ec4899);
    color: white;
    padding: 0.625rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    transform: scale(1.02);
}

/* Banners */
.banner-item {
    transition: transform 0.3s;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.product-modal-image {
    width: 100%;
    height: 400px;
}

.size-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.size-btn:hover {
    border-color: #9333ea;
    color: #9333ea;
}

.size-btn.active {
    background: linear-gradient(to right, #9333ea, #ec4899);
    color: white;
    border-color: transparent;
}

/* Footer */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background: linear-gradient(to right, #9333ea, #ec4899);
    transform: translateY(-3px);
}

.footer-link {
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ec4899;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .category-box-image {
        height: 150px;
    }
}

/* Product Card Hover Animations */
.product-card-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card-animated::before,
.product-card-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Black border animation (left → top → right) */
.product-card-animated::before {
    border: 2px solid transparent;
    border-left-color: #000;
    border-top-color: #000;
    clip-path: inset(0 100% 100% 0);
    transition: clip-path 0.6s ease;
}

/* Primary color border animation (bottom → right) */
.product-card-animated::after {
    border: 2px solid transparent;
    border-bottom-color: #8B5CF6;
    border-right-color: #8B5CF6;
    clip-path: inset(100% 0 0 100%);
    transition: clip-path 0.6s ease 0.2s;
}

.product-card-animated:hover::before {
    clip-path: inset(0 0 0 0);
}

.product-card-animated:hover::after {
    clip-path: inset(0 0 0 0);
}

/* Product image overlay */
.product-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.product-card-animated:hover .product-image-overlay {
    transform: translateY(0);
}

/* Action buttons */
.product-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
    z-index: 3;
}

.product-card-animated:hover .product-actions {
    opacity: 1;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.quick-view-btn:hover {
    background: #8B5CF6;
    color: white;
    transform: scale(1.05);
}

.add-cart-btn {
    background: #8B5CF6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart-btn:hover {
    background: #7C3AED;
    transform: scale(1.05);
}

.buy-now-btn {
    background: #000;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-now-btn:hover {
    background: #333;
    transform: scale(1.05);
}