/*
Theme Name: ROCKET Themes
Theme URI: https://ideaxdigital.com/rocket-themes
Author: Ideax Digital
Author URI: https://ideaxdigital.com
Description: ROCKET Themes is a blazing-fast, ultra-lightweight WordPress theme engineered for maximum PageSpeed scores and SEO performance. It ships with near-zero custom JavaScript (the mobile menu and sticky header run on pure CSS), a genuinely edge-to-edge 100% full-width layout system, and automatic SEO output (meta description, Open Graph, JSON-LD schema) that stays out of the way of Yoast, Rank Math, AIOSEO, SEOPress, or Rocket SEO -- with a manual Customizer override for any other SEO plugin. Pairs cleanly with the separate Rocket GEO plugin for llms.txt generation and AI-crawler tracking (Lighthouse's Agentic Browsing audit). Includes a wp-admin PageSpeed score widget and deeper WooCommerce styling out of the box. Fully compatible with Gutenberg, WooCommerce, and every major page builder including Elementor, Beaver Builder, Divi, Visual Composer/WPBakery, Brizy, and Oxygen. Built exclusively on long-stable WordPress core APIs for evergreen compatibility across WordPress 6.x, 7.x, and beyond.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rocket-themes
Tags: blog, portfolio, e-commerce, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks, microformats

ROCKET Themes is distributed under the terms of the GNU General Public License v2 or later.
This theme bundles no third-party code beyond WordPress core APIs.
*/

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rt-container: 1320px;
    --rt-primary: #2454ff;
    --rt-text: #1a1a1a;
    --rt-text-light: #5a5a5a;
    --rt-bg: #ffffff;
    --rt-border: #e6e6e6;
    --rt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --rt-font-size: 17px;
    --rt-line-height: 1.65;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--rt-font);
    font-size: var(--rt-font-size);
    line-height: var(--rt-line-height);
    color: var(--rt-text);
    background: var(--rt-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--rt-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--rt-primary);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
}

ul, ol {
    padding-left: 1.2em;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    top: -100px;
    left: 0;
    z-index: 100000;
    position: absolute;
    background: var(--rt-primary);
    color: #fff;
    padding: 12px 20px;
}

.skip-link:focus {
    top: 0;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
}

/* =========================================================
   2. LAYOUT / CONTAINERS
   ========================================================= */
.rt-container {
    width: 100%;
    max-width: var(--rt-container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Genuine edge-to-edge full width -- fixes the "fake full width"
   problem found in some competing lightweight themes, where a
   full-width template still caps out at a fixed pixel width. */
.alignfull,
.rt-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignwide {
    width: 100%;
    max-width: calc(var(--rt-container) + 160px);
    margin-inline: auto;
}

/* Inside the Full Width page template, keep body text readable
   while still allowing explicit alignfull blocks to bleed 100%. */
.rt-full-width > .entry-content {
    max-width: var(--rt-container);
    margin-inline: auto;
    padding-inline: 20px;
}

.rt-full-width > .entry-content > .alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
}

.site-main {
    padding-block: 48px;
}

.rt-has-sidebar .rt-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .rt-has-sidebar .rt-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   3. HEADER + NAVIGATION (zero JavaScript by default)
   ========================================================= */
.site-header {
    border-bottom: 1px solid var(--rt-border);
    background: var(--rt-bg);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header.is-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    z-index: 999;
}

.site-header .rt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 16px;
    position: relative;
}

.site-header.is-stretch .rt-container {
    max-width: 100%;
    padding-inline: 24px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-branding .custom-logo {
    max-height: 44px;
    width: auto;
}

.site-title {
    font-size: 22px;
    margin: 0;
}

.site-title a {
    color: var(--rt-text);
}

.site-description {
    font-size: 13px;
    color: var(--rt-text-light);
    margin: 0;
}

.menu-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle-label span,
.menu-toggle-label span::before,
.menu-toggle-label span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rt-text);
    position: relative;
    transition: 0.2s ease;
}

.menu-toggle-label span::before,
.menu-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-label span::before {
    top: -7px;
}

.menu-toggle-label span::after {
    top: 7px;
}

.primary-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--rt-text);
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--rt-primary);
    text-decoration: none;
}

.primary-menu ul {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rt-bg);
    border: 1px solid var(--rt-border);
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
    display: block;
}

.primary-menu ul a {
    display: block;
    padding: 8px 16px;
}

@media (max-width: 800px) {
    .menu-toggle-label {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--rt-bg);
        padding: 80px 24px 24px;
        overflow-y: auto;
        transition: left 0.25s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .primary-menu ul {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 12px;
        display: none;
    }

    .primary-menu li.menu-item-has-children.is-open > ul {
        display: block;
    }

    /* The checkbox and #site-navigation are siblings inside .rt-container,
       so the sibling combinator (~) correctly targets the nav itself. */
    .menu-toggle-checkbox:checked ~ #site-navigation.main-navigation {
        left: 0;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label span {
        background: transparent;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* =========================================================
   4. POSTS / PAGES
   ========================================================= */
.entry-title {
    font-size: clamp(24px, 4vw, 38px);
}

.entry-meta {
    color: var(--rt-text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.entry-meta a {
    color: inherit;
}

.entry-thumbnail {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content > * + * {
    margin-top: 1.2em;
}

.post-list article {
    padding-block: 32px;
    border-bottom: 1px solid var(--rt-border);
}

.post-list article:first-child {
    padding-top: 0;
}

.page-header {
    margin-bottom: 32px;
}

/* =========================================================
   5. WIDGETS / FOOTER
   ========================================================= */
.widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.site-footer {
    background: #111111;
    color: #cccccc;
    padding-block: 48px 24px;
    margin-top: 64px;
}

.site-footer a {
    color: #ffffff;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0 0 20px;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 13px;
    text-align: center;
    color: #888888;
}

.rt-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rt-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.85;
    z-index: 998;
}

.rt-back-to-top:hover {
    opacity: 1;
    text-decoration: none;
}

/* =========================================================
   6. COMMENTS / PAGINATION
   ========================================================= */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
}

.comment-body {
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    padding: 16px;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
}

.pagination .current {
    background: var(--rt-primary);
    color: #fff;
    border-color: var(--rt-primary);
}

/* =========================================================
   7. PAGE BUILDER COMPATIBILITY
   (Elementor, Beaver Builder, Divi, WPBakery, Brizy, Oxygen)
   ========================================================= */
/* Builders render their own full-width sections inside .entry-content;
   this makes sure none of the theme's typography spacing rules leak in. */
.entry-content > .elementor,
.entry-content > .fl-builder-content,
.entry-content > .et-fb-root-ancestor,
.entry-content > .wpb-content-wrapper,
.entry-content > .brz-root,
.entry-content > [data-elementor-type] {
    margin-top: 0;
}

.rocket-landing-page {
    margin: 0;
}

/* =========================================================
   8. GUTENBERG BLOCK ALIGNMENT
   ========================================================= */
.wp-block-image.alignfull img,
.wp-block-cover.alignfull {
    width: 100%;
}

/* =========================================================
   9. WOOCOMMERCE
   ========================================================= */
.rt-woocommerce {
    padding-top: 20px;
    padding-bottom: 60px;
}

.rt-woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.rt-woocommerce ul.products li.product {
    margin: 0;
}

.rt-woocommerce ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.rt-woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--rt-text);
    margin: 6px 0 4px;
}

.rt-woocommerce ul.products li.product .price {
    color: var(--rt-primary);
    font-weight: 700;
}

.rt-woocommerce ul.products li.product .price del {
    color: var(--rt-text-light);
    font-weight: 400;
    opacity: 0.7;
    margin-right: 6px;
}

.rt-woocommerce ul.products li.product .star-rating {
    color: var(--rt-primary);
    font-size: 14px;
}

.rt-woocommerce span.onsale {
    background: var(--rt-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 4px 10px;
    min-height: 0;
    min-width: 0;
    line-height: 1.4;
    left: 0;
    top: 0;
}

/* Buttons: add to cart, checkout, submit, etc. */
.rt-woocommerce .button,
.rt-woocommerce a.button,
.rt-woocommerce button.button,
.rt-woocommerce input.button,
.rt-woocommerce #respond input#submit,
.rt-woocommerce .wc-block-components-button {
    background: var(--rt-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.rt-woocommerce .button:hover,
.rt-woocommerce a.button:hover,
.rt-woocommerce button.button:hover,
.rt-woocommerce input.button:hover {
    opacity: 0.85;
    background: var(--rt-primary);
    color: #fff;
}

.rt-woocommerce .button.disabled,
.rt-woocommerce .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notices (success, info, error) */
.rt-woocommerce .woocommerce-message,
.rt-woocommerce .woocommerce-info,
.rt-woocommerce .woocommerce-error,
.rt-woocommerce .woocommerce-noreviews {
    border-top: 3px solid var(--rt-primary);
    background: #f6f8ff;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 24px;
    list-style: none;
}

.rt-woocommerce .woocommerce-error {
    border-top-color: #d63638;
    background: #fdf1f1;
}

/* Single product layout */
.rt-woocommerce div.product .summary {
    padding-left: 8px;
}

.rt-woocommerce div.product .product_title {
    font-size: 28px;
    margin-top: 0;
}

.rt-woocommerce div.product p.price,
.rt-woocommerce div.product span.price {
    font-size: 24px;
    color: var(--rt-primary);
    font-weight: 700;
}

.rt-woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--rt-text-light);
}

.rt-woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.rt-woocommerce div.product .quantity input.qty {
    width: 70px;
    padding: 10px;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
}

/* Product data tabs */
.rt-woocommerce .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--rt-border);
    padding: 0;
    margin: 40px 0 0;
}

.rt-woocommerce .woocommerce-tabs ul.tabs li {
    margin: 0;
}

.rt-woocommerce .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 18px;
    color: var(--rt-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.rt-woocommerce .woocommerce-tabs ul.tabs li.active a {
    color: var(--rt-primary);
    border-bottom-color: var(--rt-primary);
    font-weight: 600;
}

.rt-woocommerce .woocommerce-tabs .panel {
    padding: 24px 0;
}

/* Cart & checkout tables */
.rt-woocommerce table.shop_table,
.rt-woocommerce table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}

.rt-woocommerce table.shop_table th,
.rt-woocommerce table.shop_table td,
.rt-woocommerce table.woocommerce-checkout-review-order-table th,
.rt-woocommerce table.woocommerce-checkout-review-order-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rt-border);
    text-align: left;
}

.rt-woocommerce table.shop_table thead th {
    font-weight: 600;
    color: var(--rt-text);
}

.rt-woocommerce .woocommerce-cart-form .product-thumbnail img {
    width: 64px;
    border-radius: 6px;
}

.rt-woocommerce td.actions .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rt-woocommerce td.actions .coupon input#coupon_code {
    padding: 10px;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
}

.rt-woocommerce .cart-collaterals .cart_totals {
    background: #f9fafc;
    border-radius: 8px;
    padding: 20px 24px;
}

/* Checkout form fields */
.rt-woocommerce form.checkout .form-row label,
.rt-woocommerce form.woocommerce-checkout label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.rt-woocommerce form.checkout .input-text,
.rt-woocommerce form.checkout select,
.rt-woocommerce form.woocommerce-checkout textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
    font-family: var(--rt-font);
}

/* My Account */
.rt-woocommerce .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    overflow: hidden;
}

.rt-woocommerce .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--rt-border);
}

.rt-woocommerce .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.rt-woocommerce .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 16px;
    color: var(--rt-text);
    text-decoration: none;
}

.rt-woocommerce .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--rt-primary);
    color: #fff;
    font-weight: 600;
}

/* Responsive: stack the product grid and single-product layout on mobile */
@media (max-width: 782px) {
    .rt-woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .rt-woocommerce div.product .summary {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .rt-woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
