/* Navbar Styles */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #000;
}

.navbar-nav .nav-link.active {
    color: #000;
    font-weight: bold;
}

/* Desktop Navbar Icons */
.nav-icon-link {
    color: #212529;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-icon-link:hover {
    color: #000;
    background-color: #f8f9fa;
}

/* Search Bar in Navbar */
.search-wrapper {
    position: relative;
    width: 250px;
}

.search-input {
    padding-left: 35px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    width: 280px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.navbar-nav.mx-auto.mb-2.mb-lg-0.gap-2 {
    gap: 2rem !important;
    font-weight: bold;
    /* Reduced from larger gap */
}


@media (max-width: 991px) {
    .navbar-nav.mx-auto.mb-2.mb-lg-0.gap-2 {
        gap: 0.5rem !important;
        /* Even smaller gap on mobile */
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
}

/* Mobile Menu Icons */
.mobile-menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #212529;
    font-size: 14px;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    position: relative;
}

.mobile-menu-icon:hover {
    background-color: #f8f9fa;
    color: #000;
}

.mobile-menu-icon i {
    font-size: 28px;
}

.mobile-menu-icon span:not(.cart-badge) {
    font-size: 13px;
    font-weight: 500;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Product Section */
.product-section {
    min-height: 50px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-container {
    width: 70%;
    max-width: 1400px;
    min-width: 900px;
}

.carousel-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    overflow: hidden;
    height: 650px;
    display: flex;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 4px;
}

/* Carousel Controls - Hidden until hover */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-container:hover .carousel-control-prev,
.carousel-container:hover .carousel-control-next {
    opacity: 0.8;
}

/* Product Details */
.product-details {
    padding: 30px;
    height: 650px;
    overflow-y: auto;
}

.product-details::-webkit-scrollbar {
    width: 6px;
}

.product-details::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.product-details::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.product-details::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 13px;
    color: #757575;
    margin-bottom: 18px;
}

.price {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Color & Size Selectors */
.color-selector {
    margin-bottom: 25px;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    margin-right: 8px;
    display: inline-block;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: #111;
    transform: scale(1.05);
}

.color-swatch.active {
    border-width: 3px;
}

.size-selector h6, .color-selector h6 {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 13px;
}

.size-btn {
    border: 1px solid #e5e5e5;
    background: white;
    padding: 8px 14px;
    margin: 3px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 13px;
}

.size-btn:hover:not(:disabled) {
    border-color: #111;
}

.size-btn.active {
    border-color: #111;
    background: #111;
    color: white;
}

.size-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Add to Cart Button */
.btn-add-cart {
    background: #000;
    color: #fff;
    padding: 14px 35px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 25px;
}

.btn-add-cart:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Dropdown Section - FIXED */
.dropdown-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
}

.dropdown-item-custom {
    border-bottom: 1px solid #e5e5e5;
}

.dropdown-header {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.dropdown-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    font-weight: 300;
}

/* FIXED: Changed to use display property for slideToggle to work */
.dropdown-content {
    display: none;
    padding-bottom: 15px;
}

.dropdown-content p,
.dropdown-content ul {
    color: #666;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.dropdown-content ul {
    padding-left: 18px;
    margin: 8px 0;
}

.dropdown-content li {
    margin-bottom: 5px;
}

.dropdown-content strong {
    color: #333;
    font-weight: 600;
}

/* Recommendation Section */
.recommendation-section {
    padding: 40px 50px;
    background: #fff;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.recommendation-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.scroll-controls {
    display: flex;
    gap: 10px;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-btn span {
    font-size: 24px;
    font-weight: 300;
}

.scroll-btn:hover {
    background: #000;
    color: #fff;
}

.recommendation-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.recommendation-scroll::-webkit-scrollbar {
    height: 6px;
}

.recommendation-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.recommendation-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.recommendation-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.recommendation-item {
    min-width: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-5px);
}

.recommendation-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    background: #f5f5f5;
    margin-bottom: 15px;
}

.recommendation-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    color: #000;
}

.recommendation-info p {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

.recommendation-info .price-tag {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-top: 8px;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #000;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    display: inline-block;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #838383;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #000;
}

.social-icons a {
    font-size: xx-large;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: #000;
    transition: all 0.3s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-container {
        width: 60%;
        min-width: 700px;
    }
}

@media (max-width: 768px) {
    .product-container {
        width: 95%;
        min-width: 320px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-details {
        padding: 20px;
        height: auto;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-item img {
        height: 290px;
    }

    .recommendation-section {
        padding: 40px 20px;
    }

    .recommendation-header h2 {
        font-size: 18px;
    }

    .recommendation-item {
        min-width: 220px;
    }

    .recommendation-item img {
        height: 280px;
    }

    .footer .col-md-3 {
        margin-bottom: 30px;
    }
}
