/* Giftbox section (scoped to .gbx) */
.gbx .custom_display_column_left img{ width:100%; height:auto; border-radius:4px; display:block; }
.gbx #hamperName h5{ margin-bottom: 20px; font-size: 24px; font-weight: 400; text-transform: uppercase; color: #f8f3e0; font-family: "Girassol", Sans-serif; }
.gbx #loadTable h3{ margin:6px 0; font-size:16px; font-weight:400; color:rgba(248, 243, 224, 1); }
.gbx .change-giftbox{ background:#f8f3e0; font-size: 20px;text-transform: lowercase; color: var(--e-global-color-text); border:0; padding:10px 14px; border-radius:6px; font-weight:400; width:100%; }
.gbx .custom_display_column_right{ position:relative; }
.gbx .gbx-panel{padding:16px; }
.gbx .gbx-panel-head{ display: flex; align-items: center; justify-content: space-between; color: var(--e-global-color-text);}
.gbx .gbx-panel-head > div:last-child{ text-align:right; }
.gbx .itemTable{ padding-top:6px; }

.gbx .hamperItem:last-child{ border-bottom:0; }
.gbx .hamperItem h3{ font-weight:400; font-family:"Girassol", Sans-serif; font-size:14px; margin:0; color:#424E40; }
.gbx .hamperswap h3{ font-family:"Girassol", Sans-serif; font-weight:400; }
.gbx .quantity{ height: 42px; display:inline-flex; align-items:stretch; border:1px solid #495447; border-radius:6px; overflow:hidden; background:#fff; }
.gbx .quantity input.qty{ width:30px; padding:0px; border:0; background:#fff; color:#424E40; text-align:center; font-size:18px; line-height:1; }
.gbx .quantity input.qty:focus{ outline:none; }
/* remove native spinners */
.gbx .quantity input.qty::-webkit-outer-spin-button,
.gbx .quantity input.qty::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.gbx .quantity input.qty[type=number]{ -moz-appearance: textfield; }
.gbx .quantity-nav{ display:flex; flex-direction:column; background:#495447; }
.gbx .quantity-button{ padding: 4px; border:0; background:transparent; color:#fff; width:28px; height:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.gbx .quantity-button:hover{ background:#3b463a; }
.gbx .quantity-button svg {width: 20px; height: 20px;}
.gbx .removeItemButton{ position: absolute;  right: 8px; margin-left: 10px; background: transparent!important; border: 0; color: #ff0000; cursor: pointer; padding: 8px 0 8px 10px; }

.gbx .gbx-total{ flex: 1; font-weight: 400; color: #f8f3e0; font-family: "Girassol", Sans-serif; font-size: 24px; }
.gbx #addBundletoCart{ background:#AB5E3D; color:#fff; border:0; padding:12px 18px; border-radius:5px; font-weight:400; width:100%; }
.gbx .units{ float:right; font-weight:600; font-size:15px; color:#000; }

.change-giftbox:hover {
    background-color: var(--e-global-color-primary);
    color: #fff;
}

.hamper_prod_info>div:first-child {
    margin-bottom: 5px;
}

.shop_heading {
    margin-bottom: 50px;
}
.shop_heading h2 {
    font-family: "Hello Paris", Sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 80px;
    color: #FAF8ED;
    text-align: center;
    margin-bottom: 20px;
}


.gbx-sortbar {
    max-width: 167px;
    margin: 75px 0 0px auto;
}

table#loadTable td,table#loadTable th {
    border: 0;
    padding: 0;
}

table#loadTable td:nth-child(2) {
    text-align: right;
}

table#loadTable {
    margin-top: 10px;
}

.giftbox_container {
    display: flex;
    gap: 20px;
}
.custom_display_columns {
    overflow-y: auto;
    height: 330px;
    background-color: #F8F3E0;
}

.custom_display_column_left {
    width: 270px;
}

.custom_display_column_right {
    width: calc(100% - 270px);
}

.gbx-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.gbx-footer.hide {
    display: none;
}

.qty_heading {
    width: 25%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty_basket.gbx-empty-basket {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Square aspect ratio helper */
.gbx .gbx-square{ position:relative; width:100%; padding-top:100%; overflow:hidden; border-radius:4px; }
.gbx .gbx-square > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

/* Quick View modal (GiftBox page) */
.gbx-modal{ display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.5); align-items:center; justify-content:center; }
.gbx-modal.open{ display:flex; }
.gbx-modal__dialog{ background:#fff; width:min(640px, 92vw); max-height:90vh; overflow:auto; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.25); padding:16px; }
.gbx-modal__header{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.gbx-modal__close{ background:transparent; border:0; font-size:20px; cursor:pointer; }
.gbx-modal__actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
.gbx-modal .button-primary{ background:#AB5E3D; color:#fff; border:0; padding:10px 14px; border-radius:6px; font-weight:700; }

/* Inline quick-view overlay (inside product card) */
.gbx-inline-qv{ position:absolute; inset:0; background:rgba(255,255,255,.92); backdrop-filter: blur(2px); z-index:5; display:flex; flex-direction:column; padding:14px; border:1px solid #e2e2e2; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.gbx-inline-qv__header{ display:flex; justify-content:flex-end; margin-bottom:10px; }
.gbx-inline-qv__close{ background: transparent !important; border: 0; color: #ff0000 !important; font-size: 14px !important; cursor: pointer !important; padding: 0 !important; }
.gbx-inline-qv__body{ flex:1; overflow:auto; }
.gbx-inline-qv__actions{ display:flex; gap:10px; align-items:center; margin-top:12px; }
.gbx-inline-qv__actions .button-primary{ background:#f8f3e0; color:var(--e-global-color-text); border:0; padding:10px 14px; border-radius:5px; font-weight:400;width: 100%;font-size: 16px; font-weight: 400; text-transform: lowercase; }
.gbx-inline-qv__actions .button-primary:hover{ background:#AB5E3D; color:#fff; border:0; padding:10px 14px; border-radius:5px; font-weight:400;width: 100%; }


/* Inline quick-view loader */
.gbx-loader{ display:flex; justify-content:center; align-items:center; gap:8px; color:var(--e-global-color-text); font-size:14px; padding:12px 0; }
.gbx-spinner{ width:16px; height:16px; border:2px solid rgba(0,0,0,.15); border-top-color: rgba(0,0,0,.55); border-radius:50%; display:inline-block; animation: gbx-spin .7s linear infinite; }
@keyframes gbx-spin{ to { transform: rotate(360deg); } }

.hamperItem {
	height: 50px!important;
	display: flex;
	transition: .3s ease;
	position: relative;
	overflow: hidden;
}

.hamperItem:not(:last-child) {
    margin-bottom: 10px;
}

.hamperItem .hamper_prod_info {
	overflow: hidden;
}

.hamperswap>h3{
	font-size: 14px;
	margin-bottom: 0px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.hamperswap {
	transition: -webkit-transform .3s ease;
	transition: transform .3s ease;
	transition: transform .3s ease,-webkit-transform .3s ease;
	display: flex;
	height: 50px;
	align-items: center;
	justify-content: center;
}

.hamperItem:hover{
	background-color: #f7f7f7;
}

.hamperItem:hover .hamperswap {
	transform: translate(0,-50px);
}

.hamperItem .hamper_prod_info{
	padding-left: 10px;
	width: 70%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hamperItem .hamper_prod_actions{
	flex: 25%;
}

.hamper_prod_image img {
    display: flex;
    width: 50px;
    height: 50px;
}

.hamper_prod_image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gbx-inline-qv .quantity,
.gbx-inline-qv .single_add_to_cart_button,
.gbx-inline-qv a.reset_variations{
    display: none!important;
}


.gbx-inline-qv form.variations_form tr {
    display: flex!important;
    flex-direction: column;
    text-align: left;
}

.gbx-inline-qv table tbody tr td, .gbx-inline-qv table tbody tr th{
    border: none!important;
    background-color: transparent;
    padding: 0;
}

.gbx-inline-qv th.label {
    margin-bottom: 10px!important;
}


.gbx-inline-qv td.value select{
    border: 1px solid rgba(66, 78, 64, 0.5)
}

/* Smooth reveal of add-to-giftbox button on product hover */
.product, .product-grid-item { position: relative; }
.product .add_to_giftbox_btn,
.product-grid-item .add_to_giftbox_btn{
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  top: 50%;
}
.product:hover .add_to_giftbox_btn,
.product-grid-item:hover .add_to_giftbox_btn,
.product .add_to_giftbox_btn:focus,
.product-grid-item .add_to_giftbox_btn:focus{
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.add_to_giftbox_btn button {
    width: 100%!important;
}

.add_to_giftbox_btn {
   position: absolute;
}


body.swal2-toast-shown .swal2-container {
    max-width: 600px;
    width: 100%!important;
}

.swal2-popup.swal2-toast.swal2-show {
    background-color: #F8F3E0;
}

.e-atc-qty-button-holder .quantity {
    display: none;
}


/* Giftbox: sorting bar */
.gbx-sortbar{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 50px;
  width: 100%;
}
/* CodePen-style custom dropdown */
.select-menu{ position:relative; }
.select-menu .select-btn{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  padding:10px 60px 10px 16px;
  background: transparent; /* no solid bg by default */
  color:#F8F3E0;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.select-menu .select-btn:hover{ border-color: rgba(248,243,224,0.35); }
.select-menu .select-btn:focus{ outline:none; box-shadow: 0 0 0 3px rgba(248,243,224,0.12); }
.select-menu .sBtn-text{ white-space:nowrap; font-weight:400; font-size: 16px; text-transform: uppercase;}
.select-menu .gbx-sort-icon{ position:absolute; right:10px; display:inline-flex; line-height:0; pointer-events:none; }
.select-menu .gbx-sort-icon svg{ display:block; width:40px; height:auto; transition: transform .25s ease; }
.select-menu.active .gbx-sort-icon svg{ transform: rotate(180deg); }

.select-menu .options{
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    min-width: 240px;
    max-height: 320px;
    overflow:auto;
    padding:8px;
    border-radius:12px;
    border:1px solid rgba(248,243,224,0.2);
    background: #F8F3E0;
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    display:none;
    animation: gbxFadeInUp .35s ease both;
    z-index: 9999;
    text-transform: lowercase;
}
.select-menu.active .options{ display:block; }
.select-menu .option{ list-style:none; display:flex; align-items:center; gap:10px; color:var(--e-global-color-text); padding:6px 12px; border-radius:8px; cursor:pointer; }
.select-menu .option:hover{ background: #d1c7a5; color: #fff;}
.select-menu .option .option-text{ font-size:16px; }

@keyframes gbxFadeInUp {
  from { transform: translate3d(0, 18px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}
.gbx-sortwrap{ position: relative; display:inline-flex; align-items:center; background: rgba(248,243,224,0.08); border: 1px solid rgba(248,243,224,0.18); border-radius: 999px; padding: 4px 6px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.gbx-sortwrap:hover{ border-color: rgba(248,243,224,0.35); background: rgba(248,243,224,0.12); }
.gbx-sortwrap:focus-within{ border-color: rgba(248,243,224,0.6); box-shadow: 0 0 0 3px rgba(248,243,224,0.15) inset; }
.gbx-sort-icon{ position:absolute; right:8px; display:inline-flex; line-height:0; pointer-events:none; }
.gbx-sort-icon svg{ display:block; width:22px; height:auto; transition: transform .2s ease; }
.gbx-sortwrap:focus-within .gbx-sort-icon svg{ transform: rotate(180deg); }
.gbx-sort-select{
  background: transparent;
  color: #F8F3E0;
  border: 0;
  border-radius: 999px;
  padding: 8px 40px 8px 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  line-height: 1.2;
}
.gbx-sort-select:focus{ outline:2px solid rgba(248,243,224,.0); outline-offset:2px; }
.gbx-sort-select:hover{ filter:brightness(0.97); }


.product .product_item::before {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    z-index: 2;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}
.product:hover .product_item::before {
    opacity: 1;
}

.add_to_giftbox_btn{
    z-index: 3;
}

.add_to_giftbox_btn button{
    max-width: 90%!important;
      margin: auto!important;
}

@media (max-width: 1200px){
    .shop_heading h2{
        font-size: 64px;
    }
    .custom_display_column_left {
        width: 200px;
    }
    .custom_display_column_right {
        width: calc(100% - 200px);
    }
    .custom_display_columns {
        height: 270px;
    }

    .gbx .quantity{
        margin-right: 15px
    }
    .gbx .removeItemButton {
        right: 0;
    }
}

@media (max-width: 992px){
    .product .add_to_giftbox_btn, .product-grid-item .add_to_giftbox_btn {
        margin: auto 0 0 0!important;
        position: relative!important;
        opacity: 1!important;
        transform: none !important;
        bottom:0;
        top: unset;
        padding-top: 20px;
    }

    .product:hover .product_item::before{
        display: none;
    }


    .giftbox_container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .shop_heading h2{
        font-size: 50px;
    }
    .custom_display_column_right {
        width: 100%;
    }
    .custom_display_column_left {
        width: 270px;
    }

    #hamperName {
        max-width: 270px;
        margin: auto;
    }
    .shop_heading {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px){
  .gbx-sortbar{ justify-content: center; }
}
