* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
}

/* Header */
.header {
background: #fff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}

.header-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 80px;
position: relative;
}

.logo {
max-width: 300px;
display: flex;
align-items: center;
top: -50px;
}

.logo-icon::before {
content: "S+";
transform: skew(10deg);
}

.nav-menu {
display: flex;
list-style: none;
gap: 40px;
padding-right: 100px;
}

.nav-menu a {
text-decoration: none;
color: #666;
font-weight: 500;
transition: color 0.3s ease;
position: relative;
}

.nav-menu a:hover {
color: #4A90E2;
}

.nav-menu a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: #4A90E2;
transition: width 0.3s ease;
}

.nav-menu a:hover::after {
width: 100%;
}

.nav-menu a.active {
color: #4A90E2;
}

.nav-menu a.active::after {
width: 100%;
}

.nav-align-right {
    margin-left: auto;
}

.auth-button {
background: #fff;
border: 2px solid #e0e0e0;
padding: 10px 20px;
border-radius: 8px;
text-decoration: none;
color: #666;
font-weight: 500;
transition: all 0.3s ease;
}

.auth-button:hover {
border-color: #4A90E2;
color: #4A90E2;
}

/* Main Content Area */
.main-content {
max-width: 1200px;
margin: 0 auto;
padding: 0px 20px;
min-height: calc(100vh - 200px);
}

/* Footer */
.footer {
background: #2c3e50;
color: #ecf0f1;
padding: 50px 0 30px;
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.footer-content {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 40px;
margin-bottom: 40px;
}

.footer-logo-icon::before {
content: "S+";
transform: skew(10deg);
}

.footer-brand-info h3 {
color: #4A90E2;
font-size: 24px;
margin-bottom: 10px;
}

.footer-brand-info p {
color: #bdc3c7;
line-height: 1.6;
font-size: 14px;
}

.footer-section h4 {
color: #ecf0f1;
font-size: 18px;
margin-bottom: 20px;
font-weight: 600;
}

.footer-section ul {
list-style: none;
}

.footer-section ul li {
margin-bottom: 10px;
}

.footer-section ul li a {
color: #bdc3c7;
text-decoration: none;
transition: color 0.3s ease;
font-size: 14px;
}

.footer-section ul li a:hover {
color: #4A90E2;
}

.footer-contact p {
color: #bdc3c7;
margin-bottom: 8px;
font-size: 14px;
}

.footer-contact strong {
color: #ecf0f1;
}

.footer-bottom {
border-top: 1px solid #34495e;
padding-top: 20px;
text-align: center;
color: #95a5a6;
font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
height: auto;
padding: 20px;
}

.nav-menu {
margin-top: 20px;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
padding-right: 70px;
}

.auth-button {
margin-top: 15px;
}

.main-content {
padding: 20px;
}

.footer-content {
grid-template-columns: 1fr;
gap: 30px;
}
}

@media (max-width: 480px) {
.nav-menu {
flex-direction: column;
gap: 15px;
}
}

.child-wrapper {
    width: 300px;
}

.messages {
    margin: 20px 0;
}

.messages .alert {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.messages .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.messages .alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.messages .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.messages .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

html[data-cart-visible="1"] .cart-menu-btn,
.cart-menu-btn {
position: absolute;
right: 50px;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
text-decoration: none;
display: none;
}
html[data-cart-visible="1"] .cart-menu-btn.is-visible,
.cart-menu-btn.is-visible {
display: inline-flex;
align-items: center;
justify-content: center;
}
.cart-menu-btn svg {
display: block;
}

.cart-menu-btn .cart-badge {
    position: absolute;
    top: 25px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    display: none;
}
.cart-menu-btn.is-visible .cart-badge.has-items { display: inline-block; }

@media (max-width: 768px) {
  .cart-menu-btn { right: 20px; }
}