/*
Theme Name: Astra UK Boutique Child
Theme URI: https://uktheme03.co.uk/
Description: Custom UK WooCommerce child theme built on Astra with dynamic shortcodes, localized legal pages, and product trust blocks.
Author: Commerce Studio
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

:root {
    --cf-primary: #1E293B;
    --cf-secondary: #334155;
    --cf-accent: #D97706;
    --cf-bg-light: #F8FAFC;
    --cf-text: #1E293B;
}

/* Top Announcement Bar */
.cf-announcement-bar {
    background-color: var(--cf-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 9px 16px;
    line-height: 1.4;
}
.cf-announcement-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo Clean Sizing & Hide Redundant Site Title Next to Custom Logo */
.custom-logo-link img,
.site-branding img.custom-logo {
    max-height: 52px;
    width: auto;
}
body.wp-custom-logo .ast-site-title-wrap,
body.wp-custom-logo .site-branding .site-title-wrap,
body.wp-custom-logo .site-branding .site-title-container,
body.wp-custom-logo .site-branding .site-title,
body.wp-custom-logo .site-branding .site-description {
    display: none !important;
}

/* Hide redundant Home page-title strip in OceanWP & ensure crisp light footer contrast */
body.home .page-header {
    display: none !important;
}
#footer-widgets {
    background-color: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    color: #374151 !important;
    padding: 48px 0 36px !important;
}
#footer-widgets .footer-box .widget-title {
    color: var(--cf-primary) !important;
    border-color: var(--cf-accent) !important;
    font-weight: 700 !important;
}
#footer-widgets .textwidget,
#footer-widgets .textwidget p,
#footer-widgets .textwidget strong,
#footer-widgets li,
#footer-widgets a {
    color: #374151 !important;
}
#footer-widgets a:hover {
    color: var(--cf-accent) !important;
}
#footer-bottom {
    background-color: var(--cf-bg-light) !important;
    border-top: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
}
#footer-bottom a {
    color: var(--cf-primary) !important;
    font-weight: 600 !important;
}

/* WooCommerce Accent Styling */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.wc-block-grid__product-onsale {
    background-color: var(--cf-accent) !important;
    color: #ffffff !important;
    border-radius: 999px;
    font-weight: 600;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button,
.woocommerce button.button {
    background-color: var(--cf-primary) !important;
    color: #ffffff !important;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: var(--cf-accent) !important;
    color: #ffffff !important;
}

/* Clean Policy Tables & Typography */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}
.wp-block-table table th,
.wp-block-table table td {
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
}
.wp-block-table table thead td,
.wp-block-table table thead th {
    background-color: var(--cf-bg-light);
    color: var(--cf-primary);
    font-weight: 700;
}

/* Custom 4-Column Responsive Footer (Astra / Kadence / Blocksy) */
.cf-site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #374151;
    margin-top: 48px;
    font-size: 14px;
    line-height: 1.7;
}
.cf-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.cf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
    padding: 56px 0 40px;
}
.cf-footer-widget-title {
    color: var(--cf-primary);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}
.cf-footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cf-footer-widget ul li {
    margin-bottom: 8px;
}
.cf-footer-widget a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s ease;
}
.cf-footer-widget a:hover {
    color: var(--cf-accent);
}
.cf-footer-bottom {
    background-color: var(--cf-bg-light);
    border-top: 1px solid #e5e7eb;
    padding: 22px 0;
}
.cf-footer-copyright {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
}
.cf-footer-copyright a {
    color: var(--cf-primary);
    font-weight: 600;
    text-decoration: none;
}

/* Storefront / OceanWP / Woostify native footer polish */
.site-footer .cf-footer-copyright {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 16px;
}

@media (max-width: 960px) {
    .cf-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}
@media (max-width: 600px) {
    .cf-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 0 28px;
    }
}
