.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.logo-float {
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    height: auto;
}
.hero {
    padding: 2rem 0;
}
.logo-float {
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 0;
    }
    .logo-float {
        width: 280px;
    }
}
.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}
@media (min-width: 768px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.25rem;
    }
}
.card {
    transition: all 0.3s;
    transform-style: preserve-3d;
}
.card:hover {
    transform: translateY(-5px) rotate3d(0.5, 1, 0, 30deg);
}
.product-card {
    margin-bottom: 1.5rem;
}
.pagination .page-link {
    margin: 0 0.25rem;
}
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.375rem 0.75rem;
    }
}
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem auto;
    }
}
section {
    padding: 2rem 0;
}
@media (max-width: 768px) {
    section {
        padding: 1.5rem 0;
    }
}
.lead {
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.2rem;
    }
    .lead {
        font-size: 1rem;
    }
}
#pickup_point_field { display: none; }
#pvz_modal .modal-body { max-height: 60vh; overflow-y: auto; }
.pvz-item { cursor: pointer; padding: 0.5rem; border-bottom: 1px solid #dee2e6; }
.pvz-item:hover { background-color: #f8f9fa; }
.description-short {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#productDetailModal .modal-body {
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.6;
}
#productDetailModal .modal-title {
    font-weight: bold;
}
.detail-btn {
    font-size: 0.9rem;
    color: #007bff;
    background-color: transparent;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.5s ease-in-out;
    text-decoration: none;
    display: inline-block;
    transform: translate3d(0px, 0px, 20px);
    transform-style: preserve-3d;
}
.detail-btn:hover {
    transform: translate3d(0px, 0px, 60px);
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}
.detail-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
/* 3D Animation Styles for Individual Elements */
.parent {
    width: 100%;
    padding: 20px;
    perspective: 1000px;
}
.card-img-top, .img-placeholder {
    transform: translate3d(0px, 0px, 20px);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
}
.card:hover .card-img-top, .card:hover .img-placeholder {
    transform: translate3d(0px, 0px, 60px);
}
.card-body h5.card-title, .card-body h3.h4 {
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 50px);
    transform-style: preserve-3d;
}
.card:hover .card-body h5.card-title, .card:hover .card-body h3.h4 {
    transform: translate3d(0px, 0px, 60px);
}
.card-body p.card-text {
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 30px);
    transform-style: preserve-3d;
}
.card:hover .card-body p.card-text {
    transform: translate3d(0px, 0px, 60px);
}
.card-body .order-service,
.card-body .add-to-cart {
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 20px);
    transform-style: preserve-3d;
}
.card:hover .card-body .order-service,
.card:hover .card-body .add-to-cart {
    transform: translate3d(0px, 0px, 60px);
}
.card .badge {
    transform: translate3d(0px, 0px, 80px);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
}
.card:hover .badge {
    transform: translate3d(0px, 0px, 100px);
}
.card-body .product-specs .badge,
.card-body .service-meta .badge {
    transform: translate3d(0px, 0px, 20px);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
}
.card:hover .card-body .product-specs .badge,
.card:hover .card-body .service-meta .badge {
    transform: translate3d(0px, 0px, 60px);
}
.card-body .h4.text-accent {
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 20px);
    transform-style: preserve-3d;
}
.card:hover .card-body .h4.text-accent {
    transform: translate3d(0px, 0px, 60px);
}
@supports not (transform-style: preserve-3d) {
    .card, .card-img-top, .img-placeholder, 
    .card-body h5.card-title, .card-body h3.h4, 
    .card-body p.card-text, .card-body .order-service, 
    .card-body .add-to-cart, .card-body .detail-btn,
    .card .badge, .card-body .product-specs .badge,
    .card-body .service-meta .badge, .card-body .h4.text-accent {
        transform: none !important;
    }
}

/* Privacy Consent Card Styles */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 9998; /* Below the card but above other content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-card {
    --shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0,
      rgba(60, 64, 67, 0.15) 0 2px 6px 2px;
    width: 80%;
    max-width: 300px;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    margin: 20px auto;
    z-index: 9999; /* Above the overlay */
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    position: relative;
}

.icon {
    position: relative;
    margin: -2rem auto 1.5rem; /* Adjusted top margin to lower the SVG further */
    height: 36px; /* Reduced height to crop the SVG */
    overflow: hidden; /* Hide the top portion of the SVG */
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon svg {
    width: 65px;
    height: 46px;
}

.title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
    color: #4b5563; /* text Zinc-700 */
}

.description {
    width: 100%;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    text-align: justify;
    color: #4b5563; /* text Zinc-600 */
}

.privacy-link {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #634647; /* Matches existing color scheme */
    transition: color 0.3s;
}

.privacy-link:hover {
    color: #845556; /* Darker shade on hover */
    text-decoration: underline;
}

.more-options {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563; /* text Zinc-600 */
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s;
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    background: transparent;
    border: 0;
}

.more-options:hover {
    color: #634647; /* Darker shade on hover */
    text-decoration: underline;
}

.accept-button {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #634647;
    background-color: #ddad81;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.accept-button:hover {
    background-color: #634647; /* Darker shade on hover */
    color: #ddad81; /* Light shade on hover */
}

/* Responsive adjustments for privacy card */
@media (max-width: 576px) {
    .privacy-card {
        width: 90%;
        max-width: 280px;
    }
    .icon {
        height: 32px; /* Slightly smaller on mobile */
        margin: -1.5rem auto 1.2rem; /* Adjusted top margin for mobile */
    }
    .icon svg {
        transform: translateY(-8px); /* Adjust cropping for mobile */
    }
}