/* GV Shop - Frontend Styles */

.gvshop-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gvshop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gvshop-product-card .card-img-top {
    /*height: 220px;*/
    object-fit: cover;
}

.gvshop-product-card .gvshop-add-to-cart span {
    margin-right: .5rem;
    color: #b5ffbe;
}

.gvshop-product-card .gvshop-add-to-cart {
    padding: 7px 5px;
    font-weight: 700;
}

.gvshop-product-card a {
    font-weight: 700;
    color: #1e92a6;
}

.gvshop-product-card .card-text.text-muted.small {
    font-style: italic;
    font-weight: 600;
}

.gvshop-product-card span:not(.gvshop-add-to-cart > span) {
    color: #ffffff !important;
    background-color: #37ad0b;
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid #0f7600;
    box-shadow: 0 0 6px #3d9818;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.gvshop-product-detail img.img-fluid {
    max-height: 500px;
    object-fit: contain;
}

.gvshop-cart .table td {
    vertical-align: middle;
}

.gvshop-checkout-success .icon-checkmark-circle {
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn.btn-outline-secondary.gvshop-qty-btn{
    border: 1px solid #00828a;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1rem;
    padding: 7px 10px;
    max-width: 40px;
    background-color: #00828a;
    color: #fff;
    width: 40px;
}

.btn.btn-outline-secondary.gvshop-qty-btn:hover{
    background-color:#03a8b2;
}
input[type="number"].gvshop-qty-input{
    width: 20px;
    border: 1px solid #00828a;
    border-left: none;
    border-right: none;
    font-weight: 800;
    background-color: #00828a24;
    font-size: 1.1rem;
    color: #00828a;
}

input[type="number"].gvshop-qty-input::-webkit-inner-spin-button,
input[type="number"].gvshop-qty-input::-webkit-outer-spin-button
{
    -webkit-appearance: none;
    margin: 0;
}


.gvshop-product-detail .gvshop-add-to-cart{
    font-size: 1rem;
    line-height: 1;
    padding: 12px 22px;
}

.gvshop-product-detail .gvshop-add-to-cart span{
    margin-right: .8rem;
}

.gvshop-product-detail .breadcrumb {
    padding: 0.5rem 1rem;
    background-color: #e1edee;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.gvshop-product-detail .breadcrumb li.breadcrumb-item a{
    color: #00828a;
    font-weight: 900;
}

.text-primary.fresco{
    color: #00828a !important;
}

#sp-main-body {
    padding: 15px 0 !important;
}



/* ── Gallery Main Container ── */
.gvshop-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gvshop-gallery-main #gvshop-main-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    cursor: pointer;
}

/* ── Gallery Arrows ── */
.gvshop-gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45); color: #fff; border: none;
    font-size: 1.4rem; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 50%; z-index: 2;
    transition: background .2s; line-height: 1;
}
.gvshop-gallery-arrow:hover { background: rgba(0,0,0,0.75); }
.gvshop-arrow-prev { left: 10px; }
.gvshop-arrow-next { right: 10px; }

/* ── Thumbnails ── */
.gvshop-gallery-thumbs .gvshop-thumb {
    width: 70px !important; height: 70px !important; 
    min-width: 70px !important; max-width: 70px !important;
    object-fit: cover !important; cursor: pointer; 
    border: 2px solid transparent;
    opacity: 0.6; transition: all .2s; border-radius: 6px;
    display: inline-block !important;
}
.gvshop-thumb.active, .gvshop-thumb:hover {
    border-color: var(--bs-primary, #0d6efd); opacity: 1;
}

/* ── Lightbox ── */
#gvshop-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.gvshop-lb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.gvshop-lb-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 95vw; max-height: 95vh; }
.gvshop-lb-img { max-width: 90vw; max-height: 75vh; object-fit: contain; border-radius: 6px; user-select: none; }
.gvshop-lb-close {
    position: fixed; top: 16px; right: 20px;
    background: none; border: none; color: #fff;
    font-size: 2.5rem; cursor: pointer; z-index: 3; line-height: 1;
}
.gvshop-lb-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: #fff; border: none;
    font-size: 2rem; padding: 12px 18px; cursor: pointer;
    border-radius: 6px; z-index: 3; transition: background .2s;
}
.gvshop-lb-arrow:hover { background: rgba(255,255,255,0.3); }
.gvshop-lb-prev { left: 16px; }
.gvshop-lb-next { right: 16px; }
.gvshop-lb-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; max-width: 90vw; padding: 4px 0; }
.gvshop-lb-thumb {
    width: 56px; height: 56px; object-fit: cover;
    border-radius: 4px; cursor: pointer; opacity: 0.5;
    border: 2px solid transparent; transition: all .2s; flex-shrink: 0;
}
.gvshop-lb-thumb.active, .gvshop-lb-thumb:hover { opacity: 1; border-color: #fff; }

@media (max-width: 768px) {
    .gvshop-gallery-arrow { font-size: 1.2rem; padding: 6px 10px; }
    .gvshop-lb-arrow { font-size: 1.4rem; padding: 8px 12px; }
    .gvshop-lb-thumb { width: 44px; height: 44px; }
}
