29.67 KB •1,564 lines
•
Formatting may be inconsistent from source
        /* ... (Keep all existing CSS styles - they remain the same) ... */
    /* Enhanced Responsive CSS - Replace your existing <style> section with this */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #198754;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    position: fixed;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
/* Overlay background */
.scene-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}

/* Modal container */
.scene-nav-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px;
    display: none;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
}

/* Header */
.scene-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.scene-nav-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.close-scene-nav {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

/* Buttons */
.scene-nav-body {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.scene-nav-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.scene-nav-btn:hover {
    background-color: #218838;
}

/* Floating button to trigger modal */
.scene-nav-toggle-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.3s;
}

.scene-nav-toggle-btn:hover {
    background-color: #0056b3;
}

.product-hotspot {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.product-icon {
  width: 60px;   /* adjust size */
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-icon:hover {
  transform: scale(1.2);
}

.product-label {
  margin-top: 5px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Walking blur / motion effect */
.walk-transition {
  transition: filter 0.5s ease-in-out;
  filter: blur(3px) brightness(0.9);
}

#panorama-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#panorama {
    width: 100%;
    height: 100%;
    display: block;
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(25, 135, 84, 0.6);
}

.float-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.float-btn.home-btn {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.float-btn.home-btn:hover {
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.6);
}

.float-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.float-btn-label {
    position: absolute;
    right: 70px;
    background: rgba(25, 135, 84, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.float-btn.home-btn .float-btn-label {
    background: rgba(13, 110, 253, 0.95);
}

.float-btn:hover .float-btn-label {
    opacity: 1;
}

.top-control-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    background: rgba(25, 135, 84, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: calc(100vw - 40px);
}

.top-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.top-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.top-control-btn:active {
    transform: translateY(0);
}

.help-tooltip {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 3px solid #198754;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3000;
}

.top-control-btn:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
    top: 50px;
}

.help-tooltip h3 {
    color: #198754;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #d1e7dd;
    padding-bottom: 0.5rem;
}

.help-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-tooltip li {
    padding: 0.6rem 0;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.help-tooltip li i {
    color: #198754;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.help-tooltip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #198754;
}

.scene-title {
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin: 0 15px;
}



.add-to-cart {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.add-to-cart:active {
    transform: translateY(0);
}

.view-details {
    background: #d1e7dd;
    color: #0a3622;
    border: 2px solid #198754;
}

.view-details:hover {
    background: #198754;
    color: white;
}

.cancel {
    background: #f8d7da;
    color: #721c24;
}

.cancel:hover {
    background: #dc3545;
    color: white;
}

.side-panel {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: linear-gradient(180deg, #198754 0%, #146c43 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    transition: right 0.4s ease;
    z-index: 1500;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    right: 0;
}

.side-panel-header {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(32, 201, 151, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-panel-header h2 {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.close-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-panel-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    color: #198754;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e7f5ec;
    border-radius: 8px;
    padding: 0.3rem;
}

.quantity-btn {
    background: #198754;
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: bold;
    -webkit-user-select: none;
    user-select: none;
}

.quantity-btn:hover {
    background: #146c43;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.quantity-btn:disabled:hover {
    transform: none;
}

.quantity-display {
    color: #198754;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    font-size: 0.95rem;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    -webkit-user-select: none;
    user-select: none;
}

.cart-item-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-item-remove:active {
    transform: scale(0.95);
}

.empty-cart {
    text-align: center;
    color: #d1e7dd;
    padding: 3rem 1rem;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.side-panel-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgba(32, 201, 151, 0.3);
    
}

.cart-total {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    -webkit-user-select: none;
    user-select: none;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.checkout-btn:active {
    transform: translateY(0);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: block;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
/* Green Arrow Hotspot (for navigation) */
.custom-arrow {
  width: 100px;
  height: 100px;
  background-image: url('../../uploads/icons/images.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  
  /* --- Sleeping/lying down effect (almost flat on ground) --- */
  transform: perspective(600px) rotateX(85deg) rotateZ(0deg);
  transform-origin: center center;
  
  /* Shadow for floor effect */
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
}

/* Remove hover effects entirely */
.custom-arrow:hover {
  transform: perspective(600px) rotateX(85deg) rotateZ(0deg);
}


/* Product Info Hotspot */
.custom-info {
  width: 45px;
  height: 45px;
  background: #198754;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}

.custom-info::before {
  content: "ℹ️"; /* or use FontAwesome icon */
}

.custom-info:hover {
  background: #146c43;
  transform: scale(1.1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablets and small laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .top-control-bar {
        padding: 10px 20px;
        gap: 12px;
    }

    .float-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .side-panel {
        width: 380px;
        right: -380px;
    }
}

/* Mobile devices and small tablets (max 768px) */
@media (max-width: 768px) {
    body {
        background: #198754;
    }

    .top-control-bar {
        top: 10px;
        padding: 8px 15px;
        gap: 8px;
        max-width: calc(100vw - 20px);
    }

    .top-control-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .scene-title {
        font-size: 12px;
        margin: 0 8px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hide help tooltip on mobile */
    .help-tooltip {
        display: none !important;
    }

    /* Floating buttons */
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }

    .float-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .float-btn .badge {
        width: 22px;
        height: 22px;
        font-size: 11px;
        top: -4px;
        right: -4px;
    }

    /* Hide floating button labels on mobile */
    .float-btn-label {
        display: none !important;
    }

    /* Product modal */
    .product-modal {
        max-height: 92vh;
        width: 100%;
        padding: 0 10px;
    }

    .product-card {
        width: 95vw;
        max-width: 95vw;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1.3rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .product-info p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .product-price {
        font-size: 1.15rem;
    }

    .product-stock {
        font-size: 0.85rem;
    }

    /* Stack product action buttons vertically */
    .product-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }

    .product-actions button {
        width: 100%;
        flex: none;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Side panel full width on mobile */
    .side-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
        height: 93vh;
    }

    .side-panel-header {
        padding: 1.3rem;
    }

    .side-panel-header h2 {
        font-size: 1.2rem;
    }
    
    .close-panel-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .side-panel-content {
        padding: 1.2rem;
    }

    /* Cart items */
    .cart-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .cart-item-image {
        width: 55px;
        height: 55px;
    }

    .cart-item-name {
        font-size: 0.88rem;
    }

    .cart-item-price {
        font-size: 0.82rem;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .quantity-display {
        font-size: 0.9rem;
        min-width: 28px;
    }

    .cart-item-remove {
        width: 30px;
        height: 30px;
    }

    .side-panel-footer {
       padding: 1rem 1.2rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .cart-total {
        font-size: 1.15rem;
    }

    .checkout-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .empty-cart {
        padding: 2.5rem 1rem;
    }

    .empty-cart i {
        font-size: 3.5rem;
    }
}

/* Small phones (max 480px) */
@media (max-width: 480px) {
    .top-control-bar {
        padding: 6px 12px;
        gap: 6px;
    }

    .top-control-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .scene-title {
        font-size: 11px;
        max-width: 100px;
    }

    .floating-buttons {
        bottom: 12px;
        right: 12px;
        gap: 10px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .float-btn .badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 1.1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-info p {
        font-size: 0.85rem;
    }

    .product-actions button {
        padding: 0.75rem;
        font-size: 0.88rem;
    }

    .cart-item {
        padding: 0.7rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-price {
        font-size: 0.8rem;
    }

    .side-panel-header {
        padding: 1.1rem;
    }

    .side-panel-header h2 {
        font-size: 1.1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .top-control-bar {
        top: 8px;
        padding: 6px 12px;
    }

    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 17px;
    }

    .product-modal {
        max-height: 95vh;
    }

    .product-image {
        height: 130px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .product-info p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .product-actions {
        margin-top: 0.8rem;
        gap: 0.5rem;
    }

    .product-actions button {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
}

/* Touch devices - increase touch targets */
@media (pointer: coarse) {
    .quantity-btn,
    .cart-item-remove,
    .close-panel-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .top-control-btn {
        min-height: 36px;
    }

    .float-btn {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Desktop hover effects only */
@media (hover: hover) and (pointer: fine) {
    /* Keep all hover effects for desktop */
}

/* Remove hover effects on touch devices */
@media (hover: none) {
    .float-btn:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
    }

    .float-btn.home-btn:hover {
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    }

    .float-btn:hover .float-btn-label {
        display: none;
    }

    .top-control-btn:hover {
        transform: none;
    }

    .top-control-btn:hover .help-tooltip {
        display: none;
    }
}

/* Accessibility - keyboard focus styles */
.float-btn:focus,
.top-control-btn:focus,
.quantity-btn:focus,
.close-panel-btn:focus,
.product-actions button:focus,
.checkout-btn:focus {
    outline: 3px solid rgba(255, 193, 7, 0.7);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .product-modal {
        animation: none;
    }
}
        }
        
        
        