webupdate

This commit is contained in:
Local Server
2026-01-20 20:29:33 -06:00
parent f8068ba54c
commit 1b2502c38d
22 changed files with 1905 additions and 172 deletions

View File

@@ -148,34 +148,96 @@ body {
}
}
/* All mobile devices - Slide-in menu from right (half screen) */
@media (max-width: 768px) {
/* Hide close button on desktop */
.nav-menu-close {
display: none !important;
}
/* All mobile and tablet devices - Slide-in menu from right */
@media (max-width: 1024px) {
/* Show close button on mobile/tablet */
.nav-menu-close {
display: flex !important;
}
.navbar {
position: relative !important;
}
/* Show hamburger menu on tablets */
.nav-mobile-toggle {
display: flex !important;
flex-direction: column;
gap: 5px;
padding: 10px;
background: none;
border: none;
cursor: pointer;
z-index: 1001;
}
.nav-mobile-toggle span {
display: block;
width: 26px;
height: 3px;
background: var(--text-primary, #202023);
border-radius: 2px;
transition: all 0.3s ease;
}
/* Hamburger to X animation when active */
.nav-mobile-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.nav-mobile-toggle.active span:nth-child(2) {
opacity: 0;
}
.nav-mobile-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}
/* Menu overlay - dark background when menu is open */
.nav-menu-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: rgba(0, 0, 0, 0.5) !important;
opacity: 0 !important;
visibility: hidden !important;
transition: opacity 0.3s ease, visibility 0.3s ease !important;
z-index: 998 !important;
}
.nav-menu-overlay.active {
opacity: 1 !important;
visibility: visible !important;
}
.nav-menu {
position: fixed !important;
top: 0 !important;
right: 0 !important;
left: auto !important;
bottom: 0 !important;
width: 50% !important;
min-width: 200px !important;
max-width: 300px !important;
width: 320px !important;
max-width: 80% !important;
height: 100vh !important;
height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
flex-direction: column !important;
background: #ffffff !important;
padding: 80px 20px 30px !important;
gap: 4px !important;
padding: 100px 24px 30px !important;
gap: 8px !important;
transform: translateX(100%) !important;
opacity: 1 !important;
visibility: hidden !important;
transition: transform 0.3s ease, visibility 0.3s ease !important;
z-index: 999 !important;
overflow-y: auto !important;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1) !important;
box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2) !important;
box-sizing: border-box !important;
}
@@ -184,6 +246,30 @@ body {
visibility: visible !important;
}
/* Close button for mobile/tablet menu */
.nav-menu-close {
position: absolute !important;
top: 24px !important;
right: 24px !important;
width: 44px !important;
height: 44px !important;
background: #f5f5f5 !important;
border: none !important;
border-radius: 50% !important;
font-size: 24px !important;
color: #333 !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
transition: background 0.2s ease !important;
z-index: 1000 !important;
}
.nav-menu-close:hover {
background: #e0e0e0 !important;
}
.nav-menu li {
list-style: none !important;
margin: 0 !important;
@@ -193,12 +279,12 @@ body {
.nav-link {
display: block !important;
width: 100% !important;
padding: 14px 16px !important;
padding: 16px 20px !important;
text-align: left !important;
font-size: 1rem !important;
font-size: 1.1rem !important;
font-weight: 500 !important;
color: #333 !important;
border-radius: 8px !important;
border-radius: 10px !important;
text-decoration: none !important;
transition: background 0.15s ease !important;
}
@@ -215,6 +301,82 @@ body {
.nav-link::after {
display: none !important;
}
/* Prevent body scroll when menu is open */
body.nav-menu-open {
overflow: hidden !important;
}
}
/* Smaller phones (max-width: 576px) - smaller menu width */
@media (max-width: 576px) {
.nav-menu {
width: 280px !important;
max-width: 85% !important;
padding: 90px 20px 30px !important;
}
.nav-link {
padding: 14px 16px !important;
font-size: 1rem !important;
}
.nav-menu-close {
top: 20px !important;
right: 20px !important;
width: 40px !important;
height: 40px !important;
font-size: 20px !important;
}
}
/* iPad and Tablets (768px - 1024px) - Larger buttons for touch */
@media (min-width: 768px) and (max-width: 1024px) {
/* Larger mobile menu for tablets */
.nav-menu {
width: 380px !important;
max-width: 70% !important;
padding: 100px 28px 40px !important;
}
/* Bigger menu links for iPad */
.nav-menu .nav-link {
padding: 20px 24px !important;
font-size: 1.25rem !important;
font-weight: 500 !important;
border-radius: 12px !important;
margin-bottom: 4px !important;
}
/* Larger close button for tablets */
.nav-menu-close {
top: 28px !important;
right: 28px !important;
width: 52px !important;
height: 52px !important;
font-size: 28px !important;
}
/* Larger hamburger button */
.nav-mobile-toggle {
padding: 12px !important;
}
.nav-mobile-toggle span {
width: 28px !important;
height: 3px !important;
}
/* Larger navbar action buttons for tablets */
.nav-icon-btn {
width: 48px !important;
height: 48px !important;
font-size: 1.4rem !important;
}
.nav-actions {
gap: 12px !important;
}
}
/* === iPad Mini (768px) === */
@@ -442,6 +604,13 @@ body {
max-width: 100% !important;
overflow: hidden !important;
box-sizing: border-box !important;
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
.product-footer {
margin-top: auto !important;
}
.product-name {
@@ -485,6 +654,18 @@ body {
overflow: hidden !important;
box-sizing: border-box !important;
background: #ffffff !important;
display: flex !important;
flex-direction: column !important;
}
.product-info {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
.product-footer {
margin-top: auto !important;
}
.product-image {
@@ -530,6 +711,18 @@ body {
min-width: 0 !important;
box-sizing: border-box !important;
background: #ffffff !important;
display: flex !important;
flex-direction: column !important;
}
.product-info {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
.product-footer {
margin-top: auto !important;
}
.product-image {
@@ -2185,13 +2378,23 @@ body {
}
}
/* === GLOBAL PRODUCT CARD FIX - Remove pink divider === */
/* === GLOBAL PRODUCT CARD FIX - Remove pink divider & Align footer === */
.product-card {
display: flex !important;
flex-direction: column !important;
background: #ffffff !important;
}
.product-info {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
.product-footer {
margin-top: auto !important;
}
.product-image {
background: #ffffff !important;
margin: 0 !important;
@@ -2203,4 +2406,206 @@ body {
display: block !important;
margin: 0 !important;
padding: 0 !important;
}
/* ============================================
UNIVERSAL IMAGE CONTAINMENT FIXES
Ensures consistent image sizing across all devices
============================================ */
/* === SHOP PAGE: Product Grid Image Standardization === */
/* All product card images - standardized box with aspect ratio */
.products-grid .product-card {
display: flex !important;
flex-direction: column !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
.products-grid .product-image {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
aspect-ratio: 1 / 1 !important;
overflow: hidden !important;
flex-shrink: 0 !important;
background: #ffffff !important;
}
.products-grid .product-image img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center !important;
}
/* === PRODUCT DETAIL PAGE: Main Image Standardization === */
/* Desktop/Large screens */
.product-detail .main-image {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
aspect-ratio: 1 / 1 !important;
overflow: hidden !important;
border-radius: var(--radius-lg) !important;
background: var(--bg-white, #ffffff) !important;
}
.product-detail .main-image img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center !important;
}
/* Ensure gallery doesn't overflow */
.product-detail .product-gallery {
width: 100% !important;
max-width: 100% !important;
overflow: hidden !important;
box-sizing: border-box !important;
}
/* === TABLET SPECIFIC (iPad, iPad Air, iPad Pro) === */
@media (min-width: 768px) and (max-width: 1024px) {
/* Product Detail Page - Tablet */
.product-detail {
display: grid !important;
grid-template-columns: 1fr 1fr !important;
gap: var(--spacing-xl, 24px) !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
.product-detail .product-gallery {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
overflow: hidden !important;
}
.product-detail .main-image {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 0 !important;
padding-bottom: 100% !important;
aspect-ratio: unset !important;
overflow: hidden !important;
border-radius: var(--radius-lg, 12px) !important;
background: #ffffff !important;
}
.product-detail .main-image img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center !important;
}
.product-detail .product-details {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
overflow-wrap: break-word !important;
}
/* Container overflow prevention */
.container {
max-width: 100% !important;
overflow-x: hidden !important;
box-sizing: border-box !important;
}
}
/* === SMALL TABLET / Large Phone (600px - 768px) === */
@media (min-width: 600px) and (max-width: 767px) {
.product-detail {
display: block !important;
width: 100% !important;
max-width: 100% !important;
}
.product-detail .product-gallery {
width: 100% !important;
max-width: 100% !important;
margin-bottom: var(--spacing-lg, 16px) !important;
}
.product-detail .main-image {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 0 !important;
padding-bottom: 100% !important;
aspect-ratio: unset !important;
overflow: hidden !important;
border-radius: var(--radius-lg, 12px) !important;
}
.product-detail .main-image img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center !important;
}
}
/* === MOBILE (up to 600px) === */
@media (max-width: 599px) {
.product-detail .main-image {
position: relative !important;
width: 100% !important;
max-width: 100% !important;
height: 0 !important;
padding-bottom: 100% !important;
aspect-ratio: unset !important;
overflow: hidden !important;
}
.product-detail .main-image img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center !important;
}
}
/* === LARGE DESKTOP (1025px+) === */
@media (min-width: 1025px) {
.product-detail .main-image {
position: relative !important;
width: 100% !important;
max-width: 600px !important;
aspect-ratio: 1 / 1 !important;
overflow: hidden !important;
border-radius: var(--radius-lg, 12px) !important;
}
.product-detail .main-image img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
object-position: center !important;
}
}

View File

@@ -370,10 +370,10 @@ body {
transition: var(--transition-fast);
}
/* Mobile Navigation - Slide from Right (Half Screen) */
@media (max-width: 992px) {
/* Mobile Navigation - Slide from Right (all devices up to 1024px including iPads) */
@media (max-width: 1024px) {
.nav-mobile-toggle {
display: flex;
display: flex !important;
}
.nav-menu {
@@ -381,14 +381,13 @@ body {
top: 0;
right: 0;
bottom: 0;
width: 50%;
min-width: 200px;
max-width: 300px;
width: 320px;
max-width: 80%;
flex-direction: column;
background: var(--bg-white);
padding: 80px var(--spacing-lg) var(--spacing-xl);
gap: var(--spacing-xs);
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
transform: translateX(100%);
visibility: hidden;
transition: transform 0.3s ease, visibility 0.3s ease;
@@ -402,9 +401,10 @@ body {
.nav-link {
width: 100%;
padding: var(--spacing-sm) var(--spacing-md);
padding: var(--spacing-md) var(--spacing-lg);
text-align: left;
border-radius: var(--radius-sm);
font-size: 1.1rem;
}
.nav-link:hover {
@@ -828,6 +828,9 @@ body {
.product-info {
padding: var(--spacing-lg);
flex: 1;
display: flex;
flex-direction: column;
}
.product-category {
@@ -883,6 +886,7 @@ body {
justify-content: space-between;
padding: var(--spacing-md) var(--spacing-lg);
border-top: 1px solid var(--border-light);
margin-top: auto;
}
.product-stock {

View File

@@ -405,14 +405,14 @@
background: #f3f0ff;
}
/* Responsive Design */
/* Responsive Design - Mobile & Tablet (up to 1024px includes all iPads) */
@media (max-width: 1024px) {
.navbar-menu {
display: none;
display: none !important;
}
.mobile-toggle {
display: flex;
display: flex !important;
}
.navbar-brand {
@@ -423,6 +423,17 @@
.navbar-actions {
margin-left: 16px;
}
/* Wider mobile menu for tablets */
.mobile-menu {
width: 350px;
max-width: 85%;
}
.mobile-link {
padding: 16px 20px;
font-size: 17px;
}
}
@media (max-width: 640px) {
@@ -456,13 +467,88 @@
right: -16px;
}
}
/* Tablet-specific (iPad) enhancements - portrait and landscape */
@media (min-width: 641px) and (max-width: 1024px) {
.navbar-wrapper {
padding: 0 24px;
height: 72px;
}
.brand-logo {
width: 52px;
height: 52px;
}
.brand-name {
font-size: 20px;
}
/* Larger hamburger menu for tablets */
.mobile-toggle {
width: 48px;
height: 48px;
padding: 12px;
}
.toggle-line {
width: 26px;
height: 3px;
}
/* Wider mobile menu for tablets */
.mobile-menu {
width: 380px;
max-width: 75%;
padding: 24px;
}
.mobile-menu-header {
padding-bottom: 20px;
margin-bottom: 28px;
}
.mobile-brand {
font-size: 20px;
}
.mobile-close {
font-size: 28px;
width: 44px;
height: 44px;
}
.mobile-link {
padding: 18px 24px;
font-size: 18px;
border-radius: 10px;
}
.mobile-menu-list li {
margin-bottom: 6px;
}
/* Larger action buttons for tablets */
.action-btn {
width: 48px;
height: 48px;
font-size: 24px;
}
.action-badge {
min-width: 20px;
height: 20px;
font-size: 12px;
}
}
/**
* Mobile Navbar Fixes
* Ensures hamburger menu, cart, and wishlist are visible on mobile devices
* Ensures hamburger menu, cart, and wishlist are visible on mobile/tablet devices
*/
/* Mobile hamburger menu - always visible on small screens */
@media (max-width: 768px) {
/* Mobile/Tablet hamburger menu - visible on screens up to 1024px (includes iPads) */
@media (max-width: 1024px) {
.mobile-toggle {
display: flex !important;
flex-direction: column;
@@ -676,8 +762,17 @@
}
}
/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
/* Desktop - hide mobile elements (only on screens larger than 1024px) */
@media (min-width: 1025px) {
.mobile-toggle {
display: none !important;
}
.mobile-menu,
.mobile-menu-overlay {
display: none !important;
}
.navbar-actions {
gap: 16px;
}
@@ -691,18 +786,6 @@
}
}
/* Desktop - hide mobile elements */
@media (min-width: 769px) {
.mobile-toggle {
display: none !important;
}
.mobile-menu,
.mobile-menu-overlay {
display: none !important;
}
}
/* Accessibility improvements */
.action-btn:focus,
.mobile-toggle:focus,