/* ===== Ora Hamper Builder ===== */
a.ohb-qv-fulllink {
    padding-left: 0;
}
.ohb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 0px;
}

#ohb-product-modal .woocommerce-variation-description p {
    margin-bottom: 5px;
    font-size: 12px;
}

#ohb-product-modal .ohb-variation-option{
	display:grid !important;
}

section.ohb-section.ohb-products-section {
    height: 1026px;
    overflow-y: scroll;
}

.ohb-section {
    background: #fff;
    border: 1px solid #e7e3da;
    padding: 32px 20px;
    margin-bottom: 40px;
	text-align:center;
}

.ohb-section-title {
    margin: 0 0 4px;
    font-size: 26px;
}

.ohb-section-sub {
    margin: 0 0 24px;
    color: #6b6b6b;
}

.ohb-empty,
.ohb-empty-cart {
    color: #999;
    font-style: italic;
}

/* ---- Hamper vessel cards ---- */

.ohb-hamper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ohb-hamper-card {
    border: 1px solid #eee;
    padding: 16px;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.ohb-hamper-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.ohb-hamper-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ohb-hamper-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.ohb-hamper-price {
    color: #1e4620;
    margin-bottom: 12px;
}

/* ---- Buttons ---- */

.ohb-btn {
    display: inline-block;
    width: 100%;
    background: #1e4620;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

.ohb-btn:hover {
    background: #163417;
    color: #fff;
}

/* ---- Products layout with sticky sidebar ---- */

.ohb-products-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 28px;
    align-items: start;
}

.ohb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
    gap: 20px;
}

.ohb-product-card {
    border: 1px solid #eee;
    padding: 14px;
    text-align: center;
display: grid;
    align-items: stretch;
}
.ohb-product-card .ohb-btn{
	height: 50px;
    align-self: end;
}

.ohb-product-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.ohb-product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    min-height: 36px;
}

.ohb-product-price {
    color: #1e4620;
    margin-bottom: 10px;
}
a.ohb-btn.ohb-qv-fulllink {
    display: none !important;
}

.ohb-qty-control {
    display: flex;
    align-items: stretch;
  
    overflow: hidden;
    border: 1px solid #1e4620;
height: 50px;
    align-self: end;
}

.ohb-qty-control button {
    background: #1e4620;
    color: #fff;
    border: none;
    width: 34px;
    cursor: pointer;
    font-size: 16px;
}

.ohb-qty-input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.ohb-qty-input::-webkit-outer-spin-button,
.ohb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---- Sticky cart sidebar ---- */

.ohb-cart-sidebar {
    position: sticky;
    top: 20px;
    background: #f7f5ef;
    border: 1px solid #e7e3da;
    padding: 20px;
}

.ohb-sidebar-title {
    margin: 0 0 14px;
    font-size: 18px;
}

.ohb-sidebar-items {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.ohb-sidebar-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #e7e3da;
}

.ohb-sidebar-item-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.ohb-sidebar-item-main {
    min-width: 0;
}

.ohb-sidebar-item-name {
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ohb-sidebar-item-meta {
    display: flex;
    gap: 8px;
    color: #666;
    margin-top: 2px;
}

.ohb-sidebar-remove {
    background: none;
    border: none;
    color: #b3261e;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.ohb-sidebar-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    padding: 12px 0;
    border-top: 2px solid #1e4620;
    margin-bottom: 14px;
}

/* ---- Modal ---- */

.ohb-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ohb-modal.is-open {
    display: flex;
}

.ohb-modal-inner {
    background: #fff;
    padding: 28px;
    width: 90%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.ohb-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.ohb-modal-title {
    margin: 0 0 16px;
    padding-right: 20px;
}

.ohb-variation-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .2s ease;
}

.ohb-variation-option:hover,
.ohb-variation-option.is-selected {
    border-color: #1e4620;
}

.ohb-variation-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.ohb-variation-info {
    flex: 1;
}

.ohb-variation-label {
    font-weight: 600;
    margin-bottom: 2px;
}

.ohb-variation-dimensions {
    font-size: 12px;
    color: #888;
}

.ohb-variation-price {
    font-weight: 600;
    color: #1e4620;
}

.ohb-modal-add-btn {
    margin-top: 10px;
}

.ohb-loading {
    color: #888;
    padding: 20px 0;
    text-align: center;
}

/* ---- Responsive ---- */

@media (max-width: 782px) {
    .ohb-products-layout {
        grid-template-columns: 1fr;
    }
    .ohb-cart-sidebar {
        position: static;
    }
    .ohb-section {
        padding: 22px 16px;
    }
	.ohb-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
	.ohb-product-card {
		padding: 8px;}
	.ohb-product-card .ohb-btn, .ohb-product-card .ohb-qty-control{
		height: 46px;
font-size:12px;
	}
	.ohb-product-name {
    font-size: 12px;
    line-height: 20px;
}
}

/* ---- Loading spinner ---- */

.ohb-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(30, 70, 32, 0.25);
    border-top-color: #1e4620;
    border-radius: 50%;
    animation: ohb-spin 0.6s linear infinite;
    vertical-align: middle;
}

.ohb-spinner--light {
    border-color: rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
}

@keyframes ohb-spin {
    to { transform: rotate(360deg); }
}

.ohb-qty-control {
    position: relative;
}

.ohb-qty-control .ohb-qty-spinner {
    display: none;
}

.ohb-qty-control.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ohb-qty-control.is-loading .ohb-qty-spinner {
    display: inline-block;
    position: absolute;
    right: -22px;
    top: 50%;
    margin-top: -7px;
}

/* ---- Cart badge on variable product cards ---- */

.ohb-product-thumb {
    position: relative;
}

.ohb-cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1e4620;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ---- Variation options with qty steppers (product options modal) ---- */

.ohb-variation-option--qty {
    align-items: center;
}

.ohb-variation-option--qty .ohb-variation-price {
    color: #1e4620;
    font-size: 13px;
    margin-top: 2px;
}

.ohb-qty-control--modal {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1e4620;
    flex-shrink: 0;
}

.ohb-qty-control--modal button {
    background: #1e4620;
    color: #fff;
    border: none;
    width: 30px;
    cursor: pointer;
    font-size: 15px;
}

.ohb-qty-control--modal .ohb-qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 13px;
}

/* ---- Sidebar update flash ---- */

.ohb-cart-sidebar.ohb-flash {
    animation: ohb-flash-bg 0.4s ease;
}

@keyframes ohb-flash-bg {
    0%   { background-color: #e4ede3; }
    100% { background-color: #f7f5ef; }
}

/* ---- Toast notification ---- */

.ohb-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 16px);
    background: #1e4620;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
}

.ohb-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---- Card link wrapper (image + title -> product page) ---- */

.ohb-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ohb-card-link:hover .ohb-hamper-name,
.ohb-card-link:hover .ohb-product-name {
    text-decoration: underline;
}

/* ---- Attribute dropdowns for "Any option" variations ---- */

.ohb-variation-selects {
    margin-top: 8px;
}

.ohb-variation-select {
    display: block;
    width: 100%;
    padding: 6px 8px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.ohb-qty-control--modal.is-incomplete {
    opacity: 0.45;
}

/* ---- Quick view popup ---- */

.ohb-quickview-inner {
    max-width: 760px;
    width: 92%;
}

.ohb-qv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ohb-qv-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.ohb-qv-gallery img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.ohb-qv-name {
    margin: 0 0 8px;
    font-size: 22px;
    padding-right: 10px;
}

.ohb-qv-price {
    font-size: 18px;
    color: #1e4620;
    font-weight: 600;
    margin-bottom: 10px;
}

.ohb-qv-sku {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.ohb-qv-stock {
    display: inline-block;
    background: #fdeaea;
    color: #b3261e;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ohb-qv-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ohb-qv-desc p {
    margin: 0 0 12px;
}

.ohb-qv-fulllink {
    display: inline-block;
    width: auto;
    padding: 10px 22px;
}

@media (max-width: 600px) {
    .ohb-qv-layout {
        grid-template-columns: 1fr;
    }
    .ohb-qv-gallery {
        max-height: 260px;
        flex-direction: row;
    }
    .ohb-qv-gallery img {
        width: auto;
        height: 240px;
        flex-shrink: 0;
    }
}

.woocommerce-variation-description {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.5;
}

.woocommerce-variation-description.is-visible {
    display: block;
}

.woocommerce-variation-description p {
    margin: 0 0 6px;
}

.ohb-variation-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ohb-variation-label::after {
    content: "ⓘ";
    font-size: 12px;
    color: #999;
}