/* LAWBOOKS restored styles - approximate match to 2022 archive */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { color: #000; font-family: 'Fira Sans', Arial, sans-serif; font-size: 16px; line-height: 1.5; background: #fff; }
a { color: #0f0e0e; text-decoration: none; }
a:hover { color: #319f17; }
a:visited { color: #1f8810; }
.hint, .breadcrumbs, .breadcrumbs a { color: #aaa; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clear-both { clear: both; }

/* Header */
.globalheader { border-bottom: 1px solid #e0e0e0; }
#globalnav { background: #f8f8f8; padding: 10px 0; }
#globalnav .wa-flex-box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
#globalnav h2 { margin: 0; font-size: 1.4em; display: flex; align-items: center; gap: 10px; }
#globalnav h2 img { height: 40px; }
#globalnav .apps { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; font-size: 0.9em; }
#globalnav .apps li a { color: #333; }
#cart { margin-left: 20px; }
#cart .cart-total { color: #319f17; font-weight: 700; }
.auth { list-style: none; display: flex; gap: 10px; margin-left: 15px; }
.auth a { font-size: 0.9em; }

.appnav { padding: 15px 0; border-top: 1px solid #eee; }
.search { float: right; margin-bottom: 10px; }
.search-wrapper { display: flex; }
.search input[type="search"] { padding: 8px 12px; border: 1px solid #ccc; border-radius: 3px 0 0 3px; width: 220px; }
.search button { background: #319f17; border: none; color: #fff; padding: 8px 14px; border-radius: 0 3px 3px 0; cursor: pointer; }
.pages.flyout-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; clear: both; padding-top: 10px; }
.pages.flyout-nav a { font-weight: 500; font-size: 0.95em; }

/* Sidebar */
.maincontent { padding: 20px 0 40px; }
.content.with-sidebar { display: flex; gap: 30px; }
.left-sidebar { width: 240px; flex-shrink: 0; }
.store-info h1 { font-size: 1.1em; margin-bottom: 8px; color: #319f17; }
.store-info h3 { font-size: 0.95em; font-weight: 400; }
.tree { list-style: none; margin: 20px 0; }
.tree li { margin-bottom: 6px; }
.tree a { display: block; padding: 4px 0; border-bottom: 1px dotted #eee; }
.bullets { margin-top: 25px; }
.bullet { margin-bottom: 15px; }
.bullet h4 { font-size: 0.95em; color: #319f17; margin-bottom: 4px; }
.bullet p { font-size: 0.85em; color: #666; }

/* Content */
.content.with-sidebar > .content { flex: 1; min-width: 0; }
.s-slider-section { margin-bottom: 25px; }
.s-slider-block { list-style: none; }
.s-slide-wrapper { background: linear-gradient(135deg, #1a5f0a, #319f17); color: #fff; padding: 40px 30px; border-radius: 6px; min-height: 160px; display: flex; align-items: center; background-size: cover; background-position: center; }
.s-header { font-size: 1.8em; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.bestsellers-header { color: #aaa; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; }
.product-list.thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.product-list li { border: 1px solid #eee; border-radius: 4px; padding: 12px; text-align: center; transition: box-shadow 0.2s; }
.product-list li:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.product-list .image { margin-bottom: 10px; height: 160px; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.product-list .image img { max-width: 100%; max-height: 150px; object-fit: contain; }
.product-list h5 { font-size: 0.9em; font-weight: 500; margin-bottom: 8px; min-height: 3.2em; line-height: 1.3; }
.product-list .price { color: #319f17; font-weight: 700; font-size: 1.05em; display: block; margin: 8px 0; }
.product-list form input[type="submit"] { background: #319f17; color: #fff; border: none; padding: 6px 14px; border-radius: 3px; cursor: pointer; font-size: 0.85em; }
.product-list form input[type="submit"]:hover { background: #278012; }

/* Footer */
.globalfooter { background: #f5f5f5; border-top: 1px solid #ddd; padding: 30px 0 15px; margin-top: 40px; font-size: 0.9em; }
.footer-block { float: left; width: 22%; margin-right: 3%; margin-bottom: 20px; }
.footer-block a { display: block; margin-bottom: 6px; }
.footer-block a.top { font-weight: 700; margin-bottom: 10px; color: #319f17; }
.footer-block.contact-us { width: 28%; }
.footer-block.contact-us strong { display: block; margin-top: 8px; }
.copyright { clear: both; padding-top: 15px; border-top: 1px solid #ddd; color: #888; font-size: 0.85em; }
.footer-note { clear: both; font-size: 0.8em; color: #999; margin-top: 10px; }

/* Inner pages */
.page-title { font-size: 1.6em; margin-bottom: 20px; color: #1a5f0a; border-bottom: 2px solid #319f17; padding-bottom: 8px; }
.breadcrumbs { font-size: 0.85em; margin-bottom: 15px; }
.page-content { line-height: 1.7; }
.page-content p { margin-bottom: 12px; }
.page-content ul, .page-content ol { margin: 10px 0 15px 25px; }
.page-content h2 { font-size: 1.25em; margin: 25px 0 10px; color: #319f17; }
.page-content table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.page-content th, .page-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.page-content th { background: #f0f7ee; }

/* Category grid same as products */
.category-desc { margin-bottom: 25px; color: #555; }

/* Responsive */
@media (max-width: 800px) {
  .content.with-sidebar { flex-direction: column; }
  .left-sidebar { width: 100%; }
  .footer-block { width: 48%; }
  .pages.flyout-nav { gap: 6px 10px; font-size: 0.9em; }
  .search { float: none; width: 100%; margin-bottom: 15px; }
  .search input { width: 100%; }
}

/* Green accents */
.b-glyph { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: middle; background: #319f17; border-radius: 50%; }
.badge { background: #e74c3c; color: #fff; font-size: 0.7em; padding: 2px 6px; border-radius: 3px; position: absolute; }