/*
Theme Name: Ready Commerce
Theme URI: https://example.com/ready-commerce
Author: Aown Muhammad
Author URI: https://example.com
Description: A modern multi-vendor style WooCommerce theme inspired by the ReadyEcommerce storefront. Features a hero banner, category showcase, flash sale with countdown, popular products, a clean card-based product grid and a dark multi-column footer. Fully integrated with WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ready-commerce
Tags: e-commerce, woocommerce, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
    --rc-primary: #EE456B;
    --rc-primary-dark: #d63a5e;
    --rc-primary-darker: #b52e4e;
    --rc-primary-light: #fce8ed;
    --rc-primary-50: #fdf2f5;
    --rc-dark: #1f2937;
    --rc-darker: #111827;
    --rc-text: #374151;
    --rc-muted: #6b7280;
    --rc-border: #e5e7eb;
    --rc-bg: #f9fafb;
    --rc-white: #ffffff;
    --rc-amber: #f59e0b;
    --rc-green: #16a34a;
    --rc-radius: 10px;
    --rc-radius-sm: 6px;
    --rc-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --rc-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .06);
    --rc-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--rc-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--rc-text);
    background: var(--rc-bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rc-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rc-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    color: var(--rc-darker);
    line-height: 1.3;
    margin: 0 0 .6em;
    font-weight: 700;
}

.rc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Buttons (theme + WooCommerce) */
.rc-btn,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce ul.products li.product .button,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    background: var(--rc-primary);
    color: #fff !important;
    border: none;
    border-radius: var(--rc-radius-sm);
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--rc-font);
    line-height: 1.4;
    cursor: pointer;
    text-align: center;
    transition: background .2s, transform .15s;
}

.rc-btn:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce #payment #place_order:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--rc-primary-dark);
    color: #fff;
}

.rc-btn--outline {
    background: transparent;
    color: var(--rc-primary) !important;
    border: 1.5px solid var(--rc-primary);
}
.rc-btn--outline:hover { background: var(--rc-primary); color: #fff !important; }

.rc-btn--dark { background: var(--rc-darker); }
.rc-btn--dark:hover { background: #000; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    font-family: var(--rc-font);
    font-size: 14px;
    color: var(--rc-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--rc-primary);
    box-shadow: 0 0 0 3px var(--rc-primary-light);
}

/* =========================================================
   3. Top bar
   ========================================================= */
.rc-topbar {
    background: var(--rc-darker);
    color: #d1d5db;
    font-size: 13px;
}
.rc-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 16px;
}
.rc-topbar a { color: #d1d5db; }
.rc-topbar a:hover { color: #fff; }
.rc-topbar__links { display: flex; gap: 18px; }

/* =========================================================
   4. Header
   ========================================================= */
.rc-header {
    background: var(--rc-white);
    border-bottom: 1px solid var(--rc-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .25s;
}
.rc-header.is-stuck { box-shadow: var(--rc-shadow-lg); }

.rc-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 0;
}

.rc-header__logo { flex-shrink: 0; display: flex; align-items: center; }
.rc-header__logo img { max-height: 48px; width: auto; }
.rc-header__logo .rc-site-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--rc-darker);
    margin: 0;
    letter-spacing: -.5px;
}
.rc-header__logo .rc-site-title span { color: var(--rc-primary); }

/* Search */
.rc-header__search { flex: 1; max-width: 560px; }
.rc-search-form { display: flex; position: relative; }
.rc-search-form input[type="search"] {
    border: 2px solid var(--rc-primary);
    border-radius: 999px;
    padding: 10px 52px 10px 20px;
    font-size: 14px;
}
.rc-search-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 44px;
    border-radius: 999px;
    background: var(--rc-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.rc-search-form button:hover { background: var(--rc-primary-dark); }
.rc-search-form button svg { width: 18px; height: 18px; }

/* Header actions */
.rc-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.rc-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--rc-text) !important;
    font-size: 12px;
    border-radius: var(--rc-radius-sm);
    position: relative;
    transition: color .2s;
}
.rc-header__action:hover { color: var(--rc-primary) !important; }
.rc-header__action svg { width: 24px; height: 24px; }

.rc-cart-count {
    position: absolute;
    top: 0;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--rc-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =========================================================
   5. Primary navigation
   ========================================================= */
.rc-nav {
    background: var(--rc-white);
    border-bottom: 1px solid var(--rc-border);
}
.rc-nav__inner { display: flex; align-items: center; }

.rc-nav ul.rc-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.rc-nav ul.rc-menu > li > a {
    display: block;
    padding: 13px 16px;
    color: var(--rc-dark);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.rc-nav ul.rc-menu > li > a:hover,
.rc-nav ul.rc-menu > li.current-menu-item > a {
    color: var(--rc-primary);
    border-bottom-color: var(--rc-primary);
}

/* Dropdowns */
.rc-nav ul.rc-menu li { position: relative; }
.rc-nav ul.rc-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    box-shadow: var(--rc-shadow-lg);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s;
    z-index: 50;
}
.rc-nav ul.rc-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.rc-nav ul.rc-menu li ul li ul { top: 0; left: 100%; }
.rc-nav ul.rc-menu li ul a {
    display: block;
    padding: 9px 18px;
    color: var(--rc-text);
    font-size: 14px;
}
.rc-nav ul.rc-menu li ul a:hover { background: var(--rc-primary-50); color: var(--rc-primary); }

/* Mobile toggle */
.rc-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--rc-dark);
}
.rc-nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================
   6. Hero
   ========================================================= */
.rc-hero {
    background: linear-gradient(120deg, var(--rc-primary-50) 0%, var(--rc-primary-light) 100%);
    overflow: hidden;
}
.rc-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    padding: 56px 0;
}
.rc-hero__badge {
    display: inline-block;
    background: #fff;
    color: var(--rc-primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: var(--rc-shadow);
}
.rc-hero__title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.rc-hero__title em { color: var(--rc-primary); font-style: normal; }
.rc-hero__subtitle { font-size: 17px; color: var(--rc-muted); margin-bottom: 28px; max-width: 480px; }
.rc-hero__image { text-align: center; }
.rc-hero__image img {
    max-height: 380px;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow-lg);
    object-fit: cover;
}

/* =========================================================
   7. Sections
   ========================================================= */
.rc-section { padding: 48px 0; }
.rc-section--tint { background: var(--rc-primary-50); }
.rc-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.rc-section__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    position: relative;
    padding-left: 16px;
}
.rc-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 4px;
    background: var(--rc-primary);
}
.rc-section__link {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Category circles */
.rc-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}
.rc-cat {
    text-align: center;
    color: var(--rc-dark) !important;
}
.rc-cat__thumb {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--rc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rc-cat:hover .rc-cat__thumb {
    transform: translateY(-4px);
    border-color: var(--rc-primary);
    box-shadow: var(--rc-shadow-lg);
}
.rc-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rc-cat__name { font-size: 14px; font-weight: 600; display: block; }
.rc-cat:hover .rc-cat__name { color: var(--rc-primary); }

/* Countdown */
.rc-countdown { display: flex; gap: 8px; align-items: center; }
.rc-countdown__unit {
    background: var(--rc-darker);
    color: #fff;
    min-width: 46px;
    padding: 6px 8px;
    border-radius: var(--rc-radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.1;
}
.rc-countdown__unit small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: #9ca3af;
    text-transform: uppercase;
}
.rc-countdown__sep { font-weight: 800; color: var(--rc-darker); }

/* Feature strip */
.rc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.rc-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 18px 20px;
}
.rc-feature__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rc-primary-light);
    color: var(--rc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-feature__icon svg { width: 22px; height: 22px; }
.rc-feature strong { display: block; color: var(--rc-darker); font-size: 15px; }
.rc-feature span { font-size: 13px; color: var(--rc-muted); }

/* =========================================================
   8. WooCommerce — product grid & cards
   ========================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    position: relative;
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--rc-shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
}

.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14.5px !important;
    font-weight: 500;
    color: var(--rc-dark);
    padding: 12px 14px 2px !important;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--rc-primary); }

.woocommerce ul.products li.product .star-rating {
    margin: 4px 14px !important;
    font-size: 12px;
}

.woocommerce ul.products li.product .price {
    padding: 0 14px 6px;
    color: var(--rc-primary) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product .price del {
    color: var(--rc-muted);
    font-weight: 400;
    font-size: 13px;
    opacity: 1;
    margin-right: 6px;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .button {
    margin: 8px 14px 14px !important;
    padding: 9px 16px;
    font-size: 13px;
    background: transparent;
    color: var(--rc-primary) !important;
    border: 1.5px solid var(--rc-primary);
}
.woocommerce ul.products li.product .button:hover {
    background: var(--rc-primary);
    color: #fff !important;
}
.woocommerce ul.products li.product .added_to_cart {
    margin: 0 14px 14px;
    font-size: 13px;
    font-weight: 600;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--rc-primary) !important;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    margin: 0 !important;
    z-index: 9;
}

/* Star ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: var(--rc-amber); }

/* Result count / ordering */
.woocommerce .woocommerce-result-count { color: var(--rc-muted); font-size: 14px; margin-top: 10px; }
.woocommerce .woocommerce-ordering select { width: auto; padding: 8px 32px 8px 12px; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 6px;
    justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rc-radius-sm);
    border: 1px solid var(--rc-border);
    background: #fff;
    color: var(--rc-text);
    font-weight: 600;
    padding: 0 8px;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
    color: #fff;
}

/* =========================================================
   9. WooCommerce — layout, sidebar, single product
   ========================================================= */
.rc-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.rc-shop-layout--full { grid-template-columns: 1fr; }

.rc-sidebar .widget {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.rc-sidebar .widget .widget-title,
.rc-sidebar .widget .widgettitle {
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rc-border);
}
.rc-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.rc-sidebar .widget ul li { padding: 6px 0; font-size: 14px; }
.rc-sidebar .widget ul li a { color: var(--rc-text); }
.rc-sidebar .widget ul li a:hover { color: var(--rc-primary); }

/* Price filter */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--rc-primary); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: var(--rc-primary-light); }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--rc-muted);
    margin-bottom: 20px;
    padding: 12px 0;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--rc-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--rc-primary); }

/* Single product */
.rc-single-product {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 28px;
}
.woocommerce div.product .product_title { font-size: 26px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--rc-primary);
    font-size: 26px;
    font-weight: 800;
}
.woocommerce div.product p.price del { font-size: 17px; color: var(--rc-muted); opacity: 1; }
.woocommerce div.product p.price ins { text-decoration: none; }

.woocommerce div.product div.images { margin-bottom: 0; }
.woocommerce div.product div.images img { border-radius: var(--rc-radius); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 74px;
    border-radius: var(--rc-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { border-color: var(--rc-primary); }

.woocommerce div.product form.cart { margin: 24px 0; }
.woocommerce div.product form.cart div.quantity { margin-right: 10px; }
.woocommerce .quantity .qty {
    width: 72px;
    padding: 10px 8px;
    text-align: center;
}
.woocommerce div.product form.cart .button { padding: 12px 32px; font-size: 15px; }

.woocommerce div.product .product_meta {
    padding-top: 18px;
    border-top: 1px solid var(--rc-border);
    font-size: 13.5px;
    color: var(--rc-muted);
}
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 32px 0 0;
    border-bottom: 1px solid var(--rc-border);
    display: flex;
    gap: 4px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 20px;
    font-weight: 600;
    color: var(--rc-muted);
    border-bottom: 2px solid transparent;
    display: block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--rc-primary);
    border-bottom-color: var(--rc-primary);
}
.woocommerce div.product .woocommerce-tabs .panel { padding: 24px 0 0; }

/* Reviews */
.woocommerce #reviews #comments ol.commentlist li {
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 16px;
    margin-bottom: 14px;
    background: var(--rc-bg);
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
    border-radius: 50%;
    border: none;
    padding: 0;
    width: 44px;
    background: none;
    position: static;
    float: left;
    margin-right: 14px;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: none;
    margin: 0;
    padding: 0 0 0 60px;
}

/* Related / upsells */
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
    font-size: 22px;
    margin: 40px 0 20px;
}

/* =========================================================
   10. WooCommerce — cart, checkout, account, notices
   ========================================================= */
.rc-page-content > .woocommerce,
.rc-page-body {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 28px;
}

.woocommerce table.shop_table {
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.woocommerce table.shop_table th {
    background: var(--rc-bg);
    font-weight: 700;
    color: var(--rc-darker);
}
.woocommerce table.shop_table td { border-top: 1px solid var(--rc-border); }
.woocommerce-cart table.cart img { width: 72px; border-radius: var(--rc-radius-sm); }
.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 180px;
    padding: 10px 14px;
}

.woocommerce .cart_totals h2, .woocommerce #order_review_heading { font-size: 20px; }

.woocommerce-checkout #payment {
    background: var(--rc-bg);
    border-radius: var(--rc-radius);
}
.woocommerce-checkout #payment div.payment_box {
    background: #fff;
    border: 1px solid var(--rc-border);
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }

.woocommerce form .form-row label { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.woocommerce form .form-row .required { color: var(--rc-primary); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-radius: var(--rc-radius-sm);
    background: #fff;
    border: 1px solid var(--rc-border);
    border-top-width: 3px;
}
.woocommerce-message { border-top-color: var(--rc-green); }
.woocommerce-message::before { color: var(--rc-green); }
.woocommerce-info { border-top-color: var(--rc-primary); }
.woocommerce-info::before { color: var(--rc-primary); }
.woocommerce-error { border-top-color: #dc2626; }

/* Account */
.woocommerce-account .woocommerce-MyAccount-navigation { width: 240px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 11px 16px;
    border-radius: var(--rc-radius-sm);
    color: var(--rc-text);
    font-weight: 500;
    font-size: 14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--rc-primary-light);
    color: var(--rc-primary);
}
.woocommerce-account .woocommerce-MyAccount-content { width: calc(100% - 268px); }

/* =========================================================
   11. Blog
   ========================================================= */
.rc-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.rc-post-card {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.rc-post-card:hover { box-shadow: var(--rc-shadow-lg); transform: translateY(-3px); }
.rc-post-card__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.rc-post-card__body { padding: 20px; }
.rc-post-card__meta { font-size: 12.5px; color: var(--rc-muted); margin-bottom: 8px; display: flex; gap: 12px; }
.rc-post-card__title { font-size: 18px; margin-bottom: 8px; }
.rc-post-card__title a { color: var(--rc-darker); }
.rc-post-card__title a:hover { color: var(--rc-primary); }
.rc-post-card__excerpt { font-size: 14px; color: var(--rc-muted); }

.rc-article {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 32px;
    max-width: 860px;
    margin: 0 auto;
}
.rc-article__title { font-size: 32px; }
.rc-article__meta { color: var(--rc-muted); font-size: 13.5px; margin-bottom: 20px; }
.rc-article__thumb img { border-radius: var(--rc-radius); margin-bottom: 24px; }
.rc-article__content { font-size: 16px; line-height: 1.75; }
.rc-article__content img { border-radius: var(--rc-radius); }

.rc-page-title {
    font-size: 30px;
    margin: 28px 0 24px;
}

/* Standard pagination */
.rc-pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.rc-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rc-radius-sm);
    border: 1px solid var(--rc-border);
    background: #fff;
    color: var(--rc-text);
    font-weight: 600;
    padding: 0 10px;
}
.rc-pagination .page-numbers.current,
.rc-pagination .page-numbers:hover {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
    color: #fff;
}

/* Comments */
.rc-comments { max-width: 860px; margin: 24px auto 0; }
.rc-comments ol.comment-list { list-style: none; padding: 0; }
.rc-comments .comment-body {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 18px;
    margin-bottom: 16px;
}

/* =========================================================
   12. Footer
   ========================================================= */
.rc-footer { background: var(--rc-darker); color: #9ca3af; margin-top: 56px; }
.rc-footer a { color: #9ca3af; }
.rc-footer a:hover { color: #fff; }

.rc-footer__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding: 48px 0 36px;
}
.rc-footer .widget-title, .rc-footer .widgettitle, .rc-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}
.rc-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.rc-footer .widget ul li { padding: 5px 0; font-size: 14px; }

.rc-footer__brand { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.5px; display: inline-block; margin-bottom: 10px; }
.rc-footer__brand span { color: var(--rc-primary); }
.rc-footer__about { font-size: 14px; line-height: 1.7; }

.rc-social { display: flex; gap: 10px; margin-top: 16px; }
.rc-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: background .2s, color .2s;
}
.rc-social a:hover { background: var(--rc-primary); color: #fff; }
.rc-social svg { width: 17px; height: 17px; }

.rc-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.rc-payments { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-payments span {
    background: rgba(255, 255, 255, .08);
    color: #d1d5db;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Back to top */
.rc-backtop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rc-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rc-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s;
    z-index: 90;
}
.rc-backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.rc-backtop svg { width: 20px; height: 20px; }

/* =========================================================
   13. Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .rc-hero__title { font-size: 34px; }
    .rc-shop-layout { grid-template-columns: 1fr; }
    .rc-sidebar { order: 2; }
}

@media (max-width: 782px) {
    .rc-header__inner { flex-wrap: wrap; gap: 12px; }
    .rc-header__search { order: 3; max-width: 100%; flex-basis: 100%; }
    .rc-header__action span { display: none; }

    .rc-nav-toggle { display: block; }
    .rc-nav ul.rc-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 8px 0;
    }
    .rc-nav.is-open ul.rc-menu { display: flex; }
    .rc-nav ul.rc-menu > li > a { border-bottom: none; padding: 12px 8px; }
    .rc-nav ul.rc-menu li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
    }
    .rc-nav ul.rc-menu li.is-open > ul { display: block; }
    .rc-nav__inner { flex-wrap: wrap; }

    .rc-hero__inner { grid-template-columns: 1fr; padding: 36px 0; text-align: center; }
    .rc-hero__subtitle { margin-left: auto; margin-right: auto; }
    .rc-hero__image { order: -1; }
    .rc-hero__image img { max-height: 240px; }

    .rc-section { padding: 32px 0; }
    .rc-section__title { font-size: 21px; }

    .woocommerce ul.products, .woocommerce-page ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .rc-topbar__inner { justify-content: center; }
    .rc-topbar__links { display: none; }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }

    .rc-footer__bottom { justify-content: center; text-align: center; }
}
