* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #f8f8f8; color: #222; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { background: #111; color: white; padding: 15px 0; }
header h1 { margin: 0; font-size: 1.5rem; }
header h1 a { color: white; text-decoration: none; }
nav a { color: white; margin-left: 20px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { text-align: center; padding: 60px 0; background: #fff; }
.hero h2 { font-size: 2.5rem; margin-bottom: 10px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 40px 0; }
.product-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-decoration: none; color: inherit; }
.product-card img { width: 100%; height: 300px; object-fit: cover; }
.product-card h3 { padding: 15px; margin: 0; }
.product-card .price { padding: 0 15px 15px; font-weight: bold; }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0; }
.product-images img { width: 100%; border-radius: 8px; cursor: pointer; margin-bottom: 10px; }
.product-info h1 { margin-top: 0; }
.btn { background: #111; color: white; border: none; padding: 14px 28px; font-size: 1rem; border-radius: 4px; cursor: pointer; }
.btn:hover { background: #333; }
.btn-secondary { background: #555; }
.cart-table { width: 100%; border-collapse: collapse; background: white; }
.cart-table th, .cart-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
footer { background: #111; color: white; text-align: center; padding: 20px 0; margin-top: 60px; }
.alert { padding: 15px; background: #e8f5e9; border-radius: 4px; margin: 20px 0; }
@media (max-width: 700px) { .product-page { grid-template-columns: 1fr; } }

.product-gallery { max-height: 80vh; overflow-y: auto; }
.carousel { display: flex; flex-direction: column; gap: 15px; }
.carousel-img { width: 100%; border-radius: 8px; }
.color-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.color-tag { background: #eee; padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; }
.feedback { margin-top: 15px; padding: 12px; border-radius: 6px; background: #e8f5e9; color: #2e7d32; display: none; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.gallery-img { background:#fff; border-radius:8px; margin-bottom:10px; }
.thumbnails { display:flex; flex-wrap:wrap; margin-top:10px; }
.thumb:hover, .thumb.active { border-color:#111 !important; }
.qty-btn, .remove-btn { background:#eee; border:none; padding:4px 10px; cursor:pointer; margin:0 5px; }
.feedback { margin-top:15px; padding:12px; border-radius:6px; background:#e8f5e9; color:#2e7d32; display:none; }
.cart-link { position:relative; display:inline-flex; align-items:center; }
.cart-icon { position:relative; }
.cart-badge {
    position:absolute; top:-8px; right:-10px;
    background:#e53935; color:#fff; border-radius:50%;
    min-width:18px; height:18px; font-size:11px; font-weight:bold;
    display:flex; align-items:center; justify-content:center;
    line-height:1;
}
@keyframes cartPulse {
    0% { transform:scale(1); }
    40% { transform:scale(1.25); }
    100% { transform:scale(1); }
}
.cart-added { animation: cartPulse 0.5s ease; }
.feedback {
    margin-top:12px; padding:10px 14px; border-radius:6px;
    background:#e8f5e9; color:#2e7d32; display:none;
    animation: slideIn 0.4s ease;
}
@keyframes slideIn {
    from { opacity:0; transform:translateY(-8px); }
    to { opacity:1; transform:none; }
}
@media (max-width:768px) {
    nav { flex-wrap:wrap; gap:10px; }
    .product-page { grid-template-columns:1fr; }
}

/* Responsive products: 2 columns on mobile */
@media (max-width: 768px) {
    .products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .product-card img { height: 180px !important; }
    .product-card h3 { font-size: 0.9rem; }
    .product-card .price { font-size: 0.95rem; }
}

/* Size buttons */
.size-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.size-btn {
    min-width: 48px; padding: 10px 14px; border: 1px solid #ddd; background: #fff;
    cursor: pointer; border-radius: 4px; font-weight: 500; transition: all 0.15s;
}
.size-btn:hover { border-color: #999; }
.size-btn.active { border-color: #111; background: #111; color: #fff; }

/* Hamburger menu */
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #fff; }
@media (max-width: 900px) {
    .hamburger { display: block; }
    nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #111; flex-direction: column; padding: 20px; z-index: 100; }
    nav.open { display: flex; }
    nav a { padding: 12px 0; border-bottom: 1px solid #333; }
}

/* Cart table improvements */
.cart-table { width: 100%; }
.cart-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
@media (max-width: 600px) {
    .btn { width: 100%; text-align: center; display: block; }
    .cart-table td { padding: 8px 4px; font-size: 0.9rem; }
}

/* Checkout summary on mobile */
@media (max-width: 768px) {
    .checkout-layout { flex-direction: column-reverse; }
    .checkout-summary { order: -1; margin-bottom: 20px; }
    .summary-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 12px; background: #f5f5f5; border-radius: 6px; }
    .summary-details { display: none; }
    .summary-details.open { display: block; }
}
.size-btn.active { border-color:#111 !important; background:#111 !important; color:#fff !important; }
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr !important; }
    .summary-box { order: -1; margin-bottom: 20px; position: static !important; }
    .summary-box.collapsed .summary-content { display: none; }
    .summary-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
}
.summary-header { padding: 12px 16px; background: #fff8f0; border-radius: 8px; font-weight: 600; }
.summary-box.collapsed .summary-content { display: none; }
@media (min-width: 901px) {
    .summary-box.collapsed .summary-content { display: block; }
    .summary-header { cursor: default; }
}

a, a:visited { color:inherit; text-decoration:none; }
a:hover { text-decoration:none; }

a, a:link, a:visited, a:hover, a:active { text-decoration: none !important; }
nav a, .submenu a { text-decoration: none !important; }
