@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

.premium-cw-slider-container {
  /* Variables initialized by PHP in render() */
  --bg-color: var(--premium-cw-bg, #2D2D2D);
  --card-bg: var(--premium-cw-card-bg, #222222);
  --notch-bg: var(--premium-cw-notch-bg, #333333);
  --text-main: var(--premium-cw-text-main, #FFFFFF);
  --text-muted: var(--premium-cw-text-muted, #888888);
  --font-family: 'Outfit', sans-serif;
  --card-radius: var(--premium-cw-card-radius, 12px);
  --transition-speed: 0.3s;
  --notch-height: var(--premium-cw-notch-height, 26px);
  --notch-width: var(--premium-cw-notch-width, 70px);
  
  width: 100%;
  color: var(--text-main);
  font-family: var(--font-family);
  overflow: visible;
  padding: var(--premium-cw-container-padding, 40px 0);
  background-color: var(--bg-color);
}

/* Scroll lock when popup is active */
body.premium-cw-popup-active {
    overflow: hidden !important;
}

.premium-cw-slider-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 60px;
  text-transform: uppercase;
  text-align: center;
  color: var(--premium-cw-title-color, var(--text-main));
}

/* Swiper Override */
.premium-cw-slider-container .swiper {
  width: 100%;
  padding-bottom: 50px !important; /* Visual outside space */
}

.premium-cw-slider-container .swiper-wrapper {
  display: flex;
  align-items: stretch; /* Guarantee equal height */
}

.premium-cw-slider-container .swiper-slide {
  height: auto;
  opacity: 1;
  transition: opacity var(--transition-speed);
}

/* Card Styling */
.premium-cw-card-wrapper {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 100%; /* Stretches to container */
  display: flex;
  flex-direction: column;
  box-shadow: var(--premium-cw-card-shadow, 0 20px 40px rgba(0, 0, 0, 0.4));
  position: relative;
  border: var(--premium-cw-card-border, none);
}

.premium-cw-image-container {
  width: 100%;
  height: var(--premium-cw-image-height, 280px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.premium-cw-product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Precision Notch Layout */
.premium-cw-card-footer {
  display: flex;
  margin-top: auto;
  min-height: var(--notch-height);
}

.premium-cw-cart-notch {
  width: var(--notch-width);
  background-color: var(--notch-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-top-right-radius: var(--premium-cw-notch-radius, 12px);
  position: relative;
}

/* Inverted radius corner */
.premium-cw-cart-notch::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-left-radius: var(--premium-cw-notch-radius, 12px);
  box-shadow: 0 10px 0 0 var(--notch-bg);
}

.premium-cw-cart-icon {
  width: var(--premium-cw-icon-size, 20px);
  height: var(--premium-cw-icon-size, 20px);
  fill: var(--premium-cw-icon-color, #FFFFFF) !important;
}

.premium-cw-plus-sign {
  font-size: var(--premium-cw-plus-size, 16px);
  color: var(--premium-cw-icon-color, #FFFFFF);
  font-weight: 300;
  margin-top: -1px;
}

.premium-cw-card-info {
  flex: 1;
  padding: 5px 20px 5px 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premium-cw-product-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-transform: uppercase;
  color: var(--premium-cw-name-color, var(--text-main));
}

.premium-cw-product-desc {
  font-size: 0.85rem;
  color: var(--premium-cw-desc-color, var(--text-muted));
  line-height: 1.2;
  font-weight: 400;
}

/* Swiper Pagination */
.premium-cw-slider-container {
    position: relative;
    padding-bottom: 60px !important; /* General space for pagination */
}

.premium-cw-slider-container .swiper-pagination,
.premium-cw-history-slider-wrapper .swiper-pagination,
.premium-cw-info-cards-slider-wrapper .swiper-pagination {
    bottom: -10px !important;
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
}

.premium-cw-slider-container .swiper-pagination-bullet {
  background: var(--premium-cw-pagination-color, white) !important;
  width: 5.6px !important; /* 30% smaller than 8px */
  height: 5.6px !important;
  margin: 0 4px !important;
  opacity: 0.2 !important;
}

.premium-cw-slider-container .swiper-pagination-bullet-active {
  opacity: 1 !important;
}

/* Link Overlay */
.premium-cw-card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.premium-cw-card-wrapper:hover {
  transform: translateY(-5px);
  transition: transform var(--transition-speed);
}

.premium-cw-card-wrapper {
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);

}

.premium-cw-marquee-slider-container {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.premium-cw-marquee-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.premium-cw-marquee-slider .swiper-wrapper {
    transition-timing-function: linear !important;
}

.premium-cw-marquee-slider .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-cw-marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Default gap */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.premium-cw-marquee-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px; /* Margin between text and button */
}

.premium-cw-marquee-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3366cc;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.premium-cw-marquee-image {
    max-height: 100px;
    width: auto;
    display: block;
}

.premium-cw-marquee-text {
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

.premium-cw-marquee-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Popup Styles */
.premium-cw-marquee-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Default fallback */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.premium-cw-marquee-popup-container {
    background: #000;
    max-width: 600px;
    width: 100%;
    position: relative;
    border: 2px solid #3366cc;
    box-shadow: none !important;
    animation: premiumCWPopupFadeIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes premiumCWPopupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.premium-cw-marquee-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: #ffff00;
    border: none;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-cw-marquee-popup-close:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.premium-cw-marquee-popup-body {
    width: 100%;
    line-height: 0;
}

.premium-cw-popup-img {
    width: 100%;
    height: auto;
    display: block;
}

.premium-cw-marquee-popup-footer {
    padding: 25px 25px 25px 25px !important;
    background: transparent;
}

.premium-cw-popup-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
}

.premium-cw-popup-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #f0f0f0;
}

/* Responsive Popup */
@media (max-width: 768px) {
    .premium-cw-marquee-popup-container {
        max-width: 95%;
    }
    .premium-cw-marquee-popup-footer {
        padding: 15px 15px 15px 15px !important;
    }
}

.premium-cw-has-popup {
    cursor: pointer;
}

/* Info Cards Slider Styles */
.premium-cw-info-cards-slider-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 50px; /* Space for pagination */
}

.premium-cw-info-cards-container.swiper {
    width: 100%;
}

.premium-cw-info-cards-container.swiper .swiper-wrapper {
    display: flex;
    align-items: stretch; /* Crucial for equal height */
}

.premium-cw-info-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    /* Padding, Background, Border, Shadow are controlled by Elementor */
}

/* Hover Animations */
.premium-cw-hover-float .premium-cw-info-card:hover {
    transform: translateY(-10px);
}

.premium-cw-hover-lift .premium-cw-info-card:hover {
    transform: translateY(-5px);
}

.premium-cw-hover-scale .premium-cw-info-card:hover {
    transform: scale(1.03);
}

/* Ensure slide child stretches */
.premium-cw-info-cards-container .swiper-slide {
    display: flex;
    flex-direction: column;
}

/* Alignment Classes */
.premium-cw-image-align-left .premium-cw-info-card { 
    align-items: flex-start;
    text-align: left;
}
.premium-cw-image-align-center .premium-cw-info-card { 
    align-items: center;
    text-align: center;
}
.premium-cw-image-align-right .premium-cw-info-card { 
    align-items: flex-end;
    text-align: right;
}

.premium-cw-info-card-image {
    display: block;
    line-height: 0; /* Remove extra space below image */
    /* Width and Margin are controlled by Elementor */
}

.premium-cw-info-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease; /* For CSS Filters */
}

.premium-cw-info-card-icon {
    font-size: 32px;
    margin-bottom: 20px;
    color: #000;
}

.premium-cw-info-card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.premium-cw-info-card-title {
    word-break: break-word; /* Robustness for long titles */
    transition: color 0.3s ease;
    /* Margin, Color, Typography are controlled by Elementor */
}

.premium-cw-info-card-desc {
    word-break: break-word;
    transition: color 0.3s ease;
    /* Margin, Color, Typography are controlled by Elementor */
}

@media (max-width: 767px) {
    .premium-cw-info-card {
        padding: 20px;
    }
}

/* History Slider Styles */
.premium-cw-history-slider-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 50px;
}

.premium-cw-history-slider.swiper {
    width: 100%;
}

.premium-cw-history-slider .swiper-wrapper {
    display: flex;
    align-items: stretch; /* Crucial for equal height */
}

.premium-cw-history-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto;
}

.premium-cw-history-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100%; /* Stretch to swiper-slide */
    /* Padding, Background, Border, Shadow are controlled by Elementor */
}

/* Hover Animations */
.premium-cw-hover-float .premium-cw-history-card:hover {
    transform: translateY(-10px);
}

.premium-cw-hover-lift .premium-cw-history-card:hover {
    transform: translateY(-5px);
}

.premium-cw-hover-scale .premium-cw-history-card:hover {
    transform: scale(1.03);
}

.premium-cw-history-year {
    font-weight: 800;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    /* Margin, Color, Typography are controlled by Elementor */
}

.premium-cw-history-year:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    /* Width, Height, Color are controlled by Elementor */
}

.premium-cw-history-title {
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
    /* Margin, Color, Typography are controlled by Elementor */
}

.premium-cw-history-desc {
    line-height: 1.5;
    flex-grow: 1;
    transition: color 0.3s ease;
    /* Margin, Color, Typography are controlled by Elementor */
}

.premium-cw-history-image {
    line-height: 0;
    overflow: hidden;
    margin-top: auto;
    /* Width, Margin, Border Radius are controlled by Elementor */
}

.premium-cw-history-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease; /* For Filters */
}

/* Bullet styles remain specific if needed, or use history-slider-wrapper .swiper-pagination-bullet */

.premium-cw-history-slider-wrapper .swiper-pagination-bullet {
    width: 8.4px; /* 30% smaller than 12px */
    height: 8.4px;
    background: #ccc;
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.premium-cw-history-slider .swiper-pagination-bullet-active {
    background: #0056b3;
    width: 21px; /* 30% smaller than 30px */
    border-radius: 6px;
}

/* =====================================================
   IMAGE HOVER CARD WIDGET
   ===================================================== */

.premium-cw-ihc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.premium-cw-ihc-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    cursor: pointer;
}

/* Dark overlay */
.premium-cw-ihc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    transition: background 0.4s ease;
    z-index: 1;
}

.premium-cw-ihc-card:hover .premium-cw-ihc-overlay {
    background: rgba(0, 0, 0, 0.50);
}

/* Content area (title + button) */
.premium-cw-ihc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Title */
.premium-cw-ihc-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    /* Normal state: title sits at the bottom */
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card with button: on hover push title up to make room */
.premium-cw-ihc-has-btn:hover .premium-cw-ihc-title {
    transform: translateY(-8px);
}

/* Button wrapper */
.premium-cw-ihc-btn-wrap {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.premium-cw-ihc-card:hover .premium-cw-ihc-btn-wrap {
    opacity: 1;
    transform: translateY(0);
}

/* Button */
.premium-cw-ihc-btn {
    display: inline-block;
    background-color: #1a56a7;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 140px;
    text-align: center;
}

.premium-cw-ihc-btn:hover {
    background-color: #0d3d7a;
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 767px) {
    .premium-cw-ihc-grid {
        grid-template-columns: 1fr;
    }

    .premium-cw-ihc-card {
        height: 240px;
    }

    .premium-cw-ihc-title {
        font-size: 1.3rem;
    }
}

