/* In House Modas - Main Stylesheet */

:root {
    --primary-color: #4a0063;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a004f;
    border-color: #3a004f;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section - Modern Design */
.hero-section {
    background: linear-gradient(135deg, #2d0040 0%, #4a0063 50%, #6b0087 100%);
    color: white;
    padding: 100px 0 120px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section.bg-primary.text-white.py-5.other {
    min-height: 10vh;
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -150px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -100px;
    animation-delay: 2s;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.badge-text {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    display: inline-block;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: white;
}

.text-gradient {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

/* Hero Buttons */
.hero-buttons {
    gap: 1rem;
}

.btn-hero-primary {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Hero Carousel Wrapper */
.hero-carousel-wrapper {
    position: relative;
    z-index: 2;
}

.hero-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-carousel .carousel-inner {
    border-radius: 20px;
}

.hero-carousel .carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Modern Product Cards */
.hero-product-card {
    background: #fff;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    height: 500px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-image-wrapper {
    position: relative;
    height: 60%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-product-card:hover .product-image {
    transform: scale(1.1);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-product-card:hover .product-overlay {
    opacity: 1;
}

.btn-product-view {
    background: white;
    color: #1f2937;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-product-view:hover {
    transform: scale(1.1);
    background: #f59e0b;
    color: white;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.sale-badge {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Product Info */
.product-info {
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.hero-product-title {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 20px;
}

.price-current {
    color: #059669;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.price-original {
    color: #9ca3af;
    font-size: 1rem;
    text-decoration: line-through;
    margin-top: 5px;
    display: block;
}

.btn-product-cta {
    background: linear-gradient(45deg, #4a0063, #3a004f);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 140px;
}

.btn-product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 0, 99, 0.3);
    color: white;
}

.btn-product-cta i {
    transition: transform 0.3s ease;
}

.btn-product-cta:hover i {
    transform: translateX(3px);
}

/* Modern Carousel Controls */
.hero-carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.carousel-control-prev.hero-carousel-control {
    left: 16px;
}

.carousel-control-next.hero-carousel-control {
    right: 16px;
}

.control-icon {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.hero-carousel-control:hover .control-icon {
    transform: scale(1.1);
}

/* Ensure carousel controls are properly positioned */
.hero-carousel-wrapper {
    position: relative;
    padding: 0 30px;
}

.hero-carousel-wrapper .hero-carousel {
    margin: 0;
}

/* Fix carousel control positioning */
@media (min-width: 769px) {
    .carousel-control-prev.hero-carousel-control {
        left: 16px;
    }

    .carousel-control-next.hero-carousel-control {
        right: 16px;
    }
}

/* Modern Carousel Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-indicator {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 0.6);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    border-radius: 3px;
    width: 0;
    transition: width 0.3s ease;
}

.hero-indicator.active .indicator-progress {
    width: 100%;
    animation: progress 5s linear infinite;
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Hero Fallback */
.hero-fallback {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.fallback-content {
    text-align: center;
    padding: 40px;
}

.fallback-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.fallback-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.fallback-text {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.hero-scroll-indicator:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-indicator:hover .scroll-text {
    color: rgba(255, 255, 255, 1);
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

/* Additional Modern Enhancements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.btn-hero-primary:focus,
.btn-hero-secondary:focus,
.btn-product-cta:focus,
.btn-product-view:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Loading animation for images */
.product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-image[src] {
    animation: none;
    background: none;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Improved text selection */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: inherit;
}

/* Enhanced carousel transition */
.carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Glassmorphism effect enhancement */
@supports (backdrop-filter: blur(10px)) {

    .hero-carousel,
    .badge-text,
    .btn-hero-secondary,
    .hero-fallback {
        backdrop-filter: blur(20px);
    }
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
}

.price-section {
    font-size: 1.1rem;
}

.quantity-control {
    display: flex;
    gap: 5px;
}

.d-md-flex {
    display: flex !important;
    flex-direction: column !important;
}

/* Product Cards */
.product-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

/* Price Range Styles */
.price-label {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-bottom: 2px;
}

.price-range {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    font-weight: normal;
}

.price-current {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hero Carousel Price Styles */
.hero-product-card .price-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.hero-product-card .price-range {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

/* Category Filter Styles */
.category-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6 !important;
}

.category-item:hover {
    background-color: #f8f9fa !important;
    border-color: var(--primary-color) !important;
}

.category-item input[type="radio"]:checked+span,
.category-item:has(input[type="radio"]:checked) {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.category-toggle {
    color: inherit !important;
    font-size: 0.8rem;
}

.category-toggle:hover {
    color: var(--primary-color) !important;
}

.category-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.category-group .collapse {
    border-left: 2px solid var(--primary-color);
    margin-left: 10px;
}

/* Parent Category with Selected Child */
.parent-category[data-has-selected-child="true"] {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.parent-category[data-has-selected-child="true"] .badge {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
}

/* Child Category Styles */
.child-category {
    margin-left: 0.5rem;
    border-left: 3px solid var(--primary-color);
    background-color: #f8f9fa;
}

.child-category:hover {
    background-color: #e9ecef;
}

.child-category.bg-primary {
    border-left-color: #ffffff;
}

/* Active Category Indicator */
.parent-category small.text-light {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Prevent dropdown close on desktop when child is selected */
@media (min-width: 769px) {
    .parent-category[data-has-selected-child="true"] .collapse {
        display: block !important;
    }
}

/* Product Variations in Listing */
.color-options {
    gap: 4px !important;
}

.color-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.size-options {
    gap: 4px !important;
}

.size-option {
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.size-option:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

.size-option.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.price-range {
    font-weight: 600;
    color: var(--primary-color);
}

/* Product card variations section */
.product-card .color-options,
.product-card .size-options {
    max-height: 60px;
    overflow: hidden;
}

/* Stock status in variations */
.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-status.stock-in {
    color: #28a745;
}

.stock-status.stock-out {
    color: #dc3545;
}

/* Live Search Styles */
#live-search-results {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.live-search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.live-search-item:hover,
.live-search-item.active {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.live-search-image-placeholder {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.live-search-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.live-search-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.live-search-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.live-search-variations {
    margin-top: 4px;
}

.live-search-colors {
    display: flex;
    gap: 3px;
    margin-bottom: 2px;
}

.live-search-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.live-search-sizes {
    font-size: 0.7rem;
    color: #6c757d;
}

.live-search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.live-search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Search input focus state */
#live-search-input:focus+.btn,
#live-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #live-search-results {
        left: -15px;
        right: -15px;
        max-height: 300px;
    }

    .live-search-item {
        padding: 10px 12px;
    }

    .live-search-image,
    .live-search-image-placeholder {
        width: 40px;
        height: 40px;
    }

    .live-search-title {
        font-size: 0.85rem;
    }
}

.product-image {
    height: 250px;
    object-fit: contain;
    border-radius: 0.375rem 0.375rem 0 0;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-price .original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Category Cards */
.category-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.category-image {

    object-fit: cover;
}

/* Search and Filter */
.search-filters {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 0.375rem;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    color: #3a004f;
    background-color: #e9ecef;
}

/* Shopping Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 0.375rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.375rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-brand-logo {
    height: 100px;
    width: auto;
    max-width: 300px;
}

.footer-logo {
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 0 80px;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
    }

    /* Hero Shapes Mobile */
    .hero-shape-1 {
        width: 200px;
        height: 200px;
        top: 5%;
        right: -100px;
    }

    .hero-shape-2 {
        width: 150px;
        height: 150px;
        bottom: 10%;
        left: -75px;
    }

    .hero-shape-3 {
        display: none;
    }

    /* Hero Carousel Mobile */
    .hero-carousel {
        margin-top: 40px;
        border-radius: 15px;
    }

    /* Logo responsiva */
    .navbar-logo {
        height: 30px !important;
    }

    .hero-product-card {
        height: 400px;
    }

    .product-image-wrapper {
        height: 55%;
    }

    .product-info {
        padding: 20px;

    }

    .hero-product-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .price-current {
        font-size: 1.2rem;
    }

    .btn-product-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }

    /* Carousel Controls Mobile */
    .hero-carousel-control {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev.hero-carousel-control {
        left: -10px;
    }

    .carousel-control-next.hero-carousel-control {
        right: -10px;
    }

    .control-icon {
        font-size: 1rem;
    }

    /* Carousel Indicators Mobile */
    .hero-carousel-indicators {
        bottom: -40px;
    }

    .hero-indicator {
        width: 30px;
        height: 4px;
    }

    /* Fallback Mobile */
    .hero-fallback {
        height: 400px;
        border-radius: 15px;
    }

    .fallback-content {
        padding: 30px 20px;
    }

    .fallback-icon {
        font-size: 3rem;
    }

    .fallback-title {
        font-size: 1.3rem;
    }

    .fallback-text {
        font-size: 1rem;
    }

    /* Scroll Indicator Mobile */
    .hero-scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .scroll-text {
        font-size: 0.8rem;
    }

    .product-image {
        height: 200px;
    }

    .search-filters {
        padding: 15px;
    }

    .carousel-indicators {
        bottom: -30px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Utility Classes */
.text-muted-light {
    color: #6c757d !important;
}

.border-light-custom {
    border-color: #e9ecef !important;
}

.shadow-sm-custom {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
}

/* Product Gallery */
.product-gallery {
    margin-bottom: 2rem;
}

/* Image Zoom Container */
.image-zoom-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.image-zoom-container::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(74, 0, 99, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.image-zoom-container:hover::after {
    opacity: 1;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
    cursor: crosshair;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: block;
}

/* Zoom Lens */
.zoom-lens {
    position: absolute;
    border: 2px solid #4a0063;
    width: 100px;
    height: 100px;
    background-color: rgba(74, 0, 99, 0.1);
    cursor: none;
    display: none;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(74, 0, 99, 0.3);
}

/* Zoom Result */
.zoom-result {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    height: 300px;
    border: 2px solid #4a0063;
    border-radius: 0.375rem;
    background-color: white;
    background-repeat: no-repeat;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 11;
}

.image-zoom-container:hover .zoom-controls {
    opacity: 1;
}

.zoom-btn {
    background: rgba(74, 0, 99, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(74, 0, 99, 1);
    transform: scale(1.1);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    /* Mudado de cover para contain */
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    /* Fundo claro para destacar produtos */
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    /* Zoom nas thumbnails também */
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Responsividade da galeria */
@media (max-width: 768px) {
    .main-image {
        height: 300px;
        cursor: zoom-in;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .thumbnail-images {
        justify-content: center;
    }

    /* Hide zoom on mobile */
    .zoom-result {
        display: none !important;
    }

    .zoom-lens {
        display: none !important;
    }

    .image-zoom-container::after {
        display: none !important;
    }

    .zoom-controls {
        display: none !important;
    }

    /* Simple zoom effect on mobile */
    .main-image:active {
        transform: scale(1.2);
    }
}

@media (max-width: 1200px) {

    /* Adjust zoom result position for smaller screens */
    .zoom-result {
        right: -250px;
        width: 240px;
        height: 240px;
    }
}



/* Clickable cards */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.clickable-card .btn,
.clickable-card a {
    position: relative;
    z-index: 10;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* Stock Status */
.stock-status {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.stock-in {
    background-color: #d4edda;
    color: #155724;
}

.stock-out {
    background-color: #f8d7da;
    color: #721c24;
}

.stock-low {
    background-color: #fff3cd;
    color: #856404;
}

.btn-outline-primary {
    --bs-btn-color: #4a0063;
    --bs-btn-border-color: #4a0063;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4a0063;
    --bs-btn-hover-border-color: #4a0063;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4a0063;
    --bs-btn-active-border-color: #4a0063;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #4a0063;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #4a0063;
    --bs-gradient: none;
}

.text-muted-newsletter {
    --bs-text-opacity: 1;
    color: rgb(255 255 255 / 75%) !important;
}

/* Product Description Styles */
.product-description {
    line-height: 1.8;
    font-size: 1rem;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description ul,
.product-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-description h1 {
    font-size: 1.5rem;
}

.product-description h2 {
    font-size: 1.4rem;
}

.product-description h3 {
    font-size: 1.3rem;
}

.product-description h4 {
    font-size: 1.2rem;
}

.product-description h5 {
    font-size: 1.1rem;
}

.product-description h6 {
    font-size: 1rem;
}

.product-description strong,
.product-description b {
    font-weight: 600;
}

.product-description em,
.product-description i {
    font-style: italic;
}

.product-description a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-description a:hover {
    color: #3a004f;
    text-decoration: underline;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.product-description blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

.product-description table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.product-description table th,
.product-description table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.product-description table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.product-description hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #dee2e6;
}