* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}





.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #764ba2;
    font-size: 2em;
}

h1.title
{
  display: flex;
  align-items: center;      /* vertically center image and text */
  gap: 3rem;                /* space between the image and text */
  font-size: 1.8em;         /* adjust as you like */
}

h1.title > a.link 
{
  display: flex;
  align-items: center;
	text-decoration: none;
}

h1.title img 
{
  vertical-align: middle;   /* optional, extra safety */
  border-radius: 50%;       /* optional, if you want a round avatar */
	height: 64px;
}

 

.cart-icon {
    background: #764ba2;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: bold;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    --xbackground: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.2);
}
 

.product-card:nth-child(1) img { filter: sepia(0.2) contrast(1.1) hue-rotate(0deg); } 
.product-card:nth-child(2) img { filter: sepia(0.2) contrast(1.1) hue-rotate(5deg); transform: scaleX(-1); } 
.product-card:nth-child(3) img { filter: sepia(0.2) contrast(1.1) hue-rotate(355deg); }
.product-card:nth-child(4) img { filter: sepia(0.2) contrast(1.1) hue-rotate(10deg); transform: scaleX(-1); }
.product-card:nth-child(5) img { filter: sepia(0.2) contrast(1.1) hue-rotate(350deg); }
.product-card:nth-child(6) img { filter: sepia(0.2) contrast(1.1) hue-rotate(360deg); transform: scaleX(-1); }

.product-card:nth-child(1) img { filter: sepia(0.2) contrast(1.1) hue-rotate(0deg); } 
.product-card:nth-child(2) img { filter: sepia(0.2) contrast(1.1) hue-rotate(5deg); transform: scaleX(-1); } 
.product-card:nth-child(3) img { filter: sepia(0.2) contrast(1.1) hue-rotate(355deg); }
.product-card:nth-child(4) img { filter: sepia(0.2) contrast(1.1) hue-rotate(10deg); transform: scaleX(-1); }
.product-card:nth-child(5) img { filter: sepia(0.2) contrast(1.1) hue-rotate(350deg); }
.product-card:nth-child(6) img { filter: sepia(0.2) contrast(1.1) hue-rotate(360deg); transform: scaleX(-1); }

.product-name {
    font-size: 1.3em;
    color: #764ba2;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.add-to-cart-btn:hover {
    background: #764ba2;
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: #764ba2;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #667eea;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #229954;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #27ae60;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(500px);
    transition: transform 0.3s;
    z-index: 2000;
}

.notification.show {
    transform: translateX(0);
}

@media (max-width: 768px) 
{
	  h1.title
		{
			gap: 1rem;
		}
		
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
}