/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    margin-bottom: 0;
}

.breadcrumb {
    font-size: 0.8rem;
    background: none;
    padding: 0;
    margin: 0;
    line-height: 40px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb a{
    padding:0 10px;
    color: var(--bs-navbar-color);
}
.breadcrumb-link {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
    font-weight: 400;
}

.breadcrumb-link:hover {
    color: #666;
    text-decoration: underline;
}

.breadcrumb-link i {
    display: none;
}

.breadcrumb-item.active .current-page {
    color: #666;
    font-weight: 400;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #ccc;
    font-size: 0.8rem;
    margin: 0 0.8rem;
    font-weight: 400;
}

/* Breadcrumb responsive design */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .breadcrumb-item.active .current-page {
        max-width: 250px;
        font-size: 0.75rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 10px 0;
    }
    
    .breadcrumb {
        font-size: 0.7rem;
    }
    
    .breadcrumb-item.active .current-page {
        max-width: 180px;
        font-size: 0.7rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.5rem;
    }
}

/* Product Gallery */
.product-gallery {
    display: flex;
    gap: 1rem;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 80px;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail-item.active {
    border-color: #333;
}

.thumbnail-item img,
.thumbnail-item .img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buy-look-item {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-look-item:hover {
    background: #e9e9e9;
}

.buy-look-icon {
    text-align: center;
    font-size: 0.6rem;
    color: #666;
}

.buy-look-icon i {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    display: block;
}

.buy-look-text {
    line-height: 1.1;
    font-weight: bold;
}

/* Main Product Image */
.main-product-image {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.main-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}

.heart-counter-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.heart-counter-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

/* Product Info Section */
.product-info-section {
    padding: 0 2rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.share-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.share-btn:hover {
    color: #333;
}

/* Price */
.product-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.price-details {
    font-size: 0.8rem;
}

.tax-info {
    color: #666;
    display: block;
    margin-bottom: 0.3rem;
}

.payment-options {
    margin-top: 0.5rem;
}

.payment-option {
    color: #666;
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    display: inline-block;
}

.payment-option strong {
    color: #ff6b9d;
    font-weight: 600;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #FFD700;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* Color Selection */
.color-selection {
    margin-bottom: 1.5rem;
}

.color-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    color: #333;
}

.selected-color {
    font-weight: 400;
    text-transform: capitalize;
}

.color-options {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.color-option.active {
    border-color: #333;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-option.active::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Add to Bag Section */
.add-to-bag-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-to-bag {
    flex: 1;
    background: #00875a;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add-to-bag:hover {
    background: #006b47;
}

.btn-wishlist {
    background: none;
    border: 2px solid #ddd;
    padding: 15px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wishlist:hover {
    border-color: #333;
    color: #e74c3c;
}

/* Size Guide */
.size-guide-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.size-guide-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.size-guide-btn:hover {
    border-color: #333;
    background: #f8f9fa;
}

.size-guide-btn i {
    font-size: 1rem;
}

/* Delivery Info */
.delivery-info {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.delivery-item i {
    color: #00875a;
    width: 18px;
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.delivery-text {
    flex: 1;
}

.delivery-text strong {
    display: block;
    color: #333;
    margin-bottom: 0.2rem;
}

.delivery-text small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

.delivery-link {
    margin-top: 1rem;
    text-align: center;
}

.delivery-link a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.delivery-link a:hover {
    color: #333;
    border-bottom-color: #333;
}

/* Product Details Accordion */
.product-details-accordion {
    border-top: 1px solid #eee;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: #666;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: #999;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding-bottom: 1rem;
}

.accordion-body {
    padding-top: 0.5rem;
}

.detail-list, .care-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li, .care-list li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: #666;
    position: relative;
    padding-left: 1rem;
}

.detail-list li:before, .care-list li:before {
    content: "•";
    color: #999;
    position: absolute;
    left: 0;
}

.accordion-body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.product-specs {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: #666;
    font-weight: 500;
}

.spec-value {
    color: #333;
    font-weight: 400;
}

/* Product Cards - YOU MIGHT ALSO LIKE */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
    width: 100%;
}

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

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

.wishlist-heart {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.wishlist-heart:hover {
    background: #fff;
    color: #e74c3c;
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wishlist-heart.active {
    color: #e74c3c;
    background: #fff;
}

.wishlist-heart.active i {
    font-weight: 900;
}

.product-details {
    padding: 1.2rem 0.8rem;
    text-align: left;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
}

.product-name {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem;
    font-weight: 400;
}

/* Grid spacing adjustments for fuller layout */
.row.g-2 > * {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.row.g-2 {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

/* Ensure 5 items per row on large screens */
@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 auto;
        width: 20%;
        max-width: 20%;
    }
}

/* Recently Viewed */
.recently-viewed-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 1rem;
}

.recently-viewed-items {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.recent-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.recent-item:hover {
    transform: scale(1.05);
}

.recent-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Enhanced Animations */
.btn-add-to-bag {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-add-to-bag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 135, 90, 0.3);
}

.btn-wishlist {
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .product-details {
        padding: 1.5rem 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        height: 2.6rem;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 auto;
        width: 20%;
        max-width: 20%;
    }
    
    .product-details {
        padding: 1rem 0.6rem;
    }
}

@media (max-width: 991px) {
    .product-gallery {
        flex-direction: column;
    }
    
    .product-thumbnails {
        flex-direction: row;
        width: auto;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .product-info-section {
        padding: 0 1rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .accordion-content.active {
        max-height: 400px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    /* 3 items per row on tablets */
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
        max-width: 33.333333%;
    }
    
    .product-details {
        padding: 1rem 0.8rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .add-to-bag-section {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
    }
    
    .product-info-section {
        padding: 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .delivery-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .delivery-item i {
        margin-top: 0;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* 2 items per row on mobile */
    .col-6 {
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-details {
        padding: 0.8rem 0.6rem;
    }
    
    .product-price {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .product-name {
        font-size: 0.75rem;
        height: 2.2rem;
    }
    
    .wishlist-heart {
        width: 38px;
        height: 38px;
        top: 12px;
        right: 12px;
        font-size: 0.9rem;
    }
    
    .row.g-2 > * {
        padding-right: 0.4rem;
        padding-left: 0.4rem;
    }
    
    .row.g-2 {
        margin-right: -0.4rem;
        margin-left: -0.4rem;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .product-details {
        padding: 0.6rem 0.4rem;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
    
    .product-name {
        font-size: 0.7rem;
        height: 2rem;
    }
    
    .wishlist-heart {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
    }
}

/* Shopping Cart Components */
.ey-spec {
    margin-bottom: 1.5rem;
}

.spec-row {
    margin-bottom: 1rem;
}

.spec-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.spec-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spec-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.spec-option:hover {
    border-color: #000;
    color: #000;
    text-decoration: none;
}

.spec-option.btn-selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    min-width: 50px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.quantity-btn {
    background: #fff;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity-input {
    border: none;
    padding: 0;
    text-align: center;
    width: 80px;
    font-size: 1rem;
    font-weight: 600;
    background: #fff;
    height: 40px;
    color: #000;
}

.quantity-input:focus {
    outline: none;
}

.stock-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.purchase-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    height: 50px;
}

.btn-buy-now {
    background: #000;
    color: white;
    border: 2px solid #000;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    min-width: 240px;
    height: 50px;
    border-left: 1px solid #ccc;
}

.btn-buy-now:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

/* Update existing add-to-bag button to work with the new layout */
.add-to-bag-section .btn-add-to-bag {
    flex: 1;
    background: #00875a;
    color: white;
    border: 2px solid #00875a;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 240px;
    height: 50px;
}

.add-to-bag-section .btn-add-to-bag:hover {
    background: #006644;
    border-color: #006644;
    color: white;
    text-decoration: none;
}

/* Adjust wishlist button to match the height */
.add-to-bag-section .btn-wishlist {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 0;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.2s ease;
}

.add-to-bag-section .btn-wishlist:hover {
    border-color: #000;
    color: #000;
}

.add-to-bag-section .btn-wishlist i.fas {
    color: #e74c3c;
}

/* Ensure the add-to-bag-section layout is correct */
.add-to-bag-section {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 2rem;
}

/* Mobile responsiveness for shopping cart components */
@media (max-width: 768px) {
    .quantity-section {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .quantity-controls {
        border: 1px solid #000;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quantity-input {
        width: 60px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .spec-options {
        gap: 0.3rem;
    }
    
    .spec-option {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .add-to-bag-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .purchase-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0;
    }
    
    .btn-add-to-bag,
    .btn-buy-now {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
    }
    
    .btn-buy-now {
        border-left: 2px solid #000;
    }
    
    .add-to-bag-section .btn-wishlist {
        width: 100%;
        height: 50px;
        margin-left: 0;
    }
} 