/* =========================================================
GLOBAL RESET
========================================================= */
.rb-lighting-showcase,
.rb-lighting-showcase * {
box-sizing: border-box;
}
.rb-lighting-showcase {
width: 100vw !important;
max-width: 100vw !important;
margin-left: calc(50% - 50vw) !important;
margin-right: calc(50% - 50vw) !important;
padding: 68px 0 72px;
background: #64A5C9;
font-family: 'Poppins', sans-serif;
overflow: hidden !important;
}
/* =========================================================
MAIN INNER
========================================================= */
.rb-lighting-inner {
width: 100%;
max-width: 1440px;
margin: 0 auto;
padding-left: 55px;
padding-right: 55px;
}
/* =========================================================
HEADING
========================================================= */
.rb-lighting-header {
width: 100%;
text-align: center;
margin: 0 0 28px;
}
.rb-lighting-heading {
margin: 0 0 8px;
color: #FFFFFF;
font-family: 'Poppins', sans-serif;
font-size: 32px;
line-height: 1.25;
font-weight: 600;
letter-spacing: -0.2px;
}
.rb-lighting-subheading {
margin: 0 auto;
max-width: 900px;
color: rgba(255,255,255,0.94);
font-family: 'Poppins', sans-serif;
font-size: 14px;
line-height: 1.65;
font-weight: 400;
}
/* =========================================================
BRAND TABS
========================================================= */
.rb-lighting-tabs {
width: 100%;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 6px;
margin: 0 auto 34px;
padding: 5px;
background: rgba(255,255,255,0.13);
border: 1px solid rgba(255,255,255,0.25);
border-radius: 999px;
}
/* =========================================================
TAB BUTTON
========================================================= */
.rb-lighting-tab {
appearance: none;
-webkit-appearance: none;
border: 0;
outline: none;
background: transparent;
color: #FFFFFF;
min-height: 40px;
padding: 9px 25px;
border-radius: 999px;
font-family: 'Poppins', sans-serif;
font-size: 13px;
line-height: 1.2;
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition:
background 0.25s ease,
color 0.25s ease,
box-shadow 0.25s ease,
transform 0.25s ease;
}
/* =========================================================
TAB HOVER
========================================================= */
.rb-lighting-tab:hover {
background: rgba(255,255,255,0.22);
color: #FFFFFF;
}
/* =========================================================
ACTIVE TAB
========================================================= */
.rb-lighting-tab.active {
background: #FFFFFF;
color: #3E5369;
box-shadow:
0 5px 18px rgba(0,0,0,0.12);
}
/* =========================================================
BRAND CONTENT
========================================================= */
.rb-lighting-brand-content {
display: none;
width: 100%;
}
.rb-lighting-brand-content.active {
display: block;
}
/* =========================================================
SLIDER WRAPPER
========================================================= */
.rb-lighting-slider-wrap {
position: relative;
width: 100%;
padding: 0;
}
/* =========================================================
SWIPER
========================================================= */
.rb-lighting-swiper {
width: 100% !important;
overflow: hidden !important;
padding:
8px 5px 38px !important;
}
.rb-lighting-swiper .swiper-wrapper {
align-items: stretch;
}
.rb-lighting-swiper .swiper-slide {
height: auto !important;
display: flex;
align-items: stretch;
box-sizing: border-box;
}
/* =========================================================
PRODUCT CARD
========================================================= */
.rb-lighting-card {
width: 100%;
height: 100%;
min-width: 0;
display: flex;
flex-direction: column;
overflow: hidden;
text-decoration: none !important;
background: #FFFFFF;
border-radius: 15px;
box-shadow:
0 8px 26px rgba(30,65,90,0.14);
transition:
transform 0.35s ease,
box-shadow 0.35s ease;
}
/* =========================================================
CARD HOVER
========================================================= */
.rb-lighting-card:hover {
transform: translateY(-5px);
box-shadow:
0 16px 34px rgba(30,65,90,0.20);
}
/* =========================================================
IMAGE AREA
========================================================= */
.rb-lighting-card-image {
width: 100%;
height: 255px;
padding: 18px;
display: flex;
align-items: center;
justify-content: center;
background: #FFFFFF;
overflow: hidden;
flex-shrink: 0;
}
.rb-lighting-card-image img {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
object-position: center;
transition:
transform 0.4s ease;
}
.rb-lighting-card:hover
.rb-lighting-card-image img {
transform: scale(1.04);
}
/* =========================================================
PRODUCT INFORMATION
========================================================= */
.rb-lighting-card-info {
min-height: 88px;
flex: 1;
padding: 15px 20px;
display: flex;
flex-direction: column;
justify-content: center;
background: #F6F6F6;
}
/* =========================================================
BRAND NAME
========================================================= */
.rb-lighting-card-brand {
margin: 0 0 5px;
color: #64A5C9;
font-family: 'Poppins', sans-serif;
font-size: 11px;
line-height: 1.3;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* =========================================================
PRODUCT NAME
========================================================= */
.rb-lighting-card-title {
margin: 0;
color: #3E5369;
font-family: 'Poppins', sans-serif;
font-size: 15px;
line-height: 1.4;
font-weight: 600;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
/* =========================================================
NAVIGATION ARROWS
========================================================= */
.rb-lighting-prev,
.rb-lighting-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
padding: 0;
margin: 0;
border: 0;
outline: none;
border-radius: 50%;
background: #FFFFFF;
color: #3E5369;
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
cursor: pointer;
box-shadow:
0 7px 22px rgba(25,55,80,0.16);
transition:
background 0.25s ease,
color 0.25s ease,
transform 0.25s ease,
box-shadow 0.25s ease;
}
/* =========================================================
LEFT ARROW
========================================================= */
.rb-lighting-prev {
left: -18px;
}
/* =========================================================
RIGHT ARROW
========================================================= */
.rb-lighting-next {
right: -18px;
}
/* =========================================================
ARROW ICON
========================================================= */
.rb-lighting-prev span,
.rb-lighting-next span {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: inherit;
font-family: Arial, sans-serif;
font-size: 23px;
font-weight: 400;
line-height: 1;
pointer-events: none;
}
/* =========================================================
ARROW HOVER
========================================================= */
.rb-lighting-prev:hover,
.rb-lighting-next:hover {
background: #64A5C9;
color: #FFFFFF;
transform:
translateY(-50%)
scale(1.06);
box-shadow:
0 10px 25px rgba(30,70,95,0.22);
}
/* =========================================================
ARROW FOCUS
========================================================= */
.rb-lighting-prev:focus,
.rb-lighting-next:focus {
outline: none;
color: #3E5369;
background: #FFFFFF;
}
.rb-lighting-prev:focus:hover,
.rb-lighting-next:focus:hover {
color: #FFFFFF;
background: #64A5C9;
}
/* =========================================================
PAGINATION
========================================================= */
.rb-lighting-swiper
.swiper-pagination {
bottom: 3px !important;
display: flex;
align-items: center;
justify-content: center;
}
.rb-lighting-swiper
.swiper-pagination-bullet {
width: 8px;
height: 8px;
margin:
0 4px !important;
border-radius: 50%;
background: #FFFFFF;
opacity: 0.40;
transition:
width 0.3s ease,
opacity 0.3s ease;
}
.rb-lighting-swiper
.swiper-pagination-bullet-active {
width: 24px;
border-radius: 10px;
opacity: 1;
}
/* =========================================================
TABLET
========================================================= */
@media (max-width: 1199px) {
.rb-lighting-inner {
padding-left: 42px;
padding-right: 42px;
}
.rb-lighting-card-image {
height: 230px;
}
.rb-lighting-prev {
left: -12px;
}
.rb-lighting-next {
right: -12px;
}
}
/* =========================================================
TABLET 1024
========================================================= */
@media (max-width: 1024px) {
.rb-lighting-showcase {
padding:
58px 0 65px;
}
.rb-lighting-inner {
padding-left: 28px;
padding-right: 28px;
}
/* Heading */
.rb-lighting-heading {
font-size: 28px;
}
.rb-lighting-subheading {
font-size: 13px;
}
/* Tabs */
.rb-lighting-tabs {
width: 100%;
border-radius: 14px;
gap: 5px;
margin-bottom: 30px;
}
.rb-lighting-tab {
padding:
9px 20px;
font-size: 12px;
}
/* Cards */
.rb-lighting-card-image {
height: 220px;
padding: 16px;
}
.rb-lighting-card-info {
min-height: 84px;
padding:
14px 17px;
}
.rb-lighting-card-title {
font-size: 14px;
}
/* Arrows */
.rb-lighting-prev,
.rb-lighting-next {
width: 40px;
height: 40px;
}
.rb-lighting-prev {
left: -10px;
}
.rb-lighting-next {
right: -10px;
}
}
/* =========================================================
TABLET / SMALL TABLET
========================================================= */
@media (max-width: 767px) {
.rb-lighting-showcase {
padding:
48px 0 55px;
}
.rb-lighting-inner {
padding-left: 18px;
padding-right: 18px;
}
/* =====================================================
HEADING
===================================================== */
.rb-lighting-header {
margin-bottom: 23px;
}
.rb-lighting-heading {
font-size: 24px;
line-height: 1.3;
margin-bottom: 7px;
}
.rb-lighting-subheading {
font-size: 12px;
line-height: 1.6;
max-width: 600px;
}
/* =====================================================
TABS
===================================================== */
.rb-lighting-tabs {
width: 100%;
margin-bottom: 27px;
padding: 5px;
gap: 5px;
border-radius: 14px;
justify-content: center;
}
.rb-lighting-tab {
flex: 0 0 auto;
min-height: 38px;
padding:
9px 16px;
font-size: 12px;
border-radius: 9px;
}
/* =====================================================
SLIDER
===================================================== */
.rb-lighting-swiper {
padding:
5px 4px 35px !important;
}
/* =====================================================
MOBILE CARD
===================================================== */
.rb-lighting-card-image {
height: 235px;
padding: 16px;
}
.rb-lighting-card-info {
min-height: 82px;
padding:
14px 17px;
}
.rb-lighting-card-brand {
font-size: 10px;
}
.rb-lighting-card-title {
font-size: 14px;
}
/* =====================================================
MOBILE ARROWS
===================================================== */
.rb-lighting-prev,
.rb-lighting-next {
width: 36px;
height: 36px;
}
.rb-lighting-prev {
left: -3px;
}
.rb-lighting-next {
right: -3px;
}
.rb-lighting-prev span,
.rb-lighting-next span {
font-size: 19px;
}
}
/* =========================================================
MOBILE
========================================================= */
@media (max-width: 575px) {
.rb-lighting-showcase {
padding:
43px 0 50px;
}
.rb-lighting-inner {
padding-left: 13px;
padding-right: 13px;
}
/* =====================================================
HEADING
===================================================== */
.rb-lighting-heading {
font-size: 23px;
}
.rb-lighting-subheading {
font-size: 12px;
}
/* =====================================================
BRAND TABS
===================================================== */
.rb-lighting-tabs {
width: 100%;
padding: 5px;
gap: 5px;
border-radius: 13px;
}
.rb-lighting-tab {
flex: 1 1 calc(33.333% - 5px);
min-width: 0;
min-height: 38px;
padding:
9px 7px;
font-size: 11px;
text-align: center;
}
/* =====================================================
CARD
===================================================== */
.rb-lighting-card-image {
height: 225px;
padding: 15px;
}
.rb-lighting-card-info {
min-height: 78px;
padding:
13px 15px;
}
/* =====================================================
ARROWS
===================================================== */
.rb-lighting-prev {
left: -1px;
}
.rb-lighting-next {
right: -1px;
}
}
/* =========================================================
SMALL MOBILE
========================================================= */
@media (max-width: 400px) {
.rb-lighting-heading {
font-size: 22px;
}
.rb-lighting-tabs {
gap: 4px;
}
.rb-lighting-tab {
min-height: 36px;
padding:
8px 5px;
font-size: 10.5px;
}
.rb-lighting-card-image {
height: 210px;
}
.rb-lighting-prev,
.rb-lighting-next {
width: 34px;
height: 34px;
}
}
/* =========================================================
VERY SMALL MOBILE
========================================================= */
@media (max-width: 340px) {
.rb-lighting-inner {
padding-left: 10px;
padding-right: 10px;
}
.rb-lighting-tab {
font-size: 10px;
padding-left: 4px;
padding-right: 4px;
}
.rb-lighting-card-image {
height: 195px;
}
}
All
Havells
Panasonic
Surya
HPL
(function () {
'use strict';
/* =========================================================
CREATE SLIDER
========================================================= */
function createLightingSwiper(
swiperId,
nextId,
prevId
) {
var element =
document.getElementById(swiperId);
if (!element) {
return null;
}
return new Swiper(
'#' + swiperId,
{
/* ---------------------------------------------
DEFAULT DESKTOP
--------------------------------------------- */
slidesPerView: 4,
slidesPerGroup: 1,
spaceBetween: 24,
/* ---------------------------------------------
LOOP
--------------------------------------------- */
loop: true,
loopAdditionalSlides: 3,
/* ---------------------------------------------
ANIMATION
--------------------------------------------- */
speed: 700,
/* ---------------------------------------------
TOUCH
--------------------------------------------- */
grabCursor: true,
watchOverflow: true,
/* ---------------------------------------------
AUTOPLAY
--------------------------------------------- */
autoplay: {
delay: 2700,
disableOnInteraction: false,
pauseOnMouseEnter: true
},
/* ---------------------------------------------
NAVIGATION
--------------------------------------------- */
navigation: {
nextEl:
'#' + nextId,
prevEl:
'#' + prevId
},
/* ---------------------------------------------
PAGINATION
--------------------------------------------- */
pagination: {
el:
'#' +
swiperId +
' .swiper-pagination',
clickable: true
},
/* ---------------------------------------------
RESPONSIVE
--------------------------------------------- */
breakpoints: {
/* MOBILE */
0: {
slidesPerView: 1,
slidesPerGroup: 1,
spaceBetween: 15
},
/* TABLET */
768: {
slidesPerView: 2,
slidesPerGroup: 1,
spaceBetween: 20
},
/* LARGE TABLET */
1024: {
slidesPerView: 3,
slidesPerGroup: 1,
spaceBetween: 22
},
/* DESKTOP */
1200: {
slidesPerView: 4,
slidesPerGroup: 1,
spaceBetween: 24
}
}
}
);
}
/* =========================================================
ALL SLIDERS
========================================================= */
var sliders = {};
sliders.all =
createLightingSwiper(
'rbLightingSwiperAll',
'rbLightingNextAll',
'rbLightingPrevAll'
);
sliders.Havells =
createLightingSwiper(
'rbLightingSwiperHavells',
'rbLightingNextHavells',
'rbLightingPrevHavells'
);
sliders.Panasonic =
createLightingSwiper(
'rbLightingSwiperPanasonic',
'rbLightingNextPanasonic',
'rbLightingPrevPanasonic'
);
sliders.Surya =
createLightingSwiper(
'rbLightingSwiperSurya',
'rbLightingNextSurya',
'rbLightingPrevSurya'
);
sliders.HPL =
createLightingSwiper(
'rbLightingSwiperHPL',
'rbLightingNextHPL',
'rbLightingPrevHPL'
);
/* =========================================================
TABS
========================================================= */
var tabs =
document.querySelectorAll(
'#rbLightingTabs .rb-lighting-tab'
);
var contents =
document.querySelectorAll(
'.rb-lighting-brand-content'
);
/* =========================================================
SWITCH BRAND
========================================================= */
function switchBrand(brand) {
/* ---------------------------------------------
ACTIVE TAB
--------------------------------------------- */
tabs.forEach(function (tab) {
var tabBrand =
tab.getAttribute(
'data-brand'
);
tab.classList.toggle(
'active',
tabBrand === brand
);
});
/* ---------------------------------------------
SHOW CONTENT
--------------------------------------------- */
contents.forEach(function (content) {
var contentBrand =
content.getAttribute(
'data-brand-content'
);
content.classList.toggle(
'active',
contentBrand === brand
);
});
/* ---------------------------------------------
UPDATE SELECTED SLIDER
--------------------------------------------- */
setTimeout(function () {
if (
sliders[brand] &&
typeof sliders[brand].update === 'function'
) {
sliders[brand].update();
sliders[brand].autoplay.start();
}
}, 100);
}
/* =========================================================
TAB CLICK
========================================================= */
tabs.forEach(function (tab) {
tab.addEventListener(
'click',
function () {
switchBrand(
this.getAttribute(
'data-brand'
)
);
}
);
});
})();