/*
Theme Name: Maruf Ghor US Theme
Theme URI: https://marufghor.shop
Author: Custom Developer
Author URI: https://marufghor.shop
Description: Custom high-converting WooCommerce Theme for Maruf Ghor US Store, integrated with WhatsApp Quick Ordering, US Legal Policies, and full Customizer settings.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, responsive-layout, custom-colors, custom-menu, custom-logo
Text Domain: marufghor-theme
*/

:root {
    --primary-color: #0f172a;
    --accent-color: #d97706;
    --whatsapp-color: #25d366;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
.top-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-info span {
    margin-right: 20px;
}

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Product Grid */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-image-wrap {
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-add-cart:hover {
    background-color: #334155;
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #1eb854;
}

/* Footer Styling */
.site-footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 50px 0 20px 0;
    margin-top: 60px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-col p, .footer-col ul {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.8rem;
}

/* Modal styling for policy view */
.policy-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.policy-content {
    background: #ffffff;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    color: var(--text-dark);
}

.close-policy {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
}
