/*
Theme Name: Bonami Custom Shop
Author: Gemini
Description: A Tailwind-based shop theme inspired by Bonami.
Version: 1.0
Text Domain: bonami-shop
*/

/* Styling based on a clean, modern aesthetic */
:root {
    --gold: #c5a059;
    --dark: #1a1a1a;
    --light-grey: #f9f9f9;
    --text-muted: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    margin: 0 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    height: 60vh;
    background: url('https://images.bonami.net/i/46944640/1200x800.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.btn-shop {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

/* Product Grid */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    transition: transform 0.3s ease;
    border: 1px solid #f1f1f1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img img {
    width: 100%;
    display: block;
}

.product-details {
    padding: 20px;
    text-align: center;
}

.brand {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-details h3 {
    font-size: 1rem;
    margin: 10px 0;
    font-weight: 400;
    height: 2.4em;
    overflow: hidden;
}

.price {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.old-price {
    text-decoration: line-through;
    color: #b5b5b5;
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 10px;
}

.add-to-cart {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: var(--dark);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: var(--gold);
}

footer {
    padding: 50px;
    text-align: center;
    background: var(--light-grey);
    margin-top: 50px;
    font-size: 0.8rem;
}


/********************************************************/

/* WooCommerce Overrides */
.product-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.price-section {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #e31b23;
}

/* Custom "Add to Cart" Button Styling */
.single_add_to_cart_button.button {
    background: #000 !important;
    color: #fff !important;
    padding: 18px !important;
    width: 100%;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.single_add_to_cart_button.button:hover {
    background: #333 !important;
}

/* Badge System */
.badge-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.badge {
    display: block;
    padding: 4px 12px;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}