updateweb

This commit is contained in:
Local Server
2026-01-01 22:24:30 -06:00
parent 017c6376fc
commit 1919f6f8bb
185 changed files with 19860 additions and 17603 deletions

View File

@@ -1,467 +0,0 @@
/* ================================================
MODERN DESIGN SYSTEM - Sky Art Shop
Inspired by leading ecommerce platforms
================================================ */
:root {
/* Primary Color Palette */
--primary: #FF6B6B;
--primary-dark: #EE5A52;
--primary-light: #FF9999;
--secondary: #4ECDC4;
--accent: #FFE66D;
/* Neutral Colors */
--text-primary: #2D3436;
--text-secondary: #636E72;
--text-muted: #B2BEC3;
--bg-primary: #FFFFFF;
--bg-secondary: #F8F9FA;
--bg-tertiary: #E9ECEF;
--border-color: #E1E8ED;
/* Status Colors */
--success: #00B894;
--warning: #FDCB6E;
--error: #D63031;
--info: #74B9FF;
/* Spacing System (8px base) */
--space-xs: 0.5rem; /* 8px */
--space-sm: 1rem; /* 16px */
--space-md: 1.5rem; /* 24px */
--space-lg: 2rem; /* 32px */
--space-xl: 3rem; /* 48px */
--space-2xl: 4rem; /* 64px */
--space-3xl: 6rem; /* 96px */
/* Typography */
--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-display: 'Poppins', sans-serif;
--font-size-xs: 0.75rem; /* 12px */
--font-size-sm: 0.875rem; /* 14px */
--font-size-base: 1rem; /* 16px */
--font-size-lg: 1.125rem; /* 18px */
--font-size-xl: 1.25rem; /* 20px */
--font-size-2xl: 1.5rem; /* 24px */
--font-size-3xl: 2rem; /* 32px */
--font-size-4xl: 2.5rem; /* 40px */
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
--shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
/* Border Radius */
--radius-sm: 0.375rem; /* 6px */
--radius-md: 0.5rem; /* 8px */
--radius-lg: 0.75rem; /* 12px */
--radius-xl: 1rem; /* 16px */
--radius-2xl: 1.5rem; /* 24px */
--radius-full: 9999px;
/* Transitions */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
/* Z-index layers */
--z-dropdown: 1000;
--z-sticky: 1020;
--z-fixed: 1030;
--z-modal-backdrop: 1040;
--z-modal: 1050;
--z-popover: 1060;
--z-tooltip: 1070;
}
/* ================================================
RESET & BASE STYLES
================================================ */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--font-primary);
color: var(--text-primary);
background-color: var(--bg-primary);
line-height: 1.6;
overflow-x: hidden;
}
/* ================================================
TYPOGRAPHY
================================================ */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
font-weight: 600;
line-height: 1.2;
color: var(--text-primary);
}
h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--font-size-2xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }
h5 { font-size: var(--font-size-lg); margin-bottom: var(--space-sm); }
h6 { font-size: var(--font-size-base); margin-bottom: var(--space-sm); }
p {
margin-bottom: var(--space-sm);
color: var(--text-secondary);
}
a {
color: var(--primary);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover {
color: var(--primary-dark);
}
/* ================================================
CONTAINER & LAYOUT
================================================ */
.container {
width: 100%;
max-width: 1280px;
margin: 0 auto;
padding: 0 var(--space-lg);
}
.container-fluid {
width: 100%;
padding: 0 var(--space-lg);
}
.section {
padding: var(--space-3xl) 0;
}
.section-sm {
padding: var(--space-2xl) 0;
}
/* Grid System */
.grid {
display: grid;
gap: var(--space-lg);
}
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
/* ================================================
BUTTONS
================================================ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-lg);
font-family: var(--font-primary);
font-size: var(--font-size-base);
font-weight: 500;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-base);
text-decoration: none;
white-space: nowrap;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
box-shadow: var(--shadow-md);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
color: white;
}
.btn-secondary {
background: var(--secondary);
color: white;
}
.btn-outline {
background: transparent;
border: 2px solid var(--primary);
color: var(--primary);
}
.btn-outline:hover {
background: var(--primary);
color: white;
}
.btn-ghost {
background: transparent;
color: var(--text-primary);
}
.btn-ghost:hover {
background: var(--bg-secondary);
}
.btn-sm {
padding: var(--space-xs) var(--space-md);
font-size: var(--font-size-sm);
}
.btn-lg {
padding: var(--space-md) var(--space-xl);
font-size: var(--font-size-lg);
}
.btn-icon {
padding: var(--space-sm);
border-radius: var(--radius-full);
}
/* ================================================
CARDS
================================================ */
.card {
background: var(--bg-primary);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: all var(--transition-base);
}
.card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-4px);
}
.card-body {
padding: var(--space-lg);
}
/* ================================================
BADGES
================================================ */
.badge {
display: inline-flex;
align-items: center;
padding: var(--space-xs) var(--space-sm);
font-size: var(--font-size-xs);
font-weight: 600;
border-radius: var(--radius-full);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: #C6F6D5; color: #22543D; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-error { background: #FED7D7; color: #742A2A; }
.badge-info { background: #DBEAFE; color: #1E3A8A; }
/* ================================================
FORMS
================================================ */
.form-group {
margin-bottom: var(--space-md);
}
.form-label {
display: block;
margin-bottom: var(--space-xs);
font-size: var(--font-size-sm);
font-weight: 500;
color: var(--text-primary);
}
.form-control {
width: 100%;
padding: var(--space-sm) var(--space-md);
font-family: var(--font-primary);
font-size: var(--font-size-base);
color: var(--text-primary);
background: var(--bg-primary);
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
transition: all var(--transition-fast);
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.form-select {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636E72' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right var(--space-sm) center;
padding-right: var(--space-xl);
}
/* ================================================
FOOTER
================================================ */
.footer {
background: var(--text-primary);
color: white;
padding: var(--space-3xl) 0 var(--space-lg);
margin-top: var(--space-3xl);
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: var(--space-xl);
margin-bottom: var(--space-2xl);
}
.footer-col {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.footer-title {
font-size: var(--font-size-2xl);
font-weight: 700;
margin-bottom: var(--space-sm);
}
.footer-text {
color: var(--text-muted);
line-height: 1.6;
}
.footer-heading {
font-size: var(--font-size-base);
font-weight: 600;
margin-bottom: var(--space-sm);
}
.footer-links {
list-style: none;
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.footer-links a {
color: rgba(255, 255, 255, 0.7);
transition: color var(--transition-fast);
}
.footer-links a:hover {
color: white;
}
.footer-bottom {
padding-top: var(--space-lg);
border-top: 1px solid rgba(255, 255, 255, 0.1);
text-align: center;
color: rgba(255, 255, 255, 0.6);
}
.social-links {
display: flex;
gap: var(--space-sm);
}
.social-link {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
border-radius: var(--radius-full);
color: white;
transition: all var(--transition-fast);
}
.social-link:hover {
background: var(--primary);
transform: translateY(-2px);
}
/* ================================================
RESPONSIVE
================================================ */
@media (max-width: 1024px) {
.grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
.footer-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
html { font-size: 14px; }
.container { padding: 0 var(--space-md); }
.grid-cols-5,
.grid-cols-4,
.grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
.section { padding: var(--space-2xl) 0; }
h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
.footer-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.grid-cols-5,
.grid-cols-4,
.grid-cols-3,
.grid-cols-2 { grid-template-columns: 1fr; }
.btn { width: 100%; }
}

View File

@@ -391,136 +391,10 @@ p {
}
/* ====================================
Navigation Bar
Navigation Bar - See navbar.css for modern navbar styles
==================================== */
.navbar {
background-color: var(--bg-color);
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 1000;
}
.navbar-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
position: relative;
}
.nav-brand {
flex-shrink: 0;
}
.nav-brand a {
text-decoration: none;
display: flex;
align-items: center;
gap: 12px;
}
.logo-image {
width: 50px;
height: 50px;
object-fit: cover;
border-radius: 50%;
}
.nav-brand h1 {
font-size: 1.8rem;
color: var(--primary-color);
margin: 0;
}
.nav-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
display: flex;
pointer-events: none;
}
.nav-center .nav-menu {
pointer-events: auto;
}
.nav-menu {
display: flex;
gap: 2rem;
align-items: center;
list-style: none;
margin: 0;
padding: 0;
}
.nav-menu li {
margin: 0;
padding: 0;
}
.nav-menu a {
color: var(--text-color);
font-weight: 500;
transition: var(--transition);
position: relative;
white-space: nowrap;
text-decoration: none;
padding: 0.5rem 0;
display: block;
}
.nav-menu a:hover,
.nav-menu a.active {
color: var(--primary-color);
}
.nav-menu a.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
}
.nav-icons {
display: flex;
align-items: center;
gap: 1rem;
flex-shrink: 0;
}
.nav-icon {
position: relative;
color: var(--text-color);
font-size: 1.5rem;
transition: var(--transition);
text-decoration: none;
display: flex;
align-items: center;
}
.nav-icon:hover {
color: var(--primary-color);
}
.nav-icon .badge {
position: absolute;
top: -8px;
right: -8px;
background-color: var(--primary-color);
color: white;
font-size: 0.7rem;
font-weight: 600;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
text-align: center;
line-height: 1;
display: none;
}
/* Old navbar styles removed to prevent conflicts with modern-navbar */
/* All navbar styling is now in navbar.css */
/* Cart and Wishlist Dropdown */
.dropdown-container {
@@ -708,27 +582,7 @@ p {
text-decoration: none !important;
}
.nav-toggle {
display: flex;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 10px;
flex-shrink: 0;
}
.nav-toggle span {
width: 25px;
height: 3px;
background-color: var(--text-color);
transition: var(--transition);
}
.nav-toggle:hover span {
background-color: var(--primary-color);
}
/* Old nav-toggle styles removed - now in navbar.css */
.nav-dropdown {
display: none;
@@ -785,8 +639,10 @@ p {
grid-template-columns: 1fr 1fr;
gap: var(--spacing-lg);
align-items: center;
padding: var(--spacing-xl) 0;
background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
padding: var(--spacing-xl) 4rem;
background: #FFEBEB;
max-width: 1400px;
margin: 0 auto;
}
.hero-content {
@@ -833,7 +689,7 @@ p {
position: relative;
overflow: hidden;
border-radius: 10px;
padding-right: 2rem;
padding-right: 0;
}
.hero-image img {
@@ -1056,21 +912,25 @@ section {
background-color: white;
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow-sm);
box-shadow: 0 2px 8px rgba(252, 177, 216, 0.15);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid var(--border-color);
border: 1px solid #FFD0D0;
display: flex;
flex-direction: column;
height: 100%;
}
.product-card:hover {
box-shadow: var(--shadow-hover);
box-shadow: 0 4px 16px rgba(252, 177, 216, 0.25);
transform: translateY(-8px);
border-color: var(--primary-color);
border-color: #FCB1D8;
}
.product-image {
position: relative;
overflow: hidden;
height: 180px;
width: 100%;
aspect-ratio: 1;
}
.product-image img {
@@ -1084,30 +944,47 @@ section {
transform: scale(1.1);
}
.product-info {
flex: 1;
display: flex;
flex-direction: column;
padding: 16px;
gap: 8px;
}
.product-card h3 {
padding: var(--spacing-sm);
margin: 0;
font-size: 1.1rem;
font-weight: 600;
color: #202023;
line-height: 1.4;
}
.product-color-badge {
display: inline-block;
margin: 0 var(--spacing-sm) var(--spacing-xs);
margin: 8px 0;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
background: var(--primary-color);
color: white;
background: #FCB1D8;
color: #202023;
border-radius: 12px;
letter-spacing: 0.5px;
}
.product-description {
padding: 0 var(--spacing-sm);
font-size: 0.9rem;
color: var(--text-light);
margin-bottom: var(--spacing-xs);
color: #202023;
opacity: 0.7;
margin: 0;
line-height: 1.6;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* Product Description Rich Text Styles */
@@ -1141,14 +1018,47 @@ section {
}
.price {
padding: 0 var(--spacing-sm);
font-size: 1.3rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: var(--spacing-sm);
color: #FCB1D8;
margin: 0;
}
.product-card .btn {
.product-actions {
display: flex;
gap: 8px;
padding: 0 16px 16px 16px;
margin-top: auto;
}
.product-actions .btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 16px;
background: #FCB1D8;
color: #202023;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin: 0;
width: auto;
}
.product-actions .btn:hover {
background: #F6CCDE;
transform: translateY(-2px);
}
.product-actions .btn i {
font-size: 18px;
}
.product-card .btn:not(.product-actions .btn) {
width: calc(100% - var(--spacing-md));
margin: 0 var(--spacing-sm) var(--spacing-sm);
}
@@ -1858,6 +1768,7 @@ section {
.hero {
grid-template-columns: 1fr;
padding: var(--spacing-xl) 2rem;
}
.hero-content h2 {
@@ -3189,6 +3100,32 @@ section {
}
.product-card .product-link:hover h3 {
color: var(--primary-color);
color: #FCB1D8;
}
/* Product Title Link - Make entire title clickable */
.product-title-link {
text-decoration: none;
color: inherit;
display: block;
cursor: pointer;
transition: color 0.3s ease;
}
.product-title-link:hover {
color: #FCB1D8;
}
.product-title-link h3 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
color: inherit;
line-height: 1.4;
transition: color 0.3s ease;
}
.product-title-link:hover h3 {
color: #FCB1D8;
}

View File

@@ -1,464 +0,0 @@
/* ================================================
MODERN NAVIGATION - Ecommerce Style
================================================ */
.modern-nav {
position: sticky;
top: 0;
background: white;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
z-index: var(--z-sticky);
transition: all var(--transition-base);
}
/* Top Bar (Promo/Announcement) */
.nav-topbar {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
padding: var(--space-xs) 0;
font-size: var(--font-size-sm);
text-align: center;
}
.nav-topbar a {
color: white;
text-decoration: underline;
font-weight: 600;
}
/* Main Navigation */
.nav-main {
padding: var(--space-md) 0;
}
.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-xl);
}
/* Logo */
.nav-logo {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: var(--font-size-xl);
font-weight: 700;
color: var(--text-primary);
text-decoration: none;
}
.nav-logo-image {
height: 40px;
width: auto;
}
.nav-logo-text {
font-family: var(--font-display);
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Search Bar */
.nav-search {
flex: 1;
max-width: 600px;
position: relative;
}
.search-input-wrapper {
position: relative;
}
.search-input {
width: 100%;
padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-lg);
border: 2px solid var(--border-color);
border-radius: var(--radius-full);
font-size: var(--font-size-base);
transition: all var(--transition-fast);
}
.search-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.search-icon {
position: absolute;
left: var(--space-md);
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
pointer-events: none;
}
.search-btn {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
padding: var(--space-xs) var(--space-lg);
background: var(--primary);
color: white;
border: none;
border-radius: var(--radius-full);
cursor: pointer;
font-weight: 600;
transition: all var(--transition-fast);
}
.search-btn:hover {
background: var(--primary-dark);
}
/* Nav Actions */
.nav-actions {
display: flex;
align-items: center;
gap: var(--space-md);
}
.nav-icon-btn {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: var(--space-xs);
background: transparent;
border: none;
color: var(--text-primary);
cursor: pointer;
transition: all var(--transition-fast);
border-radius: var(--radius-md);
}
.nav-icon-btn:hover {
background: var(--bg-secondary);
color: var(--primary);
}
.nav-icon-btn i {
font-size: 24px;
}
.nav-icon-label {
font-size: var(--font-size-xs);
font-weight: 500;
}
.nav-badge {
position: absolute;
top: 0;
right: 0;
min-width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
background: var(--error);
color: white;
font-size: 10px;
font-weight: 700;
border-radius: var(--radius-full);
border: 2px solid white;
}
/* Nav Links */
.nav-links-wrapper {
border-top: 1px solid var(--border-color);
padding: var(--space-sm) 0;
}
.nav-links {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-xl);
list-style: none;
}
.nav-link {
position: relative;
padding: var(--space-xs) 0;
font-size: var(--font-size-base);
font-weight: 500;
color: var(--text-primary);
text-decoration: none;
transition: color var(--transition-fast);
}
.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: var(--primary);
transform: scaleX(0);
transition: transform var(--transition-base);
}
.nav-link:hover {
color: var(--primary);
}
.nav-link:hover::after,
.nav-link.active::after {
transform: scaleX(1);
}
/* Mobile Menu */
.mobile-menu-btn {
display: none;
padding: var(--space-sm);
background: transparent;
border: none;
color: var(--text-primary);
cursor: pointer;
font-size: 24px;
}
.mobile-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: var(--z-modal-backdrop);
opacity: 0;
transition: opacity var(--transition-base);
}
.mobile-overlay.active {
opacity: 1;
}
.mobile-menu {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 320px;
max-width: 90%;
background: white;
z-index: var(--z-modal);
transform: translateX(100%);
transition: transform var(--transition-base);
overflow-y: auto;
}
.mobile-menu.active {
transform: translateX(0);
}
.mobile-menu-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-lg);
border-bottom: 1px solid var(--border-color);
}
.mobile-menu-title {
font-size: var(--font-size-lg);
font-weight: 600;
}
.mobile-close-btn {
padding: var(--space-xs);
background: transparent;
border: none;
color: var(--text-primary);
cursor: pointer;
font-size: 24px;
}
.mobile-menu-content {
padding: var(--space-lg);
}
.mobile-nav-links {
display: flex;
flex-direction: column;
gap: var(--space-sm);
list-style: none;
margin-bottom: var(--space-xl);
}
.mobile-nav-link {
padding: var(--space-sm);
color: var(--text-primary);
text-decoration: none;
border-radius: var(--radius-md);
transition: all var(--transition-fast);
font-weight: 500;
}
.mobile-nav-link:hover {
background: var(--bg-secondary);
color: var(--primary);
}
/* Dropdown Menus */
.nav-dropdown {
position: relative;
}
.dropdown-content {
position: absolute;
top: 100%;
left: 0;
min-width: 280px;
background: white;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-xl);
padding: var(--space-md);
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: all var(--transition-base);
z-index: var(--z-dropdown);
}
.nav-dropdown:hover .dropdown-content {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown-items {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.dropdown-item {
padding: var(--space-sm) var(--space-md);
color: var(--text-primary);
text-decoration: none;
border-radius: var(--radius-md);
transition: all var(--transition-fast);
display: flex;
align-items: center;
gap: var(--space-sm);
}
.dropdown-item:hover {
background: var(--bg-secondary);
color: var(--primary);
}
/* Cart Dropdown */
.cart-dropdown {
min-width: 360px;
right: 0;
left: auto;
}
.cart-dropdown-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-md);
padding-bottom: var(--space-sm);
border-bottom: 1px solid var(--border-color);
}
.cart-items {
max-height: 300px;
overflow-y: auto;
margin-bottom: var(--space-md);
}
.cart-item {
display: flex;
gap: var(--space-sm);
padding: var(--space-sm);
border-radius: var(--radius-md);
transition: background var(--transition-fast);
}
.cart-item:hover {
background: var(--bg-secondary);
}
.cart-item-image {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: var(--radius-md);
}
.cart-item-info {
flex: 1;
}
.cart-item-name {
font-size: var(--font-size-sm);
font-weight: 600;
margin-bottom: 2px;
}
.cart-item-price {
font-size: var(--font-size-sm);
color: var(--primary);
font-weight: 600;
}
.cart-dropdown-footer {
padding-top: var(--space-md);
border-top: 1px solid var(--border-color);
}
.cart-total {
display: flex;
justify-content: space-between;
margin-bottom: var(--space-md);
font-weight: 600;
}
/* Responsive */
@media (max-width: 1024px) {
.nav-search {
max-width: 400px;
}
.nav-links-wrapper {
display: none;
}
}
@media (max-width: 768px) {
.nav-search {
display: none;
}
.nav-icon-label {
display: none;
}
.mobile-menu-btn,
.mobile-overlay,
.mobile-menu {
display: block;
}
.nav-actions {
gap: var(--space-sm);
}
.nav-icon-btn {
padding: var(--space-xs);
}
}

View File

@@ -1,590 +0,0 @@
/* ================================================
MODERN SHOP PAGE - Ecommerce Style
================================================ */
/* Hero Banner */
.shop-hero {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: var(--space-3xl) 0 var(--space-2xl);
color: white;
text-align: center;
position: relative;
overflow: hidden;
}
.shop-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
opacity: 0.1;
}
.shop-hero-content {
position: relative;
z-index: 1;
}
.shop-hero h1 {
color: white;
font-size: var(--font-size-4xl);
font-weight: 700;
margin-bottom: var(--space-sm);
}
.shop-hero p {
color: rgba(255, 255, 255, 0.9);
font-size: var(--font-size-lg);
margin-bottom: 0;
}
/* Categories Carousel */
.categories-section {
padding: var(--space-xl) 0;
background: var(--bg-secondary);
}
.categories-scroll {
display: flex;
gap: var(--space-md);
overflow-x: auto;
scroll-behavior: smooth;
padding: var(--space-sm) 0;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar {
display: none;
}
.category-chip {
flex-shrink: 0;
padding: var(--space-sm) var(--space-lg);
background: white;
border: 2px solid var(--border-color);
border-radius: var(--radius-full);
font-weight: 500;
color: var(--text-primary);
cursor: pointer;
transition: all var(--transition-fast);
white-space: nowrap;
}
.category-chip:hover,
.category-chip.active {
background: var(--primary);
color: white;
border-color: var(--primary);
transform: translateY(-2px);
}
/* Shop Layout */
.shop-container {
padding: var(--space-2xl) 0;
}
.shop-layout {
display: grid;
grid-template-columns: 280px 1fr;
gap: var(--space-xl);
}
/* Sidebar Filters */
.shop-sidebar {
position: sticky;
top: 100px;
height: fit-content;
background: white;
border-radius: var(--radius-lg);
padding: var(--space-lg);
box-shadow: var(--shadow-sm);
}
.filter-section {
margin-bottom: var(--space-xl);
}
.filter-section:last-child {
margin-bottom: 0;
}
.filter-title {
font-size: var(--font-size-lg);
font-weight: 600;
margin-bottom: var(--space-md);
color: var(--text-primary);
}
.filter-group {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.filter-option {
display: flex;
align-items: center;
gap: var(--space-sm);
cursor: pointer;
padding: var(--space-xs);
border-radius: var(--radius-sm);
transition: background var(--transition-fast);
}
.filter-option:hover {
background: var(--bg-secondary);
}
.filter-option input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
accent-color: var(--primary);
}
.filter-option label {
flex: 1;
cursor: pointer;
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.filter-count {
font-size: var(--font-size-xs);
color: var(--text-muted);
}
/* Price Range Slider */
.price-range {
padding: var(--space-md) 0;
}
.price-inputs {
display: flex;
gap: var(--space-sm);
margin-top: var(--space-md);
}
.price-input {
flex: 1;
padding: var(--space-xs) var(--space-sm);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
font-size: var(--font-size-sm);
}
/* Shop Main Content */
.shop-main {
min-width: 0;
}
/* Toolbar */
.shop-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-xl);
padding: var(--space-md) var(--space-lg);
background: white;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
flex-wrap: wrap;
gap: var(--space-md);
}
.shop-results {
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.shop-results strong {
color: var(--text-primary);
font-weight: 600;
}
.shop-controls {
display: flex;
align-items: center;
gap: var(--space-md);
}
.view-toggle {
display: flex;
gap: var(--space-xs);
}
.view-btn {
padding: var(--space-xs) var(--space-sm);
background: transparent;
border: none;
color: var(--text-muted);
cursor: pointer;
border-radius: var(--radius-sm);
transition: all var(--transition-fast);
}
.view-btn.active {
background: var(--primary);
color: white;
}
.sort-select {
padding: var(--space-xs) var(--space-lg) var(--space-xs) var(--space-md);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
font-size: var(--font-size-sm);
cursor: pointer;
background: white;
}
/* Products Grid */
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: var(--space-lg);
}
/* Product Card */
.product-card {
background: white;
border-radius: var(--radius-xl);
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: all var(--transition-base);
position: relative;
display: flex;
flex-direction: column;
}
.product-card:hover {
box-shadow: var(--shadow-xl);
transform: translateY(-8px);
}
.product-image-wrapper {
position: relative;
overflow: hidden;
background: var(--bg-secondary);
aspect-ratio: 1;
}
.product-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--transition-slow);
}
.product-card:hover .product-image {
transform: scale(1.1);
}
.product-badges {
position: absolute;
top: var(--space-sm);
left: var(--space-sm);
display: flex;
flex-direction: column;
gap: var(--space-xs);
z-index: 2;
}
.product-badge {
padding: var(--space-xs) var(--space-sm);
font-size: var(--font-size-xs);
font-weight: 700;
border-radius: var(--radius-sm);
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: var(--shadow-md);
}
.badge-new {
background: var(--secondary);
color: white;
}
.badge-sale {
background: var(--error);
color: white;
}
.badge-bestseller {
background: var(--accent);
color: var(--text-primary);
}
.product-actions {
position: absolute;
top: var(--space-sm);
right: var(--space-sm);
display: flex;
flex-direction: column;
gap: var(--space-xs);
opacity: 0;
transform: translateX(10px);
transition: all var(--transition-base);
}
.product-card:hover .product-actions {
opacity: 1;
transform: translateX(0);
}
.product-action-btn {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border: none;
border-radius: var(--radius-full);
cursor: pointer;
box-shadow: var(--shadow-md);
transition: all var(--transition-fast);
color: var(--text-primary);
}
.product-action-btn:hover {
background: var(--primary);
color: white;
transform: scale(1.1);
}
.product-action-btn.active {
background: var(--error);
color: white;
}
.product-info {
padding: var(--space-md);
flex: 1;
display: flex;
flex-direction: column;
}
.product-category {
font-size: var(--font-size-xs);
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: var(--space-xs);
}
.product-title {
font-size: var(--font-size-base);
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--space-xs);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.product-rating {
display: flex;
align-items: center;
gap: var(--space-xs);
margin-bottom: var(--space-sm);
}
.stars {
display: flex;
gap: 2px;
color: var(--accent);
}
.rating-count {
font-size: var(--font-size-xs);
color: var(--text-muted);
}
.product-price {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-md);
}
.price-current {
font-size: var(--font-size-xl);
font-weight: 700;
color: var(--primary);
}
.price-original {
font-size: var(--font-size-base);
color: var(--text-muted);
text-decoration: line-through;
}
.price-discount {
padding: 2px var(--space-xs);
background: var(--error);
color: white;
font-size: var(--font-size-xs);
font-weight: 700;
border-radius: var(--radius-sm);
}
.product-footer {
display: flex;
gap: var(--space-xs);
}
.add-to-cart-btn {
flex: 1;
padding: var(--space-sm);
background: var(--primary);
color: white;
border: none;
border-radius: var(--radius-md);
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
}
.add-to-cart-btn:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.quick-view-btn {
padding: var(--space-sm);
background: var(--bg-secondary);
color: var(--text-primary);
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-fast);
}
.quick-view-btn:hover {
background: var(--text-primary);
color: white;
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: var(--space-sm);
margin-top: var(--space-2xl);
}
.page-btn {
min-width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
color: var(--text-primary);
cursor: pointer;
transition: all var(--transition-fast);
}
.page-btn:hover {
background: var(--primary);
color: white;
border-color: var(--primary);
}
.page-btn.active {
background: var(--primary);
color: white;
border-color: var(--primary);
}
/* Mobile Filter Toggle */
.mobile-filter-btn {
display: none;
width: 100%;
padding: var(--space-md);
background: var(--primary);
color: white;
border: none;
border-radius: var(--radius-lg);
font-weight: 600;
cursor: pointer;
margin-bottom: var(--space-lg);
}
/* Responsive */
@media (max-width: 1024px) {
.shop-layout {
grid-template-columns: 1fr;
}
.shop-sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 320px;
max-width: 90%;
transform: translateX(-100%);
transition: transform var(--transition-base);
z-index: var(--z-modal);
overflow-y: auto;
}
.shop-sidebar.active {
transform: translateX(0);
}
.mobile-filter-btn {
display: block;
}
.products-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
}
@media (max-width: 640px) {
.shop-hero {
padding: var(--space-2xl) 0;
}
.shop-hero h1 {
font-size: var(--font-size-2xl);
}
.shop-toolbar {
flex-direction: column;
align-items: stretch;
}
.shop-controls {
justify-content: space-between;
}
.products-grid {
grid-template-columns: repeat(2, 1fr);
gap: var(--space-md);
}
.product-info {
padding: var(--space-sm);
}
.product-title {
font-size: var(--font-size-sm);
}
.price-current {
font-size: var(--font-size-lg);
}
}

View File

@@ -1,10 +1,19 @@
/* Import Amsterdam Three Font */
@font-face {
font-family: 'Amsterdam Three';
src: url('/assets/fonts/AmsterdamThreeSlant-axaym.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* Modern Navbar Styles */
.modern-navbar {
position: sticky;
top: 0;
z-index: 1000;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
background: #FFD0D0;
box-shadow: none;
font-family: 'Roboto', sans-serif;
}
@@ -12,21 +21,23 @@
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
height: 72px;
}
/* Logo Section */
.navbar-brand {
flex-shrink: 0;
flex-shrink: 0 !important;
min-width: 240px !important;
margin-right: 48px !important;
}
.brand-link {
display: flex;
align-items: center;
gap: 12px;
display: flex !important;
align-items: center !important;
gap: 20px !important;
text-decoration: none;
transition: opacity 0.2s;
}
@@ -36,32 +47,34 @@
}
.brand-logo {
width: 48px;
height: 48px;
width: 56px;
height: 56px;
object-fit: contain;
border-radius: 8px;
}
.brand-name {
font-family: 'Amsterdam Three', cursive;
font-size: 20px;
font-weight: 600;
color: #1a1a1a;
letter-spacing: 0.3px;
font-weight: 400;
color: #202023;
letter-spacing: 0.5px;
white-space: nowrap;
}
/* Main Navigation */
.navbar-menu {
flex: 1;
display: flex;
justify-content: center;
padding: 0 32px;
flex: 1 !important;
display: flex !important;
justify-content: center !important;
padding: 0 60px !important;
min-width: 0 !important;
}
.nav-menu-list {
display: flex;
align-items: center;
gap: 8px;
display: flex !important;
align-items: center !important;
gap: 8px !important;
list-style: none;
margin: 0;
padding: 0;
@@ -76,7 +89,7 @@
padding: 10px 20px;
font-size: 15px;
font-weight: 500;
color: #4a4a4a;
color: #202023;
text-decoration: none;
border-radius: 6px;
transition: all 0.2s;
@@ -85,16 +98,19 @@
.nav-link:hover,
.nav-link.active {
color: #6b46c1;
background: #f3f0ff;
color: #202023;
background: #FCB1D8;
}
/* Right Actions */
.navbar-actions {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
display: flex !important;
align-items: center !important;
gap: 16px !important;
flex-shrink: 0 !important;
min-width: 120px !important;
justify-content: flex-end !important;
margin-left: 48px !important;
}
.action-item {
@@ -110,7 +126,7 @@
height: 44px;
border: none;
background: transparent;
color: #4a4a4a;
color: #202023;
font-size: 22px;
border-radius: 50%;
cursor: pointer;
@@ -118,8 +134,8 @@
}
.action-btn:hover {
background: #f5f5f5;
color: #6b46c1;
background: #FFEBEB;
color: #202023;
}
.action-badge {
@@ -129,8 +145,8 @@
min-width: 18px;
height: 18px;
padding: 0 5px;
background: #dc2626;
color: white;
background: #FCB1D8;
color: #202023;
font-size: 11px;
font-weight: 600;
border-radius: 9px;
@@ -338,8 +354,9 @@
}
.mobile-brand {
font-size: 18px;
font-weight: 600;
font-family: 'Amsterdam Three', cursive;
font-size: 22px;
font-weight: 400;
color: #1a1a1a;
}
@@ -397,6 +414,15 @@
.mobile-toggle {
display: flex;
}
.navbar-brand {
min-width: auto;
margin-right: auto;
}
.navbar-actions {
margin-left: 16px;
}
}
@media (max-width: 640px) {
@@ -410,8 +436,18 @@
}
.brand-logo {
width: 40px;
height: 40px;
width: 44px;
height: 44px;
}
.navbar-brand {
min-width: auto;
margin-right: 12px;
}
.navbar-actions {
margin-left: 12px;
gap: 8px;
}
.action-dropdown {

View File

@@ -0,0 +1,439 @@
/**
* Enhanced Responsive Utilities
* Comprehensive responsive design system with accessibility
*/
/* ========================================
LOADING STATES
======================================== */
.loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 200px;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* ========================================
PRODUCT GRID RESPONSIVE
======================================== */
.products-grid {
display: grid;
gap: 24px;
grid-template-columns: 1fr;
}
@media (min-width: 640px) {
.products-grid {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
}
@media (min-width: 768px) {
.products-grid {
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
}
@media (min-width: 1024px) {
.products-grid {
grid-template-columns: repeat(4, 1fr);
gap: 28px;
}
}
@media (min-width: 1280px) {
.products-grid {
grid-template-columns: repeat(4, 1fr);
gap: 32px;
}
}
/* ========================================
PRODUCT CARD RESPONSIVE
======================================== */
.product-card {
display: flex;
flex-direction: column;
height: 100%;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(252, 177, 216, 0.15);
transition: all 0.3s ease;
}
.product-card:hover {
box-shadow: 0 4px 16px rgba(252, 177, 216, 0.25);
transform: translateY(-4px);
}
.product-image {
position: relative;
width: 100%;
aspect-ratio: 1;
overflow: hidden;
border-radius: 0;
}
.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
transform: scale(1.05);
}
.product-info {
flex: 1;
display: flex;
flex-direction: column;
padding: 16px;
gap: 8px;
}
.product-info h3 {
font-size: 16px;
font-weight: 600;
margin: 0;
line-height: 1.4;
color: #202023;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.product-description {
font-size: 14px;
color: #202023;
opacity: 0.7;
margin: 0;
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
flex: 1;
min-height: 42px;
}
.product-card .price {
font-size: 20px;
font-weight: 700;
color: #FCB1D8;
margin: 0;
}
.product-actions {
display: flex;
gap: 8px;
padding: 0 16px 16px 16px;
margin-top: auto;
}
.product-actions .btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 16px;
background: #FCB1D8;
color: #202023;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.product-actions .btn:hover {
background: #F6CCDE;
transform: translateY(-2px);
}
.product-actions .btn i {
font-size: 18px;
}
@media (max-width: 639px) {
.product-info h3 {
font-size: 14px;
}
.product-description {
font-size: 13px;
-webkit-line-clamp: 2;
}
.product-card .price {
font-size: 18px;
}
}
/* ========================================
NAVBAR RESPONSIVE
======================================== */
.modern-navbar {
padding: 0 20px;
}
@media (min-width: 768px) {
.modern-navbar {
padding: 0 40px;
}
}
@media (min-width: 1024px) {
.modern-navbar {
padding: 0 60px;
}
}
.navbar-brand {
min-width: 200px;
}
@media (max-width: 767px) {
.navbar-brand {
min-width: 150px;
}
.navbar-menu {
display: none;
}
}
/* ========================================
MOBILE MENU
======================================== */
.mobile-menu {
position: fixed;
top: 0;
left: -100%;
width: 280px;
height: 100vh;
background: white;
z-index: 9999;
transition: left 0.3s ease;
overflow-y: auto;
box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.mobile-menu.active {
left: 0;
}
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 9998;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.active ~ .mobile-menu-overlay,
.mobile-menu-overlay.active {
opacity: 1;
visibility: visible;
}
@media (min-width: 768px) {
.mobile-menu-toggle {
display: none;
}
}
/* ========================================
BUTTONS RESPONSIVE
======================================== */
.btn {
padding: 10px 20px;
font-size: 14px;
border-radius: 6px;
transition: all 0.2s;
}
.btn-small {
padding: 8px 16px;
font-size: 13px;
}
.btn-icon {
width: 40px;
height: 40px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
}
@media (max-width: 639px) {
.btn {
padding: 8px 16px;
font-size: 13px;
}
.btn-small {
padding: 6px 12px;
font-size: 12px;
}
.btn-icon {
width: 36px;
height: 36px;
}
}
/* ========================================
UTILITY CLASSES
======================================== */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
@media (min-width: 768px) {
.container {
padding: 0 40px;
}
}
@media (min-width: 1024px) {
.container {
padding: 0 60px;
}
}
/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
/* Display utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
/* Responsive visibility */
@media (max-width: 639px) {
.hidden-mobile { display: none !important; }
}
@media (min-width: 640px) and (max-width: 767px) {
.hidden-tablet { display: none !important; }
}
@media (min-width: 768px) {
.hidden-desktop { display: none !important; }
}
@media (max-width: 639px) {
.visible-mobile { display: block !important; }
}
@media (min-width: 640px) and (max-width: 767px) {
.visible-tablet { display: block !important; }
}
@media (min-width: 768px) {
.visible-desktop { display: block !important; }
}
/* ========================================
ACCESSIBILITY
======================================== */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border-width: 0;
}
.skip-link {
position: fixed;
top: -100px;
left: 10px;
background: #667eea;
color: white;
padding: 10px 20px;
border-radius: 4px;
text-decoration: none;
z-index: 10001;
transition: top 0.2s;
}
.skip-link:focus {
top: 10px;
outline: 2px solid white;
outline-offset: 2px;
}
*:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
/* ========================================
PRINT STYLES
======================================== */
@media print {
.modern-navbar,
.mobile-menu,
.notification-container,
.btn,
footer {
display: none !important;
}
body {
font-size: 12pt;
line-height: 1.5;
}
.product-card {
page-break-inside: avoid;
}
}

View File

@@ -0,0 +1,626 @@
/**
* Responsive Layout Utilities
* Mobile-first responsive design system
*/
/* ========================================
RESPONSIVE UTILITIES
======================================== */
/* Loading States */
.loading {
position: relative;
pointer-events: none;
opacity: 0.6;
}
.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
margin: -20px 0 0 -20px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Accessibility */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border-width: 0;
}
.focus-visible:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
}
/* Responsive Images */
img {
max-width: 100%;
height: auto;
display: block;
}
/* Container Queries */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
@media (min-width: 768px) {
.container {
padding: 0 40px;
}
}
@media (min-width: 1024px) {
.container {
padding: 0 60px;
}
}
/* Grid System */
.grid {
display: grid;
gap: 20px;
grid-template-columns: 1fr;
}
@media (min-width: 640px) {
.grid-2 {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 768px) {
.grid-3 {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 1024px) {
.grid-4 {
grid-template-columns: repeat(4, 1fr);
}
}
/* Flex Utilities */
.flex {
display: flex;
}
.flex-col {
flex-direction: column;
}
.flex-wrap {
flex-wrap: wrap;
}
.items-center {
align-items: center;
}
.justify-between {
justify-content: space-between;
}
.justify-center {
justify-content: center;
}
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
/* Spacing */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
/* Display Utilities */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
@media (max-width: 639px) {
.sm\\:hidden { display: none !important; }
}
@media (min-width: 640px) {
.sm\\:block { display: block; }
}
@media (max-width: 767px) {
.md\\:hidden { display: none !important; }
}
@media (min-width: 768px) {
.md\\:block { display: block; }
.md\\:flex { display: flex; }
}
@media (max-width: 1023px) {
.lg\\:hidden { display: none !important; }
}
@media (min-width: 1024px) {
.lg\\:block { display: block; }
.lg\\:flex { display: flex; }
}
/* ========================================
RESPONSIVE PRODUCT CARDS
======================================== */
.products-grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
padding: 20px 0;
}
@media (min-width: 640px) {
.products-grid {
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
}
@media (min-width: 768px) {
.products-grid {
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
}
@media (min-width: 1024px) {
.products-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.product-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.product-image-wrapper {
position: relative;
padding-top: 100%;
overflow: hidden;
background: #f5f5f5;
}
.product-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.product-info {
padding: 16px;
}
.product-title {
font-size: 1rem;
font-weight: 600;
margin: 0 0 8px 0;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.product-price {
font-size: 1.25rem;
font-weight: 700;
color: #667eea;
margin: 0 0 12px 0;
}
.product-actions {
display: flex;
gap: 8px;
flex-direction: column;
}
@media (min-width: 768px) {
.product-actions {
flex-direction: row;
}
}
.wishlist-btn {
position: absolute;
top: 12px;
right: 12px;
width: 40px;
height: 40px;
border-radius: 50%;
background: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
color: #666;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
z-index: 10;
}
.wishlist-btn:hover {
background: #667eea;
color: white;
transform: scale(1.1);
}
.wishlist-btn.active {
background: #dc3545;
color: white;
}
/* ========================================
RESPONSIVE CART/WISHLIST DROPDOWNS
======================================== */
.action-dropdown {
position: absolute;
top: 100%;
right: 0;
width: 100vw;
max-width: 400px;
background: white;
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
border-radius: 12px;
margin-top: 8px;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s ease;
z-index: 1000;
max-height: 80vh;
overflow-y: auto;
}
@media (max-width: 639px) {
.action-dropdown {
position: fixed;
top: auto;
bottom: 0;
left: 0;
right: 0;
max-width: 100%;
border-radius: 12px 12px 0 0;
transform: translateY(100%);
}
}
.action-dropdown.active {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid #eee;
}
.dropdown-head h3 {
margin: 0;
font-size: 1.125rem;
font-weight: 600;
}
.dropdown-close {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: #666;
padding: 4px;
line-height: 1;
}
.dropdown-body {
padding: 16px;
max-height: 400px;
overflow-y: auto;
}
.dropdown-foot {
padding: 16px 20px;
border-top: 1px solid #eee;
}
.cart-item,
.wishlist-item {
display: flex;
gap: 12px;
padding: 12px 0;
border-bottom: 1px solid #eee;
}
.cart-item:last-child,
.wishlist-item:last-child {
border-bottom: none;
}
.cart-item-image,
.wishlist-item-image {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
}
.cart-item-details,
.wishlist-item-details {
flex: 1;
}
.cart-item-title,
.wishlist-item-title {
font-size: 0.875rem;
font-weight: 600;
margin: 0 0 4px 0;
}
.cart-item-price,
.wishlist-item-price {
font-size: 0.875rem;
color: #667eea;
font-weight: 600;
margin: 0;
}
.cart-item-remove,
.wishlist-item-remove {
background: none;
border: none;
color: #999;
cursor: pointer;
padding: 4px;
font-size: 16px;
}
.cart-item-remove:hover,
.wishlist-item-remove:hover {
color: #dc3545;
}
.empty-state {
text-align: center;
padding: 40px 20px;
color: #999;
}
/* ========================================
RESPONSIVE BUTTONS
======================================== */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 24px;
font-size: 1rem;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
border: none;
white-space: nowrap;
}
.btn-primary,
.btn-primary-full {
background: #667eea;
color: white;
width: 100%;
}
.btn-primary:hover {
background: #5568d3;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.btn-secondary {
background: #28a745;
color: white;
}
.btn-secondary:hover {
background: #218838;
}
.btn-outline {
background: white;
color: #667eea;
border: 2px solid #667eea;
width: 100%;
}
.btn-outline:hover {
background: #667eea;
color: white;
}
.btn-text {
background: none;
color: #667eea;
text-decoration: underline;
padding: 8px;
}
@media (max-width: 639px) {
button,
.btn {
font-size: 0.875rem;
padding: 10px 20px;
}
}
/* ========================================
RESPONSIVE NAVIGATION
======================================== */
/* Navbar styles removed - see navbar.css for all navbar styling */
.action-btn {
position: relative;
background: none;
border: none;
font-size: 24px;
color: #333;
cursor: pointer;
padding: 8px;
}
.action-badge {
position: absolute;
top: 0;
right: 0;
background: #dc3545;
color: white;
font-size: 10px;
font-weight: 700;
min-width: 18px;
height: 18px;
border-radius: 9px;
display: none;
align-items: center;
justify-content: center;
padding: 0 4px;
}
/* Mobile Menu */
@media (max-width: 767px) {
.mobile-menu-toggle {
display: block;
background: none;
border: none;
font-size: 24px;
cursor: pointer;
padding: 8px;
}
.mobile-menu {
position: fixed;
top: 0;
right: -100%;
width: 80%;
max-width: 300px;
height: 100vh;
background: white;
box-shadow: -4px 0 12px rgba(0,0,0,0.1);
transition: right 0.3s ease;
z-index: 1001;
overflow-y: auto;
}
.mobile-menu.active {
right: 0;
}
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0,0,0,0.5);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
}
.mobile-menu-overlay.active {
opacity: 1;
visibility: visible;
}
}
/* Print Styles */
@media print {
.modern-navbar,
.navbar-actions,
.mobile-menu,
.action-dropdown,
button {
display: none !important;
}
}

View File

@@ -1,361 +0,0 @@
/* Toast Notifications */
.toast-notification {
position: fixed;
top: 20px;
right: 20px;
min-width: 300px;
max-width: 500px;
padding: 16px 20px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
gap: 12px;
z-index: 10000;
opacity: 0;
transform: translateX(400px);
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-notification.show {
opacity: 1;
transform: translateX(0);
}
.toast-icon {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
flex-shrink: 0;
}
.toast-success {
border-left: 4px solid #28a745;
}
.toast-success .toast-icon {
background: #28a745;
color: white;
}
.toast-error {
border-left: 4px solid #dc3545;
}
.toast-error .toast-icon {
background: #dc3545;
color: white;
}
.toast-warning {
border-left: 4px solid #ffc107;
}
.toast-warning .toast-icon {
background: #ffc107;
color: #000;
}
.toast-info {
border-left: 4px solid #17a2b8;
}
.toast-info .toast-icon {
background: #17a2b8;
color: white;
}
.toast-message {
flex: 1;
color: #333;
font-size: 14px;
line-height: 1.4;
}
.toast-close {
background: none;
border: none;
font-size: 20px;
color: #999;
cursor: pointer;
padding: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s;
flex-shrink: 0;
}
.toast-close:hover {
color: #333;
}
.toast-close:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
border-radius: 4px;
}
/* Screen Reader Only */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Skip to Main Content Link */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: #667eea;
color: white;
padding: 8px 16px;
text-decoration: none;
border-radius: 0 0 4px 0;
z-index: 10001;
}
.skip-link:focus {
top: 0;
}
/* Focus Styles - Accessibility */
*:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
outline: none;
}
/* Loading Spinner */
.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.spinner-small {
width: 20px;
height: 20px;
border-width: 2px;
}
/* Loading Overlay */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.loading-overlay .spinner {
border-color: rgba(255, 255, 255, 0.3);
border-top-color: white;
}
/* Responsive Images */
img {
max-width: 100%;
height: auto;
}
/* Responsive Typography */
html {
font-size: 16px;
}
@media (max-width: 768px) {
html {
font-size: 14px;
}
}
@media (max-width: 480px) {
html {
font-size: 13px;
}
}
/* Responsive Containers */
.container-fluid {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 576px) {
.container {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container {
max-width: 720px;
}
}
@media (min-width: 992px) {
.container {
max-width: 960px;
}
}
@media (min-width: 1200px) {
.container {
max-width: 1140px;
}
}
@media (min-width: 1400px) {
.container {
max-width: 1320px;
}
}
/* Mobile Responsive Utilities */
@media (max-width: 768px) {
.toast-notification {
right: 10px;
left: 10px;
min-width: auto;
max-width: calc(100% - 20px);
}
.hide-mobile {
display: none !important;
}
}
@media (min-width: 769px) {
.show-mobile-only {
display: none !important;
}
}
/* Tablet Specific */
@media (min-width: 768px) and (max-width: 1024px) {
.hide-tablet {
display: none !important;
}
}
/* Desktop Specific */
@media (min-width: 1025px) {
.hide-desktop {
display: none !important;
}
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* High Contrast Mode */
@media (prefers-contrast: high) {
* {
border-width: 2px !important;
}
button,
a {
text-decoration: underline;
}
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
.toast-notification {
background: #2d3748;
color: #fff;
}
.toast-message {
color: #e2e8f0;
}
.toast-close {
color: #a0aec0;
}
.toast-close:hover {
color: #e2e8f0;
}
}
/* Print Styles */
@media print {
.no-print,
.toast-notification,
.skip-link,
button,
nav {
display: none !important;
}
a[href]:after {
content: " (" attr(href) ")";
}
img {
max-width: 100% !important;
}
}