/* Main page header styling */
.shop-page-header-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: -59.1px;
}


/* Overlay */
.shop-page-header-image-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 13, 30, 0.6);
    z-index: 1;
}

@media (min-width: 768px) {
    .shop-page-header-image-overlay {
        top: 59.1px;
    }
}

/* Content container */
.shop-page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    flex: 1; /* Fills remaining space above the banner */
}

/* Centered heading and HR container */
.shop-page-header-heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px; /* Adjust as needed */
}

@media (max-width: 767px) {
    .shop-page-header-heading {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 575px) {
    .shop-page-header-heading {
        font-size: 1.6rem !important;
    }
}

/* Full-width gold banner */
.shop-page-header-banner {
    position: absolute;
    bottom: 0;
    height: auto;
    width: 100%;
    background-color: rgba(137, 115, 95, 0.9); /* Gold with transparency */
    text-align: center;
    padding: 15px 0;
    border-bottom: 1.5px solid #E2E2E2;
    z-index: 2;
}

/* Banner text */
.banner-text {
    color: white;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 575px) {
    .banner-text {
        font-size: 0.9rem !important;
    }
}




@media (max-width: 575px) {
    .shop-page-header-image-container {
        height: 475px;
    }
}

@media (min-width: 576px) {
    .shop-page-header-image-container {
        height: 550px;
    }
}

@media (min-width: 768px) {
    .shop-page-header-image-container {
        height: 650px;
    }
}

@media (min-width: 992px) {
    .shop-page-header-image-container {
        height: 700px;
    }
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

.list-group {
    --bs-list-group-border-radius: none;
    --bs-list-group-bg: var(--primary-blue);
    --bs-list-group-color: #fff;
    --bs-list-group-border-color: rgb(255 255 255 / 18%);
    border-radius: 0.375rem;
}

.list-group-item.active {
    color: #fff;
    background-color: var(--primary-gold) !important;
    border-color: var(--primary-gold);
}

.list-group-item {
    padding: 7px 12px;
}

.card {
    --bs-card-bg: var(--primary-blue);
    --bs-card-border-color: rgb(255 255 255 / 18%);
    color: #fff;
}

.image-wrapper {
    padding: 1rem 1rem 0 1rem;
}

.image-container {
    overflow: hidden; /* Ensures zoom overflow is hidden */
    aspect-ratio: 1 / 1; /* Keeps the image square */
    width: 100%; /* Ensures full width */
    position: relative;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.card:hover .zoom-img {
    transform: scale(1.1); /* Zoom effect */
}

.card:hover h2 {
    color: var(--primary-gold);
    transition: color 0.2s ease;
}

.card h2 {
    transition: color 0.2s ease; /* Ensures smooth transition back */
}

.list-group-item-action:focus, .list-group-item-action:hover {
    background-color: #dfdfdf;
}

.size-radio {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.size-radio input[type="radio"] {
    display: none;
}

.size-radio span {
    display: inline-block;
    padding: 6px 10px;
    background-color: transparent;
    color: white;
    font-size: 0.95rem;
    border: 1px solid rgb(178, 178, 178); /* Moved border here */
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.size-radio input[type="radio"]:checked + span {
    background-color: var(--primary-gold); /* Your custom gold variable */
    color: white;
    border-color: var(--primary-gold); /* Apply gold border on selection */
}

.size-radio:hover span {
    background-color: var(--primary-blue); /* Your custom blue variable */
}

@media (max-width: 575px) {
    .add-to-cart-button {
        width: 100% !important;
    }
}

/* Product Image Gallery Styles */
.main-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    margin-top: 1rem;
    margin-left: -3px;
}

.thumbnail-container {
    width: 85px;
    height: 85px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-container:hover {
    border-color: var(--primary-gold);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0.2rem;
}

.thumbnail-img.active {
    border-color: var(--primary-gold);
}

@media (min-width: 992px) {
    .thumbnail-container {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 768px) {
    .sticky-image {
        position: sticky;
        top: 80px; /* Adjust as needed for spacing from the top */
        align-self: start; /* Helps with flexbox layouts */
    }
}

.page-link {
    color: #fff;
    background-color: var(--primary-blue);
    border-color: rgb(255 255 255 / 18%);
    transition: all 0.2s ease;
}

.page-link:focus {
    box-shadow: none;
    background-color: var(--primary-blue);
    border-color: rgb(255 255 255 / 18%);
    color: #fff;
}

.page-link:hover {
    color: #fff;
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.active>.page-link, .page-link.active {
    color: #fff;
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

/* Read More Button Styles */
.product-description {
    position: relative;
}

.description-text {
    transition: max-height 0.3s ease-out;
    position: relative;
}

.description-text.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(14, 13, 30, 0) 0%, rgba(14, 13, 30, 1) 100%);
    pointer-events: none;
}

.read-more-btn {
    display: none;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: var(--primary-gold) !important;
    text-decoration: underline;
}

/* Filtering offcanvas styles */

.offcanvas-list-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.offcanvas-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
}

.offcanvas-list-item:hover {
    background-color: #e9ecef;
}

.offcanvas-list-item.active {
    background-color: var(--primary-gold);
    color: #fff;
}

.offcanvas-list-item-text {
    flex: 1;
}

.offcanvas-list-item .form-check {
    width: 100%;
    margin: 0;
}

.offcanvas-list-item .form-check-label {
    width: 100%;
    cursor: pointer;
    font-size: 0.9rem;
}

.products-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.list-group-item.disabled {
    background-color: #404553;
    color: #b0b0b0;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.list-group-item.disabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas-list-item.disabled {
    cursor: not-allowed;
    background-color: #e9ecef;
    opacity: 0.5;
    pointer-events: none;
}

.offcanvas-list-item.disabled:hover {
    background-color: #e9ecef;
}