/*
Theme Name: Reunion Kneads
Description: Custom theme for Reunion Kneads home bakery
Version: 1.0
Author: Reunion Kneads
*/

/* Basic styles */
html {
    background-color: var(--rk-site-bg, #fff5ee);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--rk-site-bg, #f9f9f9);
}

header {
    background-color: var(--rk-site-bg, #fff);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.header-social {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

header .header-social {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
}

.social-link {
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.site-welcome {
    margin: 6px 0 0;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo,
.logo {
    width: min(240px, 70vw);
    height: auto;
    display: block;
}



main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products {
    margin: 20px 0;
}

.products-title {
    text-align: center;
    margin: 0 0 20px;
}

.products-intro {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0 8px;
    line-height: 1.5;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Fallback: if product tiles are direct children of .products (older markup),
   treat .products as the grid container and keep the title spanning full width. */
.products:has(> .product) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.products:has(> .product) > .products-title,
.products:has(> .product) > h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 0 20px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products:has(> .product) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .products:has(> .product) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.product {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.product-image-link {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-title-link {
    color: #0000EE;
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.product-title-link:visited {
    color: #551A8B;
}

.product-title-link:hover,
.product-title-link:focus {
    text-decoration: underline;
}

.product-details {
    margin-top: 12px;
    text-align: left;
    border-top: 1px solid rgba(0,0,0,0.12);
    padding-top: 12px;
}

.product-details-inner {
    font-size: 0.95rem;
    line-height: 1.35;
}

.product-details-inner ul {
    margin: 8px 0;
    padding-left: 18px;
}

.product-details-inner li {
    margin: 6px 0;
}

.product-details-lead {
    margin: 0 0 8px;
}

.product-details-sub {
    margin: 0 0 10px;
}

.product-details-menu ul {
    margin: 8px 0;
    padding-left: 18px;
}

.product-details-menu li {
    margin: 6px 0;
}

.product-details-pay {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.18);
}

.product-details-cta {
    margin: 12px 0;
    text-align: center;
}

.rk-order-button {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.rk-order-button:hover,
.rk-order-button:focus {
    filter: brightness(0.95);
    text-decoration: none;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%;
}
