/* Product card sizing for consistent layout */
.product-catalog-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-catalog-card .card-img-top {
    display: block;
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Top corners rounded, bottom corners square */
    /*border-radius: 50px 50px 0 0;*/
    background: linear-gradient(225deg, #f0f0f0, #cacaca);
    /* Removed shadow per request */
    box-shadow: none;
}

/* Products page banner overlay */
.product-banner {
    position: relative;
    width: 100%;
    margin: 0; /* no outer spacing */
    padding: 0; /* no inner spacing */
    display: block;
    overflow: hidden;
    line-height: 0; /* eliminate inline image gap */
}

.product-banner-bg {
    width: 100%;
    height: auto; /* let this image define the banner height */
    display: block;
    object-fit: cover; /* background base */
    margin: 0;
    padding: 0;
}

.product-banner-title {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: fill; /* stretch to fill container exactly (may distort) */
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .product-banner-title {
        /* Maintain cover behavior on mobile */
        object-fit: cover;
    }
}



/* Custom Dropdown Styling - More specific selectors */
select.form-select.custom-dropdown-select,
.custom-dropdown-select.form-select,
.custom-dropdown-select {
    background: #EDCEE1 !important;
    background-color: #EDCEE1 !important;
    color: #9B2C7B !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: capitalize !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(155, 44, 123, 0.2) !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B2C7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    cursor: pointer !important;
}

select.form-select.custom-dropdown-select:hover,
.custom-dropdown-select.form-select:hover,
.custom-dropdown-select:hover {
    background: #F4E4F1 !important;
    background-color: #F4E4F1 !important;
    color: #9B2C7B !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(155, 44, 123, 0.3) !important;
}

select.form-select.custom-dropdown-select:focus,
.custom-dropdown-select.form-select:focus,
.custom-dropdown-select:focus {
    background: #EDCEE1 !important;
    background-color: #EDCEE1 !important;
    color: #9B2C7B !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(155, 44, 123, 0.3) !important;
    border-color: transparent !important;
}

/* Dropdown Options Styling */
.custom-dropdown-select option {
    background: white !important;
    color: #333 !important;
    padding: 10px 15px !important;
    font-weight: normal !important;
    border-radius: 0 !important;
}

.custom-dropdown-select option:hover,
.custom-dropdown-select option:checked {
    background: #F4E4F1 !important;
    color: #9B2C7B !important;
}

/* Alternative approach for dropdown container */
.custom-dropdown-select:focus,
.custom-dropdown-select[aria-expanded="true"] {
    border-radius: 25px 25px 0 0 !important;
}

/* Try to style the dropdown list container */
.custom-dropdown-select:focus + .dropdown-menu,
.form-select:focus[class*="custom-dropdown"] + * {
    border-radius: 0 0 25px 25px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(204, 128, 204, 0.3) !important;
    overflow: hidden !important;
}

/* Custom Dropdown Component */
.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-dropdown-button {
    background: #EDCEE1;
    color: #9B2C7B;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(155, 44, 123, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.custom-dropdown-button:hover {
    background: #F4E4F1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 44, 123, 0.3);
}

.custom-dropdown-button.active {
    border-radius: 25px 25px 8px 8px;
    box-shadow: 0 0 0 3px rgba(155, 44, 123, 0.3);
}

.dropdown-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.custom-dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 15px rgba(155, 44, 123, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 2px solid #EDCEE1;
    border-top: none;
}

.custom-dropdown-list.show {
    display: block;
}

.dropdown-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    text-transform: capitalize;
}

.dropdown-option:hover {
    background: #F4E4F1;
    color: #9B2C7B;
}

.dropdown-option.selected {
    background: #EDCEE1;
    color: #9B2C7B;
    font-weight: 600;
}

.custom-dropdown-select option {
    background: white;
    color: #333;
    padding: 10px;
    font-weight: normal;
    letter-spacing: normal;
}

.custom-dropdown-select option:hover,
.custom-dropdown-select option:checked {
    background: #F4E4F1;
    color: #9B2C7B;
}

/* Label styling for dropdowns */
.form-label {
    color: #000000;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Occasions gallery + social icons section */
.occasions-section {
    margin-top: 3rem;
    padding: 2rem 0;
}

.occasions-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.occasion-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-title {
    color: #9B2C7B;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
}

.social-icon-link {
    display: block;
    transition: transform 0.3s ease;
    flex: 0 0 200px;
    text-align: center;
}

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

.social-icon {
    /* Scales between ~80px and ~110px depending on viewport width */
    width: clamp(80px, 9vw, 110px);
    height: clamp(80px, 9vw, 110px);
}

@media (max-width: 768px) {
    .occasion-img {
        width: 150px;
        height: 150px;
    }
    .social-icon {
        /* Slightly smaller on mobile but still larger than before */
        width: clamp(70px, 18vw, 90px);
        height: clamp(70px, 18vw, 90px);
    }
    .social-icons {
        gap: 25px;
    }
}
