/*
Theme Name: Cloudly
Theme URI: https://example.com/cloudly
Description: A reusable WooCommerce theme with skin presets for specialty retail storefronts.
Version: 1.1
Author: Custom Theme
Text Domain: cloudly
Tested up to: 6.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/
:root {
    /* Neutral system defaults — skins supply brand values */
    --cloudly-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cloudly-font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cloudly-font-display: var(--cloudly-font-heading);
    --cloudly-color-text: #1d1d1d;
    --cloudly-color-text-strong: #333333;
    --cloudly-color-text-muted: #666666;
    --cloudly-color-text-subtle: #6b7280;
    --cloudly-color-surface-base: #ffffff;
    --cloudly-color-surface-muted: #f5f5f5;
    --cloudly-color-surface-soft: #f8f9fa;
    --cloudly-color-border-soft: #e9ecef;
    --cloudly-color-border-mid: #d9d9d9;
    --cloudly-color-border-subtle: #f0f0f0;
    --cloudly-color-contrast: #ffffff;
    --cloudly-color-text-faint: #999999;
    --cloudly-color-accent: #666666;
    --cloudly-color-accent-hover: #555555;
    --cloudly-color-accent-strong: #444444;
    --cloudly-color-accent-rgb: 102 102 102;
    --cloudly-gradient-surface: linear-gradient(135deg, var(--cloudly-color-surface-soft) 0%, var(--cloudly-color-border-soft) 100%);
    --cloudly-gradient-accent: linear-gradient(135deg, var(--cloudly-color-accent), var(--cloudly-color-accent-hover));
    --cloudly-gradient-accent-hover: linear-gradient(135deg, var(--cloudly-color-accent-hover), var(--cloudly-color-accent-strong));
}

/* Reset and Base Styles */
html,
body,
#page {
    margin: 0;
    padding: 0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.section {
    padding: 4rem 0;
}

body {
    margin: 0;
    font-family: var(--cloudly-font-body);
    line-height: 1.6;
    color: var(--cloudly-color-text);
    background-color: var(--cloudly-color-surface-base);
    font-weight: 400;
    font-size: 14px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--cloudly-font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--cloudly-color-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 25px;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
.site-header {
    background: var(--cloudly-color-surface-base);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Dimming: only apply on mobile when header is condensed */
.site-header.scrolled {
    opacity: 1;
}

/* Header compacting on mobile — instant changes (no animation) */
.site-header .mobile-top {
    transition: none;
}

.site-header .site-logo,
.site-header .site-logo img {
    transition: none;
}

/* Base: no scaling */
.site-header .mobile-top .site-logo {
    transform: none;
    transform-origin: center center;
}

/* Mobile condensed: keep logo size unchanged */
@media (max-width: 1023px) {
    .site-header.mobile-condensed .mobile-top .site-logo {
        transform: none;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    /* WhatsApp green */
    color: var(--cloudly-color-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.whatsapp-float__label {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(10px);
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.whatsapp-float--prompt .whatsapp-float__label {
    animation: cloudly-whatsapp-cta 5.4s ease 0.45s 1 forwards;
}

.whatsapp-float:hover {
    background: #1ebe5b;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
    animation: none;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

@keyframes cloudly-whatsapp-cta {
    0%,
    12% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    18%,
    76% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float__label {
        right: calc(100% + 10px);
        padding: 0.62rem 0.82rem;
        font-size: 0.75rem;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

@media print {
    .whatsapp-float {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float__label {
        transition: none;
    }

    .whatsapp-float--prompt .whatsapp-float__label {
        animation: none;
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }

    .whatsapp-float:hover .whatsapp-float__label,
    .whatsapp-float:focus-visible .whatsapp-float__label {
        transform: translateY(-50%) translateX(0);
    }
}

.top-bar {
    background: var(--cloudly-color-surface-muted);
    text-align: center;
    padding: 10px 1rem;
    font-size: 0.9rem;
    line-height: 1;
    display: block;
    margin: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
}

.top-bar p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Top bar carousel: show only active message */
.top-bar .message {
    display: none;
}

.top-bar .message.active {
    display: inline;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.2rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Desktop Header Styles */
.desktop-header {
    display: grid;
}

.mobile-header {
    display: none;
}

.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}


/* Search Bar Styles */
.header-search-bar {
    width: 100%;
    max-width: 600px;
}

.header-search-bar .search-form {
    display: flex;
    align-items: center;
    background: var(--cloudly-color-surface-soft);
    border: 2px solid var(--cloudly-color-border-soft);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search-bar .search-form:focus-within {
    border-color: var(--cloudly-color-accent);
    box-shadow: 0 0 0 3px rgb(var(--cloudly-color-accent-rgb) / 0.1);
}

.header-search-bar .search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--cloudly-color-text-strong);
    outline: none;
    font-family: var(--cloudly-font-body);
}

.header-search-bar .search-field::placeholder {
    color: var(--cloudly-color-text-subtle);
}

.header-search-bar .search-submit {
    background: var(--cloudly-color-accent);
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-bar .search-submit:hover {
    background: var(--cloudly-color-accent-hover);
}

.header-search-bar .search-submit svg {
    stroke: white;
}

/* Desktop Default Layout: Logo Left - Search Center - Cart Right + Menu Below */
.desktop-layout-default .desktop-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

.desktop-layout-default .header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.2rem 0;
    gap: 2rem;
}

.desktop-layout-default .header-separator {
    height: 1px;
    background: #e1e1e1;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.desktop-layout-default .header-bottom {
    display: flex;
    justify-content: center;
    padding: 0.15rem 0;
    width: 100%;
}

.desktop-layout-default .header-bottom .desktop-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.desktop-layout-default .header-bottom .primary-menu {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    list-style: none;
    padding: 0;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-family: var(--cloudly-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cloudly-color-text);
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* Hamburger icon only - no text */
.menu-toggle .menu-text {
    display: none;
}

.menu-toggle:hover {
    background: rgb(var(--cloudly-color-accent-rgb) / 0.1);
}

.hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cloudly-color-text);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Additional menu states */
.main-navigation-container.active {
    visibility: visible;
    opacity: 1;
}

.site-logo {
    font-family: var(--cloudly-font-body);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--cloudly-color-accent);
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Header Icons */
.search-toggle,
.account-link,
.cart-link {
    color: var(--cloudly-color-text);
    text-decoration: none;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-toggle:hover,
.account-link:hover,
.cart-link:hover {
    color: var(--cloudly-color-accent);
    background: rgb(var(--cloudly-color-accent-rgb) / 0.1);
}

.account-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.account-text {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--cloudly-font-body);
}

/* Hide account link completely on mobile - keeps header clean */
@media (max-width: 1023px) {
    .header-account {
        display: none;
    }
}

/* Hide Login/Register menu item on desktop (only show on mobile hamburger menu) */
@media (min-width: 1024px) {
    .menu-item-account {
        display: none;
    }
}

.cart-icon,
.search-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.cart-count {
    background: var(--cloudly-color-accent);
    color: var(--cloudly-color-contrast);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 20px;
}

.main-navigation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
    /* prevent overlay from blocking page when hidden */
}

.main-navigation-container.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.main-navigation {
    background: var(--cloudly-color-surface-base);
    width: 320px;
    height: 100%;
    padding: 2rem;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: relative;
}

.main-navigation-container.active .main-navigation {
    transform: translateX(0);
}

.main-navigation .menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2f2f2f;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation .menu-close:hover {
    background: rgb(var(--cloudly-color-accent-rgb) / 0.1);
    color: var(--cloudly-color-accent);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2rem 0 0 0;
    padding: 0;
}

.main-navigation li {
    border-bottom: 1px solid var(--cloudly-color-border-subtle);
}

.main-navigation li:last-child {
    border-bottom: none;
}

.main-navigation a {
    text-decoration: none;
    color: var(--cloudly-color-text);
    font-weight: 500;
    font-family: var(--cloudly-font-body);
    transition: all 0.3s ease;
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    position: relative;
}

.main-navigation a:hover {
    color: var(--cloudly-color-accent);
    padding-left: 1rem;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--cloudly-color-accent);
    transition: width 0.3s ease;
}

.main-navigation a:hover::before {
    width: 20px;
}

.no-scroll {
    overflow: hidden;
}

/* Mobile Header Styles */
@media (max-width: 1023px) {
    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    /* Mobile Default Layout: Hamburger Left - Logo Center - Cart Right + Search Below */
    .mobile-mobile-default .mobile-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .mobile-mobile-default .mobile-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 0.3rem 0;
        /* Reduced padding from 1rem to 0.5rem */
        gap: 0.3rem;
        /* Reduced gap from 1rem to 0.5rem */
    }

    .mobile-mobile-default .mobile-search {
        padding: 0 0 0.3rem 0;
        /* Reduced padding from 1rem to 0.5rem */
        margin-top: 0.3rem;
        /* Reduced margin from 1rem to 0.5rem */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .mobile-mobile-default .mobile-search .header-search-bar {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
    }

    /* Force centering for all mobile layouts below 1023px */
    .mobile-header .header-center {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        grid-column: 1 / -1;
    }

    .mobile-header .header-center .header-search-bar {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
    }



}

/* Ensure menu toggle is properly clickable */
.menu-toggle {
    min-height: 44px;
    /* Touch-friendly size */
    min-width: 44px;
    cursor: pointer;
    z-index: 10001;
}

/* Homepage Specific Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.homepage {
    overflow-x: hidden;
}

.hero-section {
    height: 80vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--cloudly-color-contrast);
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-media .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}


.btn-primary {
    background: var(--cloudly-color-accent);
    color: var(--cloudly-color-contrast);
    font-family: var(--cloudly-font-body);
    font-weight: 500;
    padding: 15px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Product Category Section */
.product-category-section {
    padding: 4rem 0;
}

body .section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Footer */
.site-footer {
    background: var(--cloudly-color-text-strong);
    color: white;
    padding: 3rem 0 1rem;
}

.site-footer .container {
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .site-footer .container {
        padding: 0 2.5rem;
    }
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--cloudly-color-accent);
    font-family: var(--cloudly-font-body);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #f4f4f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--cloudly-color-accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--cloudly-color-accent);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #f4f4f4;
}

.digital-fig-link {
    color: var(--cloudly-color-accent);
    text-decoration: none;
}

.digital-fig-link:hover {
    color: var(--cloudly-color-accent-hover);
    text-decoration: none;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .footer-separator {
        display: none;
    }

    .footer-bottom p {
        line-height: 1.6;
    }

    .powered-by {
        display: block;
        margin-top: 0.5rem;
    }
}


.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}




/* Desktop Navigation - Hidden mobile menu on desktop */
@media (min-width: 1024px) {
    .menu-toggle,


    .desktop-nav {
        display: flex;
    }

    .main-navigation-container {
        display: none;
    }

    .main-navigation {
        background: none;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        transform: none;
        position: static;
    }

    .desktop-nav ul {
        flex-direction: row;
        gap: 2rem;
        margin: 0;
    }

    .desktop-nav li {
        border-bottom: none;
    }

    .desktop-nav a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .desktop-nav a:hover {
        padding-left: 0;
    }

    .desktop-nav a::before {
        top: auto;
        bottom: 0;
        transform: none;
        height: 2px;
    }

    /* Hide submenu toggle buttons on desktop */
    .submenu-toggle {
        display: none;
    }
}

/* Tablet layout (between mobile and desktop) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
    }

    /* Ensure desktop nav is hidden on tablet */
    .desktop-nav {
        display: none;
    }

    /* Show mobile menu toggle on tablet */
    .menu-toggle {
        display: flex;
    }

    /* Hide main navigation container on tablet */
    .main-navigation-container {
        display: none;
    }

    /* Center search bar on tablet for default layout */
    .desktop-layout-default .header-center .header-search-bar {
        max-width: 400px;
        margin: 0 auto;
    }
}



/* Tablet layout (between mobile and desktop) */

/* Mobile Navigation */
@media (max-width: 1023px) {
    .desktop-nav {
        display: none;
    }



    /* Ensure mobile menu toggle is only visible on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Ensure main navigation container is visible on mobile */
    .main-navigation-container {
        display: flex;
    }

    /* Ensure search bar is centered below 1023px */
    .header-search-bar {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Ensure desktop default layout search is centered below 1023px */
    .desktop-layout-default .header-center {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        grid-column: 2;
    }

    .desktop-layout-default .header-center .header-search-bar {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
    }

    /* Specific centering for mobile default layout */
    .mobile-mobile-default .mobile-search {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .mobile-mobile-default .mobile-search .header-search-bar {
        max-width: 90%;
        width: 100%;
    }


}

/* Responsive Design - already handled by mobile navigation */
/* This section is redundant and has been removed */

/* Mobile condensed header behavior on scroll */
@media (max-width: 1023px) {
    .site-header.mobile-condensed .mobile-search {
        display: none;
    }

    .site-header.mobile-condensed .top-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .main-navigation {
        width: 280px;
        padding: 1.5rem;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }



    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    /* Ensure search bar is centered on mobile */
    .header-search-bar {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Ensure footer has proper padding on mobile */
    .site-footer {
        padding: 3rem 1rem 1rem;
    }

    /* Ensure container has padding on mobile */
    .container {
        padding: 0 1rem;
    }

    .mobile-mobile-default .mobile-search .header-search-bar,
    .desktop-layout-default .header-center .header-search-bar {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .header-container {
        padding: 0.5rem;
    }

    .site-logo {
        font-size: 1.3rem;
    }

    .main-navigation {
        width: 100%;
        padding: 1rem;
    }

    .top-bar {
        font-size: 0.8rem;
        padding: 8px 0.5rem;
        margin: 0;
        height: unset;
        line-height: 1;
    }

    .top-bar p {
        margin: 0;
        padding: 0;
        line-height: 1;
    }
}

/* WooCommerce Overrides */
body.archive ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Override for bestsellers carousel */
.bestsellers-section .products,
.bestsellers-section .woocommerce .products {
    display: none;
}

.bestsellers-section .bestsellers-track {
    display: flex;
}

.woocommerce ul.products li.product {
    background: var(--cloudly-color-surface-base);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .product-excerpt {
    flex: 1;
    margin-bottom: auto;
}

.woocommerce ul.products li.product .price {
    margin-top: auto;
}

.woocommerce .product-card .woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
}

.woocommerce .price {
    color: var(--cloudly-color-accent);
    font-family: var(--cloudly-font-body);
    font-weight: 500;
    font-size: 1.2rem;
}

.woocommerce .button {
    background: var(--cloudly-color-accent);
    color: var(--cloudly-color-contrast);
    font-family: var(--cloudly-font-body);
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.woocommerce .button:hover {
    background: var(--cloudly-color-accent-hover);
}

/* My Account Page Global Styles */
body.woocommerce-account .site-main,
.woocommerce-account .site-main {
    padding: 2rem 0;
}

body.woocommerce-account .entry-title,
.woocommerce-account .entry-title {
    text-align: center;
    font-family: var(--cloudly-font-body);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--cloudly-color-text);
}

/* Form Styles */
body.woocommerce-account .woocommerce-form label,
.woocommerce-form label {
    font-weight: 500;
    color: var(--cloudly-color-text-strong);
    margin-bottom: 0.5rem;
    display: block;
}

body.woocommerce-account .woocommerce-form .form-row,
.woocommerce-form .form-row {
    margin-bottom: 1.5rem;
}

body.woocommerce-account .woocommerce-input-wrapper,
.woocommerce-input-wrapper {
    width: 100%;
}

body.woocommerce-account .woocommerce-form input.input-text,
body.woocommerce-account .woocommerce-form textarea,
.woocommerce-form input.input-text,
.woocommerce-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--cloudly-font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

body.woocommerce-account .woocommerce-form input.input-text:focus,
body.woocommerce-account .woocommerce-form textarea:focus,
.woocommerce-form input.input-text:focus,
.woocommerce-form textarea:focus {
    border-color: var(--cloudly-color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgb(var(--cloudly-color-accent-rgb) / 0.1);
}

/* Button Styles */
body.woocommerce-account .woocommerce-button,
.woocommerce-button {
    background: var(--cloudly-color-accent);
    color: var(--cloudly-color-contrast);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: var(--cloudly-font-body);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

body.woocommerce-account .woocommerce-button:hover,
.woocommerce-button:hover {
    background: var(--cloudly-color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgb(var(--cloudly-color-accent-rgb) / 0.3);
}

/* Select Styles */
body.woocommerce-account .woocommerce-form select,
.woocommerce-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--cloudly-font-body);
    font-size: 1rem;
    background-color: var(--cloudly-color-surface-base);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23dcad52%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}



/* Style for remaining breadcrumbs */
.woocommerce-breadcrumb {
    padding: 15px 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: #2f2f2f;
}

.woocommerce-breadcrumb a {
    color: #2f2f2f;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #0073aa;
}

.woocommerce-breadcrumb span {
    color: #0073aa;
    font-weight: 500;
}

/* Submenu Styles - Hidden by default, show on hover/click */
.sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ensure submenus are hidden by default on desktop */
@media (min-width: 1024px) {
    .desktop-nav .sub-menu {
        display: none;
    }

    .desktop-nav .menu-item-has-children:hover>.sub-menu {
        display: block;
    }
}


/* Desktop navigation submenu styles */
.desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cloudly-color-surface-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.desktop-nav .sub-menu li {
    border-bottom: 1px solid var(--cloudly-color-border-subtle);
}

.desktop-nav .sub-menu li:last-child {
    border-bottom: none;
}

.desktop-nav .sub-menu a {
    padding: 1rem;
    font-size: 1rem;
    color: var(--cloudly-color-text);
}

.desktop-nav .sub-menu a:hover {
    background: var(--cloudly-color-surface-muted);
    padding-left: 1rem;
}

/* Position submenus correctly under their parent items */
.desktop-nav .menu-item-has-children {
    position: relative;
}

.desktop-nav .menu-item-has-children:hover>.sub-menu {
    display: block;
}

/* Mobile navigation submenu styles */
@media (max-width: 1023px) {
    .main-navigation .sub-menu {
        background: var(--cloudly-color-surface-muted);
        padding-left: 1rem;
        display: none;
        list-style: none;
        margin: 0;
        /* Hide submenus by default on mobile */
    }

    .main-navigation .sub-menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Do not change color/background on hover/click for mobile */
    .main-navigation a:hover {
        color: inherit;
        padding-left: 0;
    }

    /* Remove desktop underline/strike effect on mobile */
    .main-navigation a::before,
    .main-navigation a:hover::before {
        content: none;
        display: none;
        width: 0;
        height: 0;
    }

    /* Do not highlight current menu item on mobile */
    .main-navigation .current-menu-item>a,
    .main-navigation .current-menu-ancestor>a,
    .main-navigation .current_page_item>a,
    .main-navigation .current_page_ancestor>a {
        background: transparent;
        color: inherit;
    }

    /* Show submenus when parent item has 'active' class */
    .main-navigation .menu-item-has-children.active>.sub-menu {
        display: block;
    }

    /* Add expand/collapse indicators for mobile menu items with children */
    .main-navigation .menu-item-has-children {
        position: relative;
    }

    .main-navigation .menu-item-has-children>a {
        padding-right: 3rem;
    }

    /* Submenu toggle button */
    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 1rem;
        /* align with parent link (padding-top: 1rem) */
        width: 3rem;
        height: 2rem;
        /* keep aligned with first row, not the whole li */
        background: none;
        border: none;
        font-size: 1.2rem;
        font-weight: normal;
        /* Less bold */
        cursor: pointer;
        color: var(--cloudly-color-text);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        /* Ensure it's above other elements */
    }

    .submenu-toggle:hover,
    .submenu-toggle:active,
    .submenu-toggle:focus {
        background: transparent;
        color: var(--cloudly-color-text);
    }

    /* Style submenu items */
    .main-navigation .sub-menu li {
        border-bottom: 1px solid #e1e1e1;
    }

    .main-navigation .sub-menu li:last-child {
        border-bottom: none;
    }

    /* Indent sub-sub-menus further */
    .main-navigation .sub-menu .sub-menu {
        padding-left: 1.5rem;
    }

    /* Ensure submenu toggle is visible on mobile */
    .main-navigation .menu-item-has-children .submenu-toggle {
        display: flex;
    }

    /* Menu toggle indicator styles for main menu items */
    .menu-toggle-indicator {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--cloudly-color-accent);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    /* Style for main menu items with children */
    .main-navigation .menu-item-has-children>a {
        position: relative;
        padding-right: 3rem;
        cursor: pointer;
    }

    /* Style when menu is expanded */
    .main-navigation .menu-item-has-children>a.menu-expanded {
        background: rgb(var(--cloudly-color-accent-rgb) / 0.1);
        color: var(--cloudly-color-accent);
    }

    /* Rotate indicator when expanded */
    .main-navigation .menu-item-has-children.active>a .menu-toggle-indicator {
        transform: translateY(-50%) rotate(180deg);
    }
}

.homepage-reviews {
    max-width: 1100px;
    margin: 2rem auto 1.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}





/* Product search results */

.search-results {
    background: var(--cloudly-color-surface-soft);
}

/* Hide rating badge on search results cards */
.search-results .product-rating-badge {
    display: none;
}

/* Search results layout */
.search-results {
    padding: 0;
}

.search-results__container {
    padding: 3rem 0 4rem;
    max-width: 1120px;
    margin: 0 auto;
}

.search-results__title {
    margin: 0 0 2.5rem;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
}

.search-results__pagination {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .search-results__container {
        padding: 2.5rem 0 3rem;
    }

    .search-results__title {
        font-size: 1.8rem;
        margin-bottom: 1.75rem;
    }
}

/* Trustindex review overrides */
.homepage-reviews img.ti-star {
    filter: brightness(0) saturate(100%) invert(78%) sepia(51%) saturate(365%) hue-rotate(350deg) brightness(96%) contrast(92%);
}

.homepage-reviews .ti-widget.ti-goog[data-layout-id="34"][data-set-id="light-background"] .ti-review-item>.ti-inner {
    background-color: var(--cloudly-color-surface-soft);
    border-color: var(--cloudly-color-surface-soft);
}


@media (min-width: 769px) and (max-width: 1023px) {
    .special-offers .special-offer-item .product-card {
        display: flex;
        flex-direction: column;
    }

    .special-offers .special-offer-item .product-image-wrapper {
        flex-shrink: 0;
    }

    .special-offers .special-offer-item .product-info {
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }

    .special-offers .special-offer-item .product-title {
        margin-top: 0.75rem;
        margin-bottom: 0.35rem;
    }
}



@media (max-width: 768px) {
    .special-offers .special-offer-item .product-info {
        padding: 1rem;
    }

    .special-offers .special-offer-item .product-title {
        margin-top: 0.75rem;
    }
}

@media (max-width: 1023px) {}

/* Trustindex Instagram feed overrides */
/* Scope to Latest News section to avoid side effects */
.latest-news .ti-widget[data-wkey*="instagram"] .ti-nav-loadmore,
.latest-news .ti-widget[data-wkey*="instagram"] .ti-nav-loadmore .ti-btn,
.latest-news .ti-widget.ti-inst .ti-nav-loadmore,
.latest-news .ti-widget.ti-inst .ti-nav-loadmore .ti-btn,
/* Fallbacks for variant classnames */
.latest-news .ti-widget .ti-nav [class*="loadmore"],
.latest-news .ti-widget .ti-nav [class*="load-more"],
.latest-news .ti-widget .ti-footer [class*="loadmore"],
.latest-news .ti-widget .ti-footer [class*="load-more"] {
    display: none;
}





.header-center {
    justify-content: center;
}

@media (max-width: 1023px) {

    .mobile-header .header-center,
    .desktop-layout-default .header-center {
        justify-content: center;
    }


}

@media (max-width: 480px) {
    .special-offers .special-offer-item .product-info {
        padding: 1rem;
        margin-top: 0;
    }

    .special-offers .special-offer-item .product-title {
        margin-top: 0.75rem;
    }
}



@media (min-width: 481px) {
    .main-navigation {
        width: 340px;
    }
}

@media (max-width: 480px) {
    .main-navigation {
        width: 100%;
    }
}




@media (min-width: 768px) {
    body.page:not(.home) .site-main {
        padding-left: 2rem;
        padding-right: 2rem;
        box-sizing: border-box;
    }
}



@media (min-width: 1024px) {
    .desktop-nav ul {
        flex-direction: row;
        gap: 3rem;
        margin: 0;
        justify-content: center;
    }
}

/* Accessibility and legacy WordPress helpers */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 1rem;
    position: static;
    background: var(--cloudly-color-surface-soft);
    outline: 2px solid var(--cloudly-color-accent);
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.wp-caption {
    max-width: 100%;
    margin: 1.5rem auto;
    text-align: center;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text,
.gallery-caption {
    font-size: 0.9rem;
    color: var(--cloudly-color-text-muted);
    margin-top: 0.5rem;
}

.bypostauthor {
    border-left: 4px solid var(--cloudly-color-accent);
}

.sticky {
    border: 2px solid var(--cloudly-color-accent);
    padding: 1.5rem;
}
