/* --- Resets & Variables --- */
:root {
    --primary-color: #7b5993; /* Violet from original theme */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --border-color: #eaeaea;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Droid Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-color); background-color: #fff; line-height: 1.6; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s; }
a:hover { color: #5a3d6e; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
#site-header { background: #fff; border-bottom: 1px solid var(--border-color); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 20px; }
.branding { display: flex; align-items: center; gap: 15px; }
.branding img { max-width: 80px; }
.site-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.site-description { font-size: 13px; color: #777; font-weight: normal; }
.search-box input { padding: 10px 15px; border: 1px solid #ccc; border-radius: 4px; width: 250px; font-family: var(--font-body); }

/* --- Navigation --- */
#site-navigation { background-color: var(--primary-color); }
.nav-menu { display: flex; gap: 30px; padding: 15px 0; }
.nav-menu a { color: #fff; font-weight: bold; text-transform: uppercase; font-size: 14px; }
.nav-menu a:hover, .nav-menu a.active { color: #d0c0dd; }

/* --- Layout Grids --- */
.section-title { font-family: var(--font-heading); font-size: 28px; margin: 40px 0 20px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.grid { display: grid; gap: 25px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* --- Category Cards --- */
.category-item { position: relative; border-radius: 6px; overflow: hidden; display: block; }
.category-item h3 { position: absolute; bottom: 0; width: 100%; background: rgba(123, 89, 147, 0.9); color: #fff; padding: 15px; text-align: center; margin: 0; font-family: var(--font-heading); font-size: 16px; }

/* --- Product Cards --- */
.product-card { border: 1px solid var(--border-color); border-radius: 6px; padding: 15px; text-align: center; position: relative; transition: transform 0.3s; display: flex; flex-direction: column; justify-content: space-between; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-card img { margin: 0 auto 15px; border-radius: 4px; }
.badge.sale { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: white; padding: 4px 8px; font-size: 12px; font-weight: bold; border-radius: 4px; z-index: 2;}
.product-info h3 { font-family: var(--font-heading); font-size: 16px; margin-bottom: 5px; color: #333; }
.product-info .category { font-size: 12px; color: #999; margin-bottom: 15px; text-transform: uppercase;}
.product-info .price { font-size: 18px; font-weight: bold; color: var(--text-color); margin-bottom: 15px; }
.price .old-price { text-decoration: line-through; color: #999; font-size: 14px; margin-right: 5px; }
.btn-primary { display: inline-block; background: var(--primary-color); color: #fff; padding: 10px 20px; border-radius: 4px; text-transform: uppercase; font-size: 13px; font-weight: bold; width: 100%; }
.btn-primary:hover { background: #5a3d6e; color: #fff; }

/* --- Footer --- */
#site-footer { background: #222; color: #ccc; padding: 40px 0 20px; margin-top: 60px; font-size: 13px; text-align: center; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #444; padding-bottom: 20px; margin-bottom: 20px; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #ccc; margin: 0 5px; }
.footer-links a:hover { color: #fff; }
.disclaimer { font-size: 11px; color: #888; max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .footer-grid { flex-direction: column; text-align: center; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
}

.product-card img {
            width: 100%;
            max-width: 270px;
            height: 203px;
            object-fit: cover;
            object-position: center;
            border-radius: 4px;
            margin: 0 auto 15px;
            background-color: #fff;
        }