* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1051AB;
    --primary-dark: #0B3F86;
    --primary-hover: #0D4593;
    --primary-glow: #2F74D0;
    --primary-soft: #EAF3FF;
    --primary-border: #BFD8FF;
    --aquatic-accent: #00B8D4;
    --aquatic-accent-deep: #008EA6;
    --aquatic-accent-soft: #E8FAFD;
    --dark-900: #F5FBFD;
    --dark-800: #ffffff;
    --dark-700: #EEF8FB;
    --dark-600: #D6E7EF;
    --dark-500: #BFD8FF;
    --ocean: var(--aquatic-accent-soft);
    --ocean-light: #FAFDFF;
    --gray-500: #8A98A8;
    --gray-400: #6B7C8F;
    --gray-300: #4B5D70;
    --text-primary: #263442;
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-400);
    --text-faint: var(--gray-500);
    --border-subtle: #E6F1F6;
    --border-strong: #D6E7EF;
    --bg-section: #EEF8FB;
    --surface: #ffffff;
    --surface-elevated: #FAFDFF;
    --surface-soft: #F1F8FC;
    --surface-hover: var(--primary-soft);
    --accent: var(--primary);
    --accent-hover: var(--primary-hover);
    --accent-soft: rgba(16, 81, 171, 0.1);
    --accent-border: var(--primary-border);
    --success: #16A765;
    --success-soft: #EAFBF2;
    --danger: #D64545;
    --danger-soft: #FFF0F0;
    --warning: #D99000;
    --warning-soft: #FFF8E6;
    --overlay: rgba(38, 52, 66, 0.72);
    --overlay-strong: rgba(38, 52, 66, 0.94);
    --disabled-bg: #E6F1F6;
    --disabled-text: #8A98A8;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 22px 54px rgba(15, 23, 42, 0.14);
    --shadow-cyan: 0 10px 30px rgba(0, 184, 212, 0.18);
    --shadow-panel: 0 20px 40px rgba(38, 52, 66, 0.12);
    --bg-page: var(--dark-900);
    --bg-panel: var(--dark-800);
    --bg-panel-soft: var(--dark-700);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

.site-main {
    min-width: 0;
}

.font-display {
    font-family: 'Poppins', sans-serif;
}

.home-hero {
    min-height: min(100vh, 920px);
    min-height: 100svh;
    background: radial-gradient(circle at 30% 25%, rgba(16, 81, 171, 0.22), transparent 34%),
        linear-gradient(135deg, var(--dark-900) 0%, var(--ocean) 48%, var(--dark-900) 100%);
}

.home-hero__slides,
.home-hero__slide {
    width: 100%;
    height: 100%;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms ease, transform 7000ms ease;
}

.home-hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.home-hero__slide--fallback {
    background:
        radial-gradient(circle at 20% 25%, rgba(16, 81, 171, 0.28), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 184, 212, 0.14), transparent 34%),
        linear-gradient(135deg, var(--dark-900) 0%, var(--ocean) 52%, var(--dark-800) 100%);
}

.home-hero__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 81, 171, 0.75);
    background: rgba(10, 10, 15, 0.55);
    transition: width 240ms ease, background-color 240ms ease;
}

.home-hero__dot.is-active {
    width: 2rem;
    background: var(--primary);
}

@media (max-width: 640px) {
    .home-hero {
        min-height: 42rem;
        padding-top: 5rem;
    }

    .home-hero__dots {
        bottom: 4rem;
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.rs-mega-menu {
    width: min(900px, calc(100vw - 2rem));
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    overflow-x: hidden;
}

#navbar,
#mobile-sidebar,
#search-modal {
    max-width: 100vw;
}

.product-carousel .slick-prev,
.product-carousel .slick-next,
.category-carousel .slick-prev,
.category-carousel .slick-next {
    width: 50px;
    height: 50px;
    background: rgba(16, 81, 171, 0.1);
    border: 1px solid rgba(16, 81, 171, 0.3);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.product-carousel .slick-prev:hover,
.product-carousel .slick-next:hover,
.category-carousel .slick-prev:hover,
.category-carousel .slick-next:hover {
    background: rgba(16, 81, 171, 0.2);
    border-color: var(--accent);
}

.product-carousel .slick-prev,
.category-carousel .slick-prev {
    left: 0.75rem;
}

.product-carousel .slick-next,
.category-carousel .slick-next {
    right: 0.75rem;
}

.product-carousel .slick-prev::before,
.product-carousel .slick-next::before,
.category-carousel .slick-prev::before,
.category-carousel .slick-next::before {
    color: var(--accent);
    font-size: 20px;
}

.product-carousel .slick-dots,
.category-carousel .slick-dots {
    bottom: -40px;
}

.product-carousel .slick-dots li button::before,
.category-carousel .slick-dots li button::before {
    color: var(--accent);
    font-size: 12px;
    opacity: 0.5;
}

.product-carousel .slick-dots li.slick-active button::before,
.category-carousel .slick-dots li.slick-active button::before {
    opacity: 1;
}

.product-carousel,
.category-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-carousel .slick-list,
.category-carousel .slick-list {
    overflow: hidden;
    margin-inline: -0.75rem;
    padding: 30px 0;
}

.product-carousel .slick-track,
.category-carousel .slick-track {
    min-width: 0;
}

.glass-panel {
    background: rgba(17, 17, 24, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.category-card:hover {
    transform: translateY(-8px);
}

.why-card:hover {
    transform: translateY(-8px);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 81, 171, 0.1);
}

#mobile-sidebar {
    background: var(--dark-800);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.65);
    z-index: 60;
}

#mobile-sidebar-overlay {
    z-index: 55;
    background: rgba(0, 0, 0, 0.72);
}

#mobile-sidebar,
#mobile-sidebar a,
#mobile-sidebar button {
    color: inherit;
}

#mobile-sidebar .mobile-nav-link:hover,
#mobile-sidebar .mobile-dropdown-content a:hover {
    padding-left: 8px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-glow), var(--primary));
}

@media (max-width: 768px) {
    .glass-panel {
        background: rgba(17, 17, 24, 0.9);
    }

    .product-carousel .slick-prev {
        left: 10px;
    }

    .product-carousel .slick-next {
        right: 10px;
    }

    .category-carousel .slick-prev {
        left: 10px;
    }

    .category-carousel .slick-next {
        right: 10px;
    }
}

@media (max-width: 1320px) {
    .product-carousel .slick-prev,
    .category-carousel .slick-prev {
        left: 0.75rem;
    }

    .product-carousel .slick-next,
    .category-carousel .slick-next {
        right: 0.75rem;
    }
}

/* category card styling */

.category-card{
    margin-top: auto;
}

.category-card h3{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card p{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* product card styling */

.product-card h3{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* product card for mobile view in shop page only for sm breakpoint */

@media (max-width: 640px) {
    .shop-view .product-card {
        display: flex;
        flex-direction: row;
        min-width: 0;
    }

    .shop-view .product-card > div:first-child {
        width: clamp(112px, 36vw, 140px);
        min-width: clamp(112px, 36vw, 140px);
        height: 140px;
        flex-shrink: 0;
        aspect-ratio: auto;
    }

    .shop-view .product-card > div:first-child img {
        height: 100%;
        object-fit: cover;
    }

    .shop-view .product-card > div:last-child {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    .shop-view .product-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 1;
    }

    .shop-view .product-card p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .shop-view .product-card .flex.gap-1 {
        margin-bottom: 0.5rem;
    }

    .shop-view .product-card .flex.items-center.justify-between {
        margin-top: auto;
    }

    .shop-view .product-card .product-price {
        font-size: 1.125rem;
    }

    .shop-view .product-card .product-cart-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* product price wordpress inbuild html styling */

.product-price{
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
}

.product-price del{
    font-size: 0.9rem;
    font-weight: 300;
    margin-left: 10px;
}

.product-price ins{
    font-size: 1.25rem;
    text-decoration: none;
    font-weight: 700;
}

.product-detailed-price{
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: start;
}

.product-detailed-price del{
    font-size: 1.25rem;
    font-weight: 300;
    margin-left: 10px;
}

.product-detailed-price ins{
    font-size: 2.5rem;
    text-decoration: none;
    font-weight: 700;
}

/* ========================================
   SKELETON LOADING UI
   ======================================== */

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #1a1a24 25%,
        #252532 50%,
        #1a1a24 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-card {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-wrapper.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.skeleton-wrapper.grid .skeleton-card {
    margin: 0;
}

.skeleton-image {
    width: 100%;
    height: 180px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin: 16px 12px 8px;
}

.skeleton-text {
    height: 14px;
    width: 60%;
    margin: 0 12px 12px;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    margin: 12px;
}

.skeleton-wrapper {
    transition: opacity 0.3s ease;
}

.skeleton-wrapper.hidden {
    display: none !important;
}

/* Responsive skeleton grid */
@media (max-width: 1024px) {
    .skeleton-wrapper.grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-wrapper.grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .skeleton-wrapper.grid {
        grid-template-columns: 1fr;
    }
}

/* Product Slider Styles */
.product-slider-container {
    position: relative;
    height: auto;
    min-height: 400px;
    aspect-ratio: 1 / 1;
    max-height: 600px;
}

.product-main-slider {
    height: 100%;
    background: #1a1a24;
    border-radius: 16px;
    overflow: hidden;
}

.product-main-slider .slick-list {
    height: 100%;
    border-radius: 16px;
}

.product-main-slider .slider-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a24;
    padding: 16px;
}

.product-main-slider .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Navigation Arrows */
.product-main-slider .slick-prev,
.product-main-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(16, 81, 171, 0.1);
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-main-slider .slick-prev:hover,
.product-main-slider .slick-next:hover {
    background: rgba(16, 81, 171, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.product-main-slider .slick-prev {
    left: 16px;
}

.product-main-slider .slick-next {
    right: 16px;
}

.product-main-slider .slick-prev:before,
.product-main-slider .slick-next:before {
    display: none;
}

/* Thumbnail Slider */
.product-thumbnail-slider {
    margin-top: 12px;
}

.product-thumbnail-slider .slick-list {
    margin: 0 -4px;
}

.product-thumbnail-slider .thumbnail-item {
    padding: 0 4px;
}

.product-thumbnail-slider .thumbnail-item > div {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.product-thumbnail-slider .thumbnail-item > div:hover {
    opacity: 1;
}

.product-thumbnail-slider .slick-current .thumbnail-item > div {
    border-color: var(--accent);
    opacity: 1;
}

.product-thumbnail-slider .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-slider-container {
        aspect-ratio: 1 / 1;
        min-height: 400px;
    }
    
    .product-main-slider .slick-prev,
    .product-main-slider .slick-next {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .product-slider-container {
        aspect-ratio: 4 / 3;
        min-height: 300px;
    }
    
    .product-main-slider .slider-item {
        padding: 12px;
    }
    
    .product-main-slider .slick-prev,
    .product-main-slider .slick-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .product-main-slider .slick-prev {
        left: 8px;
    }
    
    .product-main-slider .slick-next {
        right: 8px;
    }
    
    .product-thumbnail-slider {
        margin-top: 8px;
    }
    
    .product-thumbnail-slider .thumbnail-item {
        padding: 0 3px;
    }
}

@media (max-width: 480px) {
    .product-slider-container {
        aspect-ratio: 1 / 1;
        min-height: 280px;
    }
    
    .product-main-slider .slider-item {
        padding: 8px;
    }
    
    .product-main-slider .slick-prev,
    .product-main-slider .slick-next {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .product-main-slider .slick-prev {
        left: 4px;
    }
    
    .product-main-slider .slick-next {
        right: 4px;
    }
    
    .product-thumbnail-slider .thumbnail-item {
        padding: 0 2px;
    }
}

/* ========================================
   PRODUCT CAROUSEL FALLBACK & VISIBILITY
   ======================================== */

/* Force visibility for product details sections */
.product-info-section,
.related-products-section {
    visibility: visible;
    opacity: 1;
}

/* Fallback static image styling */
.product-image-fallback {
    margin-bottom: 16px;
}

.product-image-fallback img {
    border: 1px solid #252532;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.product-image-fallback img:hover {
    border-color: var(--accent);
}

/* Related products section specific */
#related-products {
    min-height: 400px;
}

/* Product carousel section common */
.product-carousel-section {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   LOADING SPINNER STYLES
   ======================================== */

.carousel-loading {
    position: relative;
    min-height: 300px;
}

.carousel-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 4px solid #252532;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.carousel-loading.hidden::after {
    display: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   AOS ANIMATION DISABLE CLASSES
   ======================================== */

.aos-disabled [data-aos] {
    opacity: 1;
    transform: none;
}

.aos-disabled [data-aos]:not([data-aos=""]) {
    opacity: 1;
    transform: none;
}


/* FIX slick inside CSS grid (mobile overflow issue) */
.grid > div {
    min-width: 0;
}

/* Constrain slick containers */
.product-slider-container,
.product-main-slider,
.product-thumbnail-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.map-container {
    position: relative;
    width: 100%;
    min-height: 22rem;
    aspect-ratio: 16 / 9;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Filter sidebar public states */
.category-checkbox:checked + span,
.brand-checkbox:checked + span {
    color: var(--primary) !important;
    font-weight: 500;
}

.category-checkbox.checkbox-active,
.brand-checkbox.checkbox-active {
    border-color: var(--primary);
    background-color: var(--primary);
}

.price-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 81, 171, 0.2);
}

.apply-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
}

/* Testimonials public states */
.testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skeleton-wrapper .skeleton {
    background: linear-gradient(90deg, var(--dark-600) 25%, var(--dark-700) 50%, var(--dark-600) 75%);
    background-size: 200% 100%;
    animation: testimonial-skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes testimonial-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.testimonial-skeleton-card {
    min-height: 280px;
}

.testimonials-carousel .slick-dots {
    bottom: -40px;
}

.testimonials-carousel .slick-dots li {
    margin: 0 4px;
}

.testimonials-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    background: rgba(16, 81, 171, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonials-carousel .slick-dots li button::before {
    display: none;
}

.testimonials-carousel .slick-dots li.slick-active button {
    background: var(--primary);
    transform: scale(1.2);
}

.testimonials-carousel .slick-slide {
    height: auto;
}

.testimonials-carousel .slick-slide > div {
    height: 100%;
}

.rs-back-to-top {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
}

body.mobile-sidebar-open .rs-back-to-top {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .testimonials-carousel {
        padding-bottom: 20px;
    }

    .testimonials-carousel .slick-dots {
        bottom: -30px;
    }

    .rs-back-to-top {
        width: 2.75rem;
        height: 2.75rem;
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: max(5rem, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-wrapper .skeleton {
        animation: none !important;
    }
}

/* Disable aspect-ratio on mobile */
@media (max-width: 768px) {
    .product-slider-container {
        aspect-ratio: auto;
        height: auto;
        max-height: none;
    }
}

/* Map embed 4:3 aspect ratio override on mobile */
@media (max-width: 640px) {
    .map-container {
        min-height: 18rem;
        aspect-ratio: 4 / 3;
    }
}

/* ========================================
   TRUSTINDEX WIDGET THEME OVERRIDES
   Requirements: 3.1, 3.5
   ======================================== */

/* Widget root and container — transparent background, inherit font */
.trustindex-widget,
.trustindex-widget .ti-widget-container {
    background-color: transparent !important;
    font-family: 'Inter', sans-serif !important; /* font-sans */
    max-width: 100% !important;
}

.trustindex-widget * {
    max-width: 100% !important;
}

/* Individual review cards — dark-700 background, dark-500 border */
.trustindex-widget .ti-review-item {
    background-color: #1a1a24 !important; /* bg-dark-700 */
    border: 1px solid #2d2d3d !important; /* border-dark-500 */
    border-radius: 1rem !important;
}

/* Review text and reviewer name — text-gray-300 */
.trustindex-widget .ti-review-content,
.trustindex-widget .ti-reviewer-name {
    color: #d1d5db !important; /* text-gray-300 */
}

/* ==========================================================================
   TASK-017: Light theme conversion layer
   ========================================================================== */

body.rs-light-theme {
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 127, 159, 0.09), transparent 26rem),
        linear-gradient(180deg, #f8fbfc 0%, #eef6f8 100%);
    color: var(--text-primary);
}

body.rs-light-theme .bg-dark-900,
body.rs-light-theme .bg-dark-800,
body.rs-light-theme .bg-dark-700,
body.rs-light-theme .bg-dark-600,
body.rs-light-theme .bg-dark-500 {
    background-color: var(--dark-800) !important;
}

body.rs-light-theme section.bg-dark-900,
body.rs-light-theme section.bg-dark-800,
body.rs-light-theme .gallery-section {
    background-color: transparent !important;
}

body.rs-light-theme .text-white {
    color: var(--text-primary) !important;
}

body.rs-light-theme .text-gray-300,
body.rs-light-theme .text-gray-400 {
    color: var(--gray-300) !important;
}

body.rs-light-theme .text-gray-500,
body.rs-light-theme .text-gray-600 {
    color: var(--gray-400) !important;
}

body.rs-light-theme .border-dark-600,
body.rs-light-theme .border-dark-500 {
    border-color: var(--dark-600) !important;
}

body.rs-light-theme .from-dark-900,
body.rs-light-theme .from-dark-800,
body.rs-light-theme .from-dark-700 {
    --tw-gradient-from: rgba(248, 251, 252, 0.98) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(248, 251, 252, 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

body.rs-light-theme .via-dark-900,
body.rs-light-theme .via-dark-800,
body.rs-light-theme .via-dark-700 {
    --tw-gradient-to: rgba(248, 251, 252, 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), rgba(248, 251, 252, 0.55) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

body.rs-light-theme .to-dark-900,
body.rs-light-theme .to-dark-800,
body.rs-light-theme .to-dark-700 {
    --tw-gradient-to: rgba(248, 251, 252, 0.98) var(--tw-gradient-to-position) !important;
}

body.rs-light-theme .home-hero {
    background:
        radial-gradient(circle at 25% 18%, rgba(0, 127, 159, 0.16), transparent 34%),
        linear-gradient(135deg, #eaf8fb 0%, #f8fbfc 56%, #dff5f8 100%);
}

body.rs-light-theme .home-hero__slide--fallback {
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 127, 159, 0.18), transparent 32%),
        radial-gradient(circle at 78% 70%, rgba(14, 165, 198, 0.14), transparent 36%),
        linear-gradient(135deg, #f8fbfc 0%, #eaf8fb 52%, #ffffff 100%);
}

body.rs-light-theme .home-hero .absolute.inset-0 {
    background: linear-gradient(180deg, rgb(248 251 252 / 51%), rgb(248 251 252 / 57%)) !important;
}

body.rs-light-theme .home-hero .bg-clip-text.text-transparent {
    background-image: linear-gradient(90deg, var(--primary), var(--primary-dark)) !important;
}

body.rs-light-theme .home-hero a.border-2 {
    background-color: rgba(255, 255, 255, 0.82) !important;
}

body.rs-light-theme .home-hero__dot {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 127, 159, 0.65);
}

body.rs-light-theme .glass-panel,
body.rs-light-theme #navbar .absolute.inset-0 {
    background: rgba(255, 255, 255, 0.86) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.rs-light-theme #mobile-sidebar {
    background: #ffffff !important;
    color: var(--text-primary);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
}

body.rs-light-theme .rs-mega-menu,
body.rs-light-theme .testimonial-card,
body.rs-light-theme .testimonial-skeleton-card,
body.rs-light-theme .category-card,
body.rs-light-theme .why-card,
body.rs-light-theme .product-carousel .group,
body.rs-light-theme .product-card,
body.rs-light-theme .gallery-item,
body.rs-light-theme .rs-cart-shell,
body.rs-light-theme .rs-checkout-shell,
body.rs-light-theme .rs-account-shell {
    background-color: #ffffff !important;
    border-color: var(--dark-600) !important;
    color: var(--text-primary);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.rs-light-theme .skeleton-wrapper .skeleton,
body.rs-light-theme .gallery-skeleton-item {
    background: linear-gradient(90deg, var(--dark-700) 25%, var(--dark-600) 50%, var(--dark-700) 75%);
}

body.rs-light-theme .product-carousel .slick-prev,
body.rs-light-theme .product-carousel .slick-next,
body.rs-light-theme .category-carousel .slick-prev,
body.rs-light-theme .category-carousel .slick-next,
body.rs-light-theme .gallery-carousel-mobile .slick-prev,
body.rs-light-theme .gallery-carousel-mobile .slick-next {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 127, 159, 0.32);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body.rs-light-theme .gallery-lightbox {
    background: rgba(15, 23, 42, 0.94);
}

body.rs-light-theme .gallery-lightbox-counter {
    color: #ffffff;
}

body.rs-light-theme .map-container,
body.rs-light-theme iframe {
    border-color: var(--dark-600);
}

body.rs-light-theme .trustindex-widget .ti-review-item {
    background-color: #ffffff !important;
    border-color: var(--dark-600) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.rs-light-theme .trustindex-widget .ti-review-content,
body.rs-light-theme .trustindex-widget .ti-reviewer-name {
    color: var(--gray-300) !important;
}

body.rs-light-theme footer {
    background: #ffffff !important;
    border-color: var(--dark-600) !important;
}

body.rs-light-theme footer img {
    filter: none;
}

body.rs-light-theme footer .bg-dark-700,
body.rs-light-theme .rs-back-to-top {
    background-color: #eef6f8 !important;
    border-color: rgba(0, 127, 159, 0.28) !important;
}

/* ==========================================================================
   TASK-017.A: Light theme stabilization tokens and public surfaces
   ========================================================================== */

body.rs-light-theme {
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 127, 159, 0.08), transparent 26rem),
        linear-gradient(180deg, var(--bg-page) 0%, var(--bg-section) 100%);
    color: var(--text-primary);
}

body.rs-light-theme h1,
body.rs-light-theme h2,
body.rs-light-theme h3,
body.rs-light-theme h4,
body.rs-light-theme .font-display,
body.rs-light-theme .section-title {
    color: var(--text-primary);
}

body.rs-light-theme p,
body.rs-light-theme li,
body.rs-light-theme label,
body.rs-light-theme address,
body.rs-light-theme figcaption,
body.rs-light-theme .text-gray-300,
body.rs-light-theme .text-gray-400,
body.rs-light-theme .text-gray-500,
body.rs-light-theme .text-gray-600,
body.rs-light-theme .section-description,
body.rs-light-theme .woocommerce-breadcrumb,
body.rs-light-theme .woocommerce-breadcrumb a,
body.rs-light-theme .posted-on,
body.rs-light-theme .byline,
body.rs-light-theme .entry-meta,
body.rs-light-theme .comment-metadata {
    color: var(--text-secondary) !important;
}

body.rs-light-theme .text-white,
body.rs-light-theme .prose h1,
body.rs-light-theme .prose h2,
body.rs-light-theme .prose h3 {
    color: var(--text-primary) !important;
}

body.rs-light-theme .bg-dark-900,
body.rs-light-theme .bg-dark-800,
body.rs-light-theme .bg-dark-700,
body.rs-light-theme .bg-dark-600,
body.rs-light-theme .bg-dark-500,
body.rs-light-theme .glass-panel,
body.rs-light-theme .rs-mega-menu,
body.rs-light-theme .testimonial-card,
body.rs-light-theme .testimonial-skeleton-card,
body.rs-light-theme .category-card,
body.rs-light-theme .why-card,
body.rs-light-theme .product-card,
body.rs-light-theme .product-carousel .group,
body.rs-light-theme .gallery-item,
body.rs-light-theme .rs-cart-shell,
body.rs-light-theme .rs-checkout-shell,
body.rs-light-theme .rs-account-shell {
    background-color: var(--surface) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

body.rs-light-theme section.bg-dark-900,
body.rs-light-theme section.bg-dark-800,
body.rs-light-theme .product-carousel-section,
body.rs-light-theme .gallery-section {
    background-color: transparent !important;
    box-shadow: none;
}

body.rs-light-theme .home-hero,
body.rs-light-theme .home-hero__slide--fallback {
    background:
        radial-gradient(circle at 25% 18%, rgba(0, 127, 159, 0.12), transparent 34%),
        linear-gradient(135deg, var(--surface-hover) 0%, var(--bg-page) 58%, var(--ocean) 100%);
}

body.rs-light-theme .home-hero .absolute.inset-0 {
    background: linear-gradient(180deg, rgba(248, 251, 252, 0.64), rgba(248, 251, 252, 0.72)) !important;
}

body.rs-light-theme .home-hero h1,
body.rs-light-theme .home-hero h2,
body.rs-light-theme .home-hero p,
body.rs-light-theme .home-hero .text-gray-300,
body.rs-light-theme .home-hero .text-gray-400 {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.rs-light-theme .home-hero p,
body.rs-light-theme .home-hero .text-gray-300,
body.rs-light-theme .home-hero .text-gray-400 {
    color: var(--text-secondary) !important;
}

body.rs-light-theme .home-hero__dot,
body.rs-light-theme .product-carousel .slick-prev,
body.rs-light-theme .product-carousel .slick-next,
body.rs-light-theme .category-carousel .slick-prev,
body.rs-light-theme .category-carousel .slick-next,
body.rs-light-theme .gallery-carousel-mobile .slick-prev,
body.rs-light-theme .gallery-carousel-mobile .slick-next {
    background: var(--surface-elevated) !important;
    border-color: rgba(0, 127, 159, 0.32) !important;
    box-shadow: var(--shadow-sm);
}

body.rs-light-theme .product-carousel .slick-prev:hover,
body.rs-light-theme .product-carousel .slick-next:hover,
body.rs-light-theme .category-carousel .slick-prev:hover,
body.rs-light-theme .category-carousel .slick-next:hover,
body.rs-light-theme .gallery-carousel-mobile .slick-prev:hover,
body.rs-light-theme .gallery-carousel-mobile .slick-next:hover {
    background: var(--surface-hover) !important;
    border-color: var(--accent) !important;
}

body.rs-light-theme .product-carousel .slick-prev::before,
body.rs-light-theme .product-carousel .slick-next::before,
body.rs-light-theme .category-carousel .slick-prev::before,
body.rs-light-theme .category-carousel .slick-next::before,
body.rs-light-theme .product-carousel .slick-dots li button::before,
body.rs-light-theme .category-carousel .slick-dots li button::before {
    color: var(--accent) !important;
}

body.rs-light-theme .product-carousel:not(.slick-initialized),
body.rs-light-theme .category-carousel:not(.slick-initialized) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

body.rs-light-theme .product-carousel.slick-initialized,
body.rs-light-theme .category-carousel.slick-initialized {
    display: block !important;
}

body.rs-light-theme .product-carousel .slick-list,
body.rs-light-theme .category-carousel .slick-list {
    min-height: 18rem;
}

body.rs-light-theme .product-carousel-empty {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

body.admin-bar #navbar {
    top: 32px;
}

body.admin-bar #mobile-sidebar {
    top: 32px;
    height: calc(100dvh - 32px);
}

body.rs-light-theme #mobile-sidebar {
    background: var(--surface) !important;
    color: var(--text-primary);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
}

body.rs-light-theme #mobile-sidebar-overlay {
    background: var(--overlay);
}

body.rs-light-theme footer,
body.rs-light-theme footer .bg-dark-700,
body.rs-light-theme .rs-back-to-top {
    background-color: var(--surface) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary);
}

body.rs-light-theme footer p,
body.rs-light-theme footer li,
body.rs-light-theme footer a,
body.rs-light-theme footer span {
    color: var(--text-secondary) !important;
}

body.rs-light-theme footer a:hover,
body.rs-light-theme .rs-back-to-top:hover {
    color: var(--accent) !important;
}

body.rs-light-theme .map-container,
body.rs-light-theme iframe {
    border-color: var(--border-subtle);
}

body.rs-light-theme .gallery-lightbox {
    background: var(--overlay-strong);
}

@media (max-width: 1024px) {
    body.rs-light-theme .product-carousel:not(.slick-initialized),
    body.rs-light-theme .category-carousel:not(.slick-initialized) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.admin-bar #navbar {
        top: 46px;
    }

    body.admin-bar #mobile-sidebar {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

@media (max-width: 640px) {
    body.rs-light-theme .product-carousel:not(.slick-initialized),
    body.rs-light-theme .category-carousel:not(.slick-initialized) {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TASK-018: Brand-blue light theme refinement
   ========================================================================== */

body.rs-light-theme {
    background:
        radial-gradient(circle at 18% 8%, rgba(16, 81, 171, 0.08), transparent 26rem),
        linear-gradient(180deg, var(--bg-page) 0%, var(--bg-section) 100%);
    color: var(--text-primary);
}

body.rs-light-theme a:not(.button):not(.checkout-button),
body.rs-light-theme .text-primary,
body.rs-light-theme .nav-link:hover,
body.rs-light-theme .rs-mega-menu a:hover,
body.rs-light-theme .woocommerce-breadcrumb a:hover {
    color: var(--accent) !important;
}

body.rs-light-theme p,
body.rs-light-theme li,
body.rs-light-theme label,
body.rs-light-theme address,
body.rs-light-theme figcaption,
body.rs-light-theme small,
body.rs-light-theme .text-gray-300,
body.rs-light-theme .text-gray-400,
body.rs-light-theme .text-gray-500,
body.rs-light-theme .text-gray-600,
body.rs-light-theme .section-description,
body.rs-light-theme .entry-meta,
body.rs-light-theme .posted-on,
body.rs-light-theme .byline,
body.rs-light-theme .comment-metadata {
    color: var(--text-secondary) !important;
}

body.rs-light-theme .border-dark-600,
body.rs-light-theme .border-dark-500,
body.rs-light-theme .border,
body.rs-light-theme .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--border-subtle) !important;
}

body.rs-light-theme .bg-primary,
body.rs-light-theme button.bg-primary,
body.rs-light-theme a.bg-primary,
body.rs-light-theme .button,
body.rs-light-theme .checkout-button,
body.rs-light-theme input[type="submit"],
body.rs-light-theme button[type="submit"] {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}

body.rs-light-theme .bg-primary:hover,
body.rs-light-theme button.bg-primary:hover,
body.rs-light-theme a.bg-primary:hover,
body.rs-light-theme .button:hover,
body.rs-light-theme .checkout-button:hover,
body.rs-light-theme input[type="submit"]:hover,
body.rs-light-theme button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--primary-dark) 100%) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
}

body.rs-light-theme input:focus,
body.rs-light-theme textarea:focus,
body.rs-light-theme select:focus,
body.rs-light-theme button:focus-visible,
body.rs-light-theme a:focus-visible {
    outline-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

body.rs-light-theme .home-hero,
body.rs-light-theme .home-hero__slide--fallback {
    background:
        radial-gradient(circle at 25% 18%, rgba(16, 81, 171, 0.12), transparent 34%),
        radial-gradient(circle at 78% 70%, rgba(0, 184, 212, 0.1), transparent 36%),
        linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-page) 58%, var(--aquatic-accent-soft) 100%);
}

body.rs-light-theme .home-hero .bg-clip-text.text-transparent {
    background-image: linear-gradient(90deg, var(--accent), var(--primary-glow)) !important;
}

body.rs-light-theme .home-hero__dot,
body.rs-light-theme .category-carousel .slick-dots li button::before,
body.rs-light-theme .product-carousel .slick-dots li button::before {
    color: var(--accent) !important;
    border-color: var(--accent-border) !important;
}

body.rs-light-theme .home-hero__dot.is-active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

body.rs-light-theme .category-card,
body.rs-light-theme .why-card,
body.rs-light-theme .product-card,
body.rs-light-theme .testimonial-card,
body.rs-light-theme .gallery-item,
body.rs-light-theme .rs-mega-menu,
body.rs-light-theme .rs-cart-shell,
body.rs-light-theme .rs-checkout-shell,
body.rs-light-theme .rs-account-shell,
body.rs-light-theme .trustindex-widget .ti-review-item {
    background-color: var(--surface) !important;
    border-color: var(--border-subtle) !important;
    box-shadow: var(--shadow-sm);
}

body.rs-light-theme .product-carousel .slick-prev,
body.rs-light-theme .product-carousel .slick-next,
body.rs-light-theme .category-carousel .slick-prev,
body.rs-light-theme .category-carousel .slick-next,
body.rs-light-theme .gallery-carousel-mobile .slick-prev,
body.rs-light-theme .gallery-carousel-mobile .slick-next {
    border-color: var(--accent-border) !important;
}

body.rs-light-theme .product-carousel .slick-prev::before,
body.rs-light-theme .product-carousel .slick-next::before,
body.rs-light-theme .category-carousel .slick-prev::before,
body.rs-light-theme .category-carousel .slick-next::before {
    color: var(--accent) !important;
}

body.rs-light-theme .badge,
body.rs-light-theme .tag,
body.rs-light-theme .sale-badge,
body.rs-light-theme .onsale {
    background: var(--aquatic-accent-soft) !important;
    border-color: rgba(0, 184, 212, 0.28) !important;
    color: var(--aquatic-accent-deep) !important;
}
