/* css/layout.css - Custom layout system replacing Bootstrap */

/* Global Resets & Elements */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* typography helpers */
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-white { color: #fff; }
.fw-bold { font-weight: 700; }
.lead { font-size: 1.25rem; font-weight: 300; }
.display-4 { font-size: calc(1.475rem + 2.7vw); font-weight: 300; line-height: 1.2; }
.display-5 { font-size: calc(1.425rem + 2.1vw); font-weight: 300; line-height: 1.2; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-100 { width: 100% !important; }

/* Custom Container */
.custom-container {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.custom-container-fluid {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Custom CSS Grids */
.grid-container {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flexbox utilities */
.flex-row-center { display: flex; justify-content: center; align-items: center; }
.flex-space-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Consistent Header Items */
.site-header {
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 1rem 0;
}
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}
.site-nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.site-nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}
.site-nav-links a:hover, .site-nav-links a.active {
    color: var(--primary-color);
}
.site-nav-actions {
    display: flex;
    align-items: center;
}

/* Consistent Footer Items */
.site-footer {
    background-color: var(--secondary-color);
    padding: 4rem 1.5rem;
    text-align: center;
}
.site-footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.site-footer-desc {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 2rem auto;
}
.site-footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.site-footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
}
.site-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid #fff;
    padding-top: 2rem;
    margin: 0 auto;
    max-width: 800px;
}
.site-footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cards & Layout Modules */
.product-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}
.product-card img {
    width: 100%;
    height: auto;
}
.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-category { font-size: 0.85rem; color: #6c757d; margin-bottom: 0.5rem; }
.product-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.product-card-price { color: var(--primary-color); font-weight: 600; margin-bottom: 1.5rem; }
.product-card-btn { margin-top: auto; }

/* Sections */
.bg-secondary { background-color: var(--secondary-color); }
.bg-white { background-color: #fff; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 2rem !important; }
.border { border: 1px solid #dee2e6 !important; }
.d-none { display: none !important; }
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
}

/* Base custom button structure */
.custom-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.custom-btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.custom-btn-primary:hover {
    background-color: var(--text-main);
}
.custom-btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.custom-btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}
