/* Gift Products Section Styles */

/* Fix overlay cart on mobile — position:absolute breaks on long gift pages */
@media (max-width: 767px) {
    .overlay-content {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        z-index: 1200;
    }
}

/* Progress Indicator for Gift Type 2 */
.selected_item {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected_item ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.selected_item ul li {
    margin: 0 0 0 40px;
    border: solid 2px rgba(128, 128, 128,0.5);
    border-radius: 100%;
    padding: 2px;
    background: #fff;
    position: relative;
}

.selected_item ul li svg {
    display: none;
}

.selected_item ul li.active svg {
    display: block;
}

.selected_item ul li:first-child {
    margin-left: 0;
}

.selected_item ul li.active {
    border: solid 2px rgba(128, 128, 128,1);
}

.selected_item ul li span {
    height: 30px;
    width: 30px;
    border-radius: 100%;
    background: rgba(128, 128, 128,0.5);
    display: block;
}

.selected_item ul li.active span {
    background: rgba(128, 128, 128,1);
}

.selected_item ul li:after {
    content: "";
    height: 4px;
    background: rgba(128, 128, 128,0.5);
    width: 42px;
    position: absolute;
    z-index: 0;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.selected_item ul li.active:after {
    background: rgba(128, 128, 128,1);
}

.selected_item ul li:last-child:after {
    display: none;
}

.selected_item ul li.active svg {
    width: 25px;
    margin: auto;
}

.selected_item ul li.active span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gift Products Section */
.gift-products {
    background: #f8f8f8;
    padding: 40px 0;
}

.gift-products .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: 400;
}

/* Validation alert */
.gift-products .alert {
    margin: 0 auto 20px;
    max-width: 600px;
    text-align: center;
}

/* Quantity controls */
.gift-products .qty_area {
    display: block;
}

/* home-products gift sections — product card needs relative positioning for qty_area */
.home-products .product-item {
    position: relative;
}

/* home-products gift sections qty styling */
.home-products .qty_area {
    position: absolute;
    right: 15px;
    margin-top: -50px;
    width: 123px;
}

.home-products .qty {
    width: 100%;
    position: relative;
    border: solid 1px #E1BEBE;
    border-radius: 4px;
}

.home-products .qty input {
    width: 100%;
    height: 32px;
    z-index: 0;
    position: relative;
    text-align: center;
    border: none;
    background: transparent;
}

.home-products .qty span {
    width: 32px;
    text-align: center;
    height: 32px;
    display: block;
    line-height: 32px;
    font-weight: bold;
    position: absolute;
    cursor: pointer;
    left: 0;
    z-index: 1;
    top: 0;
}

.home-products .qty span:last-child {
    left: auto;
    right: 0;
}

@media only screen and (max-width: 600px) {
    .home-products .qty_area {
        position: relative;
        right: auto;
        left: auto;
        margin-top: 8px;
        width: 100%;
    }
}

/* Product item clean styling */
.gift-products .product-item {
    background: white;
    border: none;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gift-products .product-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gift-products .product-image {
    display: block;
    width: 100%;
    overflow: hidden;
    background: white;
}

.gift-products .product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gift-products .product-content {
    display: block;
    text-align: left;
}

.gift-products .product-title {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gift-products .product-price {
    display: block;
}

.gift-products .actual-price {
    color: #666;
    font-weight: 500;
}

.gift-products .standard-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.gift-products .product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E1BEBE;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* Product selection styling */
.gift-products .product-item.productcategory,
.gift-products .product-item.productcategory2,
.gift-products .product-item.productcategory3,
.gift-products .product-item.productcategory4 {
    cursor: pointer;
}

/* Selected state */
.gift-products .product-item.selected {
    border: 2px solid #E1BEBE;
    box-shadow: 0 0 15px rgba(225, 190, 190, 0.5);
}

.gift-products .product-item.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #E1BEBE;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
}

/* Quantity Controls */
.gift-products .qty_area {
    position: absolute;
    right: 15px;
    margin-top: 15px;
    width: 123px;
}

.gift-products .qty {
    width: 100%;
    position: relative;
    border: solid 1px #E1BEBE;
    border-radius: 4px;
}

.gift-products .qty input {
    width: 100%;
    height: 32px;
    z-index: 0;
    position: relative;
    text-align: center;
    border: none;
    background: transparent;
}

.gift-products .qty span {
    width: 32px;
    text-align: center;
    height: 32px;
    display: block;
    line-height: 32px;
    font-weight: bold;
    position: absolute;
    cursor: pointer;
    left: 0;
    z-index: 1;
    top: 0;
}

.gift-products .qty span:last-child {
    left: auto;
    right: 0;
}

@media (max-width: 768px) {
    .gift-products .section-title {
        font-size: 20px;
    }
}

@media only screen and (max-width: 600px) {
    .gift-products .qty_area {
        position: relative;
        right: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* Mobile: step indicators and h3 font matching desktop */
@media (max-width: 767px) {
    .home-products h3 {
        font-family: Merriweather, serif;
        font-size: 18px;
        font-weight: 400;
        letter-spacing: 1px;
        color: grey;
        text-align: center;
        line-height: 1.6;
    }

    /* Fix connector line visibility on mobile — z-index:-1 hides it behind section background */
    .selected_item ul li:after {
        z-index: 0;
    }
}

