webupdate
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user