/*
 Theme Name: OddityMall Child
 Theme URI: https://odditymall.com/
 Description: Child theme for OddityMall built for extending the parent theme safely.
 Author: OddityMall
 Author URI: https://odditymall.com/
 Template: generatepress
 Version: 1.0.0
 Requires at least: 6.0
 Tested up to: 6.6
 Requires PHP: 7.4
 Text Domain: odditymall-child
*/

/* Add your child theme CSS overrides below. */

/* Basic reset */
body { margin: 0; background: #0f1113; }

/* Temporarily hide GeneratePress default header/navigation so only our bar shows */
.site-header,
.main-navigation {
    display: none !important;
}
.om-container { max-width: 1260px; margin: 0 auto; padding: 24px; }

/* Header */
.om-site-header { background: #3aa7f2; color: #fff; width: 100%; position: relative; z-index: 1000; min-height: 56px; }
.om-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; max-width: 1260px; margin: 0 auto; flex-direction: row !important; flex-wrap: nowrap; min-height: 56px; }
.om-logo { display: flex; align-items: center; }
/* Respect Customizer 'Logo width' by not forcing explicit height; allow GP to set inline width */
.om-logo img, .custom-logo-link img { height: auto; width: auto; display: block; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { height: auto; }
/* Space between logo and nav */
.om-header-inner > .om-logo { margin-right: 16px; }
.om-nav .om-menu { list-style: none; margin: 0; padding: 0; display: flex !important; flex-direction: row !important; align-items: center; gap: 18px; }
.om-nav .om-menu li { display: inline-block; }
.om-nav .om-menu a { color: #fff; text-decoration: none; font-weight: 600; }

/* Grid */
.om-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1024px) { .om-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .om-grid { grid-template-columns: 1fr; } .om-header-inner { flex-direction: column; align-items: stretch; } }
@media (min-width: 641px) { .om-header-inner { flex-direction: row; } }

/* Card */
.om-card { background: #ffffff; color: #111; border: 1px solid #d8dadd; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.om-grid .om-card { background: #ffffff; }
.om-grid .om-card-body { color: #000; }
.om-grid .om-card-title, .om-grid .om-card-title a { color: #000; }
.om-grid .om-card-excerpt { color: #000; }
.om-card-media { aspect-ratio: 1/1; display: block; background: #e9ecef; }
.om-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.om-card-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.om-card-title { font-size: 25px; font-weight: 900; margin: 0; line-height: 1.22; color: #111; }
/* Ensure homepage titles override theme typography */
.om-grid .om-card-title { font-size: 25px !important; font-weight: 900 !important; }
.om-card-title a { color: #111; text-decoration: none; }
.om-card-excerpt { color: #333; font-size: 14px; }
.om-button { margin-top: auto; align-self: stretch; text-align: center; background: #d73a3a; color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 4px; font-weight: 900; font-size: 20px; }
/* Ensure homepage buttons override theme button styles */
.om-grid .om-card .om-button { font-size: 20px !important; font-weight: 900 !important; }

/* Pagination */
.om-pagination { display: flex; justify-content: center; padding: 24px 0; }
.om-pagination .page-numbers { margin: 0 6px; padding: 8px 12px; border-radius: 4px; background: #2a2a2a; color: #fff; text-decoration: none; }
.om-pagination .current { background: #3aa7f2; }

/* Sitewide width container (added via hooks on non-home pages) */
.om-container { max-width: 1260px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }


