/**
 * Al Ahsan Elementor Widgets Styles
 * Version: 1.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --alahsan-primary: #C41E3A;
    --alahsan-primary-dark: #8B0000;
    --alahsan-secondary: #FF8C00;
    --alahsan-secondary-dark: #CC7000;
    --alahsan-text-dark: #1a1a2e;
    --alahsan-text-light: #6c757d;
    --alahsan-bg-light: #f8f9fa;
    --alahsan-white: #ffffff;
}

/* ==========================================================================
   Widget Wrapper - Elementor Container Compatible
   ========================================================================== */
.alahsan-widget-wrapper {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.alahsan-widget-wrapper > *:not(.alahsan-bg-video):not(.alahsan-bg-pattern):not(.alahsan-bg-overlay):not(.alahsan-hero-overlay) {
    position: relative;
    z-index: 1;
}

/* Inherit Container Width */
.elementor-widget-alahsan_product_hero,
.elementor-widget-alahsan_stats_bar,
.elementor-widget-alahsan_variety_card,
.elementor-widget-alahsan_feature_card,
.elementor-widget-alahsan_cta_section,
.elementor-widget-alahsan_product_description,
.elementor-widget-alahsan_gallery_grid,
.elementor-widget-alahsan_harvest_calendar {
    width: 100%;
}

/* ==========================================================================
   Background Type: None - Inherit from Container
   ========================================================================== */
.alahsan-bg-none .alahsan-widget-wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure child elements don't interfere with container background */
.alahsan-bg-none .alahsan-widget-wrapper > * {
    background: inherit;
}

/* Responsive Visibility using CSS Variables */
@media (min-width: 1025px) {
    [style*="--alahsan-hide-desktop: 1"] {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    [style*="--alahsan-hide-tablet: 1"] {
        display: none !important;
    }
}

@media (max-width: 767px) {
    [style*="--alahsan-hide-mobile: 1"] {
        display: none !important;
    }
}

/* Mobile Layout Classes (Applied via prefix_class) */
@media (max-width: 767px) {
    .alahsan-mobile-stack .alahsan-varieties-grid,
    .alahsan-mobile-stack .alahsan-features-grid,
    .alahsan-mobile-stack .alahsan-gallery-grid {
        display: flex !important;
        flex-direction: column;
    }
    
    .alahsan-mobile-grid-2 .alahsan-varieties-grid,
    .alahsan-mobile-grid-2 .alahsan-features-grid,
    .alahsan-mobile-grid-2 .alahsan-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .alahsan-mobile-carousel .alahsan-varieties-grid,
    .alahsan-mobile-carousel .alahsan-features-grid,
    .alahsan-mobile-carousel .alahsan-gallery-grid,
    .alahsan-mobile-scroll .alahsan-varieties-grid,
    .alahsan-mobile-scroll .alahsan-features-grid,
    .alahsan-mobile-scroll .alahsan-gallery-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .alahsan-mobile-carousel .alahsan-varieties-grid::-webkit-scrollbar,
    .alahsan-mobile-carousel .alahsan-features-grid::-webkit-scrollbar,
    .alahsan-mobile-carousel .alahsan-gallery-grid::-webkit-scrollbar,
    .alahsan-mobile-scroll .alahsan-varieties-grid::-webkit-scrollbar,
    .alahsan-mobile-scroll .alahsan-features-grid::-webkit-scrollbar,
    .alahsan-mobile-scroll .alahsan-gallery-grid::-webkit-scrollbar {
        display: none;
    }
    
    .alahsan-mobile-carousel .alahsan-variety-card,
    .alahsan-mobile-carousel .alahsan-feature-card,
    .alahsan-mobile-carousel .alahsan-gallery-item,
    .alahsan-mobile-scroll .alahsan-variety-card,
    .alahsan-mobile-scroll .alahsan-feature-card,
    .alahsan-mobile-scroll .alahsan-gallery-item {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
    }
    
    /* Hide elements on mobile */
    .alahsan-mobile-hide-img-yes .alahsan-variety-image,
    .alahsan-mobile-hide-img-yes .alahsan-desc-image-col,
    .alahsan-mobile-hide-img-yes .alahsan-hero-visual {
        display: none !important;
    }
    
    .alahsan-mobile-hide-desc-yes .variety-desc,
    .alahsan-mobile-hide-desc-yes .feature-desc,
    .alahsan-mobile-hide-desc-yes .alahsan-desc-text,
    .alahsan-mobile-hide-desc-yes .alahsan-hero-desc {
        display: none !important;
    }
    
    .alahsan-mobile-hide-btn-yes .variety-btn,
    .alahsan-mobile-hide-btn-yes .alahsan-hero-buttons,
    .alahsan-mobile-hide-btn-yes .alahsan-cta-buttons,
    .alahsan-mobile-hide-btn-yes .alahsan-desc-button {
        display: none !important;
    }
}

/* ==========================================================================
   Common Styles
   ========================================================================== */
.alahsan-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.alahsan-section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(255, 140, 0, 0.1));
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #C41E3A);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.alahsan-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--alahsan-text-dark);
    margin: 0 0 20px;
    line-height: 1.2;
}

.alahsan-section-desc {
    color: var(--alahsan-text-light);
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   Hero Widget - Professional Edition
   ========================================================================== */
.alahsan-hero-widget {
    background: linear-gradient(135deg, var(--primary-color, #C41E3A) 0%, var(--secondary-color, #FF8C00) 100%);
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

/* Background Types */
.alahsan-hero-widget.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.alahsan-hero-widget.bg-video .alahsan-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay */
.alahsan-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color, #C41E3A), var(--secondary-color, #FF8C00));
    z-index: 1;
    pointer-events: none;
}

/* Pattern Backgrounds */
.alahsan-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.alahsan-hero-pattern.pattern-dots {
    background-image: radial-gradient(circle, #fff 2px, transparent 2px);
    background-size: 30px 30px;
}

.alahsan-hero-pattern.pattern-lines {
    background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 1px, transparent 20px);
}

.alahsan-hero-pattern.pattern-waves {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10' stroke='%23fff' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 100px 20px;
}

.alahsan-hero-pattern.pattern-geometric {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Layout Styles */
.alahsan-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.alahsan-hero-widget.layout-centered .alahsan-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
}

.alahsan-hero-widget.layout-centered .alahsan-hero-visual {
    order: -1;
    margin-bottom: 30px;
}

.alahsan-hero-widget.layout-centered .alahsan-hero-buttons {
    justify-content: center;
}

.alahsan-hero-widget.layout-left-aligned .alahsan-hero-container {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 700px;
    margin-left: 60px;
}

.alahsan-hero-widget.layout-right-aligned .alahsan-hero-container {
    grid-template-columns: 1fr;
    text-align: right;
    max-width: 700px;
    margin-left: auto;
    margin-right: 60px;
}

.alahsan-hero-widget.layout-right-aligned .alahsan-hero-buttons {
    justify-content: flex-end;
}

.alahsan-hero-widget.layout-fullscreen {
    min-height: 100vh;
}

@media (max-width: 968px) {
    .alahsan-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .alahsan-hero-widget.layout-left-aligned .alahsan-hero-container,
    .alahsan-hero-widget.layout-right-aligned .alahsan-hero-container {
        margin: 0 auto;
        text-align: center;
    }
    
    .alahsan-hero-widget.layout-right-aligned .alahsan-hero-buttons {
        justify-content: center;
    }
}

/* Badge */
.alahsan-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--text-color, #fff);
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.alahsan-hero-badge i,
.alahsan-hero-badge svg {
    font-size: 1rem;
}

/* Title */
.alahsan-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-color, #fff);
    margin: 0 0 25px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.alahsan-hero-title .highlight {
    color: var(--highlight-color, #FFD700);
    position: relative;
}

.alahsan-hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--highlight-color, #FFD700);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

@media (max-width: 768px) {
    .alahsan-hero-title {
        font-size: 36px;
    }
}

/* Description */
.alahsan-hero-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 0 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Features List */
.alahsan-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.alahsan-hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color, #fff);
    font-weight: 500;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.alahsan-hero-features .feature-item i,
.alahsan-hero-features .feature-item svg {
    color: var(--highlight-color, #FFD700);
}

@media (max-width: 968px) {
    .alahsan-hero-features {
        justify-content: center;
    }
}

/* Buttons */
.alahsan-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@media (max-width: 968px) {
    .alahsan-hero-buttons {
        justify-content: center;
    }
}

.alahsan-btn-primary,
.alahsan-btn-secondary,
.alahsan-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alahsan-btn-primary {
    background: #fff;
    color: var(--primary-color, #C41E3A);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.alahsan-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-color, #C41E3A);
}

.alahsan-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.alahsan-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.alahsan-btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.alahsan-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    background: #22c55e;
    color: #fff;
}

/* Hero Visual */
.alahsan-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: fadeIn 1s ease 0.3s both;
}

/* Product Circle */
.alahsan-product-circle {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--secondary-color, #FF8C00) 0%, rgba(255, 140, 0, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.alahsan-product-circle.has-glow {
    box-shadow: 0 30px 80px rgba(255, 140, 0, 0.4), 0 0 60px rgba(255, 140, 0, 0.3);
}

/* Product Circle Sizes */
.alahsan-product-circle.size-small {
    width: 120px;
    height: 120px;
}

.alahsan-product-circle.size-medium {
    width: 180px;
    height: 180px;
}

.alahsan-product-circle.size-large {
    width: 230px;
    height: 230px;
}

.alahsan-product-circle.size-xl {
    width: 280px;
    height: 280px;
}

.alahsan-product-circle.size-xxl {
    width: 350px;
    height: 350px;
}

/* Decorative Rings */
.alahsan-product-circle .decorative-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.alahsan-product-circle .decorative-ring.ring-1 {
    inset: -20px;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    animation: rotate 20s linear infinite;
}

.alahsan-product-circle .decorative-ring.ring-2 {
    inset: -40px;
    border: 2px dotted rgba(255, 255, 255, 0.2);
    animation: rotate 30s linear infinite reverse;
}

.alahsan-product-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

.alahsan-product-emoji {
    font-size: 8rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Emoji sizes based on circle size */
.alahsan-product-circle.size-small .alahsan-product-emoji {
    font-size: 3rem;
}

.alahsan-product-circle.size-medium .alahsan-product-emoji {
    font-size: 5rem;
}

.alahsan-product-circle.size-large .alahsan-product-emoji {
    font-size: 6rem;
}

.alahsan-product-circle.size-xl .alahsan-product-emoji {
    font-size: 8rem;
}

.alahsan-product-circle.size-xxl .alahsan-product-emoji {
    font-size: 10rem;
}

@media (max-width: 768px) {
    .alahsan-product-circle {
        width: 200px !important;
        height: 200px !important;
    }
    .alahsan-product-emoji {
        font-size: 5rem !important;
    }
}

/* Product Circle Animations */
.alahsan-product-circle.alahsan-anim-float {
    animation: heroFloat 4s ease-in-out infinite;
}

.alahsan-product-circle.alahsan-anim-pulse {
    animation: heroPulse 2s ease-in-out infinite;
}

.alahsan-product-circle.alahsan-anim-rotate {
    animation: heroRotate 20s linear infinite;
}

.alahsan-product-circle.alahsan-anim-bounce {
    animation: heroBounce 2s ease infinite;
}

.alahsan-product-circle.alahsan-anim-swing {
    animation: heroSwing 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 30px 80px rgba(255, 140, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 40px 100px rgba(255, 140, 0, 0.6); }
}

@keyframes heroRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes heroSwing {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
}

/* Floating Elements */
.alahsan-floating-element {
    position: absolute;
    background: #fff;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 14px;
    color: var(--alahsan-text-dark);
    animation: floatElement 3s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
}

.alahsan-floating-element i,
.alahsan-floating-element svg {
    color: var(--primary-color, #C41E3A);
    font-size: 1.2rem;
}

.alahsan-float-top-left {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.alahsan-float-top-right {
    top: 10%;
    right: 0;
    animation-delay: 0.5s;
}

.alahsan-float-bottom-left {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

.alahsan-float-bottom-right {
    bottom: 10%;
    right: 5%;
    animation-delay: 1.5s;
}

@media (max-width: 768px) {
    .alahsan-floating-element {
        display: none;
    }
}

/* Scroll Indicator */
.alahsan-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: fadeInUp 1s ease 1s both;
}

.alahsan-scroll-indicator .scroll-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.alahsan-scroll-indicator .scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.alahsan-scroll-indicator .scroll-arrow i {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* Particles */
.alahsan-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.alahsan-hero-particles .particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle-1 { left: 5%; animation-delay: 0s; animation-duration: 12s; }
.particle-2 { left: 15%; animation-delay: 1s; animation-duration: 14s; }
.particle-3 { left: 25%; animation-delay: 2s; animation-duration: 16s; }
.particle-4 { left: 35%; animation-delay: 3s; animation-duration: 13s; }
.particle-5 { left: 45%; animation-delay: 4s; animation-duration: 15s; }
.particle-6 { left: 55%; animation-delay: 5s; animation-duration: 11s; }
.particle-7 { left: 65%; animation-delay: 6s; animation-duration: 17s; }
.particle-8 { left: 75%; animation-delay: 7s; animation-duration: 14s; }
.particle-9 { left: 85%; animation-delay: 8s; animation-duration: 12s; }
.particle-10 { left: 95%; animation-delay: 9s; animation-duration: 16s; }
.particle-11 { left: 10%; animation-delay: 10s; animation-duration: 13s; width: 6px; height: 6px; }
.particle-12 { left: 30%; animation-delay: 11s; animation-duration: 15s; width: 8px; height: 8px; }
.particle-13 { left: 50%; animation-delay: 12s; animation-duration: 14s; width: 5px; height: 5px; }
.particle-14 { left: 70%; animation-delay: 13s; animation-duration: 16s; width: 7px; height: 7px; }
.particle-15 { left: 90%; animation-delay: 14s; animation-duration: 12s; width: 9px; height: 9px; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Wave Bottom */
.alahsan-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    line-height: 0;
}

.alahsan-wave-bottom svg {
    width: 100%;
    height: auto;
}

/* Fade In Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Stats Bar Widget
   ========================================================================== */
.alahsan-stats-bar {
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    margin: -50px auto 0;
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.alahsan-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.alahsan-stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.alahsan-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.alahsan-stat-content {
    display: flex;
    flex-direction: column;
}

.alahsan-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.alahsan-stat-label {
    font-size: 14px;
    margin-top: 5px;
}

.alahsan-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #e9ecef, transparent);
}

@media (max-width: 768px) {
    .alahsan-stat-divider {
        display: none;
    }
    .alahsan-stats-container {
        flex-direction: column;
    }
}

/* ==========================================================================
   Description Widget
   ========================================================================== */
.alahsan-description-widget {
    padding: 100px 30px;
}

.alahsan-desc-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.alahsan-desc-reversed .alahsan-desc-container {
    direction: rtl;
}

.alahsan-desc-reversed .alahsan-desc-container > * {
    direction: ltr;
}

@media (max-width: 968px) {
    .alahsan-desc-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.alahsan-desc-image-wrapper {
    position: relative;
}

.alahsan-desc-image,
.alahsan-desc-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    object-fit: cover;
}

.alahsan-desc-placeholder {
    background: linear-gradient(135deg, #FFF9F0, #FFE8CC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.alahsan-desc-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color, #C41E3A) 0%, var(--alahsan-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.alahsan-desc-badge .badge-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.alahsan-desc-badge .badge-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.alahsan-desc-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(255, 140, 0, 0.1));
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #C41E3A);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.alahsan-desc-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--alahsan-text-dark);
    margin: 0 0 25px;
    line-height: 1.2;
}

.alahsan-desc-text {
    color: var(--alahsan-text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.alahsan-desc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 640px) {
    .alahsan-desc-features {
        grid-template-columns: 1fr;
    }
}

.alahsan-desc-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--alahsan-bg-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.alahsan-desc-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.alahsan-desc-feature .feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color, #C41E3A), var(--secondary-color, #FF8C00));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.alahsan-desc-feature .feature-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alahsan-desc-feature .feature-content strong {
    color: var(--alahsan-text-dark);
    font-size: 15px;
}

.alahsan-desc-feature .feature-content span {
    color: var(--alahsan-text-light);
    font-size: 13px;
}

.alahsan-desc-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color, #C41E3A), var(--secondary-color, #FF8C00));
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.alahsan-desc-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.4);
    color: #fff;
}

/* ==========================================================================
   Variety Card Widget
   ========================================================================== */
.alahsan-variety-widget {
    padding: 100px 30px;
    background: var(--alahsan-bg-light);
}

.alahsan-varieties-grid {
    display: grid;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.alahsan-varieties-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.alahsan-varieties-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.alahsan-varieties-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .alahsan-varieties-grid.columns-tablet-1 {
        grid-template-columns: 1fr;
    }
    .alahsan-varieties-grid.columns-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .alahsan-varieties-grid.columns-tablet-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .alahsan-varieties-grid.columns-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    .alahsan-varieties-grid.columns-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.alahsan-variety-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.alahsan-variety-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #C41E3A), var(--secondary-color, #FF8C00));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.alahsan-variety-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.alahsan-variety-card:hover::before {
    transform: scaleX(1);
}

.alahsan-variety-image {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FFF9F0, #FFE8CC);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.alahsan-variety-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alahsan-variety-image .variety-emoji {
    font-size: 5rem;
}

.alahsan-variety-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--badge-color, #2E7D32);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alahsan-variety-content {
    padding: 24px;
}

.alahsan-variety-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--alahsan-text-dark);
    margin: 0 0 12px;
}

.alahsan-variety-desc {
    color: var(--alahsan-text-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.alahsan-variety-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.alahsan-variety-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    background: var(--alahsan-bg-light);
    padding: 8px 12px;
    border-radius: 50px;
}

.alahsan-variety-specs .spec-item i {
    color: var(--primary-color, #C41E3A);
}

.alahsan-variety-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.alahsan-variety-footer .variety-moq {
    font-size: 14px;
    color: #adb5bd;
}

.alahsan-variety-footer .variety-link {
    color: var(--primary-color, #C41E3A);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.alahsan-variety-footer .variety-link:hover {
    color: var(--secondary-color, #FF8C00);
    gap: 12px;
}

/* ==========================================================================
   Harvest Calendar Widget - Elementor Container Compatible
   ========================================================================== */
.alahsan-calendar-widget {
    /* Inherit container styles */
    width: 100%;
    box-sizing: border-box;
}

/* When inside Elementor Container */
.e-con .alahsan-calendar-widget,
.elementor-widget-alahsan-harvest-calendar {
    width: 100%;
}

/* Remove default padding when inheriting from container */
.alahsan-calendar-widget.inherit-container-padding {
    padding: 0;
}

/* Full width table inside container */
.e-con .alahsan-calendar-widget .alahsan-widget-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Inherit background from container */
.alahsan-calendar-widget.bg-inherit,
.alahsan-bg-none .alahsan-calendar-widget {
    background: transparent !important;
}

/* Spacing options that work with container */
.alahsan-calendar-widget.spacing-none {
    padding: 0;
    margin: 0;
}

.alahsan-calendar-widget.spacing-small {
    padding: 15px;
}

.alahsan-calendar-widget.spacing-medium {
    padding: 30px;
}

.alahsan-calendar-widget.spacing-large {
    padding: 60px;
}

/* Table Width Options */
.table-width-full .alahsan-calendar-table-wrap {
    width: 100%;
}

.table-width-auto .alahsan-calendar-table-wrap {
    width: auto;
    display: inline-block;
}

.table-width-auto .alahsan-calendar-table {
    min-width: auto;
}

/* Table Overflow Options */
.table-overflow-scroll .alahsan-calendar-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-overflow-hidden .alahsan-calendar-table-wrap {
    overflow: hidden;
}

.table-overflow-responsive .alahsan-calendar-table {
    min-width: 100%;
}

/* Responsive Stack Mode */
@media (max-width: 768px) {
    .table-overflow-responsive .alahsan-calendar-table,
    .table-overflow-responsive .alahsan-calendar-table thead,
    .table-overflow-responsive .alahsan-calendar-table tbody,
    .table-overflow-responsive .alahsan-calendar-table tr,
    .table-overflow-responsive .alahsan-calendar-table th,
    .table-overflow-responsive .alahsan-calendar-table td {
        display: block;
        width: 100%;
    }

    .table-overflow-responsive .alahsan-calendar-table thead {
        display: none;
    }

    .table-overflow-responsive .alahsan-calendar-table tr {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .table-overflow-responsive .alahsan-calendar-table td {
        text-align: left;
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table-overflow-responsive .alahsan-calendar-table td:first-child {
        background: linear-gradient(135deg, var(--table-header-bg, #C41E3A) 0%, var(--primary-color, #8B0000) 100%);
        color: #fff;
        font-weight: 600;
        padding: 15px;
    }

    .table-overflow-responsive .alahsan-calendar-table td::before {
        content: attr(data-month);
        font-weight: 500;
        color: #666;
    }

    .table-overflow-responsive .alahsan-calendar-table td:first-child::before {
        display: none;
    }
}

/* Inherit spacing from container */
.spacing-inherit .alahsan-calendar-widget {
    padding: inherit;
}

/* Elementor Container RTL Support */
[dir="rtl"] .alahsan-calendar-table th:first-child,
[dir="rtl"] .alahsan-calendar-table td:first-child {
    text-align: right;
    padding-right: 25px;
    padding-left: 12px;
}

[dir="rtl"] .alahsan-calendar-table th:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 12px;
}

[dir="rtl"] .alahsan-calendar-table th:last-child {
    border-top-right-radius: 0;
    border-top-left-radius: 12px;
}

[dir="rtl"] .alahsan-calendar-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 12px;
}

[dir="rtl"] .alahsan-calendar-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 12px;
}

.alahsan-calendar-wrapper {
    background: #fff;
    border-radius: var(--border-radius, 24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 768px) {
    .alahsan-calendar-wrapper {
        padding: 20px;
    }
}

.alahsan-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 25px;
}

.alahsan-calendar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--alahsan-text-dark);
    margin: 0;
}

.alahsan-calendar-header-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.alahsan-calendar-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: #f1f3f5;
}

.cal-switch-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cal-switch-btn.is-active {
    background: var(--primary-color, #C41E3A);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.cal-switch-btn:hover {
    background: rgba(0,0,0,0.04);
}

.cal-switch-btn.is-active:hover {
    background: var(--primary-color, #C41E3A);
}

@media (max-width: 768px) {
    .alahsan-calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .alahsan-calendar-switcher {
        align-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.alahsan-calendar-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.alahsan-calendar-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    background: var(--alahsan-bg-light);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: help;
}

.alahsan-calendar-legend .legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alahsan-calendar-legend .legend-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.alahsan-calendar-legend .legend-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alahsan-calendar-legend .legend-label {
    font-weight: 600;
    color: var(--alahsan-text-dark);
    font-size: 13px;
}

.alahsan-calendar-legend .legend-desc {
    font-size: 11px;
    color: var(--alahsan-text-light);
    font-weight: 400;
}

/* Detailed Legend Style */
.alahsan-calendar-legend.legend-detailed {
    flex-direction: column;
    gap: 12px;
    background: var(--alahsan-bg-light);
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
}

.alahsan-calendar-legend.legend-detailed .legend-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    width: auto;
}

@media (min-width: 768px) {
    .alahsan-calendar-legend.legend-detailed {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .alahsan-calendar-legend.legend-detailed .legend-item {
        flex: 1;
        min-width: 180px;
    }
}

/* Table View */
.alahsan-calendar-table-wrap {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.alahsan-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.alahsan-calendar-table th {
    background: linear-gradient(135deg, var(--table-header-bg, #C41E3A) 0%, var(--primary-color, #8B0000) 100%);
    color: #fff;
    padding: 16px 12px;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.alahsan-calendar-table th:first-child {
    border-top-left-radius: 12px;
    text-align: left;
    padding-left: 25px;
}

.alahsan-calendar-table th:last-child {
    border-top-right-radius: 12px;
}

.alahsan-calendar-table th.current-month {
    background: linear-gradient(135deg, var(--harvest-color, #FF8C00) 0%, #FFA500 100%);
}

.alahsan-calendar-table th .current-indicator {
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin: 6px auto 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.alahsan-calendar-table td {
    padding: 20px 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    background: #fff;
    transition: all 0.3s ease;
}

.alahsan-calendar-table td:first-child {
    text-align: left;
    padding-left: 25px;
    font-weight: 600;
    background: var(--alahsan-bg-light);
    min-width: 200px;
}

.alahsan-calendar-table td.current-month-cell {
    background: rgba(255, 140, 0, 0.08);
}

.alahsan-calendar-table tbody tr:hover td {
    background: var(--table-hover-bg, #FFF9F0);
}

.alahsan-calendar-table tbody tr:hover td:first-child {
    background: #FFE8CC;
}

.alahsan-calendar-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.alahsan-calendar-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.alahsan-calendar-table .variety-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alahsan-calendar-table .variety-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.alahsan-calendar-table .variety-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alahsan-calendar-table .variety-name {
    font-weight: 600;
    color: var(--alahsan-text-dark);
}

.alahsan-calendar-table .variety-desc {
    font-size: 12px;
    color: var(--alahsan-text-light);
    font-weight: 400;
}

/* ==========================================================================
   Calendar Icons - Clean Simple Design
   ========================================================================== */
.alahsan-calendar-table .cal-icon {
    width: var(--icon-size, 42px);
    height: var(--icon-size, 42px);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

/* Hover Effects */
.alahsan-calendar-table .cal-icon:hover {
    transform: scale(1.15);
}

/* ==========================================================================
   Harvest Icon 🍂 - Warm Orange
   ========================================================================== */
.alahsan-calendar-table .cal-icon.harvest {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4);
}

.alahsan-calendar-table .cal-icon.harvest:hover {
    box-shadow: 0 5px 18px rgba(255, 152, 0, 0.5);
}

/* ==========================================================================
   Planting Icon 🌱 - Fresh Green
   ========================================================================== */
.alahsan-calendar-table .cal-icon.planting {
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.alahsan-calendar-table .cal-icon.planting:hover {
    box-shadow: 0 5px 18px rgba(76, 175, 80, 0.5);
}

/* ==========================================================================
   Peak Icon ⭐ - Golden
   ========================================================================== */
.alahsan-calendar-table .cal-icon.peak {
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}

.alahsan-calendar-table .cal-icon.peak:hover {
    box-shadow: 0 5px 18px rgba(255, 193, 7, 0.5);
}

/* ==========================================================================
   Flowering Icon 🌸 - Pink
   ========================================================================== */
.alahsan-calendar-table .cal-icon.flowering {
    background: linear-gradient(135deg, #F06292 0%, #E91E63 100%);
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.4);
}

.alahsan-calendar-table .cal-icon.flowering:hover {
    box-shadow: 0 5px 18px rgba(233, 30, 99, 0.5);
}

/* ==========================================================================
   Limited Icon ⏳ - Purple
   ========================================================================== */
.alahsan-calendar-table .cal-icon.limited {
    background: linear-gradient(135deg, #AB47BC 0%, #9C27B0 100%);
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.4);
}

.alahsan-calendar-table .cal-icon.limited:hover {
    box-shadow: 0 5px 18px rgba(156, 39, 176, 0.5);
}

/* ==========================================================================
   Mixed Icon 🍃 - Half Green & Half Orange
   ========================================================================== */
.alahsan-calendar-table .cal-icon.mixed {
    background: linear-gradient(
        -45deg,
        #4CAF50 0%,
        #4CAF50 48%,
        #fff 48%,
        #fff 52%,
        #FF9800 52%,
        #FF9800 100%
    );
    box-shadow: 0 3px 10px rgba(100, 150, 80, 0.4);
}

.alahsan-calendar-table .cal-icon.mixed:hover {
    box-shadow: 0 5px 18px rgba(100, 150, 80, 0.5);
}

/* ==========================================================================
   None/Empty State
   ========================================================================== */
.alahsan-calendar-table .cal-icon.none {
    background: #f0f0f0;
    color: #bbb;
    font-size: 14px;
}

.alahsan-calendar-table .cal-icon.none:hover {
    background: #e8e8e8;
}

/* ==========================================================================
   Icon Shape Variations (Optional Classes)
   ========================================================================== */
/* Circle Icons */
.alahsan-calendar-widget.icon-shape-circle .cal-icon,
.alahsan-calendar-widget.icon-shape-circle .month-icon,
.alahsan-calendar-widget.icon-shape-circle .cell-icon {
    border-radius: 50%;
}

/* Rounded Square */
.alahsan-calendar-widget.icon-shape-rounded .cal-icon,
.alahsan-calendar-widget.icon-shape-rounded .month-icon,
.alahsan-calendar-widget.icon-shape-rounded .cell-icon {
    border-radius: 10px;
}

/* Diamond/Rotated Square */
.alahsan-calendar-widget.icon-shape-diamond .cal-icon,
.alahsan-calendar-widget.icon-shape-diamond .month-icon,
.alahsan-calendar-widget.icon-shape-diamond .cell-icon {
    border-radius: 8px;
    transform: rotate(45deg);
}

.alahsan-calendar-widget.icon-shape-diamond .cal-icon span,
.alahsan-calendar-widget.icon-shape-diamond .cal-icon::after {
    transform: rotate(-45deg);
}

/* Hexagon (using clip-path) */
.alahsan-calendar-widget.icon-shape-hexagon .cal-icon,
.alahsan-calendar-widget.icon-shape-hexagon .month-icon,
.alahsan-calendar-widget.icon-shape-hexagon .cell-icon {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.alahsan-calendar-widget.icon-shape-hexagon .cal-icon::before {
    display: none;
}

/* Square Shape */
.alahsan-calendar-widget.icon-shape-square .cal-icon,
.alahsan-calendar-widget.icon-shape-square .month-icon,
.alahsan-calendar-widget.icon-shape-square .cell-icon {
    border-radius: 4px;
}

/* ==========================================================================
   Icon Hover Effects
   ========================================================================== */
/* Scale & Rotate (Default) */
.alahsan-calendar-widget.icon-hover-scale-rotate .cal-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Scale Only */
.alahsan-calendar-widget.icon-hover-scale .cal-icon:hover {
    transform: scale(1.25);
}

/* Bounce */
.alahsan-calendar-widget.icon-hover-bounce .cal-icon:hover {
    animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-6px); }
}

/* Glow */
.alahsan-calendar-widget.icon-hover-glow .cal-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

/* None */
.alahsan-calendar-widget.icon-hover-none .cal-icon:hover {
    transform: none;
}

/* ==========================================================================
   Icon Animations Toggle
   ========================================================================== */
/* Static - No animations */
.alahsan-calendar-widget.icons-static .cal-icon {
    animation: none !important;
}

.alahsan-calendar-widget.icons-static .cal-icon.peak,
.alahsan-calendar-widget.icons-static .cal-icon.limited {
    animation: none !important;
}

/* ==========================================================================
   Enhanced Legend Icons
   ========================================================================== */
.alahsan-calendar-legend .legend-dot {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Glossy effect for legend */
.alahsan-calendar-legend .legend-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    border-radius: 10px 10px 0 0;
}

.alahsan-calendar-legend .legend-item:hover .legend-dot {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Legend Dots - Matching Icon Styles */
.alahsan-calendar-legend .legend-dot.harvest {
    background: linear-gradient(
        145deg,
        #FFD700 0%,
        #FF8C00 40%,
        #FF6B00 70%,
        #E65100 100%
    );
    box-shadow: 
        0 3px 12px rgba(255, 140, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.alahsan-calendar-legend .legend-dot.planting {
    background: linear-gradient(
        145deg,
        #81C784 0%,
        #4CAF50 35%,
        #388E3C 65%,
        #2E7D32 100%
    );
    box-shadow: 
        0 3px 12px rgba(76, 175, 80, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(129, 199, 132, 0.4);
}

.alahsan-calendar-legend .legend-dot.peak {
    background: linear-gradient(
        145deg,
        #FFF59D 0%,
        #FFEB3B 25%,
        #FFD700 50%,
        #FFC107 75%,
        #FFB300 100%
    );
    box-shadow: 
        0 3px 15px rgba(255, 215, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 245, 157, 0.5);
}

.alahsan-calendar-legend .legend-dot.flowering {
    background: linear-gradient(
        145deg,
        #F8BBD9 0%,
        #F06292 30%,
        #E91E63 55%,
        #C2185B 80%,
        #AD1457 100%
    );
    box-shadow: 
        0 3px 12px rgba(233, 30, 99, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(248, 187, 217, 0.4);
}

.alahsan-calendar-legend .legend-dot.limited {
    background: linear-gradient(
        145deg,
        #CE93D8 0%,
        #AB47BC 25%,
        #9C27B0 50%,
        #7B1FA2 75%,
        #6A1B9A 100%
    );
    box-shadow: 
        0 3px 12px rgba(156, 39, 176, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(206, 147, 216, 0.4);
    position: relative;
}

/* Limited urgency indicator on legend */
.alahsan-calendar-legend .legend-dot.limited::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF5252, #D32F2F);
    border: 1.5px solid white;
    box-shadow: 0 1px 4px rgba(211, 47, 47, 0.4);
}

/* Apply shape to legend too */
.alahsan-calendar-widget.icon-shape-circle .legend-dot {
    border-radius: 50%;
}

.alahsan-calendar-widget.icon-shape-circle .legend-dot::before {
    border-radius: 50% 50% 0 0;
}

.alahsan-calendar-widget.icon-shape-hexagon .legend-dot {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.alahsan-calendar-widget.icon-shape-hexagon .legend-dot::before {
    display: none;
}

/* Mixed legend dot - Leaf icon style with split colors */
.alahsan-calendar-legend .legend-dot.mixed {
    background: linear-gradient(
        -45deg,
        var(--planting-color, #4CAF50) 0%,
        var(--planting-color, #4CAF50) 48%,
        #fff 48%,
        #fff 52%,
        var(--harvest-color, #FF8C00) 52%,
        var(--harvest-color, #FF8C00) 100%
    );
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 2px 6px rgba(76, 175, 80, 0.3),
        0 2px 6px rgba(255, 140, 0, 0.3);
}

.alahsan-calendar-legend .legend-dot.mixed::after {
    content: '🍃';
    font-size: 10px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Card View */
.alahsan-calendar-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .alahsan-calendar-cards {
        grid-template-columns: 1fr;
    }
}

.calendar-card {
    background: var(--alahsan-bg-light);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #C41E3A);
}

.calendar-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.calendar-card .card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFF9F0, #FFE8CC);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.calendar-card .card-title-wrap {
    flex: 1;
}

.calendar-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--alahsan-text-dark);
    margin: 0 0 4px;
}

.calendar-card .card-desc {
    font-size: 13px;
    color: var(--alahsan-text-light);
}

.calendar-card .card-months {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .calendar-card .card-months {
        grid-template-columns: repeat(4, 1fr);
    }
}

.calendar-card .month-item {
    text-align: center;
    padding: 12px 8px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-card .month-item.current {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 2px solid var(--harvest-color, #FF8C00);
}

.calendar-card .month-item.active {
    transform: scale(1.05);
}

.calendar-card .month-item .month-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--alahsan-text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.calendar-card .month-item .month-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glossy effect for card icons */
.calendar-card .month-item .month-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    border-radius: 8px 8px 0 0;
}

.calendar-card .month-item .month-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Status-specific glows for card view */
.calendar-card .month-item .month-icon.harvest {
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.4);
}

.calendar-card .month-item .month-icon.planting {
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.4);
}

.calendar-card .month-item .month-icon.peak {
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5);
}

.calendar-card .month-item .month-icon.flowering {
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.4);
}

.calendar-card .month-item .month-icon.limited {
    box-shadow: 0 3px 12px rgba(156, 39, 176, 0.4);
}

/* Mixed Status in Card View */
.calendar-card .month-item .month-icon.mixed {
    background: linear-gradient(
        135deg,
        var(--harvest-color, #FF8C00) 0%,
        var(--harvest-color, #FF8C00) 50%,
        var(--planting-color, #4CAF50) 50%,
        var(--planting-color, #4CAF50) 100%
    ) !important;
    box-shadow: 0 3px 12px rgba(150, 150, 80, 0.4);
}

/* Timeline View */
.alahsan-calendar-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-header {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    margin-left: 180px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .timeline-header {
        display: none;
    }
}

.timeline-header .timeline-month {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--alahsan-text-light);
    text-transform: uppercase;
    padding: 8px 4px;
}

.timeline-header .timeline-month.current {
    color: var(--harvest-color, #FF8C00);
    background: rgba(255, 140, 0, 0.1);
    border-radius: 8px;
}

.timeline-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--alahsan-bg-light);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-row:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.timeline-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .timeline-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline-label {
        min-width: auto;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
}

.timeline-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFF9F0, #FFE8CC);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-name {
    font-weight: 600;
    color: var(--alahsan-text-dark);
    font-size: 14px;
}

.timeline-desc {
    font-size: 11px;
    color: var(--alahsan-text-light);
}

.timeline-bar {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    flex: 1;
}

.timeline-cell {
    height: 36px;
    border-radius: 6px;
    background: #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-cell:hover {
    transform: scaleY(1.2);
}

.timeline-cell .cell-icon {
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.timeline-cell:hover .cell-icon {
    opacity: 1;
    transform: scale(1.2);
}

.timeline-cell.harvest,
.timeline-cell.planting,
.timeline-cell.peak,
.timeline-cell.flowering,
.timeline-cell.limited,
.timeline-cell.mixed {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Glossy effect for timeline cells */
.timeline-cell.harvest::before,
.timeline-cell.planting::before,
.timeline-cell.peak::before,
.timeline-cell.flowering::before,
.timeline-cell.limited::before,
.timeline-cell.mixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Status-specific glows */
.timeline-cell.harvest {
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.35);
}

.timeline-cell.planting {
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.35);
}

.timeline-cell.peak {
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
}

.timeline-cell.flowering {
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.35);
}

.timeline-cell.limited {
    box-shadow: 0 3px 12px rgba(156, 39, 176, 0.35);
}

/* Mixed status for timeline */
.timeline-cell.mixed {
    background: linear-gradient(
        135deg,
        var(--harvest-color, #FF8C00) 0%,
        var(--harvest-color, #FF8C00) 50%,
        var(--planting-color, #4CAF50) 50%,
        var(--planting-color, #4CAF50) 100%
    ) !important;
    box-shadow: 0 3px 12px rgba(150, 150, 80, 0.35);
}

/* Calendar Note */
.alahsan-calendar-note {
    margin-top: 30px;
    padding: 22px 25px;
    background: linear-gradient(135deg, #FFF9F0, #FFE8CC);
    border-radius: 12px;
    border-left: 4px solid var(--harvest-color, #FF8C00);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alahsan-calendar-note .note-icon {
    width: 40px;
    height: 40px;
    background: var(--harvest-color, #FF8C00);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alahsan-calendar-note p {
    margin: 0;
    color: #495057;
    line-height: 1.7;
}

.alahsan-calendar-note strong {
    color: var(--primary-color, #C41E3A);
}

/* ==========================================================================
   Harvest Calendar - Desktop / Mobile Visibility
   ========================================================================== */
.hc-desktop-only { display: block; }
.hc-mobile-only  { display: none;  }

.timeline-bar-mobile { display: none; }

@media (max-width: 768px) {
    .hc-desktop-only { display: none !important; }
    .hc-mobile-only  { display: block !important; }
    .timeline-bar        { display: none !important; }
    .timeline-header     { display: none !important; }
    .timeline-bar-mobile { display: grid !important; }
}

/* ==========================================================================
   Harvest Calendar - Mobile Cards  (.hc-mcard)
   ========================================================================== */
.hc-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px;
    width: 100%;
    box-sizing: border-box;
}

.hc-mcard {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border: 1px solid #f0f0f0;
    transition: box-shadow .25s ease, transform .25s ease;
}
.hc-mcard:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* --- Card Head --- */
.hc-mcard-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.hc-mcard-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(255,140,0,.15);
}
.hc-mcard-info {
    flex: 1;
    min-width: 0;
}
.hc-mcard-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-mcard-desc {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.hc-mcard-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color, #C41E3A);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* --- Mini Timeline Bar --- */
.hc-mcard-timeline {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    margin-bottom: 12px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #f0f0f0;
}
.hc-mcard-bar-seg {
    border-radius: 3px;
    background: #eee;
    transition: background .2s ease;
}
.hc-mcard-bar-seg.hc-bar-active {
    box-shadow: 0 0 4px rgba(0,0,0,.1);
}

/* --- 6×2 Month Grid --- */
.hc-mcard-months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.hc-mcard-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 8px;
    background: #fafafa;
    transition: background .2s ease;
}
.hc-mcard-month.hc-mcard-active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hc-mcard-month.hc-mcard-current {
    outline: 2px solid var(--primary-color, #C41E3A);
    outline-offset: -1px;
}
.hc-mcard-mlabel {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.hc-mcard-month.hc-mcard-active .hc-mcard-mlabel {
    color: #555;
}
.hc-mcard-mdot {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
    transition: transform .2s ease;
}
.hc-mcard-mdot.hc-mcard-mempty {
    background: #eee;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.hc-mcard-month:hover .hc-mcard-mdot:not(.hc-mcard-mempty) {
    transform: scale(1.15);
}

/* ==========================================================================
   Harvest Calendar - Mobile Timeline Bar (.timeline-bar-mobile)
   ========================================================================== */
.timeline-bar-mobile {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 8px 0;
}
.tl-mob-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
    border-radius: 8px;
    transition: background .2s ease;
}
.tl-mob-cell.tl-mob-current {
    outline: 2px solid var(--primary-color, #C41E3A);
    outline-offset: -1px;
    border-radius: 8px;
}
.tl-mob-label {
    font-size: 9px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
}
.tl-mob-cell.tl-mob-active .tl-mob-label {
    color: #555;
}
.tl-mob-dot {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
    transition: transform .2s ease;
}
.tl-mob-dot.tl-mob-empty {
    background: #eee;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.tl-mob-cell:hover .tl-mob-dot:not(.tl-mob-empty) {
    transform: scale(1.15);
}

/* ==========================================================================
   Feature Grid Widget
   ========================================================================== */
.alahsan-features-widget {
    padding: 100px 30px;
    background: var(--alahsan-bg-light);
}

.alahsan-features-grid {
    display: grid;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.alahsan-features-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.alahsan-features-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.alahsan-features-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .alahsan-features-grid.columns-3,
    .alahsan-features-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .alahsan-features-grid {
        grid-template-columns: 1fr !important;
    }
}

.alahsan-feature-card {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alahsan-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #C41E3A), var(--secondary-color, #FF8C00));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.alahsan-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.alahsan-feature-card:hover::before {
    transform: scaleX(1);
}

.alahsan-feature-card .feature-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--alahsan-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #adb5bd;
}

.alahsan-feature-card .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.alahsan-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.alahsan-feature-card .feature-icon.primary {
    background: linear-gradient(135deg, var(--primary-color, #C41E3A), var(--alahsan-primary-dark));
}

.alahsan-feature-card .feature-icon.secondary {
    background: linear-gradient(135deg, var(--secondary-color, #FF8C00), var(--alahsan-secondary-dark));
}

.alahsan-feature-card .feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--alahsan-text-dark);
    margin: 0 0 12px;
}

.alahsan-feature-card .feature-desc {
    color: var(--alahsan-text-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Gallery Grid Widget
   ========================================================================== */
.alahsan-gallery-widget {
    padding: 100px 30px;
}

.alahsan-gallery-grid {
    display: grid;
    gap: var(--gap, 16px);
    max-width: 1400px;
    margin: 0 auto;
}

.alahsan-gallery-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.alahsan-gallery-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.alahsan-gallery-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .alahsan-gallery-grid.columns-tablet-1 {
        grid-template-columns: 1fr;
    }
    .alahsan-gallery-grid.columns-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .alahsan-gallery-grid.columns-tablet-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .alahsan-gallery-grid.columns-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    .alahsan-gallery-grid.columns-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .alahsan-gallery-grid.columns-mobile-1 {
        grid-template-columns: 1fr !important;
    }
}

.alahsan-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius, 20px);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.alahsan-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.alahsan-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

@media (max-width: 480px) {
    .alahsan-gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.alahsan-gallery-item .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.alahsan-gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.alahsan-gallery-item .gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF9F0, #FFE8CC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.5s ease;
}

.alahsan-gallery-item.large .gallery-placeholder {
    font-size: 8rem;
}

.alahsan-gallery-item:hover .gallery-placeholder {
    transform: scale(1.1);
}

.alahsan-gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.alahsan-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.alahsan-gallery-item .gallery-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #C41E3A);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.alahsan-gallery-item:hover .gallery-zoom {
    transform: scale(1);
}

.alahsan-gallery-item .gallery-caption {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.alahsan-gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.alahsan-gallery-item .gallery-subcaption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 4px 0 0;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.alahsan-gallery-item:hover .gallery-subcaption {
    transform: translateY(0);
}

/* ==========================================================================
   CTA Section Widget
   ========================================================================== */
.alahsan-cta-widget {
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
}

.alahsan-cta-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.alahsan-cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.alahsan-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 30px;
}

.alahsan-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 25px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .alahsan-cta-title {
        font-size: 32px;
    }
}

.alahsan-cta-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 0 40px;
}

.alahsan-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.alahsan-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.alahsan-cta-btn.primary {
    background: #fff;
    color: var(--primary-color, #C41E3A);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.alahsan-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.alahsan-cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.alahsan-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.alahsan-cta-contact {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .alahsan-cta-contact {
        flex-direction: column;
        align-items: center;
    }
}

.alahsan-cta-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.alahsan-cta-contact .contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.alahsan-cta-contact .contact-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    color: var(--primary-color, #C41E3A);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.alahsan-cta-contact .contact-text {
    text-align: left;
}

.alahsan-cta-contact .contact-label {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

.alahsan-cta-contact .contact-value {
    display: block;
    font-weight: 600;
    font-size: 17px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(196, 30, 58, 0.5);
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */
[dir="rtl"] .alahsan-hero-buttons,
[dir="rtl"] .alahsan-cta-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .alahsan-variety-footer .variety-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .alahsan-calendar-table th:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 12px;
}

[dir="rtl"] .alahsan-calendar-table th:last-child {
    border-top-right-radius: 0;
    border-top-left-radius: 12px;
}

/* ==========================================================================
   Icon Animations
   ========================================================================== */
.alahsan-icon-float {
    animation: icon-float-animation 4s ease-in-out infinite;
}

.alahsan-icon-pulse {
    animation: icon-pulse-animation 2s ease-in-out infinite;
}

.alahsan-icon-rotate {
    animation: icon-rotate-animation 10s linear infinite;
}

@keyframes icon-float-animation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes icon-pulse-animation {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 30px 60px rgba(255, 140, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 35px 80px rgba(255, 140, 0, 0.6);
    }
}

@keyframes icon-rotate-animation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Icon Sizes */
.alahsan-product-icon.size-small {
    font-size: 3rem;
}

.alahsan-product-icon.size-medium {
    font-size: 5rem;
}

.alahsan-product-icon.size-large {
    font-size: 6rem;
}

.alahsan-product-icon.size-xl {
    font-size: 8rem;
}

/* Icon Box Sizes */
.alahsan-icon-box.size-small {
    width: 100px;
    height: 100px;
}

.alahsan-icon-box.size-medium {
    width: 180px;
    height: 180px;
}

.alahsan-icon-box.size-large {
    width: 230px;
    height: 230px;
}

.alahsan-icon-box.size-xl {
    width: 280px;
    height: 280px;
}

@media (max-width: 768px) {
    .alahsan-product-icon.size-xl {
        font-size: 5rem;
    }
    
    .alahsan-icon-box.size-xl {
        width: 200px;
        height: 200px;
    }
}

/* ==========================================================================
   Background System - All Widgets
   ========================================================================== */

/* Position relative for background elements */
.alahsan-variety-widget,
.alahsan-features-widget,
.alahsan-cta-widget,
.alahsan-description-widget,
.alahsan-gallery-widget,
.alahsan-calendar-widget,
.alahsan-stats-bar {
    position: relative;
    overflow: hidden;
}

/* Video Background */
.alahsan-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Background Overlay */
.alahsan-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Pattern Backgrounds */
.alahsan-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

.alahsan-bg-pattern.pattern-dots {
    background-image: radial-gradient(var(--pattern-color, rgba(0,0,0,0.05)) 2px, transparent 2px);
    background-size: var(--pattern-size, 30px) var(--pattern-size, 30px);
}

.alahsan-bg-pattern.pattern-lines {
    background-image: repeating-linear-gradient(
        0deg,
        var(--pattern-color, rgba(0,0,0,0.05)) 0,
        var(--pattern-color, rgba(0,0,0,0.05)) 1px,
        transparent 1px,
        transparent var(--pattern-size, 30px)
    );
}

.alahsan-bg-pattern.pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        var(--pattern-color, rgba(0,0,0,0.05)) 0,
        var(--pattern-color, rgba(0,0,0,0.05)) 1px,
        transparent 1px,
        transparent var(--pattern-size, 30px)
    );
}

.alahsan-bg-pattern.pattern-grid {
    background-image: 
        linear-gradient(var(--pattern-color, rgba(0,0,0,0.05)) 1px, transparent 1px),
        linear-gradient(90deg, var(--pattern-color, rgba(0,0,0,0.05)) 1px, transparent 1px);
    background-size: var(--pattern-size, 30px) var(--pattern-size, 30px);
}

.alahsan-bg-pattern.pattern-waves {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10' stroke='rgba(0,0,0,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 100px 20px;
}

.alahsan-bg-pattern.pattern-geometric {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,0,0,0.05)' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: var(--pattern-size, 60px) var(--pattern-size, 60px);
}

.alahsan-bg-pattern.pattern-hexagon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='rgba(0,0,0,0.05)' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: var(--pattern-size, 28px) calc(var(--pattern-size, 28px) * 1.75);
}

/* Ensure content stays above backgrounds */
.alahsan-variety-widget > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern),
.alahsan-features-widget > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern),
.alahsan-cta-widget > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern),
.alahsan-description-widget > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern),
.alahsan-gallery-widget > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern),
.alahsan-calendar-widget > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern),
.alahsan-stats-bar > *:not(.alahsan-bg-video):not(.alahsan-bg-overlay):not(.alahsan-bg-pattern) {
    position: relative;
    z-index: 5;
}

/* Stats Bar Enhancements */
.alahsan-stats-bar.has-shadow {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.alahsan-stats-bar.layout-vertical .alahsan-stats-container {
    flex-direction: column;
}

.alahsan-stats-bar.layout-grid .alahsan-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.alahsan-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Feature Grid Hover Effects */
.alahsan-features-widget.hover-lift .alahsan-feature-card:hover {
    transform: translateY(-10px);
}

.alahsan-features-widget.hover-zoom .alahsan-feature-card:hover {
    transform: scale(1.05);
}

.alahsan-features-widget.hover-glow .alahsan-feature-card:hover {
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.2);
}

/* Gallery Hover Effects */
.alahsan-gallery-widget.hover-zoom .alahsan-gallery-item:hover img,
.alahsan-gallery-widget.hover-zoom .alahsan-gallery-item:hover .gallery-placeholder {
    transform: scale(1.1);
}

.alahsan-gallery-widget.hover-slide .gallery-overlay {
    transform: translateY(100%);
}

.alahsan-gallery-widget.hover-slide .alahsan-gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.alahsan-gallery-widget.hover-fade .gallery-overlay {
    opacity: 0;
}

.alahsan-gallery-widget.hover-fade .alahsan-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Variety Card Styles */
.alahsan-variety-widget.card-style-bordered .alahsan-variety-card {
    box-shadow: none;
    border: 2px solid #e9ecef;
}

.alahsan-variety-widget.card-style-flat .alahsan-variety-card {
    box-shadow: none;
    background: transparent;
}

/* Calendar Widget Background */
.alahsan-calendar-widget {
    padding: 80px 30px;
}
