/*
Theme Name: Ramguiflex Recovery
Description: Clean compatibility theme reconstructed from database settings and a static visual reference. No PHP from the compromised Shoptimizer package is used.
Version: 1.0.7
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: ramguiflex-recovery
*/

:root {
    --ram-blue: #2861aa;
    --ram-dark-blue: #23304f;
    --ram-green: #75c04f;
    --ram-green-dark: #009245;
    --ram-max: 2000px;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #111; font-family: Inter, Arial, sans-serif; }
a { color: #1e73be; text-decoration: none; }
img { max-width: 100%; height: auto; }
.col-full { width: min(calc(100% - 48px), var(--ram-max)); margin-inline: auto; }
.topbar-wrapper { max-width: none; width: 100%; background: var(--ram-blue); color: #fff; }
.top-bar .col-full { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; min-height: 42px; }
.top-bar .col-full::before,
.top-bar .col-full::after,
.below-content .col-full::before,
.below-content .col-full::after { display: none; content: none; }
.top-bar .widget { margin: 0; padding: 8px 16px; text-align: center; }
.top-bar a, .top-bar p { color: #fff; margin: 0; }
.top-bar svg { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }
.main-header { display: grid; grid-template-columns: 280px minmax(260px, 1fr) auto auto; gap: 28px; align-items: center; padding-block: 20px; }
.site-branding .custom-logo { width: auto; max-width: 260px; max-height: 80px; }
.site-search .woocommerce-product-search { display: flex; }
.site-search .search-field { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; }
.site-search button { border: 0; padding: 0 20px; background: var(--ram-green); color: #fff; border-radius: 0 4px 4px 0; }
.secondary-navigation ul, .main-navigation ul, .site-header-cart { list-style: none; margin: 0; padding: 0; }
.secondary-navigation .menu { display: flex; gap: 18px; }
.secondary-navigation a { color: #404040; font-weight: 600; }
.site-header-cart a { display: flex; align-items: center; gap: 10px; color: var(--ram-blue); font-weight: 600; }
.site-header-cart svg { width: 30px; height: 30px; }
.mini-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; background: var(--ram-blue); color: #fff; font-size: 12px; }
.col-full-nav { background: var(--ram-green); }
.main-navigation .menu { display: flex; align-items: stretch; }
.main-navigation .menu > li { position: relative; }
.main-navigation .menu > li > a { display: block; padding: 20px 22px; color: #fff; font: 600 15px Montserrat, Arial, sans-serif; }
.main-navigation .sub-menu { display: none; position: absolute; z-index: 50; top: 100%; left: 0; min-width: 270px; padding: 8px 0; background: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 16%); }
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu a { display: block; padding: 10px 18px; color: #333; }
.site-content { min-height: 50vh; }
.site-main > article > .entry-header { display: none; }
.entry-content { width: 100%; }
.ramguiflex-recovery-slider { position: relative; width: 100%; height: 646px; overflow: hidden; background: #fff; }
.ramguiflex-recovery-slide { position: absolute; inset: 0; display: block; opacity: 0; background-position: center; background-repeat: no-repeat; background-size: contain; transition: opacity .5s ease; }
.ramguiflex-recovery-slide.is-active { opacity: 1; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; text-align: center; }
.woocommerce ul.products li.product .button { background: var(--ram-green); color: #fff; }
.shoptimizer-primary-navigation > .site-header-cart { margin-left: auto; }
.below-content { background: #f6f7f8; padding: 28px 0; }
.below-content .col-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer { padding: 48px 0; background: #1e73be; color: #fff; }
.site-footer a, .site-footer h2, .site-footer h3 { color: #fff; }
.copyright { padding: 18px 0; background: #1e73be; color: #fff; }
.copyright .col-full { display: flex; justify-content: space-between; gap: 20px; }
.ramguiflex-whatsapp { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 24px; background: #25d366; color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgb(0 0 0 / 18%); }
.ramguiflex-whatsapp:hover { background: #1fbd59; color: #fff; }
.ramguiflex-whatsapp svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 992px) {
    .hide-on-mobile, .secondary-navigation { display: none; }
    .col-full { width: min(calc(100% - 28px), var(--ram-max)); }
    .main-header { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 70px; padding-block: 8px; }
    .site-branding { display: flex; align-items: center; gap: 12px; }
    .site-branding .custom-logo { max-width: 155px; max-height: 60px; }
    .menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; border: 0; background: transparent; }
    .menu-toggle .bar { width: 24px; height: 2px; background: #111; }
    .menu-toggle .bar-text { font-size: 9px; }
    .site-search { grid-column: 1 / -1; order: 5; padding-bottom: 8px; }
    .col-full-nav { display: none; }
    body.ram-menu-open .col-full-nav { display: block; }
    .main-navigation .menu { display: block; }
    .main-navigation .menu > li > a { padding: 13px 18px; }
    .main-navigation .sub-menu { position: static; display: block; box-shadow: none; background: rgb(255 255 255 / 12%); }
    .main-navigation .sub-menu a { color: #fff; padding-left: 34px; }
    .ramguiflex-recovery-slider { height: 400px; }
    .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 600px) {
    .ramguiflex-recovery-slider { height: 260px; }
    .woocommerce ul.products { grid-template-columns: 1fr; }
    .below-content .col-full, .copyright .col-full { display: block; }
    .ramguiflex-whatsapp span { display: none; }
    .ramguiflex-whatsapp { padding: 12px; }
}
