/** * Bongoto WooCommerce — Main Styles (CLEAN) * File: assets/css/main.css * Text Domain: bongoto-woocommerce * * Focus: * - Base/containers/utilities * - Footer layout + subscribe bar * - Home sections (Hero, Categories/Collections/Vendors) * * Header/UI: assets/css/header.css * WooCommerce: assets/css/woocommerce.css */ /* =============== Base =============== */ html { box-sizing: border-box; scroll-behavior: smooth; } *, *::before, *::after { box-sizing: inherit; } body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; /* Customizer: Background */ background: var(--bt-color-bg, #ffffff); /* Customizer: Text Color */ color: var(--bt-color-text, #111827); } img { max-width: 100%; height: auto; } .container { width: 100%; max-width: 1320px; /* was 1200px */ margin: 0 auto; padding: 0 1rem; } /* Elementor boxed container width align */ .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1320px; } /* was 1200px */ /* =============== Utilities =============== */ .text-center { text-align: center; } .mt-2 { margin-top: .5rem; } .mb-2 { margin-bottom: .5rem; } /* =============== Buttons (generic) =============== */ .bt-btn { display: inline-block; padding: .6rem 1.25rem; border-radius: .5rem; font-weight: 600; text-decoration: none; transition: background .2s, transform .1s; } /* Primary button from Customizer */ .bt-btn--primary { background: var(--bt-color-primary, #2563eb); color: #fff; } .bt-btn--primary:hover { background: #1d4ed8; } /* Secondary button – neutral background, text from Customizer */ .bt-btn--secondary { background: #f3f4f6; color: var(--bt-color-text, #111827); } .bt-btn--secondary:hover { background: #e5e7eb; } /* Compact button utility */ .button-sm { padding: 6px 10px !important; font-size: 13px !important; line-height: 1.25 !important; height: 32px !important; border-radius: 6px !important; } /* =============== Footer =============== */ /* Footer colors are intentionally kept different */ .site-footer { background: #111827; color: #f9fafb; padding: 2rem 0; } .site-footer a { color: #f9fafb; text-decoration: none; } .site-footer a:hover { text-decoration: underline; } .site-footer .footer-credits { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1rem; } .site-footer .footer-credits p { margin: 0; font-size: .9rem; opacity: .85; text-align: center; } /* Legacy footer class (compat) */ .bt-footer { background: #111827; color: #f9fafb; padding: 2rem 0; } .bt-footer a { color: #f9fafb; text-decoration: none; } .bt-footer a:hover { text-decoration: underline; } .bt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; } /* Footer layout */ .bt-footer-inner { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,3fr); gap: 2rem; align-items: start; } .bt-footer-right { --bt-footer-cols: 4; } .bt-footer-widgets { display: grid; grid-template-columns: repeat(var(--bt-footer-cols, 4), minmax(0, 1fr)); gap: 1.25rem; } .bt-footer-widgets .widget { margin: 0; } .bt-footer-widgets .widget-title { color: #f9fafb; font-weight: 700; margin: 0 0 .75rem; } .site-footer .widget ul, .bt-footer .widget ul { list-style: none; margin: 0; padding: 0; } .site-footer .widget ul li, .bt-footer .widget ul li { margin: .35rem 0; } .bt-footer-left .custom-logo-link img { max-width: 180px; height: auto; } .bt-footer-left .widget, .bt-footer-contact p { margin: 0 0 .5rem; } @media (max-width: 992px) { .bt-footer-inner { grid-template-columns: 1fr; } .bt-footer-right { margin-top: 1rem; } .bt-footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 480px) { .bt-footer-widgets { grid-template-columns: 1fr; } } /* ===== Footer: Subscribe Bar (final, mobile-safe) ===== */ .footer-subscribe { padding: 24px 0; margin-bottom: 16px; } .footer-subscribe .bt-subscribe { background: #0f172a; color: #fff; padding: 32px; border-radius: 16px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.12); max-width: 560px; width: 100%; margin-left: auto; margin-right: auto; /* NEW: subtle border so it doesn’t blend with footer */ border: 1px solid rgba(148, 163, 184, 0.45); /* ~slate-400 */ } .footer-subscribe .bt-subscribe__title { margin: 0; font-size: 1.25rem; line-height: 1.35; font-weight: 700; color: #fff; } .footer-subscribe .bt-subscribe__desc { margin: 0; color: #fff; opacity: .85; } /* Desktop/tablet: keep input and button on a single line */ .footer-subscribe .bt-subscribe__form { display: flex; gap: 12px; flex-wrap: nowrap; justify-content: center; align-items: center; margin-top: 4px; } .footer-subscribe .bt-subscribe__input{ flex: 0 1 340px; min-width: 220px; width: 100%; height: 38px; line-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.15); background: #ffffff; color: #0f172a; outline: none; box-sizing: border-box; font-size: 16px; } .footer-subscribe .bt-subscribe__input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59,130,246,.20); } .footer-subscribe .bt-subscribe__btn{ height: 38px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; background: var(--bt-color-primary, #2563eb); color: #fff; font-weight: 600; white-space: nowrap; } .footer-subscribe .bt-subscribe__btn:hover { filter: brightness(1.05); } /* Mobile fix (≤480px): avoid oversized box effect */ @media (max-width: 480px){ .footer-subscribe .bt-subscribe{ padding: 20px 16px; border-radius: 12px; } .footer-subscribe .bt-subscribe__form{ flex-direction: column; align-items: stretch; gap: 10px; } .footer-subscribe .bt-subscribe__input{ flex: 1 1 auto; min-width: 0; width: 100%; height: 36px; line-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); background: #ffffff; appearance: none; -webkit-appearance: none; background-clip: padding-box; } .footer-subscribe .bt-subscribe__btn{ width: 100%; height: 36px; border-radius: 8px; } } /* Very small phones (≤360px) */ @media (max-width: 360px){ .footer-subscribe .bt-subscribe__input{ height: 34px; line-height: 34px; padding: 0 9px; } .footer-subscribe .bt-subscribe__btn{ height: 34px; } } /* ===================================================================== */ /* Home — Hero, Categories, Collections, Vendors */ /* ===================================================================== */ /* Hero */ #section-hero, .sec-hero { color: #cbd5e1; } #section-hero .elementor-heading-title { line-height: 1.2; letter-spacing: -.3px; } .hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; } .hero-ctas .elementor-button { padding: 12px 20px; border-radius: 10px; } /* Top Categories */ .bt-cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 960px; margin: 1rem auto 0; } .bt-cat { display: inline-block; text-align: center; min-width: 140px; padding: 12px 18px; background: #0f172a; color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s, background .15s; } .bt-cat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); background: #111827; } /* Featured Collections */ .bt-grid { display: grid; gap: 20px; } .bt-grid-collections { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 20px; max-width: 1120px; margin: 0 auto; } @media (max-width: 1024px) { .bt-grid-collections { grid-template-columns: repeat(2, minmax(260px, 1fr)); } } @media (max-width: 640px) { .bt-grid-collections { grid-template-columns: 1fr; } } .bt-collection-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; text-decoration: none; background: var(--bt-color-bg, #ffffff); border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s, border-color .15s; } .bt-collection-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.08); border-color: #d1d5db; } .bt-collection-icon { font-size: 28px; } .bt-collection-text h3 { margin: 0 0 6px; color: var(--bt-color-text, #0f172a); } .bt-collection-text p { margin: 0 0 4px; color: #6b7280; } .bt-collection-text span { color: var(--bt-color-primary, #2563eb); font-weight: 600; } /* Vendor Spotlight */ .bt-grid-vendors { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; } @media (max-width: 1024px) { .bt-grid-vendors { grid-template-columns: repeat(2, minmax(260px, 1fr)); } } @media (max-width: 640px) { .bt-grid-vendors { grid-template-columns: 1fr; } } .bt-vendor-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bt-color-bg, #ffffff); border: 1px solid #e5e7eb; text-decoration: none; color: var(--bt-color-text, #0f172a); box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s, border-color .15s; } .bt-vendor-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.08); border-color: #d1d5db; } .bt-vendor-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: #f3f4f6; } /* Customizer help text styling */ .bongoto-woocommerce-powered-text { color: #555; text-decoration: underline; font-style: italic; transition: color .3s ease; cursor: pointer; } .bongoto-woocommerce-powered-text:hover { color: var(--bt-color-primary, #2563eb); } /* On desktop, increase maximum content width (mobile unchanged) */ @media (min-width: 1200px){ .container, .site, .site-content, .content-area, .wrap, .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1320px !important; /* was 1280px */ } } @media (min-width: 1536px){ .container, .site, .site-content, .content-area, .wrap, .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1440px !important; /* was 1400px */ } } /*=============================================================================================*/ /* Square product images everywhere except Single Product */ body:not(.single-product) ul.products li.product a img, body:not(.single-product) .woocommerce ul.products li.product a img{ width: 100%; aspect-ratio: 1 / 1; /* force square */ object-fit: cover; /* fill the square */ height: auto !important; /* override theme fixed heights */ border-radius: 8px; } /* WooCommerce Blocks (e.g., "Products" block) */ body:not(.single-product) .wc-block-grid__products .wc-block-grid__product-image img{ width: 100%; aspect-ratio: 1 / 1; object-fit: cover; height: auto !important; border-radius: 8px; } /* Elementor product widgets */ body:not(.single-product) .elementor-widget-woocommerce-products ul.products li.product a img, body:not(.single-product) .elementor-widget-wc-products ul.products li.product a img{ width: 100%; aspect-ratio: 1 / 1; object-fit: cover; height: auto !important; border-radius: 8px; } /*=============================================================================================*/ /* --- Bongoto fixes: content spacing + copyright background wrapper --- */ .site-main{padding-bottom:60px;} .single .site-main, .page .site-main{padding-bottom:80px;} .site-footer{padding-bottom:0!important;} .bt-footer-copyright, .footer-credits{background:var(--bgt-copyright-bg)!important;} .bt-footer-copyright p, .footer-credits p{margin:0;}